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: catalog store rename (#14784)
Danny Xu065ee848ddf5
diff --git a/backend/api/v1/branch_merge.go b/backend/api/v1/branch_merge.goindex 1c1112f234..3a8d238cb8 100644--- a/backend/api/v1/branch_merge.go+++ b/backend/api/v1/branch_merge.go@@ -2280,7 +2280,7 @@ func deriveUpdateInfoFromMetadataDiff(metadataDiff *metadataDiffRootNode, headDaschemas: make(map[string]*updateInfoDiffSchemaNode),}- schemaConfigMap := buildMap(headDatabaseConfig.GetSchemaConfigs(), func(schemaConfig *storepb.SchemaConfig) string {+ schemaConfigMap := buildMap(headDatabaseConfig.GetSchemas(), func(schemaConfig *storepb.SchemaCatalog) string {return schemaConfig.GetName()})for _, metadataSchemaDiff := range metadataDiff.schemas {@@ -2296,7 +2296,7 @@ func deriveUpdateInfoFromMetadataDiff(metadataDiff *metadataDiffRootNode, headDaprocedures: make(map[string]*updateInfoDiffProcedureNode),}schemaConfig := schemaConfigMap[metadataSchemaDiff.name]- tableConfigMap := buildMap(schemaConfig.GetTableConfigs(), func(tableConfig *storepb.TableConfig) string {+ tableConfigMap := buildMap(schemaConfig.GetTables(), func(tableConfig *storepb.TableCatalog) string {return tableConfig.GetName()})for tableName, table := range metadataSchemaDiff.tables {@@ -2676,11 +2676,11 @@ func applyUpdateInfoDiffRootNode(a *updateInfoDiffRootNode, target *storepb.Datareturn proto.Clone(target).(*storepb.DatabaseConfig)}- schemaConfigMap := buildMap(target.GetSchemaConfigs(), func(schemaConfig *storepb.SchemaConfig) string {+ schemaConfigMap := buildMap(target.GetSchemas(), func(schemaConfig *storepb.SchemaCatalog) string {return schemaConfig.GetName()})- var schemaConfigs []*storepb.SchemaConfig+ var schemaConfigs []*storepb.SchemaCatalogfor schemaName, schema := range a.schemas {switch schema.action {case diffActionDrop:@@ -2688,7 +2688,7 @@ func applyUpdateInfoDiffRootNode(a *updateInfoDiffRootNode, target *storepb.Datadefault:schemaConfig := schemaConfigMap[schemaName]if schemaConfig == nil {- schemaConfig = &storepb.SchemaConfig{+ schemaConfig = &storepb.SchemaCatalog{Name: schema.name,}}@@ -2698,43 +2698,43 @@ func applyUpdateInfoDiffRootNode(a *updateInfoDiffRootNode, target *storepb.Data}return &storepb.DatabaseConfig{- Name: target.GetName(),- SchemaConfigs: schemaConfigs,+ Name: target.GetName(),+ Schemas: schemaConfigs,}}-func applyUpdateInfoDiffSchemaNode(a *updateInfoDiffSchemaNode, target *storepb.SchemaConfig) *storepb.SchemaConfig {+func applyUpdateInfoDiffSchemaNode(a *updateInfoDiffSchemaNode, target *storepb.SchemaCatalog) *storepb.SchemaCatalog {if a == nil {//nolint- return proto.Clone(target).(*storepb.SchemaConfig)+ return proto.Clone(target).(*storepb.SchemaCatalog)}- tableConfigMap := buildMap(target.GetTableConfigs(), func(tableConfig *storepb.TableConfig) string {+ tableCatalogMap := buildMap(target.GetTables(), func(tableConfig *storepb.TableCatalog) string {return tableConfig.GetName()})- var tableConfigs []*storepb.TableConfig+ var tableCatalogs []*storepb.TableCatalogfor tableName, table := range a.tables {switch table.action {case diffActionDrop:- delete(tableConfigMap, tableName)+ delete(tableCatalogMap, tableName)continuedefault:- tableConfig := tableConfigMap[tableName]- if tableConfig == nil {- tableConfig = &storepb.TableConfig{+ tableCatalog := tableCatalogMap[tableName]+ if tableCatalog == nil {+ tableCatalog = &storepb.TableCatalog{Name: tableName,}}- tableConfig.UpdateTime = table.updateInfo.lastUpdatedTime- tableConfig.Updater = table.updateInfo.lastUpdater- tableConfig.SourceBranch = table.updateInfo.sourceBranch- tableConfigs = append(tableConfigs, tableConfig)- delete(tableConfigMap, tableName)+ tableCatalog.UpdateTime = table.updateInfo.lastUpdatedTime+ tableCatalog.Updater = table.updateInfo.lastUpdater+ tableCatalog.SourceBranch = table.updateInfo.sourceBranch+ tableCatalogs = append(tableCatalogs, tableCatalog)+ delete(tableCatalogMap, tableName)}}// Add the remaining table configs in the target schema config.- for _, tableConfig := range tableConfigMap {- tableConfigs = append(tableConfigs, tableConfig)+ for _, tableCatalog := range tableCatalogMap {+ tableCatalogs = append(tableCatalogs, tableCatalog)}viewConfigMap := buildMap(target.GetViewConfigs(), func(viewConfig *storepb.ViewConfig) string {@@ -2821,9 +2821,9 @@ func applyUpdateInfoDiffSchemaNode(a *updateInfoDiffSchemaNode, target *storepb.functionConfigs = append(functionConfigs, functionConfig)}- return &storepb.SchemaConfig{+ return &storepb.SchemaCatalog{Name: target.GetName(),- TableConfigs: tableConfigs,+ Tables: tableCatalogs,ViewConfigs: viewConfigs,FunctionConfigs: functionConfigs,ProcedureConfigs: procedureConfigs,diff --git a/backend/api/v1/branch_merge_test.go b/backend/api/v1/branch_merge_test.goindex 0da9c8eceb..224cb2d700 100644--- a/backend/api/v1/branch_merge_test.go+++ b/backend/api/v1/branch_merge_test.go@@ -173,10 +173,10 @@ func TestDeriveUpdateInfoFromMetadataDiff(t *testing.T) {},},config: &storepb.DatabaseConfig{- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "t1",Updater: "[email protected]",@@ -281,15 +281,15 @@ func TestApplyUpdateInfoDiffRootNode(t *testing.T) {},},config: &storepb.DatabaseConfig{- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "t1",Updater: "my",UpdateTime: time1,- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "t",ClassificationId: "1-1-1",@@ -306,16 +306,16 @@ func TestApplyUpdateInfoDiffRootNode(t *testing.T) {},},want: &storepb.DatabaseConfig{- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "t1",UpdateTime: time2,Updater: "[email protected]",SourceBranch: "feat/01",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "t",ClassificationId: "1-1-1",diff --git a/backend/api/v1/branch_service.go b/backend/api/v1/branch_service.goindex 3110457018..3a6b92a948 100644--- a/backend/api/v1/branch_service.go+++ b/backend/api/v1/branch_service.go@@ -1297,10 +1297,10 @@ func updateConfigBranchUpdateInfoForUpdate(o *storepb.DatabaseSchemaMetadata, nalignedConfig := alignDatabaseConfig(n, config)oldModel := model.NewDatabaseMetadata(o)- newSchemaConfigMap := buildMap(alignedConfig.SchemaConfigs, func(s *storepb.SchemaConfig) string {+ newSchemaConfigMap := buildMap(alignedConfig.Schemas, func(s *storepb.SchemaCatalog) string {return s.Name})- var newSchemaConfigs []*storepb.SchemaConfig+ var newSchemaConfigs []*storepb.SchemaCatalogfor _, schema := range n.Schemas {newSchemaConfig, ok := newSchemaConfigMap[schema.Name]if !ok {@@ -1309,7 +1309,7 @@ func updateConfigBranchUpdateInfoForUpdate(o *storepb.DatabaseSchemaMetadata, n}oldSchema := oldModel.GetSchema(schema.Name)if oldSchema == nil {- for _, tableConfig := range newSchemaConfig.TableConfigs {+ for _, tableConfig := range newSchemaConfig.Tables {tableConfig.Updater = formattedUserUIDtableConfig.UpdateTime = timetableConfig.SourceBranch = formattedBranchResourceID@@ -1332,8 +1332,8 @@ func updateConfigBranchUpdateInfoForUpdate(o *storepb.DatabaseSchemaMetadata, ncontinue}- var newTableConfig []*storepb.TableConfig- tableConfigMap := buildMap(newSchemaConfig.TableConfigs, func(t *storepb.TableConfig) string {+ var newTableConfig []*storepb.TableCatalog+ tableConfigMap := buildMap(newSchemaConfig.Tables, func(t *storepb.TableCatalog) string {return t.Name})for _, table := range schema.Tables {@@ -1432,23 +1432,23 @@ func updateConfigBranchUpdateInfoForUpdate(o *storepb.DatabaseSchemaMetadata, n}}- newSchemaConfig.TableConfigs = append(newSchemaConfig.TableConfigs, newTableConfig...)+ newSchemaConfig.Tables = append(newSchemaConfig.Tables, newTableConfig...)newSchemaConfig.ViewConfigs = append(newSchemaConfig.ViewConfigs, newViewConfig...)newSchemaConfig.FunctionConfigs = append(newSchemaConfig.FunctionConfigs, newFunctionConfig...)newSchemaConfig.ProcedureConfigs = append(newSchemaConfig.ProcedureConfigs, newProcedureConfig...)}- alignedConfig.SchemaConfigs = append(alignedConfig.SchemaConfigs, newSchemaConfigs...)+ alignedConfig.Schemas = append(alignedConfig.Schemas, newSchemaConfigs...)return alignedConfig}-func initSchemaConfig(schema *storepb.SchemaMetadata, formattedUserUID string, branchResourceID string, time *timestamppb.Timestamp) *storepb.SchemaConfig {- s := &storepb.SchemaConfig{+func initSchemaConfig(schema *storepb.SchemaMetadata, formattedUserUID string, branchResourceID string, time *timestamppb.Timestamp) *storepb.SchemaCatalog {+ s := &storepb.SchemaCatalog{Name: schema.Name,}for _, table := range schema.Tables {- s.TableConfigs = append(s.TableConfigs, initTableConfig(table, formattedUserUID, branchResourceID, time))+ s.Tables = append(s.Tables, initTableConfig(table, formattedUserUID, branchResourceID, time))}for _, view := range schema.Views {@@ -1466,19 +1466,19 @@ func initSchemaConfig(schema *storepb.SchemaMetadata, formattedUserUID string, breturn s}-func initTableConfig(table *storepb.TableMetadata, formattedUserEmail string, branchResourceID string, time *timestamppb.Timestamp) *storepb.TableConfig {- var columnConfigs []*storepb.ColumnConfig+func initTableConfig(table *storepb.TableMetadata, formattedUserEmail string, branchResourceID string, time *timestamppb.Timestamp) *storepb.TableCatalog {+ var columnConfigs []*storepb.ColumnCatalogfor _, column := range table.Columns {- columnConfigs = append(columnConfigs, &storepb.ColumnConfig{+ columnConfigs = append(columnConfigs, &storepb.ColumnCatalog{Name: column.Name,})}- return &storepb.TableConfig{- Name: table.Name,- Updater: formattedUserEmail,- SourceBranch: branchResourceID,- UpdateTime: time,- ColumnConfigs: columnConfigs,+ return &storepb.TableCatalog{+ Name: table.Name,+ Updater: formattedUserEmail,+ SourceBranch: branchResourceID,+ UpdateTime: time,+ Columns: columnConfigs,}}@@ -1518,22 +1518,22 @@ func buildMap[T any](objects []T, getUniqueIdentifier func(T) string) map[string}func initBranchLastUpdateInfoConfig(metadata *storepb.DatabaseSchemaMetadata, config *storepb.DatabaseConfig) {- schemaConfigMap := buildMap(config.SchemaConfigs, func(s *storepb.SchemaConfig) string {+ schemaConfigMap := buildMap(config.Schemas, func(s *storepb.SchemaCatalog) string {return s.Name})for _, schema := range metadata.Schemas {schemaConfig, ok := schemaConfigMap[schema.Name]if !ok {- config.SchemaConfigs = append(config.SchemaConfigs, initSchemaConfig(schema, "", "", nil))+ config.Schemas = append(config.Schemas, initSchemaConfig(schema, "", "", nil))continue}- tableConfigMap := buildMap(schemaConfig.TableConfigs, func(t *storepb.TableConfig) string {+ tableConfigMap := buildMap(schemaConfig.Tables, func(t *storepb.TableCatalog) string {return t.Name})for _, table := range schema.Tables {tableConfig, ok := tableConfigMap[table.Name]if !ok {- schemaConfig.TableConfigs = append(schemaConfig.TableConfigs, initTableConfig(table, "", "", nil))+ schemaConfig.Tables = append(schemaConfig.Tables, initTableConfig(table, "", "", nil))} else {tableConfig.Updater = ""tableConfig.UpdateTime = nil@@ -1607,7 +1607,7 @@ func alignDatabaseConfig(metadata *storepb.DatabaseSchemaMetadata, config *storeName: metadata.GetName(),}dbModel := model.NewDatabaseMetadata(metadata)- schemaConfigMap := buildMap(config.SchemaConfigs, func(s *storepb.SchemaConfig) string {+ schemaConfigMap := buildMap(config.Schemas, func(s *storepb.SchemaCatalog) string {return s.Name})for _, schemaName := range dbModel.ListSchemaNames() {@@ -1615,42 +1615,42 @@ func alignDatabaseConfig(metadata *storepb.DatabaseSchemaMetadata, config *storeoldSchemaConfig, ok := schemaConfigMap[schemaName]if !ok {schemaConfig := initSchemaConfig(schema.GetProto(), "", "", nil)- result.SchemaConfigs = append(result.SchemaConfigs, schemaConfig)+ result.Schemas = append(result.Schemas, schemaConfig)continue}- schemaConfig := &storepb.SchemaConfig{+ schemaConfig := &storepb.SchemaCatalog{Name: schemaName,}for _, tableName := range schema.ListTableNames() {table := schema.GetTable(tableName)- tableConfigMap := buildMap(oldSchemaConfig.TableConfigs, func(t *storepb.TableConfig) string {+ tableConfigMap := buildMap(oldSchemaConfig.Tables, func(t *storepb.TableCatalog) string {return t.Name})oldTableConfig, ok := tableConfigMap[tableName]if !ok {tableConfig := initTableConfig(table.GetProto(), "", "", nil)- schemaConfig.TableConfigs = append(schemaConfig.TableConfigs, tableConfig)+ schemaConfig.Tables = append(schemaConfig.Tables, tableConfig)continue}//nolint- tableConfig := &storepb.TableConfig{+ tableConfig := &storepb.TableCatalog{Name: tableName,ClassificationId: oldTableConfig.ClassificationId,Updater: oldTableConfig.Updater,UpdateTime: oldTableConfig.UpdateTime,SourceBranch: oldTableConfig.SourceBranch,}- columnConfigMap := buildMap(oldTableConfig.ColumnConfigs, func(c *storepb.ColumnConfig) string {+ columnConfigMap := buildMap(oldTableConfig.Columns, func(c *storepb.ColumnCatalog) string {return c.Name})for _, columnProto := range table.GetColumns() {columnName := columnProto.GetName()if columnConfig, ok := columnConfigMap[columnName]; !ok {- tableConfig.ColumnConfigs = append(tableConfig.ColumnConfigs, &storepb.ColumnConfig{+ tableConfig.Columns = append(tableConfig.Columns, &storepb.ColumnCatalog{Name: columnName,})} else {- columnConfig := &storepb.ColumnConfig{+ columnConfig := &storepb.ColumnCatalog{Name: columnName,ClassificationId: columnConfig.ClassificationId,SemanticTypeId: columnConfig.SemanticTypeId,@@ -1659,10 +1659,10 @@ func alignDatabaseConfig(metadata *storepb.DatabaseSchemaMetadata, config *storeFullMaskingAlgorithmId: columnConfig.FullMaskingAlgorithmId,PartialMaskingAlgorithmId: columnConfig.PartialMaskingAlgorithmId,}- tableConfig.ColumnConfigs = append(tableConfig.ColumnConfigs, columnConfig)+ tableConfig.Columns = append(tableConfig.Columns, columnConfig)}}- schemaConfig.TableConfigs = append(schemaConfig.TableConfigs, tableConfig)+ schemaConfig.Tables = append(schemaConfig.Tables, tableConfig)}for _, viewName := range schema.ListViewNames() {@@ -1725,7 +1725,7 @@ func alignDatabaseConfig(metadata *storepb.DatabaseSchemaMetadata, config *store}schemaConfig.FunctionConfigs = append(schemaConfig.FunctionConfigs, functionConfig)}- result.SchemaConfigs = append(result.SchemaConfigs, schemaConfig)+ result.Schemas = append(result.Schemas, schemaConfig)}return result}@@ -1736,28 +1736,28 @@ func formatViewDef(def string) string {// setClassificationIDToConfig inplace set the classification ID from the a config to the b config.func setClassificationIDToConfig(a, b *storepb.DatabaseConfig) {- aSchemaConfigMap := buildMap(a.SchemaConfigs, func(s *storepb.SchemaConfig) string {+ aSchemaConfigMap := buildMap(a.Schemas, func(s *storepb.SchemaCatalog) string {return s.Name})- for _, schemaConfig := range b.SchemaConfigs {+ for _, schemaConfig := range b.Schemas {aSchemaConfig, ok := aSchemaConfigMap[schemaConfig.Name]if !ok {continue}- aTableConfigMap := buildMap(aSchemaConfig.TableConfigs, func(t *storepb.TableConfig) string {+ aTableConfigMap := buildMap(aSchemaConfig.Tables, func(t *storepb.TableCatalog) string {return t.Name})- for _, tableConfig := range schemaConfig.TableConfigs {+ for _, tableConfig := range schemaConfig.Tables {aTableConfig, ok := aTableConfigMap[tableConfig.Name]if !ok {continue}tableConfig.ClassificationId = aTableConfig.ClassificationId- aColumnConfigMap := buildMap(aTableConfig.ColumnConfigs, func(c *storepb.ColumnConfig) string {+ aColumnConfigMap := buildMap(aTableConfig.Columns, func(c *storepb.ColumnCatalog) string {return c.Name})- for _, columnConfig := range tableConfig.ColumnConfigs {+ for _, columnConfig := range tableConfig.Columns {aColumnConfig, ok := aColumnConfigMap[columnConfig.Name]if !ok {continuediff --git a/backend/api/v1/branch_service_test.go b/backend/api/v1/branch_service_test.goindex b71c839fd5..283e03b9ce 100644--- a/backend/api/v1/branch_service_test.go+++ b/backend/api/v1/branch_service_test.go@@ -106,10 +106,10 @@ func TestAlignDatabaseConfig(t *testing.T) {// Create a sample config with one schema and one tableconfig := &storepb.DatabaseConfig{Name: "testdb",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1"},},FunctionConfigs: []*storepb.FunctionConfig{@@ -124,10 +124,10 @@ func TestAlignDatabaseConfig(t *testing.T) {want := &storepb.DatabaseConfig{Name: "testdb",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table3"},},FunctionConfigs: []*storepb.FunctionConfig{diff --git a/backend/api/v1/database_catalog_service.go b/backend/api/v1/database_catalog_service.goindex 57777ae0c1..40a8d5353d 100644--- a/backend/api/v1/database_catalog_service.go+++ b/backend/api/v1/database_catalog_service.go@@ -108,18 +108,18 @@ func convertDatabaseConfig(database *store.DatabaseMessage, config *storepb.Datac := &v1pb.DatabaseCatalog{Name: fmt.Sprintf("%s%s/%s%s%s", common.InstanceNamePrefix, database.InstanceID, common.DatabaseIDPrefix, database.DatabaseName, common.CatalogSuffix),}- for _, sc := range config.SchemaConfigs {+ for _, sc := range config.Schemas {s := &v1pb.SchemaCatalog{Name: sc.Name}- for _, tc := range sc.TableConfigs {+ for _, tc := range sc.Tables {t := &v1pb.TableCatalog{Name: tc.Name,ClassificationId: tc.ClassificationId,}- if tc.ObjectSchema != nil && len(tc.ColumnConfigs) == 0 {+ if tc.ObjectSchema != nil && len(tc.Columns) == 0 {t.Kind = &v1pb.TableCatalog_ObjectSchema{ObjectSchema: convertStoreObjectSchema(tc.ObjectSchema)}} else {var columns []*v1pb.ColumnCatalog- for _, cc := range tc.ColumnConfigs {+ for _, cc := range tc.Columns {columns = append(columns, convertColumnConfig(cc))}t.Kind = &v1pb.TableCatalog_Columns_{Columns: &v1pb.TableCatalog_Columns{@@ -133,7 +133,7 @@ func convertDatabaseConfig(database *store.DatabaseMessage, config *storepb.Datareturn c}-func convertColumnConfig(c *storepb.ColumnConfig) *v1pb.ColumnCatalog {+func convertColumnConfig(c *storepb.ColumnCatalog) *v1pb.ColumnCatalog {return &v1pb.ColumnCatalog{Name: c.Name,SemanticTypeId: c.SemanticTypeId,@@ -185,9 +185,9 @@ func convertStoreObjectSchema(objectSchema *storepb.ObjectSchema) *v1pb.ObjectScfunc convertDatabaseCatalog(catalog *v1pb.DatabaseCatalog) *storepb.DatabaseConfig {c := &storepb.DatabaseConfig{}for _, sc := range catalog.Schemas {- s := &storepb.SchemaConfig{Name: sc.Name}+ s := &storepb.SchemaCatalog{Name: sc.Name}for _, tc := range sc.Tables {- t := &storepb.TableConfig{+ t := &storepb.TableCatalog{Name: tc.Name,ClassificationId: tc.ClassificationId,}@@ -195,18 +195,18 @@ func convertDatabaseCatalog(catalog *v1pb.DatabaseCatalog) *storepb.DatabaseConft.ObjectSchema = convertV1ObjectSchema(tc.GetObjectSchema())} else {for _, cc := range tc.GetColumns().GetColumns() {- t.ColumnConfigs = append(t.ColumnConfigs, convertColumnCatalog(cc))+ t.Columns = append(t.Columns, convertColumnCatalog(cc))}}- s.TableConfigs = append(s.TableConfigs, t)+ s.Tables = append(s.Tables, t)}- c.SchemaConfigs = append(c.SchemaConfigs, s)+ c.Schemas = append(c.Schemas, s)}return c}-func convertColumnCatalog(c *v1pb.ColumnCatalog) *storepb.ColumnConfig {- return &storepb.ColumnConfig{+func convertColumnCatalog(c *v1pb.ColumnCatalog) *storepb.ColumnCatalog {+ return &storepb.ColumnCatalog{Name: c.Name,SemanticTypeId: c.SemanticTypeId,Labels: c.Labels,diff --git a/backend/api/v1/database_converter.go b/backend/api/v1/database_converter.goindex 2ceb492ea9..48a6ed3096 100644--- a/backend/api/v1/database_converter.go+++ b/backend/api/v1/database_converter.go@@ -465,7 +465,7 @@ func convertStoreDatabaseConfig(ctx context.Context, config *storepb.DatabaseCondatabaseConfig := &v1pb.DatabaseConfig{Name: config.Name,}- for _, schema := range config.SchemaConfigs {+ for _, schema := range config.Schemas {if schema == nil {continue}@@ -475,7 +475,7 @@ func convertStoreDatabaseConfig(ctx context.Context, config *storepb.DatabaseCons := &v1pb.SchemaConfig{Name: schema.Name,}- for _, table := range schema.TableConfigs {+ for _, table := range schema.Tables {if table == nil {continue}@@ -534,7 +534,7 @@ func convertStoreViewConfig(ctx context.Context, config *storepb.ViewConfig, opt}}-func convertStoreTableConfig(ctx context.Context, table *storepb.TableConfig, optionalStores *store.Store) *v1pb.TableConfig {+func convertStoreTableConfig(ctx context.Context, table *storepb.TableCatalog, optionalStores *store.Store) *v1pb.TableConfig {t := &v1pb.TableConfig{Name: table.Name,ClassificationId: table.ClassificationId,@@ -542,7 +542,7 @@ func convertStoreTableConfig(ctx context.Context, table *storepb.TableConfig, opSourceBranch: table.SourceBranch,UpdateTime: table.UpdateTime,}- for _, column := range table.ColumnConfigs {+ for _, column := range table.Columns {if column == nil {continue}@@ -551,7 +551,7 @@ func convertStoreTableConfig(ctx context.Context, table *storepb.TableConfig, opreturn t}-func convertStoreColumnConfig(column *storepb.ColumnConfig) *v1pb.ColumnConfig {+func convertStoreColumnConfig(column *storepb.ColumnCatalog) *v1pb.ColumnConfig {return &v1pb.ColumnConfig{Name: column.Name,SemanticTypeId: column.SemanticTypeId,@@ -974,7 +974,7 @@ func convertV1DatabaseConfig(ctx context.Context, databaseConfig *v1pb.DatabaseCif schema == nil {continue}- s := &storepb.SchemaConfig{+ s := &storepb.SchemaCatalog{Name: schema.Name,}for _, table := range schema.TableConfigs {@@ -982,7 +982,7 @@ func convertV1DatabaseConfig(ctx context.Context, databaseConfig *v1pb.DatabaseCcontinue}- s.TableConfigs = append(s.TableConfigs, convertV1TableConfig(ctx, table, optionalStores))+ s.Tables = append(s.Tables, convertV1TableConfig(ctx, table, optionalStores))}for _, view := range schema.ViewConfigs {if view == nil {@@ -1002,7 +1002,7 @@ func convertV1DatabaseConfig(ctx context.Context, databaseConfig *v1pb.DatabaseC}s.ProcedureConfigs = append(s.ProcedureConfigs, convertV1ProcedureConfig(ctx, procedure, optionalStores))}- config.SchemaConfigs = append(config.SchemaConfigs, s)+ config.Schemas = append(config.Schemas, s)}return config}@@ -1034,8 +1034,8 @@ func convertV1ProcedureConfig(ctx context.Context, procedure *v1pb.ProcedureConf}}-func convertV1TableConfig(ctx context.Context, table *v1pb.TableConfig, optionalStores *store.Store) *storepb.TableConfig {- t := &storepb.TableConfig{+func convertV1TableConfig(ctx context.Context, table *v1pb.TableConfig, optionalStores *store.Store) *storepb.TableCatalog {+ t := &storepb.TableCatalog{Name: table.Name,ClassificationId: table.ClassificationId,Updater: getUpdaterFromEmail(ctx, table.Updater, optionalStores),@@ -1046,13 +1046,13 @@ func convertV1TableConfig(ctx context.Context, table *v1pb.TableConfig, optionalif column == nil {continue}- t.ColumnConfigs = append(t.ColumnConfigs, convertV1ColumnConfig(column))+ t.Columns = append(t.Columns, convertV1ColumnConfig(column))}return t}-func convertV1ColumnConfig(column *v1pb.ColumnConfig) *storepb.ColumnConfig {- return &storepb.ColumnConfig{+func convertV1ColumnConfig(column *v1pb.ColumnConfig) *storepb.ColumnCatalog {+ return &storepb.ColumnCatalog{Name: column.Name,SemanticTypeId: column.SemanticTypeId,Labels: column.Labels,diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.goindex d972b339d4..2b14d83590 100644--- a/backend/api/v1/database_service.go+++ b/backend/api/v1/database_service.go@@ -535,9 +535,9 @@ func (s *DatabaseService) GetDatabaseMetadata(ctx context.Context, request *v1pb// Convert the maskingPolicy to a map to reduce the time complexity of searching.maskingPolicyMap := make(map[maskingPolicyKey]*storepb.MaskData)- for _, schemaConfig := range dbSchema.GetConfig().SchemaConfigs {- for _, tableConfig := range schemaConfig.GetTableConfigs() {- for _, columnConfig := range tableConfig.GetColumnConfigs() {+ for _, schemaConfig := range dbSchema.GetConfig().Schemas {+ for _, tableConfig := range schemaConfig.GetTables() {+ for _, columnConfig := range tableConfig.GetColumns() {if columnConfig.MaskingLevel == storepb.MaskingLevel_MASKING_LEVEL_UNSPECIFIED {continue}diff --git a/backend/api/v1/query_result_masker.go b/backend/api/v1/query_result_masker.goindex 10a0bb5164..29a2af45b5 100644--- a/backend/api/v1/query_result_masker.go+++ b/backend/api/v1/query_result_masker.go@@ -194,9 +194,9 @@ func (s *QueryResultMasker) getMaskerForColumnResource(return nil, status.Error(codes.Internal, err.Error())}maskingPolicyMap := make(map[maskingPolicyKey]*storepb.MaskData)- for _, schemaConfig := range dbSchema.GetConfig().SchemaConfigs {- for _, tableConfig := range schemaConfig.GetTableConfigs() {- for _, columnConfig := range tableConfig.GetColumnConfigs() {+ for _, schemaConfig := range dbSchema.GetConfig().Schemas {+ for _, tableConfig := range schemaConfig.GetTables() {+ for _, columnConfig := range tableConfig.GetColumns() {if columnConfig.MaskingLevel == storepb.MaskingLevel_MASKING_LEVEL_UNSPECIFIED {continue}@@ -254,7 +254,7 @@ func (s *QueryResultMasker) getMaskerForColumnResource(return getMaskerByMaskingAlgorithmAndLevel(maskingAlgorithm, maskingLevel), nil}-func (s *QueryResultMasker) getColumnForColumnResource(ctx context.Context, instanceID string, sourceColumn *base.ColumnResource) (*storepb.ColumnMetadata, *storepb.ColumnConfig, error) {+func (s *QueryResultMasker) getColumnForColumnResource(ctx context.Context, instanceID string, sourceColumn *base.ColumnResource) (*storepb.ColumnMetadata, *storepb.ColumnCatalog, error) {if sourceColumn == nil {return nil, nil, nil}@@ -295,7 +295,7 @@ func (s *QueryResultMasker) getColumnForColumnResource(ctx context.Context, inst}columnMetadata = column- var columnConfig *storepb.ColumnConfig+ var columnConfig *storepb.ColumnCatalogconfig := dbSchema.GetInternalConfig()if config == nil {return columnMetadata, nil, nildiff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.goindex 5c2433ed4c..1f66567116 100644--- a/backend/api/v1/setting_service.go+++ b/backend/api/v1/setting_service.go@@ -1268,8 +1268,8 @@ func convertSchemaTemplateSetting(ctx context.Context, template *storepb.SchemaTif v.Column != nil {t.Column = convertStoreColumnMetadata(v.Column)}- if v.Config != nil {- t.Catalog = convertColumnConfig(v.Config)+ if v.Catalog != nil {+ t.Catalog = convertColumnConfig(v.Catalog)}v1Setting.FieldTemplates = append(v1Setting.FieldTemplates, t)}@@ -1285,8 +1285,8 @@ func convertSchemaTemplateSetting(ctx context.Context, template *storepb.SchemaTif v.Table != nil {t.Table = convertStoreTableMetadata(v.Table)}- if v.Config != nil {- t.Config = convertStoreTableConfig(ctx, v.Config, nil /* optionalStores */)+ if v.Catalog != nil {+ t.Config = convertStoreTableConfig(ctx, v.Catalog, nil /* optionalStores */)}v1Setting.TableTemplates = append(v1Setting.TableTemplates, t)}@@ -1316,7 +1316,7 @@ func convertV1SchemaTemplateSetting(ctx context.Context, template *v1pb.SchemaTet.Column = convertV1ColumnMetadata(v.Column)}if v.Catalog != nil {- t.Config = convertColumnCatalog(v.Catalog)+ t.Catalog = convertColumnCatalog(v.Catalog)}v1Setting.FieldTemplates = append(v1Setting.FieldTemplates, t)}@@ -1333,7 +1333,7 @@ func convertV1SchemaTemplateSetting(ctx context.Context, template *v1pb.SchemaTet.Table = convertV1TableMetadata(v.Table)}if v.Config != nil {- t.Config = convertV1TableConfig(ctx, v.Config, nil /* optionalStores */)+ t.Catalog = convertV1TableConfig(ctx, v.Config, nil /* optionalStores */)}v1Setting.TableTemplates = append(v1Setting.TableTemplates, t)}diff --git a/backend/runner/schemasync/syncer.go b/backend/runner/schemasync/syncer.goindex 481f941937..152a0dea66 100644--- a/backend/runner/schemasync/syncer.go+++ b/backend/runner/schemasync/syncer.go@@ -783,7 +783,7 @@ func setClassificationAndUserCommentFromComment(dbSchema *storepb.DatabaseSchema}}-func isEmptyColumnConfig(config *storepb.ColumnConfig) bool {+func isEmptyColumnConfig(config *storepb.ColumnCatalog) bool {return config == nil || (len(config.Labels) == 0 &&config.ClassificationId == "" &&config.SemanticTypeId == "" &&diff --git a/backend/store/model/database.go b/backend/store/model/database.goindex ed4aa27497..e1e09eb5a6 100644--- a/backend/store/model/database.go+++ b/backend/store/model/database.go@@ -185,16 +185,16 @@ func NewDatabaseConfig(config *storepb.DatabaseConfig) *DatabaseConfig {return databaseConfig}databaseConfig.name = config.Name- for _, schema := range config.SchemaConfigs {+ for _, schema := range config.Schemas {schemaConfig := &SchemaConfig{internal: make(map[string]*TableConfig),}- for _, table := range schema.TableConfigs {+ for _, table := range schema.Tables {tableConfig := &TableConfig{ClassificationID: table.ClassificationId,- internal: make(map[string]*storepb.ColumnConfig),+ internal: make(map[string]*storepb.ColumnCatalog),}- for _, column := range table.ColumnConfigs {+ for _, column := range table.Columns {tableConfig.internal[column.Name] = column}schemaConfig.internal[table.Name] = tableConfig@@ -224,13 +224,13 @@ func (d *DatabaseConfig) BuildDatabaseConfig() *storepb.DatabaseConfig {config := &storepb.DatabaseConfig{Name: d.name}for schemaName, sConfig := range d.internal {- schemaConfig := &storepb.SchemaConfig{Name: schemaName}+ schemaConfig := &storepb.SchemaCatalog{Name: schemaName}for tableName, tConfig := range sConfig.internal {- tableConfig := &storepb.TableConfig{Name: tableName, ClassificationId: tConfig.ClassificationID}+ tableConfig := &storepb.TableCatalog{Name: tableName, ClassificationId: tConfig.ClassificationID}for colName, colConfig := range tConfig.internal {- tableConfig.ColumnConfigs = append(tableConfig.ColumnConfigs, &storepb.ColumnConfig{+ tableConfig.Columns = append(tableConfig.Columns, &storepb.ColumnCatalog{Name: colName,SemanticTypeId: colConfig.SemanticTypeId,Labels: colConfig.Labels,@@ -240,9 +240,9 @@ func (d *DatabaseConfig) BuildDatabaseConfig() *storepb.DatabaseConfig {PartialMaskingAlgorithmId: colConfig.PartialMaskingAlgorithmId,})}- schemaConfig.TableConfigs = append(schemaConfig.TableConfigs, tableConfig)+ schemaConfig.Tables = append(schemaConfig.Tables, tableConfig)}- config.SchemaConfigs = append(config.SchemaConfigs, schemaConfig)+ config.Schemas = append(config.Schemas, schemaConfig)}return config@@ -264,7 +264,7 @@ func (s *SchemaConfig) CreateOrGetTableConfig(name string) *TableConfig {return config}s.internal[name] = &TableConfig{- internal: make(map[string]*storepb.ColumnConfig),+ internal: make(map[string]*storepb.ColumnCatalog),}return s.internal[name]}@@ -277,15 +277,15 @@ func (s *SchemaConfig) RemoveTableConfig(name string) {// TableConfig is the config for a table.type TableConfig struct {ClassificationID string- internal map[string]*storepb.ColumnConfig+ internal map[string]*storepb.ColumnCatalog}// CreateOrGetColumnConfig creates or gets the column config by name.-func (t *TableConfig) CreateOrGetColumnConfig(name string) *storepb.ColumnConfig {+func (t *TableConfig) CreateOrGetColumnConfig(name string) *storepb.ColumnCatalog {if config := t.internal[name]; config != nil {return config}- t.internal[name] = &storepb.ColumnConfig{+ t.internal[name] = &storepb.ColumnCatalog{Name: name,MaskingLevel: storepb.MaskingLevel_MASKING_LEVEL_UNSPECIFIED,}diff --git a/backend/utils/database_config_merge.go b/backend/utils/database_config_merge.goindex 9fa2809c69..54f3b546e8 100644--- a/backend/utils/database_config_merge.go+++ b/backend/utils/database_config_merge.go@@ -44,24 +44,24 @@ func MergeDatabaseConfig(target, baseline, current *storepb.DatabaseConfig) *storesult := &storepb.DatabaseConfig{Name: current.Name}for _, v := range currentMap {- result.SchemaConfigs = append(result.SchemaConfigs, v)+ result.Schemas = append(result.Schemas, v)}- sort.Slice(result.SchemaConfigs, func(i, j int) bool {- return result.SchemaConfigs[i].Name < result.SchemaConfigs[j].Name+ sort.Slice(result.Schemas, func(i, j int) bool {+ return result.Schemas[i].Name < result.Schemas[j].Name})return result}-func mergeSchemaConfig(target, baseline, current *storepb.SchemaConfig) *storepb.SchemaConfig {+func mergeSchemaConfig(target, baseline, current *storepb.SchemaCatalog) *storepb.SchemaCatalog {// Avoid nil values.if target == nil {- target = &storepb.SchemaConfig{}+ target = &storepb.SchemaCatalog{}}if baseline == nil {- baseline = &storepb.SchemaConfig{}+ baseline = &storepb.SchemaCatalog{}}if current == nil {- current = &storepb.SchemaConfig{}+ current = &storepb.SchemaCatalog{}}targetMap, baselineMap, currentMap := buildTableMap(target), buildTableMap(baseline), buildTableMap(current)@@ -116,9 +116,9 @@ func mergeSchemaConfig(target, baseline, current *storepb.SchemaConfig) *storepb}}- result := &storepb.SchemaConfig{Name: current.Name}+ result := &storepb.SchemaCatalog{Name: current.Name}for _, v := range currentMap {- result.TableConfigs = append(result.TableConfigs, v)+ result.Tables = append(result.Tables, v)}for _, v := range currentProcedureMap {result.ProcedureConfigs = append(result.ProcedureConfigs, v)@@ -129,8 +129,8 @@ func mergeSchemaConfig(target, baseline, current *storepb.SchemaConfig) *storepbfor _, v := range currentViewMap {result.ViewConfigs = append(result.ViewConfigs, v)}- sort.Slice(result.TableConfigs, func(i, j int) bool {- return result.TableConfigs[i].Name < result.TableConfigs[j].Name+ sort.Slice(result.Tables, func(i, j int) bool {+ return result.Tables[i].Name < result.Tables[j].Name})return result}@@ -165,16 +165,16 @@ func mergeViewConfig(target, baseline, current *storepb.ViewConfig) *storepb.Vie}}-func mergeTableConfig(target, baseline, current *storepb.TableConfig) *storepb.TableConfig {+func mergeTableConfig(target, baseline, current *storepb.TableCatalog) *storepb.TableCatalog {// Avoid nil values.if target == nil {- target = &storepb.TableConfig{}+ target = &storepb.TableCatalog{}}if baseline == nil {- baseline = &storepb.TableConfig{}+ baseline = &storepb.TableCatalog{}}if current == nil {- current = &storepb.TableConfig{}+ current = &storepb.TableCatalog{}}targetMap, baselineMap, currentMap := buildColumnMap(target), buildColumnMap(baseline), buildColumnMap(current)@@ -196,21 +196,21 @@ func mergeTableConfig(target, baseline, current *storepb.TableConfig) *storepb.Tdelete(currentMap, tableName)}- result := &storepb.TableConfig{Name: current.Name, ClassificationId: current.ClassificationId}+ result := &storepb.TableCatalog{Name: current.Name, ClassificationId: current.ClassificationId}lastUpdater, lastUpdateTime, sourceBranch := getLastUpdaterAndSourceBranch(target.GetUpdater(), target.GetUpdateTime(), target.GetSourceBranch(), baseline.GetUpdater(), current.GetUpdater(), current.GetUpdateTime(), current.GetSourceBranch())result.Updater = lastUpdaterresult.UpdateTime = lastUpdateTimeresult.SourceBranch = sourceBranchfor _, v := range currentMap {- result.ColumnConfigs = append(result.ColumnConfigs, v)+ result.Columns = append(result.Columns, v)}- sort.Slice(result.ColumnConfigs, func(i, j int) bool {- return result.ColumnConfigs[i].Name < result.ColumnConfigs[j].Name+ sort.Slice(result.Columns, func(i, j int) bool {+ return result.Columns[i].Name < result.Columns[j].Name})return result}-func mergeColumnConfig(target, baseline, current *storepb.ColumnConfig) *storepb.ColumnConfig {+func mergeColumnConfig(target, baseline, current *storepb.ColumnCatalog) *storepb.ColumnCatalog {if baseline == nil {// Baseline could be nil. When it's nil, we should set the current stale value to target value.if target == nil {@@ -244,23 +244,23 @@ func mergeColumnConfig(target, baseline, current *storepb.ColumnConfig) *storepbreturn current}-func buildSchemaMap(config *storepb.DatabaseConfig) map[string]*storepb.SchemaConfig {- m := make(map[string]*storepb.SchemaConfig)- for _, v := range config.SchemaConfigs {+func buildSchemaMap(config *storepb.DatabaseConfig) map[string]*storepb.SchemaCatalog {+ m := make(map[string]*storepb.SchemaCatalog)+ for _, v := range config.Schemas {m[v.Name] = v}return m}-func buildTableMap(config *storepb.SchemaConfig) map[string]*storepb.TableConfig {- m := make(map[string]*storepb.TableConfig)- for _, v := range config.TableConfigs {+func buildTableMap(config *storepb.SchemaCatalog) map[string]*storepb.TableCatalog {+ m := make(map[string]*storepb.TableCatalog)+ for _, v := range config.Tables {m[v.Name] = v}return m}-func buildProcedureMap(config *storepb.SchemaConfig) map[string]*storepb.ProcedureConfig {+func buildProcedureMap(config *storepb.SchemaCatalog) map[string]*storepb.ProcedureConfig {m := make(map[string]*storepb.ProcedureConfig)for _, v := range config.ProcedureConfigs {m[v.Name] = v@@ -268,7 +268,7 @@ func buildProcedureMap(config *storepb.SchemaConfig) map[string]*storepb.Procedureturn m}-func buildFunctionMap(config *storepb.SchemaConfig) map[string]*storepb.FunctionConfig {+func buildFunctionMap(config *storepb.SchemaCatalog) map[string]*storepb.FunctionConfig {m := make(map[string]*storepb.FunctionConfig)for _, v := range config.FunctionConfigs {m[v.Name] = v@@ -276,7 +276,7 @@ func buildFunctionMap(config *storepb.SchemaConfig) map[string]*storepb.Functionreturn m}-func buildViewMap(config *storepb.SchemaConfig) map[string]*storepb.ViewConfig {+func buildViewMap(config *storepb.SchemaCatalog) map[string]*storepb.ViewConfig {m := make(map[string]*storepb.ViewConfig)for _, v := range config.ViewConfigs {m[v.Name] = v@@ -284,9 +284,9 @@ func buildViewMap(config *storepb.SchemaConfig) map[string]*storepb.ViewConfig {return m}-func buildColumnMap(config *storepb.TableConfig) map[string]*storepb.ColumnConfig {- m := make(map[string]*storepb.ColumnConfig)- for _, v := range config.ColumnConfigs {+func buildColumnMap(config *storepb.TableCatalog) map[string]*storepb.ColumnCatalog {+ m := make(map[string]*storepb.ColumnCatalog)+ for _, v := range config.Columns {m[v.Name] = v}return mdiff --git a/backend/utils/database_config_merge_test.go b/backend/utils/database_config_merge_test.goindex 0a47f515f1..921e812f37 100644--- a/backend/utils/database_config_merge_test.go+++ b/backend/utils/database_config_merge_test.go@@ -24,13 +24,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {description: "easy change and the target config is the same as the baseline config",target: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",@@ -48,13 +48,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},baseline: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",@@ -67,13 +67,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},head: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",@@ -86,13 +86,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},want: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",@@ -113,13 +113,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {description: "if the target config has changed the same column, we should overwrite it",target: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_b",@@ -132,13 +132,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},baseline: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",@@ -151,13 +151,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},head: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_c",@@ -170,13 +170,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},want: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_b",@@ -192,13 +192,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {description: "if the target config has changed, we should not overwrite the difference set",target: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{// Modify the semantic type id to id_b.Name: "a",@@ -220,7 +220,7 @@ func TestUpdateDatabaseConfig(t *testing.T) {// Delete the table.// {// Name: "table2",- // ColumnConfigs: []*storepb.ColumnConfig{+ // Columns: []*storepb.ColumnCatalog{// {// Name: "a",// SemanticTypeId: "id_a",@@ -230,7 +230,7 @@ func TestUpdateDatabaseConfig(t *testing.T) {// Create a new table.{Name: "table3",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",@@ -247,13 +247,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},baseline: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",@@ -267,7 +267,7 @@ func TestUpdateDatabaseConfig(t *testing.T) {},{Name: "table2",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",@@ -280,13 +280,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},head: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_c",@@ -299,7 +299,7 @@ func TestUpdateDatabaseConfig(t *testing.T) {},{Name: "table2",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "b",SemanticTypeId: "id_b",@@ -312,13 +312,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {},want: &storepb.DatabaseConfig{Name: "db1",- SchemaConfigs: []*storepb.SchemaConfig{+ Schemas: []*storepb.SchemaCatalog{{Name: "schema1",- TableConfigs: []*storepb.TableConfig{+ Tables: []*storepb.TableCatalog{{Name: "table1",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_b",@@ -336,7 +336,7 @@ func TestUpdateDatabaseConfig(t *testing.T) {},{Name: "table3",- ColumnConfigs: []*storepb.ColumnConfig{+ Columns: []*storepb.ColumnCatalog{{Name: "a",SemanticTypeId: "id_a",diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex ae3f877dc7..2fdf22f5e2 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -36,7 +36,7 @@ export enum Edition {EDITION_2024 = "EDITION_2024",/*** EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be- * used or relyed on outside of tests.+ * used or relied on outside of tests.*/EDITION_1_TEST_ONLY = "EDITION_1_TEST_ONLY",EDITION_2_TEST_ONLY = "EDITION_2_TEST_ONLY",@@ -1093,12 +1093,13 @@ export interface MessageOptions {export interface FieldOptions {/**+ * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.* The ctype option instructs the C++ code generator to use a different* representation of the field than it normally would. See the specific* options below. This option is only implemented to support use of* [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of- * type "bytes" in the open source release -- sorry, we'll try to include- * other types in a future version!+ * type "bytes" in the open source release.+ * TODO: make ctype actually deprecated.*/ctype?:| FieldOptions_CType@@ -1314,11 +1315,7 @@ export function fieldOptions_JSTypeToNumber(object: FieldOptions_JSType): number}}-/**- * If set to RETENTION_SOURCE, the option will be omitted from the binary.- * Note: as of January 2023, support for this is in progress and does not yet- * have an effect (b/264593489).- */+/** If set to RETENTION_SOURCE, the option will be omitted from the binary. */export enum FieldOptions_OptionRetention {RETENTION_UNKNOWN = "RETENTION_UNKNOWN",RETENTION_RUNTIME = "RETENTION_RUNTIME",@@ -1375,8 +1372,7 @@ export function fieldOptions_OptionRetentionToNumber(object: FieldOptions_Option/*** This indicates the types of entities that the field may apply to when used* as an option. If it is unset, then the field may be freely used as an- * option on any kind of entity. Note: as of January 2023, support for this is- * in progress and does not yet have an effect (b/264593489).+ * option on any kind of entity.*/export enum FieldOptions_OptionTargetType {TARGET_TYPE_UNKNOWN = "TARGET_TYPE_UNKNOWN",diff --git a/frontend/src/types/proto/store/database.ts b/frontend/src/types/proto/store/database.tsindex 0a74117842..9b2cc5e627 100644--- a/frontend/src/types/proto/store/database.ts+++ b/frontend/src/types/proto/store/database.ts@@ -860,27 +860,27 @@ export interface SecretItem {export interface DatabaseConfig {name: string;/** The schema_configs is the list of configs for schemas in a database. */- schemaConfigs: SchemaConfig[];+ schemas: SchemaCatalog[];}-export interface SchemaConfig {+export interface SchemaCatalog {/*** The name is the schema name.* It is an empty string for databases without such concept such as MySQL.*/name: string;/** The table_configs is the list of configs for tables in a schema. */- tableConfigs: TableConfig[];+ tables: TableCatalog[];functionConfigs: FunctionConfig[];procedureConfigs: ProcedureConfig[];viewConfigs: ViewConfig[];}-export interface TableConfig {+export interface TableCatalog {/** The name is the name of a table. */name: string;/** The column_configs is the ordered list of configs for columns in a table. */- columnConfigs: ColumnConfig[];+ columns: ColumnCatalog[];objectSchema?: ObjectSchema | undefined;classificationId: string;/**@@ -897,58 +897,7 @@ export interface TableConfig {updateTime: Timestamp | undefined;}-export interface FunctionConfig {- /** The name is the name of a function. */- name: string;- /**- * The last updater of the function in branch.- * Format: users/{userUID}.- */- updater: string;- /**- * The last change come from branch.- * Format: projcets/{project}/branches/{branch}- */- sourceBranch: string;- /** The timestamp when the function is updated in branch. */- updateTime: Timestamp | undefined;-}--export interface ProcedureConfig {- /** The name is the name of a procedure. */- name: string;- /**- * The last updater of the procedure in branch.- * Format: users/{userUID}.- */- updater: string;- /**- * The last change come from branch.- * Format: projcets/{project}/branches/{branch}- */- sourceBranch: string;- /** The timestamp when the procedure is updated in branch. */- updateTime: Timestamp | undefined;-}--export interface ViewConfig {- /** The name is the name of a view. */- name: string;- /**- * The last updater of the view in branch.- * Format: users/{userUID}.- */- updater: string;- /**- * The last change come from branch.- * Format: projcets/{project}/branches/{branch}- */- sourceBranch: string;- /** The timestamp when the view is updated in branch. */- updateTime: Timestamp | undefined;-}--export interface ColumnConfig {+export interface ColumnCatalog {/** The name is the name of a column. */name: string;semanticTypeId: string;@@ -961,7 +910,7 @@ export interface ColumnConfig {objectSchema?: ObjectSchema | undefined;}-export interface ColumnConfig_LabelsEntry {+export interface ColumnCatalog_LabelsEntry {key: string;value: string;}@@ -1062,6 +1011,57 @@ export interface ObjectSchema_ArrayKind {kind: ObjectSchema | undefined;}+export interface FunctionConfig {+ /** The name is the name of a function. */+ name: string;+ /**+ * The last updater of the function in branch.+ * Format: users/{userUID}.+ */+ updater: string;+ /**+ * The last change come from branch.+ * Format: projcets/{project}/branches/{branch}+ */+ sourceBranch: string;+ /** The timestamp when the function is updated in branch. */+ updateTime: Timestamp | undefined;+}++export interface ProcedureConfig {+ /** The name is the name of a procedure. */+ name: string;+ /**+ * The last updater of the procedure in branch.+ * Format: users/{userUID}.+ */+ updater: string;+ /**+ * The last change come from branch.+ * Format: projcets/{project}/branches/{branch}+ */+ sourceBranch: string;+ /** The timestamp when the procedure is updated in branch. */+ updateTime: Timestamp | undefined;+}++export interface ViewConfig {+ /** The name is the name of a view. */+ name: string;+ /**+ * The last updater of the view in branch.+ * Format: users/{userUID}.+ */+ updater: string;+ /**+ * The last change come from branch.+ * Format: projcets/{project}/branches/{branch}+ */+ sourceBranch: string;+ /** The timestamp when the view is updated in branch. */+ updateTime: Timestamp | undefined;+}+function createBaseDatabaseMetadata(): DatabaseMetadata {return { labels: {}, lastSyncTime: undefined, backupAvailable: false };}@@ -5526,7 +5526,7 @@ export const SecretItem: MessageFns<SecretItem> = {};function createBaseDatabaseConfig(): DatabaseConfig {- return { name: "", schemaConfigs: [] };+ return { name: "", schemas: [] };}export const DatabaseConfig: MessageFns<DatabaseConfig> = {@@ -5534,8 +5534,8 @@ export const DatabaseConfig: MessageFns<DatabaseConfig> = {if (message.name !== "") {writer.uint32(10).string(message.name);}- for (const v of message.schemaConfigs) {- SchemaConfig.encode(v!, writer.uint32(18).fork()).join();+ for (const v of message.schemas) {+ SchemaCatalog.encode(v!, writer.uint32(18).fork()).join();}return writer;},@@ -5560,7 +5560,7 @@ export const DatabaseConfig: MessageFns<DatabaseConfig> = {break;}- message.schemaConfigs.push(SchemaConfig.decode(reader, reader.uint32()));+ message.schemas.push(SchemaCatalog.decode(reader, reader.uint32()));continue;}}@@ -5575,8 +5575,8 @@ export const DatabaseConfig: MessageFns<DatabaseConfig> = {fromJSON(object: any): DatabaseConfig {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- schemaConfigs: globalThis.Array.isArray(object?.schemaConfigs)- ? object.schemaConfigs.map((e: any) => SchemaConfig.fromJSON(e))+ schemas: globalThis.Array.isArray(object?.schemas)+ ? object.schemas.map((e: any) => SchemaCatalog.fromJSON(e)): [],};},@@ -5586,8 +5586,8 @@ export const DatabaseConfig: MessageFns<DatabaseConfig> = {if (message.name !== "") {obj.name = message.name;}- if (message.schemaConfigs?.length) {- obj.schemaConfigs = message.schemaConfigs.map((e) => SchemaConfig.toJSON(e));+ if (message.schemas?.length) {+ obj.schemas = message.schemas.map((e) => SchemaCatalog.toJSON(e));}return obj;},@@ -5598,22 +5598,22 @@ export const DatabaseConfig: MessageFns<DatabaseConfig> = {fromPartial(object: DeepPartial<DatabaseConfig>): DatabaseConfig {const message = createBaseDatabaseConfig();message.name = object.name ?? "";- message.schemaConfigs = object.schemaConfigs?.map((e) => SchemaConfig.fromPartial(e)) || [];+ message.schemas = object.schemas?.map((e) => SchemaCatalog.fromPartial(e)) || [];return message;},};-function createBaseSchemaConfig(): SchemaConfig {- return { name: "", tableConfigs: [], functionConfigs: [], procedureConfigs: [], viewConfigs: [] };+function createBaseSchemaCatalog(): SchemaCatalog {+ return { name: "", tables: [], functionConfigs: [], procedureConfigs: [], viewConfigs: [] };}-export const SchemaConfig: MessageFns<SchemaConfig> = {- encode(message: SchemaConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+export const SchemaCatalog: MessageFns<SchemaCatalog> = {+ encode(message: SchemaCatalog, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {if (message.name !== "") {writer.uint32(10).string(message.name);}- for (const v of message.tableConfigs) {- TableConfig.encode(v!, writer.uint32(18).fork()).join();+ for (const v of message.tables) {+ TableCatalog.encode(v!, writer.uint32(18).fork()).join();}for (const v of message.functionConfigs) {FunctionConfig.encode(v!, writer.uint32(26).fork()).join();@@ -5627,10 +5627,10 @@ export const SchemaConfig: MessageFns<SchemaConfig> = {return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): SchemaConfig {+ decode(input: BinaryReader | Uint8Array, length?: number): SchemaCatalog {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSchemaConfig();+ const message = createBaseSchemaCatalog();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -5647,7 +5647,7 @@ export const SchemaConfig: MessageFns<SchemaConfig> = {break;}- message.tableConfigs.push(TableConfig.decode(reader, reader.uint32()));+ message.tables.push(TableCatalog.decode(reader, reader.uint32()));continue;}case 3: {@@ -5683,12 +5683,10 @@ export const SchemaConfig: MessageFns<SchemaConfig> = {return message;},- fromJSON(object: any): SchemaConfig {+ fromJSON(object: any): SchemaCatalog {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- tableConfigs: globalThis.Array.isArray(object?.tableConfigs)- ? object.tableConfigs.map((e: any) => TableConfig.fromJSON(e))- : [],+ tables: globalThis.Array.isArray(object?.tables) ? object.tables.map((e: any) => TableCatalog.fromJSON(e)) : [],functionConfigs: globalThis.Array.isArray(object?.functionConfigs)? object.functionConfigs.map((e: any) => FunctionConfig.fromJSON(e)): [],@@ -5701,13 +5699,13 @@ export const SchemaConfig: MessageFns<SchemaConfig> = {};},- toJSON(message: SchemaConfig): unknown {+ toJSON(message: SchemaCatalog): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}- if (message.tableConfigs?.length) {- obj.tableConfigs = message.tableConfigs.map((e) => TableConfig.toJSON(e));+ if (message.tables?.length) {+ obj.tables = message.tables.map((e) => TableCatalog.toJSON(e));}if (message.functionConfigs?.length) {obj.functionConfigs = message.functionConfigs.map((e) => FunctionConfig.toJSON(e));@@ -5721,13 +5719,13 @@ export const SchemaConfig: MessageFns<SchemaConfig> = {return obj;},- create(base?: DeepPartial<SchemaConfig>): SchemaConfig {- return SchemaConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<SchemaCatalog>): SchemaCatalog {+ return SchemaCatalog.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<SchemaConfig>): SchemaConfig {- const message = createBaseSchemaConfig();+ fromPartial(object: DeepPartial<SchemaCatalog>): SchemaCatalog {+ const message = createBaseSchemaCatalog();message.name = object.name ?? "";- message.tableConfigs = object.tableConfigs?.map((e) => TableConfig.fromPartial(e)) || [];+ message.tables = object.tables?.map((e) => TableCatalog.fromPartial(e)) || [];message.functionConfigs = object.functionConfigs?.map((e) => FunctionConfig.fromPartial(e)) || [];message.procedureConfigs = object.procedureConfigs?.map((e) => ProcedureConfig.fromPartial(e)) || [];message.viewConfigs = object.viewConfigs?.map((e) => ViewConfig.fromPartial(e)) || [];@@ -5735,10 +5733,10 @@ export const SchemaConfig: MessageFns<SchemaConfig> = {},};-function createBaseTableConfig(): TableConfig {+function createBaseTableCatalog(): TableCatalog {return {name: "",- columnConfigs: [],+ columns: [],objectSchema: undefined,classificationId: "",updater: "",@@ -5747,13 +5745,13 @@ function createBaseTableConfig(): TableConfig {};}-export const TableConfig: MessageFns<TableConfig> = {- encode(message: TableConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+export const TableCatalog: MessageFns<TableCatalog> = {+ encode(message: TableCatalog, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {if (message.name !== "") {writer.uint32(10).string(message.name);}- for (const v of message.columnConfigs) {- ColumnConfig.encode(v!, writer.uint32(18).fork()).join();+ for (const v of message.columns) {+ ColumnCatalog.encode(v!, writer.uint32(18).fork()).join();}if (message.objectSchema !== undefined) {ObjectSchema.encode(message.objectSchema, writer.uint32(58).fork()).join();@@ -5773,10 +5771,10 @@ export const TableConfig: MessageFns<TableConfig> = {return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): TableConfig {+ decode(input: BinaryReader | Uint8Array, length?: number): TableCatalog {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseTableConfig();+ const message = createBaseTableCatalog();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -5793,7 +5791,7 @@ export const TableConfig: MessageFns<TableConfig> = {break;}- message.columnConfigs.push(ColumnConfig.decode(reader, reader.uint32()));+ message.columns.push(ColumnCatalog.decode(reader, reader.uint32()));continue;}case 7: {@@ -5845,11 +5843,11 @@ export const TableConfig: MessageFns<TableConfig> = {return message;},- fromJSON(object: any): TableConfig {+ fromJSON(object: any): TableCatalog {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- columnConfigs: globalThis.Array.isArray(object?.columnConfigs)- ? object.columnConfigs.map((e: any) => ColumnConfig.fromJSON(e))+ columns: globalThis.Array.isArray(object?.columns)+ ? object.columns.map((e: any) => ColumnCatalog.fromJSON(e)): [],objectSchema: isSet(object.objectSchema) ? ObjectSchema.fromJSON(object.objectSchema) : undefined,classificationId: isSet(object.classificationId) ? globalThis.String(object.classificationId) : "",@@ -5859,13 +5857,13 @@ export const TableConfig: MessageFns<TableConfig> = {};},- toJSON(message: TableConfig): unknown {+ toJSON(message: TableCatalog): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}- if (message.columnConfigs?.length) {- obj.columnConfigs = message.columnConfigs.map((e) => ColumnConfig.toJSON(e));+ if (message.columns?.length) {+ obj.columns = message.columns.map((e) => ColumnCatalog.toJSON(e));}if (message.objectSchema !== undefined) {obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);@@ -5885,13 +5883,13 @@ export const TableConfig: MessageFns<TableConfig> = {return obj;},- create(base?: DeepPartial<TableConfig>): TableConfig {- return TableConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<TableCatalog>): TableCatalog {+ return TableCatalog.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<TableConfig>): TableConfig {- const message = createBaseTableConfig();+ fromPartial(object: DeepPartial<TableCatalog>): TableCatalog {+ const message = createBaseTableCatalog();message.name = object.name ?? "";- message.columnConfigs = object.columnConfigs?.map((e) => ColumnConfig.fromPartial(e)) || [];+ message.columns = object.columns?.map((e) => ColumnCatalog.fromPartial(e)) || [];message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)? ObjectSchema.fromPartial(object.objectSchema): undefined;@@ -5905,31 +5903,52 @@ export const TableConfig: MessageFns<TableConfig> = {},};-function createBaseFunctionConfig(): FunctionConfig {- return { name: "", updater: "", sourceBranch: "", updateTime: undefined };+function createBaseColumnCatalog(): ColumnCatalog {+ return {+ name: "",+ semanticTypeId: "",+ labels: {},+ classificationId: "",+ maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,+ fullMaskingAlgorithmId: "",+ partialMaskingAlgorithmId: "",+ objectSchema: undefined,+ };}-export const FunctionConfig: MessageFns<FunctionConfig> = {- encode(message: FunctionConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+export const ColumnCatalog: MessageFns<ColumnCatalog> = {+ encode(message: ColumnCatalog, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {if (message.name !== "") {writer.uint32(10).string(message.name);}- if (message.updater !== "") {- writer.uint32(18).string(message.updater);+ if (message.semanticTypeId !== "") {+ writer.uint32(18).string(message.semanticTypeId);}- if (message.sourceBranch !== "") {- writer.uint32(34).string(message.sourceBranch);+ Object.entries(message.labels).forEach(([key, value]) => {+ ColumnCatalog_LabelsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();+ });+ if (message.classificationId !== "") {+ writer.uint32(34).string(message.classificationId);}- if (message.updateTime !== undefined) {- Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();+ if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {+ writer.uint32(40).int32(maskingLevelToNumber(message.maskingLevel));+ }+ if (message.fullMaskingAlgorithmId !== "") {+ writer.uint32(50).string(message.fullMaskingAlgorithmId);+ }+ if (message.partialMaskingAlgorithmId !== "") {+ writer.uint32(58).string(message.partialMaskingAlgorithmId);+ }+ if (message.objectSchema !== undefined) {+ ObjectSchema.encode(message.objectSchema, writer.uint32(66).fork()).join();}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): FunctionConfig {+ decode(input: BinaryReader | Uint8Array, length?: number): ColumnCatalog {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseFunctionConfig();+ const message = createBaseColumnCatalog();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -5946,7 +5965,18 @@ export const FunctionConfig: MessageFns<FunctionConfig> = {break;}- message.updater = reader.string();+ message.semanticTypeId = reader.string();+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;+ }++ const entry3 = ColumnCatalog_LabelsEntry.decode(reader, reader.uint32());+ if (entry3.value !== undefined) {+ message.labels[entry3.key] = entry3.value;+ }continue;}case 4: {@@ -5954,15 +5984,39 @@ export const FunctionConfig: MessageFns<FunctionConfig> = {break;}- message.sourceBranch = reader.string();+ message.classificationId = reader.string();continue;}- case 3: {- if (tag !== 26) {+ case 5: {+ if (tag !== 40) {break;}- message.updateTime = Timestamp.decode(reader, reader.uint32());+ message.maskingLevel = maskingLevelFromJSON(reader.int32());+ continue;+ }+ case 6: {+ if (tag !== 50) {+ break;+ }++ message.fullMaskingAlgorithmId = reader.string();+ continue;+ }+ case 7: {+ if (tag !== 58) {+ break;+ }++ message.partialMaskingAlgorithmId = reader.string();+ continue;+ }+ case 8: {+ if (tag !== 66) {+ break;+ }++ message.objectSchema = ObjectSchema.decode(reader, reader.uint32());continue;}}@@ -5974,72 +6028,108 @@ export const FunctionConfig: MessageFns<FunctionConfig> = {return message;},- fromJSON(object: any): FunctionConfig {+ fromJSON(object: any): ColumnCatalog {return {name: isSet(object.name) ? globalThis.String(object.name) : "",- updater: isSet(object.updater) ? globalThis.String(object.updater) : "",- sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,+ semanticTypeId: isSet(object.semanticTypeId) ? globalThis.String(object.semanticTypeId) : "",+ labels: isObject(object.labels)+ ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ acc[key] = String(value);+ return acc;+ }, {})+ : {},+ classificationId: isSet(object.classificationId) ? globalThis.String(object.classificationId) : "",+ maskingLevel: isSet(object.maskingLevel)+ ? maskingLevelFromJSON(object.maskingLevel)+ : MaskingLevel.MASKING_LEVEL_UNSPECIFIED,+ fullMaskingAlgorithmId: isSet(object.fullMaskingAlgorithmId)+ ? globalThis.String(object.fullMaskingAlgorithmId)+ : "",+ partialMaskingAlgorithmId: isSet(object.partialMaskingAlgorithmId)+ ? globalThis.String(object.partialMaskingAlgorithmId)+ : "",+ objectSchema: isSet(object.objectSchema) ? ObjectSchema.fromJSON(object.objectSchema) : undefined,};},- toJSON(message: FunctionConfig): unknown {+ toJSON(message: ColumnCatalog): unknown {const obj: any = {};if (message.name !== "") {obj.name = message.name;}- if (message.updater !== "") {- obj.updater = message.updater;+ if (message.semanticTypeId !== "") {+ obj.semanticTypeId = message.semanticTypeId;}- if (message.sourceBranch !== "") {- obj.sourceBranch = message.sourceBranch;+ if (message.labels) {+ const entries = Object.entries(message.labels);+ if (entries.length > 0) {+ obj.labels = {};+ entries.forEach(([k, v]) => {+ obj.labels[k] = v;+ });+ }}- if (message.updateTime !== undefined) {- obj.updateTime = fromTimestamp(message.updateTime).toISOString();+ if (message.classificationId !== "") {+ obj.classificationId = message.classificationId;+ }+ if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {+ obj.maskingLevel = maskingLevelToJSON(message.maskingLevel);+ }+ if (message.fullMaskingAlgorithmId !== "") {+ obj.fullMaskingAlgorithmId = message.fullMaskingAlgorithmId;+ }+ if (message.partialMaskingAlgorithmId !== "") {+ obj.partialMaskingAlgorithmId = message.partialMaskingAlgorithmId;+ }+ if (message.objectSchema !== undefined) {+ obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);}return obj;},- create(base?: DeepPartial<FunctionConfig>): FunctionConfig {- return FunctionConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<ColumnCatalog>): ColumnCatalog {+ return ColumnCatalog.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<FunctionConfig>): FunctionConfig {- const message = createBaseFunctionConfig();+ fromPartial(object: DeepPartial<ColumnCatalog>): ColumnCatalog {+ const message = createBaseColumnCatalog();message.name = object.name ?? "";- message.updater = object.updater ?? "";- message.sourceBranch = object.sourceBranch ?? "";- message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)- ? Timestamp.fromPartial(object.updateTime)+ message.semanticTypeId = object.semanticTypeId ?? "";+ message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = globalThis.String(value);+ }+ return acc;+ }, {});+ message.classificationId = object.classificationId ?? "";+ message.maskingLevel = object.maskingLevel ?? MaskingLevel.MASKING_LEVEL_UNSPECIFIED;+ message.fullMaskingAlgorithmId = object.fullMaskingAlgorithmId ?? "";+ message.partialMaskingAlgorithmId = object.partialMaskingAlgorithmId ?? "";+ message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)+ ? ObjectSchema.fromPartial(object.objectSchema): undefined;return message;},};-function createBaseProcedureConfig(): ProcedureConfig {- return { name: "", updater: "", sourceBranch: "", updateTime: undefined };+function createBaseColumnCatalog_LabelsEntry(): ColumnCatalog_LabelsEntry {+ return { key: "", value: "" };}-export const ProcedureConfig: MessageFns<ProcedureConfig> = {- encode(message: ProcedureConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.updater !== "") {- writer.uint32(18).string(message.updater);- }- if (message.sourceBranch !== "") {- writer.uint32(34).string(message.sourceBranch);+export const ColumnCatalog_LabelsEntry: MessageFns<ColumnCatalog_LabelsEntry> = {+ encode(message: ColumnCatalog_LabelsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);}- if (message.updateTime !== undefined) {- Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();+ if (message.value !== "") {+ writer.uint32(18).string(message.value);}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ProcedureConfig {+ decode(input: BinaryReader | Uint8Array, length?: number): ColumnCatalog_LabelsEntry {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseProcedureConfig();+ const message = createBaseColumnCatalog_LabelsEntry();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -6048,7 +6138,7 @@ export const ProcedureConfig: MessageFns<ProcedureConfig> = {break;}- message.name = reader.string();+ message.key = reader.string();continue;}case 2: {@@ -6056,23 +6146,7 @@ export const ProcedureConfig: MessageFns<ProcedureConfig> = {break;}- message.updater = reader.string();- continue;- }- case 4: {- if (tag !== 34) {- break;- }-- message.sourceBranch = reader.string();- continue;- }- case 3: {- if (tag !== 26) {- break;- }-- message.updateTime = Timestamp.decode(reader, reader.uint32());+ message.value = reader.string();continue;}}@@ -6084,81 +6158,66 @@ export const ProcedureConfig: MessageFns<ProcedureConfig> = {return message;},- fromJSON(object: any): ProcedureConfig {+ fromJSON(object: any): ColumnCatalog_LabelsEntry {return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- updater: isSet(object.updater) ? globalThis.String(object.updater) : "",- sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? globalThis.String(object.value) : "",};},- toJSON(message: ProcedureConfig): unknown {+ toJSON(message: ColumnCatalog_LabelsEntry): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.updater !== "") {- obj.updater = message.updater;- }- if (message.sourceBranch !== "") {- obj.sourceBranch = message.sourceBranch;+ if (message.key !== "") {+ obj.key = message.key;}- if (message.updateTime !== undefined) {- obj.updateTime = fromTimestamp(message.updateTime).toISOString();+ if (message.value !== "") {+ obj.value = message.value;}return obj;},- create(base?: DeepPartial<ProcedureConfig>): ProcedureConfig {- return ProcedureConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<ColumnCatalog_LabelsEntry>): ColumnCatalog_LabelsEntry {+ return ColumnCatalog_LabelsEntry.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ProcedureConfig>): ProcedureConfig {- const message = createBaseProcedureConfig();- message.name = object.name ?? "";- message.updater = object.updater ?? "";- message.sourceBranch = object.sourceBranch ?? "";- message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)- ? Timestamp.fromPartial(object.updateTime)- : undefined;+ fromPartial(object: DeepPartial<ColumnCatalog_LabelsEntry>): ColumnCatalog_LabelsEntry {+ const message = createBaseColumnCatalog_LabelsEntry();+ message.key = object.key ?? "";+ message.value = object.value ?? "";return message;},};-function createBaseViewConfig(): ViewConfig {- return { name: "", updater: "", sourceBranch: "", updateTime: undefined };+function createBaseObjectSchema(): ObjectSchema {+ return { type: ObjectSchema_Type.TYPE_UNSPECIFIED, structKind: undefined, arrayKind: undefined };}-export const ViewConfig: MessageFns<ViewConfig> = {- encode(message: ViewConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.updater !== "") {- writer.uint32(18).string(message.updater);+export const ObjectSchema: MessageFns<ObjectSchema> = {+ encode(message: ObjectSchema, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.type !== ObjectSchema_Type.TYPE_UNSPECIFIED) {+ writer.uint32(8).int32(objectSchema_TypeToNumber(message.type));}- if (message.sourceBranch !== "") {- writer.uint32(34).string(message.sourceBranch);+ if (message.structKind !== undefined) {+ ObjectSchema_StructKind.encode(message.structKind, writer.uint32(18).fork()).join();}- if (message.updateTime !== undefined) {- Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();+ if (message.arrayKind !== undefined) {+ ObjectSchema_ArrayKind.encode(message.arrayKind, writer.uint32(26).fork()).join();}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ViewConfig {+ decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseViewConfig();+ const message = createBaseObjectSchema();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {case 1: {- if (tag !== 10) {+ if (tag !== 8) {break;}- message.name = reader.string();+ message.type = objectSchema_TypeFromJSON(reader.int32());continue;}case 2: {@@ -6166,15 +6225,7 @@ export const ViewConfig: MessageFns<ViewConfig> = {break;}- message.updater = reader.string();- continue;- }- case 4: {- if (tag !== 34) {- break;- }-- message.sourceBranch = reader.string();+ message.structKind = ObjectSchema_StructKind.decode(reader, reader.uint32());continue;}case 3: {@@ -6182,7 +6233,7 @@ export const ViewConfig: MessageFns<ViewConfig> = {break;}- message.updateTime = Timestamp.decode(reader, reader.uint32());+ message.arrayKind = ObjectSchema_ArrayKind.decode(reader, reader.uint32());continue;}}@@ -6194,93 +6245,60 @@ export const ViewConfig: MessageFns<ViewConfig> = {return message;},- fromJSON(object: any): ViewConfig {+ fromJSON(object: any): ObjectSchema {return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- updater: isSet(object.updater) ? globalThis.String(object.updater) : "",- sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,+ type: isSet(object.type) ? objectSchema_TypeFromJSON(object.type) : ObjectSchema_Type.TYPE_UNSPECIFIED,+ structKind: isSet(object.structKind) ? ObjectSchema_StructKind.fromJSON(object.structKind) : undefined,+ arrayKind: isSet(object.arrayKind) ? ObjectSchema_ArrayKind.fromJSON(object.arrayKind) : undefined,};},- toJSON(message: ViewConfig): unknown {+ toJSON(message: ObjectSchema): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.updater !== "") {- obj.updater = message.updater;+ if (message.type !== ObjectSchema_Type.TYPE_UNSPECIFIED) {+ obj.type = objectSchema_TypeToJSON(message.type);}- if (message.sourceBranch !== "") {- obj.sourceBranch = message.sourceBranch;+ if (message.structKind !== undefined) {+ obj.structKind = ObjectSchema_StructKind.toJSON(message.structKind);}- if (message.updateTime !== undefined) {- obj.updateTime = fromTimestamp(message.updateTime).toISOString();+ if (message.arrayKind !== undefined) {+ obj.arrayKind = ObjectSchema_ArrayKind.toJSON(message.arrayKind);}return obj;},- create(base?: DeepPartial<ViewConfig>): ViewConfig {- return ViewConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<ObjectSchema>): ObjectSchema {+ return ObjectSchema.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ViewConfig>): ViewConfig {- const message = createBaseViewConfig();- message.name = object.name ?? "";- message.updater = object.updater ?? "";- message.sourceBranch = object.sourceBranch ?? "";- message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)- ? Timestamp.fromPartial(object.updateTime)+ fromPartial(object: DeepPartial<ObjectSchema>): ObjectSchema {+ const message = createBaseObjectSchema();+ message.type = object.type ?? ObjectSchema_Type.TYPE_UNSPECIFIED;+ message.structKind = (object.structKind !== undefined && object.structKind !== null)+ ? ObjectSchema_StructKind.fromPartial(object.structKind)+ : undefined;+ message.arrayKind = (object.arrayKind !== undefined && object.arrayKind !== null)+ ? ObjectSchema_ArrayKind.fromPartial(object.arrayKind): undefined;return message;},};-function createBaseColumnConfig(): ColumnConfig {- return {- name: "",- semanticTypeId: "",- labels: {},- classificationId: "",- maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,- fullMaskingAlgorithmId: "",- partialMaskingAlgorithmId: "",- objectSchema: undefined,- };+function createBaseObjectSchema_StructKind(): ObjectSchema_StructKind {+ return { properties: {} };}-export const ColumnConfig: MessageFns<ColumnConfig> = {- encode(message: ColumnConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.name !== "") {- writer.uint32(10).string(message.name);- }- if (message.semanticTypeId !== "") {- writer.uint32(18).string(message.semanticTypeId);- }- Object.entries(message.labels).forEach(([key, value]) => {- ColumnConfig_LabelsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();+export const ObjectSchema_StructKind: MessageFns<ObjectSchema_StructKind> = {+ encode(message: ObjectSchema_StructKind, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ Object.entries(message.properties).forEach(([key, value]) => {+ ObjectSchema_StructKind_PropertiesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();});- if (message.classificationId !== "") {- writer.uint32(34).string(message.classificationId);- }- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {- writer.uint32(40).int32(maskingLevelToNumber(message.maskingLevel));- }- if (message.fullMaskingAlgorithmId !== "") {- writer.uint32(50).string(message.fullMaskingAlgorithmId);- }- if (message.partialMaskingAlgorithmId !== "") {- writer.uint32(58).string(message.partialMaskingAlgorithmId);- }- if (message.objectSchema !== undefined) {- ObjectSchema.encode(message.objectSchema, writer.uint32(66).fork()).join();- }return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ColumnConfig {+ decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_StructKind {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseColumnConfig();+ const message = createBaseObjectSchema_StructKind();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -6289,179 +6307,83 @@ export const ColumnConfig: MessageFns<ColumnConfig> = {break;}- message.name = reader.string();- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.semanticTypeId = reader.string();- continue;- }- case 3: {- if (tag !== 26) {- break;- }-- const entry3 = ColumnConfig_LabelsEntry.decode(reader, reader.uint32());- if (entry3.value !== undefined) {- message.labels[entry3.key] = entry3.value;+ const entry1 = ObjectSchema_StructKind_PropertiesEntry.decode(reader, reader.uint32());+ if (entry1.value !== undefined) {+ message.properties[entry1.key] = entry1.value;}continue;}- case 4: {- if (tag !== 34) {- break;- }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },- message.classificationId = reader.string();- continue;- }- case 5: {- if (tag !== 40) {- break;- }-- message.maskingLevel = maskingLevelFromJSON(reader.int32());- continue;- }- case 6: {- if (tag !== 50) {- break;- }-- message.fullMaskingAlgorithmId = reader.string();- continue;- }- case 7: {- if (tag !== 58) {- break;- }-- message.partialMaskingAlgorithmId = reader.string();- continue;- }- case 8: {- if (tag !== 66) {- break;- }-- message.objectSchema = ObjectSchema.decode(reader, reader.uint32());- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- fromJSON(object: any): ColumnConfig {+ fromJSON(object: any): ObjectSchema_StructKind {return {- name: isSet(object.name) ? globalThis.String(object.name) : "",- semanticTypeId: isSet(object.semanticTypeId) ? globalThis.String(object.semanticTypeId) : "",- labels: isObject(object.labels)- ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {- acc[key] = String(value);+ properties: isObject(object.properties)+ ? Object.entries(object.properties).reduce<{ [key: string]: ObjectSchema }>((acc, [key, value]) => {+ acc[key] = ObjectSchema.fromJSON(value);return acc;}, {}): {},- classificationId: isSet(object.classificationId) ? globalThis.String(object.classificationId) : "",- maskingLevel: isSet(object.maskingLevel)- ? maskingLevelFromJSON(object.maskingLevel)- : MaskingLevel.MASKING_LEVEL_UNSPECIFIED,- fullMaskingAlgorithmId: isSet(object.fullMaskingAlgorithmId)- ? globalThis.String(object.fullMaskingAlgorithmId)- : "",- partialMaskingAlgorithmId: isSet(object.partialMaskingAlgorithmId)- ? globalThis.String(object.partialMaskingAlgorithmId)- : "",- objectSchema: isSet(object.objectSchema) ? ObjectSchema.fromJSON(object.objectSchema) : undefined,};},- toJSON(message: ColumnConfig): unknown {+ toJSON(message: ObjectSchema_StructKind): unknown {const obj: any = {};- if (message.name !== "") {- obj.name = message.name;- }- if (message.semanticTypeId !== "") {- obj.semanticTypeId = message.semanticTypeId;- }- if (message.labels) {- const entries = Object.entries(message.labels);+ if (message.properties) {+ const entries = Object.entries(message.properties);if (entries.length > 0) {- obj.labels = {};+ obj.properties = {};entries.forEach(([k, v]) => {- obj.labels[k] = v;+ obj.properties[k] = ObjectSchema.toJSON(v);});}}- if (message.classificationId !== "") {- obj.classificationId = message.classificationId;- }- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {- obj.maskingLevel = maskingLevelToJSON(message.maskingLevel);- }- if (message.fullMaskingAlgorithmId !== "") {- obj.fullMaskingAlgorithmId = message.fullMaskingAlgorithmId;- }- if (message.partialMaskingAlgorithmId !== "") {- obj.partialMaskingAlgorithmId = message.partialMaskingAlgorithmId;- }- if (message.objectSchema !== undefined) {- obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);- }return obj;},- create(base?: DeepPartial<ColumnConfig>): ColumnConfig {- return ColumnConfig.fromPartial(base ?? {});+ create(base?: DeepPartial<ObjectSchema_StructKind>): ObjectSchema_StructKind {+ return ObjectSchema_StructKind.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ColumnConfig>): ColumnConfig {- const message = createBaseColumnConfig();- message.name = object.name ?? "";- message.semanticTypeId = object.semanticTypeId ?? "";- message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {- if (value !== undefined) {- acc[key] = globalThis.String(value);- }- return acc;- }, {});- message.classificationId = object.classificationId ?? "";- message.maskingLevel = object.maskingLevel ?? MaskingLevel.MASKING_LEVEL_UNSPECIFIED;- message.fullMaskingAlgorithmId = object.fullMaskingAlgorithmId ?? "";- message.partialMaskingAlgorithmId = object.partialMaskingAlgorithmId ?? "";- message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)- ? ObjectSchema.fromPartial(object.objectSchema)- : undefined;+ fromPartial(object: DeepPartial<ObjectSchema_StructKind>): ObjectSchema_StructKind {+ const message = createBaseObjectSchema_StructKind();+ message.properties = Object.entries(object.properties ?? {}).reduce<{ [key: string]: ObjectSchema }>(+ (acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = ObjectSchema.fromPartial(value);+ }+ return acc;+ },+ {},+ );return message;},};-function createBaseColumnConfig_LabelsEntry(): ColumnConfig_LabelsEntry {- return { key: "", value: "" };+function createBaseObjectSchema_StructKind_PropertiesEntry(): ObjectSchema_StructKind_PropertiesEntry {+ return { key: "", value: undefined };}-export const ColumnConfig_LabelsEntry: MessageFns<ColumnConfig_LabelsEntry> = {- encode(message: ColumnConfig_LabelsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+export const ObjectSchema_StructKind_PropertiesEntry: MessageFns<ObjectSchema_StructKind_PropertiesEntry> = {+ encode(message: ObjectSchema_StructKind_PropertiesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {if (message.key !== "") {writer.uint32(10).string(message.key);}- if (message.value !== "") {- writer.uint32(18).string(message.value);+ if (message.value !== undefined) {+ ObjectSchema.encode(message.value, writer.uint32(18).fork()).join();}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ColumnConfig_LabelsEntry {+ decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_StructKind_PropertiesEntry {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseColumnConfig_LabelsEntry();+ const message = createBaseObjectSchema_StructKind_PropertiesEntry();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -6478,7 +6400,7 @@ export const ColumnConfig_LabelsEntry: MessageFns<ColumnConfig_LabelsEntry> = {break;}- message.value = reader.string();+ message.value = ObjectSchema.decode(reader, reader.uint32());continue;}}@@ -6490,82 +6412,62 @@ export const ColumnConfig_LabelsEntry: MessageFns<ColumnConfig_LabelsEntry> = {return message;},- fromJSON(object: any): ColumnConfig_LabelsEntry {+ fromJSON(object: any): ObjectSchema_StructKind_PropertiesEntry {return {key: isSet(object.key) ? globalThis.String(object.key) : "",- value: isSet(object.value) ? globalThis.String(object.value) : "",+ value: isSet(object.value) ? ObjectSchema.fromJSON(object.value) : undefined,};},- toJSON(message: ColumnConfig_LabelsEntry): unknown {+ toJSON(message: ObjectSchema_StructKind_PropertiesEntry): unknown {const obj: any = {};if (message.key !== "") {obj.key = message.key;}- if (message.value !== "") {- obj.value = message.value;+ if (message.value !== undefined) {+ obj.value = ObjectSchema.toJSON(message.value);}return obj;},- create(base?: DeepPartial<ColumnConfig_LabelsEntry>): ColumnConfig_LabelsEntry {- return ColumnConfig_LabelsEntry.fromPartial(base ?? {});+ create(base?: DeepPartial<ObjectSchema_StructKind_PropertiesEntry>): ObjectSchema_StructKind_PropertiesEntry {+ return ObjectSchema_StructKind_PropertiesEntry.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ColumnConfig_LabelsEntry>): ColumnConfig_LabelsEntry {- const message = createBaseColumnConfig_LabelsEntry();+ fromPartial(object: DeepPartial<ObjectSchema_StructKind_PropertiesEntry>): ObjectSchema_StructKind_PropertiesEntry {+ const message = createBaseObjectSchema_StructKind_PropertiesEntry();message.key = object.key ?? "";- message.value = object.value ?? "";+ message.value = (object.value !== undefined && object.value !== null)+ ? ObjectSchema.fromPartial(object.value)+ : undefined;return message;},};-function createBaseObjectSchema(): ObjectSchema {- return { type: ObjectSchema_Type.TYPE_UNSPECIFIED, structKind: undefined, arrayKind: undefined };+function createBaseObjectSchema_ArrayKind(): ObjectSchema_ArrayKind {+ return { kind: undefined };}-export const ObjectSchema: MessageFns<ObjectSchema> = {- encode(message: ObjectSchema, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.type !== ObjectSchema_Type.TYPE_UNSPECIFIED) {- writer.uint32(8).int32(objectSchema_TypeToNumber(message.type));- }- if (message.structKind !== undefined) {- ObjectSchema_StructKind.encode(message.structKind, writer.uint32(18).fork()).join();- }- if (message.arrayKind !== undefined) {- ObjectSchema_ArrayKind.encode(message.arrayKind, writer.uint32(26).fork()).join();+export const ObjectSchema_ArrayKind: MessageFns<ObjectSchema_ArrayKind> = {+ encode(message: ObjectSchema_ArrayKind, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.kind !== undefined) {+ ObjectSchema.encode(message.kind, writer.uint32(10).fork()).join();}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema {+ decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_ArrayKind {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseObjectSchema();+ const message = createBaseObjectSchema_ArrayKind();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {case 1: {- if (tag !== 8) {- break;- }-- message.type = objectSchema_TypeFromJSON(reader.int32());- continue;- }- case 2: {- if (tag !== 18) {- break;- }-- message.structKind = ObjectSchema_StructKind.decode(reader, reader.uint32());- continue;- }- case 3: {- if (tag !== 26) {+ if (tag !== 10) {break;}- message.arrayKind = ObjectSchema_ArrayKind.decode(reader, reader.uint32());+ message.kind = ObjectSchema.decode(reader, reader.uint32());continue;}}@@ -6577,60 +6479,55 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {return message;},- fromJSON(object: any): ObjectSchema {- return {- type: isSet(object.type) ? objectSchema_TypeFromJSON(object.type) : ObjectSchema_Type.TYPE_UNSPECIFIED,- structKind: isSet(object.structKind) ? ObjectSchema_StructKind.fromJSON(object.structKind) : undefined,- arrayKind: isSet(object.arrayKind) ? ObjectSchema_ArrayKind.fromJSON(object.arrayKind) : undefined,- };+ fromJSON(object: any): ObjectSchema_ArrayKind {+ return { kind: isSet(object.kind) ? ObjectSchema.fromJSON(object.kind) : undefined };},- toJSON(message: ObjectSchema): unknown {+ toJSON(message: ObjectSchema_ArrayKind): unknown {const obj: any = {};- if (message.type !== ObjectSchema_Type.TYPE_UNSPECIFIED) {- obj.type = objectSchema_TypeToJSON(message.type);- }- if (message.structKind !== undefined) {- obj.structKind = ObjectSchema_StructKind.toJSON(message.structKind);- }- if (message.arrayKind !== undefined) {- obj.arrayKind = ObjectSchema_ArrayKind.toJSON(message.arrayKind);+ if (message.kind !== undefined) {+ obj.kind = ObjectSchema.toJSON(message.kind);}return obj;},- create(base?: DeepPartial<ObjectSchema>): ObjectSchema {- return ObjectSchema.fromPartial(base ?? {});+ create(base?: DeepPartial<ObjectSchema_ArrayKind>): ObjectSchema_ArrayKind {+ return ObjectSchema_ArrayKind.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ObjectSchema>): ObjectSchema {- const message = createBaseObjectSchema();- message.type = object.type ?? ObjectSchema_Type.TYPE_UNSPECIFIED;- message.structKind = (object.structKind !== undefined && object.structKind !== null)- ? ObjectSchema_StructKind.fromPartial(object.structKind)- : undefined;- message.arrayKind = (object.arrayKind !== undefined && object.arrayKind !== null)- ? ObjectSchema_ArrayKind.fromPartial(object.arrayKind)+ fromPartial(object: DeepPartial<ObjectSchema_ArrayKind>): ObjectSchema_ArrayKind {+ const message = createBaseObjectSchema_ArrayKind();+ message.kind = (object.kind !== undefined && object.kind !== null)+ ? ObjectSchema.fromPartial(object.kind): undefined;return message;},};-function createBaseObjectSchema_StructKind(): ObjectSchema_StructKind {- return { properties: {} };+function createBaseFunctionConfig(): FunctionConfig {+ return { name: "", updater: "", sourceBranch: "", updateTime: undefined };}-export const ObjectSchema_StructKind: MessageFns<ObjectSchema_StructKind> = {- encode(message: ObjectSchema_StructKind, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- Object.entries(message.properties).forEach(([key, value]) => {- ObjectSchema_StructKind_PropertiesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();- });+export const FunctionConfig: MessageFns<FunctionConfig> = {+ encode(message: FunctionConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.updater !== "") {+ writer.uint32(18).string(message.updater);+ }+ if (message.sourceBranch !== "") {+ writer.uint32(34).string(message.sourceBranch);+ }+ if (message.updateTime !== undefined) {+ Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();+ }return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_StructKind {+ decode(input: BinaryReader | Uint8Array, length?: number): FunctionConfig {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseObjectSchema_StructKind();+ const message = createBaseFunctionConfig();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -6639,10 +6536,31 @@ export const ObjectSchema_StructKind: MessageFns<ObjectSchema_StructKind> = {break;}- const entry1 = ObjectSchema_StructKind_PropertiesEntry.decode(reader, reader.uint32());- if (entry1.value !== undefined) {- message.properties[entry1.key] = entry1.value;+ message.name = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.updater = reader.string();+ continue;+ }+ case 4: {+ if (tag !== 34) {+ break;+ }++ message.sourceBranch = reader.string();+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;}++ message.updateTime = Timestamp.decode(reader, reader.uint32());continue;}}@@ -6654,68 +6572,72 @@ export const ObjectSchema_StructKind: MessageFns<ObjectSchema_StructKind> = {return message;},- fromJSON(object: any): ObjectSchema_StructKind {+ fromJSON(object: any): FunctionConfig {return {- properties: isObject(object.properties)- ? Object.entries(object.properties).reduce<{ [key: string]: ObjectSchema }>((acc, [key, value]) => {- acc[key] = ObjectSchema.fromJSON(value);- return acc;- }, {})- : {},+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",+ sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,};},- toJSON(message: ObjectSchema_StructKind): unknown {+ toJSON(message: FunctionConfig): unknown {const obj: any = {};- if (message.properties) {- const entries = Object.entries(message.properties);- if (entries.length > 0) {- obj.properties = {};- entries.forEach(([k, v]) => {- obj.properties[k] = ObjectSchema.toJSON(v);- });- }+ if (message.name !== "") {+ obj.name = message.name;+ }+ if (message.updater !== "") {+ obj.updater = message.updater;+ }+ if (message.sourceBranch !== "") {+ obj.sourceBranch = message.sourceBranch;+ }+ if (message.updateTime !== undefined) {+ obj.updateTime = fromTimestamp(message.updateTime).toISOString();}return obj;},- create(base?: DeepPartial<ObjectSchema_StructKind>): ObjectSchema_StructKind {- return ObjectSchema_StructKind.fromPartial(base ?? {});+ create(base?: DeepPartial<FunctionConfig>): FunctionConfig {+ return FunctionConfig.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ObjectSchema_StructKind>): ObjectSchema_StructKind {- const message = createBaseObjectSchema_StructKind();- message.properties = Object.entries(object.properties ?? {}).reduce<{ [key: string]: ObjectSchema }>(- (acc, [key, value]) => {- if (value !== undefined) {- acc[key] = ObjectSchema.fromPartial(value);- }- return acc;- },- {},- );+ fromPartial(object: DeepPartial<FunctionConfig>): FunctionConfig {+ const message = createBaseFunctionConfig();+ message.name = object.name ?? "";+ message.updater = object.updater ?? "";+ message.sourceBranch = object.sourceBranch ?? "";+ message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)+ ? Timestamp.fromPartial(object.updateTime)+ : undefined;return message;},};-function createBaseObjectSchema_StructKind_PropertiesEntry(): ObjectSchema_StructKind_PropertiesEntry {- return { key: "", value: undefined };+function createBaseProcedureConfig(): ProcedureConfig {+ return { name: "", updater: "", sourceBranch: "", updateTime: undefined };}-export const ObjectSchema_StructKind_PropertiesEntry: MessageFns<ObjectSchema_StructKind_PropertiesEntry> = {- encode(message: ObjectSchema_StructKind_PropertiesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.key !== "") {- writer.uint32(10).string(message.key);+export const ProcedureConfig: MessageFns<ProcedureConfig> = {+ encode(message: ProcedureConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);}- if (message.value !== undefined) {- ObjectSchema.encode(message.value, writer.uint32(18).fork()).join();+ if (message.updater !== "") {+ writer.uint32(18).string(message.updater);+ }+ if (message.sourceBranch !== "") {+ writer.uint32(34).string(message.sourceBranch);+ }+ if (message.updateTime !== undefined) {+ Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_StructKind_PropertiesEntry {+ decode(input: BinaryReader | Uint8Array, length?: number): ProcedureConfig {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseObjectSchema_StructKind_PropertiesEntry();+ const message = createBaseProcedureConfig();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -6724,7 +6646,7 @@ export const ObjectSchema_StructKind_PropertiesEntry: MessageFns<ObjectSchema_Stbreak;}- message.key = reader.string();+ message.name = reader.string();continue;}case 2: {@@ -6732,7 +6654,23 @@ export const ObjectSchema_StructKind_PropertiesEntry: MessageFns<ObjectSchema_Stbreak;}- message.value = ObjectSchema.decode(reader, reader.uint32());+ message.updater = reader.string();+ continue;+ }+ case 4: {+ if (tag !== 34) {+ break;+ }++ message.sourceBranch = reader.string();+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;+ }++ message.updateTime = Timestamp.decode(reader, reader.uint32());continue;}}@@ -6744,53 +6682,72 @@ export const ObjectSchema_StructKind_PropertiesEntry: MessageFns<ObjectSchema_Streturn message;},- fromJSON(object: any): ObjectSchema_StructKind_PropertiesEntry {+ fromJSON(object: any): ProcedureConfig {return {- key: isSet(object.key) ? globalThis.String(object.key) : "",- value: isSet(object.value) ? ObjectSchema.fromJSON(object.value) : undefined,+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",+ sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,};},- toJSON(message: ObjectSchema_StructKind_PropertiesEntry): unknown {+ toJSON(message: ProcedureConfig): unknown {const obj: any = {};- if (message.key !== "") {- obj.key = message.key;+ if (message.name !== "") {+ obj.name = message.name;}- if (message.value !== undefined) {- obj.value = ObjectSchema.toJSON(message.value);+ if (message.updater !== "") {+ obj.updater = message.updater;+ }+ if (message.sourceBranch !== "") {+ obj.sourceBranch = message.sourceBranch;+ }+ if (message.updateTime !== undefined) {+ obj.updateTime = fromTimestamp(message.updateTime).toISOString();}return obj;},- create(base?: DeepPartial<ObjectSchema_StructKind_PropertiesEntry>): ObjectSchema_StructKind_PropertiesEntry {- return ObjectSchema_StructKind_PropertiesEntry.fromPartial(base ?? {});+ create(base?: DeepPartial<ProcedureConfig>): ProcedureConfig {+ return ProcedureConfig.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ObjectSchema_StructKind_PropertiesEntry>): ObjectSchema_StructKind_PropertiesEntry {- const message = createBaseObjectSchema_StructKind_PropertiesEntry();- message.key = object.key ?? "";- message.value = (object.value !== undefined && object.value !== null)- ? ObjectSchema.fromPartial(object.value)+ fromPartial(object: DeepPartial<ProcedureConfig>): ProcedureConfig {+ const message = createBaseProcedureConfig();+ message.name = object.name ?? "";+ message.updater = object.updater ?? "";+ message.sourceBranch = object.sourceBranch ?? "";+ message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)+ ? Timestamp.fromPartial(object.updateTime): undefined;return message;},};-function createBaseObjectSchema_ArrayKind(): ObjectSchema_ArrayKind {- return { kind: undefined };+function createBaseViewConfig(): ViewConfig {+ return { name: "", updater: "", sourceBranch: "", updateTime: undefined };}-export const ObjectSchema_ArrayKind: MessageFns<ObjectSchema_ArrayKind> = {- encode(message: ObjectSchema_ArrayKind, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.kind !== undefined) {- ObjectSchema.encode(message.kind, writer.uint32(10).fork()).join();+export const ViewConfig: MessageFns<ViewConfig> = {+ encode(message: ViewConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.name !== "") {+ writer.uint32(10).string(message.name);+ }+ if (message.updater !== "") {+ writer.uint32(18).string(message.updater);+ }+ if (message.sourceBranch !== "") {+ writer.uint32(34).string(message.sourceBranch);+ }+ if (message.updateTime !== undefined) {+ Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();}return writer;},- decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_ArrayKind {+ decode(input: BinaryReader | Uint8Array, length?: number): ViewConfig {const reader = input instanceof BinaryReader ? input : new BinaryReader(input);let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseObjectSchema_ArrayKind();+ const message = createBaseViewConfig();while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {@@ -6799,7 +6756,31 @@ export const ObjectSchema_ArrayKind: MessageFns<ObjectSchema_ArrayKind> = {break;}- message.kind = ObjectSchema.decode(reader, reader.uint32());+ message.name = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.updater = reader.string();+ continue;+ }+ case 4: {+ if (tag !== 34) {+ break;+ }++ message.sourceBranch = reader.string();+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;+ }++ message.updateTime = Timestamp.decode(reader, reader.uint32());continue;}}@@ -6811,25 +6792,42 @@ export const ObjectSchema_ArrayKind: MessageFns<ObjectSchema_ArrayKind> = {return message;},- fromJSON(object: any): ObjectSchema_ArrayKind {- return { kind: isSet(object.kind) ? ObjectSchema.fromJSON(object.kind) : undefined };+ fromJSON(object: any): ViewConfig {+ return {+ name: isSet(object.name) ? globalThis.String(object.name) : "",+ updater: isSet(object.updater) ? globalThis.String(object.updater) : "",+ sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",+ updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,+ };},- toJSON(message: ObjectSchema_ArrayKind): unknown {+ toJSON(message: ViewConfig): unknown {const obj: any = {};- if (message.kind !== undefined) {- obj.kind = ObjectSchema.toJSON(message.kind);+ if (message.name !== "") {+ obj.name = message.name;+ }+ if (message.updater !== "") {+ obj.updater = message.updater;+ }+ if (message.sourceBranch !== "") {+ obj.sourceBranch = message.sourceBranch;+ }+ if (message.updateTime !== undefined) {+ obj.updateTime = fromTimestamp(message.updateTime).toISOString();}return obj;},- create(base?: DeepPartial<ObjectSchema_ArrayKind>): ObjectSchema_ArrayKind {- return ObjectSchema_ArrayKind.fromPartial(base ?? {});+ create(base?: DeepPartial<ViewConfig>): ViewConfig {+ return ViewConfig.fromPartial(base ?? {});},- fromPartial(object: DeepPartial<ObjectSchema_ArrayKind>): ObjectSchema_ArrayKind {- const message = createBaseObjectSchema_ArrayKind();- message.kind = (object.kind !== undefined && object.kind !== null)- ? ObjectSchema.fromPartial(object.kind)+ fromPartial(object: DeepPartial<ViewConfig>): ViewConfig {+ const message = createBaseViewConfig();+ message.name = object.name ?? "";+ message.updater = object.updater ?? "";+ message.sourceBranch = object.sourceBranch ?? "";+ message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)+ ? Timestamp.fromPartial(object.updateTime): undefined;return message;},diff --git a/frontend/src/types/proto/store/setting.ts b/frontend/src/types/proto/store/setting.tsindex 04d5eeaccc..8e699b3923 100644--- a/frontend/src/types/proto/store/setting.ts+++ b/frontend/src/types/proto/store/setting.ts@@ -12,7 +12,7 @@ import { Duration } from "../google/protobuf/duration";import { Expr as Expr1 } from "../google/type/expr";import { ApprovalTemplate } from "./approval";import { Engine, engineFromJSON, engineToJSON, engineToNumber } from "./common";-import { ColumnConfig, ColumnMetadata, TableConfig, TableMetadata } from "./database";+import { ColumnCatalog, ColumnMetadata, TableCatalog, TableMetadata } from "./database";export const protobufPackage = "bytebase.store";@@ -389,7 +389,7 @@ export interface SchemaTemplateSetting_FieldTemplate {engine: Engine;category: string;column: ColumnMetadata | undefined;- config: ColumnConfig | undefined;+ catalog: ColumnCatalog | undefined;}export interface SchemaTemplateSetting_ColumnType {@@ -403,7 +403,7 @@ export interface SchemaTemplateSetting_TableTemplate {engine: Engine;category: string;table: TableMetadata | undefined;- config: TableConfig | undefined;+ catalog: TableCatalog | undefined;}export interface DataClassificationSetting {@@ -1806,7 +1806,7 @@ export const SchemaTemplateSetting: MessageFns<SchemaTemplateSetting> = {};function createBaseSchemaTemplateSetting_FieldTemplate(): SchemaTemplateSetting_FieldTemplate {- return { id: "", engine: Engine.ENGINE_UNSPECIFIED, category: "", column: undefined, config: undefined };+ return { id: "", engine: Engine.ENGINE_UNSPECIFIED, category: "", column: undefined, catalog: undefined };}export const SchemaTemplateSetting_FieldTemplate: MessageFns<SchemaTemplateSetting_FieldTemplate> = {@@ -1823,8 +1823,8 @@ export const SchemaTemplateSetting_FieldTemplate: MessageFns<SchemaTemplateSettiif (message.column !== undefined) {ColumnMetadata.encode(message.column, writer.uint32(34).fork()).join();}- if (message.config !== undefined) {- ColumnConfig.encode(message.config, writer.uint32(42).fork()).join();+ if (message.catalog !== undefined) {+ ColumnCatalog.encode(message.catalog, writer.uint32(42).fork()).join();}return writer;},@@ -1873,7 +1873,7 @@ export const SchemaTemplateSetting_FieldTemplate: MessageFns<SchemaTemplateSettibreak;}- message.config = ColumnConfig.decode(reader, reader.uint32());+ message.catalog = ColumnCatalog.decode(reader, reader.uint32());continue;}}@@ -1891,7 +1891,7 @@ export const SchemaTemplateSetting_FieldTemplate: MessageFns<SchemaTemplateSettiengine: isSet(object.engine) ? engineFromJSON(object.engine) : Engine.ENGINE_UNSPECIFIED,category: isSet(object.category) ? globalThis.String(object.category) : "",column: isSet(object.column) ? ColumnMetadata.fromJSON(object.column) : undefined,- config: isSet(object.config) ? ColumnConfig.fromJSON(object.config) : undefined,+ catalog: isSet(object.catalog) ? ColumnCatalog.fromJSON(object.catalog) : undefined,};},@@ -1909,8 +1909,8 @@ export const SchemaTemplateSetting_FieldTemplate: MessageFns<SchemaTemplateSettiif (message.column !== undefined) {obj.column = ColumnMetadata.toJSON(message.column);}- if (message.config !== undefined) {- obj.config = ColumnConfig.toJSON(message.config);+ if (message.catalog !== undefined) {+ obj.catalog = ColumnCatalog.toJSON(message.catalog);}return obj;},@@ -1926,8 +1926,8 @@ export const SchemaTemplateSetting_FieldTemplate: MessageFns<SchemaTemplateSettimessage.column = (object.column !== undefined && object.column !== null)? ColumnMetadata.fromPartial(object.column): undefined;- message.config = (object.config !== undefined && object.config !== null)- ? ColumnConfig.fromPartial(object.config)+ message.catalog = (object.catalog !== undefined && object.catalog !== null)+ ? ColumnCatalog.fromPartial(object.catalog): undefined;return message;},@@ -2026,7 +2026,7 @@ export const SchemaTemplateSetting_ColumnType: MessageFns<SchemaTemplateSetting_};function createBaseSchemaTemplateSetting_TableTemplate(): SchemaTemplateSetting_TableTemplate {- return { id: "", engine: Engine.ENGINE_UNSPECIFIED, category: "", table: undefined, config: undefined };+ return { id: "", engine: Engine.ENGINE_UNSPECIFIED, category: "", table: undefined, catalog: undefined };}export const SchemaTemplateSetting_TableTemplate: MessageFns<SchemaTemplateSetting_TableTemplate> = {@@ -2043,8 +2043,8 @@ export const SchemaTemplateSetting_TableTemplate: MessageFns<SchemaTemplateSettiif (message.table !== undefined) {TableMetadata.encode(message.table, writer.uint32(34).fork()).join();}- if (message.config !== undefined) {- TableConfig.encode(message.config, writer.uint32(42).fork()).join();+ if (message.catalog !== undefined) {+ TableCatalog.encode(message.catalog, writer.uint32(42).fork()).join();}return writer;},@@ -2093,7 +2093,7 @@ export const SchemaTemplateSetting_TableTemplate: MessageFns<SchemaTemplateSettibreak;}- message.config = TableConfig.decode(reader, reader.uint32());+ message.catalog = TableCatalog.decode(reader, reader.uint32());continue;}}@@ -2111,7 +2111,7 @@ export const SchemaTemplateSetting_TableTemplate: MessageFns<SchemaTemplateSettiengine: isSet(object.engine) ? engineFromJSON(object.engine) : Engine.ENGINE_UNSPECIFIED,category: isSet(object.category) ? globalThis.String(object.category) : "",table: isSet(object.table) ? TableMetadata.fromJSON(object.table) : undefined,- config: isSet(object.config) ? TableConfig.fromJSON(object.config) : undefined,+ catalog: isSet(object.catalog) ? TableCatalog.fromJSON(object.catalog) : undefined,};},@@ -2129,8 +2129,8 @@ export const SchemaTemplateSetting_TableTemplate: MessageFns<SchemaTemplateSettiif (message.table !== undefined) {obj.table = TableMetadata.toJSON(message.table);}- if (message.config !== undefined) {- obj.config = TableConfig.toJSON(message.config);+ if (message.catalog !== undefined) {+ obj.catalog = TableCatalog.toJSON(message.catalog);}return obj;},@@ -2146,8 +2146,8 @@ export const SchemaTemplateSetting_TableTemplate: MessageFns<SchemaTemplateSettimessage.table = (object.table !== undefined && object.table !== null)? TableMetadata.fromPartial(object.table): undefined;- message.config = (object.config !== undefined && object.config !== null)- ? TableConfig.fromPartial(object.config)+ message.catalog = (object.catalog !== undefined && object.catalog !== null)+ ? TableCatalog.fromPartial(object.catalog): undefined;return message;},diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 69fc0fa1d7..e9bc633642 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -9775,35 +9775,6 @@ components:type: stringobjectSchema:$ref: '#/components/schemas/ObjectSchema'- ColumnConfig:- type: object- properties:- name:- type: string- description: The name is the name of a column.- semanticTypeId:- type: string- labels:- type: object- additionalProperties:- type: string- description: The user labels for a column.- classificationId:- type: string- maskingLevel:- enum:- - MASKING_LEVEL_UNSPECIFIED- - NONE- - PARTIAL- - FULL- type: string- format: enum- fullMaskingAlgorithmId:- type: string- partialMaskingAlgorithmId:- type: string- objectSchema:- $ref: '#/components/schemas/ObjectSchema'ColumnMetadata:type: objectproperties:@@ -10212,10 +10183,10 @@ components:properties:name:type: string- schemaConfigs:+ schemas:type: arrayitems:- $ref: '#/components/schemas/SchemaConfig'+ $ref: '#/components/schemas/SchemaCatalog'description: The schema_configs is the list of configs for schemas in a database.DatabaseGroup:type: object@@ -10674,29 +10645,6 @@ components:The match_type is the PostgreSQL specific field.It's empty string for other databases.description: ForeignKeyMetadata is the metadata for foreign keys.- FunctionConfig:- type: object- properties:- name:- type: string- description: The name is the name of a function.- updater:- readOnly: true- type: string- description: |-- The last updater of the function in branch.- Format: users/{userUID}.- sourceBranch:- readOnly: true- type: string- description: |-- The last change come from branch.- Format: projcets/{project}/branches/{branch}- updateTime:- readOnly: true- type: string- description: The timestamp when the function is updated in branch.- format: date-timeGenerationMetadata:type: objectproperties:@@ -12685,29 +12633,6 @@ components:$ref: '#/components/schemas/Position'endPosition:$ref: '#/components/schemas/Position'- ProcedureConfig:- type: object- properties:- name:- type: string- description: The name is the name of a procedure.- updater:- readOnly: true- type: string- description: |-- The last updater of the procedure in branch.- Format: users/{userUID}.- sourceBranch:- readOnly: true- type: string- description: |-- The last change come from branch.- Format: projcets/{project}/branches/{branch}- updateTime:- readOnly: true- type: string- description: The timestamp when the procedure is updated in branch.- format: date-timeProject:type: objectproperties:@@ -13589,31 +13514,6 @@ components:type: arrayitems:$ref: '#/components/schemas/TableCatalog'- SchemaConfig:- type: object- properties:- name:- type: string- description: |-- The name is the schema name.- It is an empty string for databases without such concept such as MySQL.- tableConfigs:- type: array- items:- $ref: '#/components/schemas/TableConfig'- description: The table_configs is the list of configs for tables in a schema.- functionConfigs:- type: array- items:- $ref: '#/components/schemas/FunctionConfig'- procedureConfigs:- type: array- items:- $ref: '#/components/schemas/ProcedureConfig'- viewConfigs:- type: array- items:- $ref: '#/components/schemas/ViewConfig'SchemaTemplateSetting:type: objectproperties:@@ -13707,8 +13607,8 @@ components:type: stringcolumn:$ref: '#/components/schemas/ColumnMetadata'- config:- $ref: '#/components/schemas/ColumnConfig'+ catalog:+ $ref: '#/components/schemas/ColumnCatalog'SchemaTemplateSetting_TableTemplate:type: objectproperties:@@ -13748,8 +13648,8 @@ components:type: stringtable:$ref: '#/components/schemas/TableMetadata'- config:- $ref: '#/components/schemas/TableConfig'+ catalog:+ $ref: '#/components/schemas/TableCatalog'SearchAnomaliesRequest:type: objectproperties:@@ -14538,38 +14438,6 @@ components:type: arrayitems:$ref: '#/components/schemas/ColumnCatalog'- TableConfig:- type: object- properties:- name:- type: string- description: The name is the name of a table.- columnConfigs:- type: array- items:- $ref: '#/components/schemas/ColumnConfig'- description: The column_configs is the ordered list of configs for columns in a table.- objectSchema:- $ref: '#/components/schemas/ObjectSchema'- classificationId:- type: string- updater:- readOnly: true- type: string- description: |-- The last updater of the table in branch.- Format: users/{userUID}.- sourceBranch:- readOnly: true- type: string- description: |-- The last change come from branch.- Format: projcets/{project}/branches/{branch}- updateTime:- readOnly: true- type: string- description: The timestamp when the table is updated in branch.- format: date-timeTableMetadata:type: objectproperties:@@ -15442,29 +15310,6 @@ components:passwordRestrictionSetting:$ref: '#/components/schemas/PasswordRestrictionSetting'description: The data in setting value.- ViewConfig:- type: object- properties:- name:- type: string- description: The name is the name of a view.- updater:- readOnly: true- type: string- description: |-- The last updater of the view in branch.- Format: users/{userUID}.- sourceBranch:- readOnly: true- type: string- description: |-- The last change come from branch.- Format: projcets/{project}/branches/{branch}- updateTime:- readOnly: true- type: string- description: The timestamp when the view is updated in branch.- format: date-timeWebhook:required:- typediff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 6150c4cb3b..f450b395a1 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -45,8 +45,8 @@- [store/database.proto](#store_database-proto)- [CheckConstraintMetadata](#bytebase-store-CheckConstraintMetadata)- - [ColumnConfig](#bytebase-store-ColumnConfig)- - [ColumnConfig.LabelsEntry](#bytebase-store-ColumnConfig-LabelsEntry)+ - [ColumnCatalog](#bytebase-store-ColumnCatalog)+ - [ColumnCatalog.LabelsEntry](#bytebase-store-ColumnCatalog-LabelsEntry)- [ColumnMetadata](#bytebase-store-ColumnMetadata)- [DatabaseConfig](#bytebase-store-DatabaseConfig)- [DatabaseMetadata](#bytebase-store-DatabaseMetadata)@@ -72,13 +72,13 @@- [PackageMetadata](#bytebase-store-PackageMetadata)- [ProcedureConfig](#bytebase-store-ProcedureConfig)- [ProcedureMetadata](#bytebase-store-ProcedureMetadata)- - [SchemaConfig](#bytebase-store-SchemaConfig)+ - [SchemaCatalog](#bytebase-store-SchemaCatalog)- [SchemaMetadata](#bytebase-store-SchemaMetadata)- [SecretItem](#bytebase-store-SecretItem)- [Secrets](#bytebase-store-Secrets)- [SequenceMetadata](#bytebase-store-SequenceMetadata)- [StreamMetadata](#bytebase-store-StreamMetadata)- - [TableConfig](#bytebase-store-TableConfig)+ - [TableCatalog](#bytebase-store-TableCatalog)- [TableMetadata](#bytebase-store-TableMetadata)- [TablePartitionMetadata](#bytebase-store-TablePartitionMetadata)- [TaskMetadata](#bytebase-store-TaskMetadata)@@ -915,9 +915,9 @@ Metadata about the request.-<a name="bytebase-store-ColumnConfig"></a>+<a name="bytebase-store-ColumnCatalog"></a>-### ColumnConfig+### ColumnCatalog@@ -925,7 +925,7 @@ Metadata about the request.| ----- | ---- | ----- | ----------- || name | [string](#string) | | The name is the name of a column. || semantic_type_id | [string](#string) | | |-| labels | [ColumnConfig.LabelsEntry](#bytebase-store-ColumnConfig-LabelsEntry) | repeated | The user labels for a column. |+| labels | [ColumnCatalog.LabelsEntry](#bytebase-store-ColumnCatalog-LabelsEntry) | repeated | The user labels for a column. || classification_id | [string](#string) | | || masking_level | [MaskingLevel](#bytebase-store-MaskingLevel) | | || full_masking_algorithm_id | [string](#string) | | |@@ -937,9 +937,9 @@ Metadata about the request.-<a name="bytebase-store-ColumnConfig-LabelsEntry"></a>+<a name="bytebase-store-ColumnCatalog-LabelsEntry"></a>-### ColumnConfig.LabelsEntry+### ColumnCatalog.LabelsEntry@@ -989,7 +989,7 @@ ColumnMetadata is the metadata for columns.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || name | [string](#string) | | |-| schema_configs | [SchemaConfig](#bytebase-store-SchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |+| schemas | [SchemaCatalog](#bytebase-store-SchemaCatalog) | repeated | The schema_configs is the list of configs for schemas in a database. |@@ -1415,16 +1415,16 @@ ProcedureMetadata is the metadata for procedures.-<a name="bytebase-store-SchemaConfig"></a>+<a name="bytebase-store-SchemaCatalog"></a>-### SchemaConfig+### SchemaCatalog| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |-| table_configs | [TableConfig](#bytebase-store-TableConfig) | repeated | The table_configs is the list of configs for tables in a schema. |+| tables | [TableCatalog](#bytebase-store-TableCatalog) | repeated | The table_configs is the list of configs for tables in a schema. || function_configs | [FunctionConfig](#bytebase-store-FunctionConfig) | repeated | || procedure_configs | [ProcedureConfig](#bytebase-store-ProcedureConfig) | repeated | || view_configs | [ViewConfig](#bytebase-store-ViewConfig) | repeated | |@@ -1542,16 +1542,16 @@ This is the concept of schema in Postgres, but it's a no-op for MySQL.-<a name="bytebase-store-TableConfig"></a>+<a name="bytebase-store-TableCatalog"></a>-### TableConfig+### TableCatalog| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || name | [string](#string) | | The name is the name of a table. |-| column_configs | [ColumnConfig](#bytebase-store-ColumnConfig) | repeated | The column_configs is the ordered list of configs for columns in a table. |+| columns | [ColumnCatalog](#bytebase-store-ColumnCatalog) | repeated | The column_configs is the ordered list of configs for columns in a table. || object_schema | [ObjectSchema](#bytebase-store-ObjectSchema) | optional | || classification_id | [string](#string) | | || updater | [string](#string) | | The last updater of the table in branch. Format: users/{userUID}. |@@ -4644,7 +4644,7 @@ SlowQueryPolicy is the policy configuration for slow query.| engine | [Engine](#bytebase-store-Engine) | | || category | [string](#string) | | || column | [ColumnMetadata](#bytebase-store-ColumnMetadata) | | |-| config | [ColumnConfig](#bytebase-store-ColumnConfig) | | |+| catalog | [ColumnCatalog](#bytebase-store-ColumnCatalog) | | |@@ -4663,7 +4663,7 @@ SlowQueryPolicy is the policy configuration for slow query.| engine | [Engine](#bytebase-store-Engine) | | || category | [string](#string) | | || table | [TableMetadata](#bytebase-store-TableMetadata) | | |-| config | [TableConfig](#bytebase-store-TableConfig) | | |+| catalog | [TableCatalog](#bytebase-store-TableCatalog) | | |diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex 2980c1f76c..87db6e1880 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -342,11 +342,11 @@</li><li>- <a href="#bytebase.store.ColumnConfig"><span class="badge">M</span>ColumnConfig</a>+ <a href="#bytebase.store.ColumnCatalog"><span class="badge">M</span>ColumnCatalog</a></li><li>- <a href="#bytebase.store.ColumnConfig.LabelsEntry"><span class="badge">M</span>ColumnConfig.LabelsEntry</a>+ <a href="#bytebase.store.ColumnCatalog.LabelsEntry"><span class="badge">M</span>ColumnCatalog.LabelsEntry</a></li><li>@@ -450,7 +450,7 @@</li><li>- <a href="#bytebase.store.SchemaConfig"><span class="badge">M</span>SchemaConfig</a>+ <a href="#bytebase.store.SchemaCatalog"><span class="badge">M</span>SchemaCatalog</a></li><li>@@ -474,7 +474,7 @@</li><li>- <a href="#bytebase.store.TableConfig"><span class="badge">M</span>TableConfig</a>+ <a href="#bytebase.store.TableCatalog"><span class="badge">M</span>TableCatalog</a></li><li>@@ -2902,7 +2902,7 @@ This information is not authenticated and should be treated accordingly. </p></t- <h3 id="bytebase.store.ColumnConfig">ColumnConfig</h3>+ <h3 id="bytebase.store.ColumnCatalog">ColumnCatalog</h3><p></p>@@ -2928,7 +2928,7 @@ This information is not authenticated and should be treated accordingly. </p></t<tr><td>labels</td>- <td><a href="#bytebase.store.ColumnConfig.LabelsEntry">ColumnConfig.LabelsEntry</a></td>+ <td><a href="#bytebase.store.ColumnCatalog.LabelsEntry">ColumnCatalog.LabelsEntry</a></td><td>repeated</td><td><p>The user labels for a column. </p></td></tr>@@ -2975,7 +2975,7 @@ This information is not authenticated and should be treated accordingly. </p></t- <h3 id="bytebase.store.ColumnConfig.LabelsEntry">ColumnConfig.LabelsEntry</h3>+ <h3 id="bytebase.store.ColumnCatalog.LabelsEntry">ColumnCatalog.LabelsEntry</h3><p></p>@@ -3136,8 +3136,8 @@ classification and user_comment is parsed from the comment. </p></td></tr><tr>- <td>schema_configs</td>- <td><a href="#bytebase.store.SchemaConfig">SchemaConfig</a></td>+ <td>schemas</td>+ <td><a href="#bytebase.store.SchemaCatalog">SchemaCatalog</a></td><td>repeated</td><td><p>The schema_configs is the list of configs for schemas in a database. </p></td></tr>@@ -4232,7 +4232,7 @@ function takes. </p></td>- <h3 id="bytebase.store.SchemaConfig">SchemaConfig</h3>+ <h3 id="bytebase.store.SchemaCatalog">SchemaCatalog</h3><p></p>@@ -4251,8 +4251,8 @@ It is an empty string for databases without such concept such as MySQL. </p></td</tr><tr>- <td>table_configs</td>- <td><a href="#bytebase.store.TableConfig">TableConfig</a></td>+ <td>tables</td>+ <td><a href="#bytebase.store.TableCatalog">TableCatalog</a></td><td>repeated</td><td><p>The table_configs is the list of configs for tables in a schema. </p></td></tr>@@ -4632,7 +4632,7 @@ Snowflake. </p></td>- <h3 id="bytebase.store.TableConfig">TableConfig</h3>+ <h3 id="bytebase.store.TableCatalog">TableCatalog</h3><p></p>@@ -4650,8 +4650,8 @@ Snowflake. </p></td></tr><tr>- <td>column_configs</td>- <td><a href="#bytebase.store.ColumnConfig">ColumnConfig</a></td>+ <td>columns</td>+ <td><a href="#bytebase.store.ColumnCatalog">ColumnCatalog</a></td><td>repeated</td><td><p>The column_configs is the ordered list of configs for columns in a table. </p></td></tr>@@ -11643,8 +11643,8 @@ The default value is 100MB, we will use the default value if the setting not exi</tr><tr>- <td>config</td>- <td><a href="#bytebase.store.ColumnConfig">ColumnConfig</a></td>+ <td>catalog</td>+ <td><a href="#bytebase.store.ColumnCatalog">ColumnCatalog</a></td><td></td><td><p> </p></td></tr>@@ -11695,8 +11695,8 @@ The default value is 100MB, we will use the default value if the setting not exi</tr><tr>- <td>config</td>- <td><a href="#bytebase.store.TableConfig">TableConfig</a></td>+ <td>catalog</td>+ <td><a href="#bytebase.store.TableCatalog">TableCatalog</a></td><td></td><td><p> </p></td></tr>diff --git a/proto/generated-go/store/database.pb.go b/proto/generated-go/store/database.pb.goindex 48ce2785e7..3ba170fc17 100644--- a/proto/generated-go/store/database.pb.go+++ b/proto/generated-go/store/database.pb.go@@ -348,7 +348,7 @@ func (x ObjectSchema_Type) Number() protoreflect.EnumNumber {// Deprecated: Use ObjectSchema_Type.Descriptor instead.func (ObjectSchema_Type) EnumDescriptor() ([]byte, []int) {- return file_store_database_proto_rawDescGZIP(), []int{35, 0}+ return file_store_database_proto_rawDescGZIP(), []int{32, 0}}// DatabaseMetadata is the metadata for databases.@@ -3058,7 +3058,7 @@ type DatabaseConfig struct {state protoimpl.MessageState `protogen:"open.v1"`Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`// The schema_configs is the list of configs for schemas in a database.- SchemaConfigs []*SchemaConfig `protobuf:"bytes,2,rep,name=schema_configs,json=schemaConfigs,proto3" json:"schema_configs,omitempty"`+ Schemas []*SchemaCatalog `protobuf:"bytes,2,rep,name=schemas,proto3" json:"schemas,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -3100,20 +3100,20 @@ func (x *DatabaseConfig) GetName() string {return ""}-func (x *DatabaseConfig) GetSchemaConfigs() []*SchemaConfig {+func (x *DatabaseConfig) GetSchemas() []*SchemaCatalog {if x != nil {- return x.SchemaConfigs+ return x.Schemas}return nil}-type SchemaConfig struct {+type SchemaCatalog struct {state protoimpl.MessageState `protogen:"open.v1"`// The name is the schema name.// It is an empty string for databases without such concept such as MySQL.Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`// The table_configs is the list of configs for tables in a schema.- TableConfigs []*TableConfig `protobuf:"bytes,2,rep,name=table_configs,json=tableConfigs,proto3" json:"table_configs,omitempty"`+ Tables []*TableCatalog `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`FunctionConfigs []*FunctionConfig `protobuf:"bytes,3,rep,name=function_configs,json=functionConfigs,proto3" json:"function_configs,omitempty"`ProcedureConfigs []*ProcedureConfig `protobuf:"bytes,4,rep,name=procedure_configs,json=procedureConfigs,proto3" json:"procedure_configs,omitempty"`ViewConfigs []*ViewConfig `protobuf:"bytes,5,rep,name=view_configs,json=viewConfigs,proto3" json:"view_configs,omitempty"`@@ -3121,20 +3121,20 @@ type SchemaConfig struct {sizeCache protoimpl.SizeCache}-func (x *SchemaConfig) Reset() {- *x = SchemaConfig{}+func (x *SchemaCatalog) Reset() {+ *x = SchemaCatalog{}mi := &file_store_database_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *SchemaConfig) String() string {+func (x *SchemaCatalog) String() string {return protoimpl.X.MessageStringOf(x)}-func (*SchemaConfig) ProtoMessage() {}+func (*SchemaCatalog) ProtoMessage() {}-func (x *SchemaConfig) ProtoReflect() protoreflect.Message {+func (x *SchemaCatalog) ProtoReflect() protoreflect.Message {mi := &file_store_database_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3146,54 +3146,54 @@ func (x *SchemaConfig) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use SchemaConfig.ProtoReflect.Descriptor instead.-func (*SchemaConfig) Descriptor() ([]byte, []int) {+// Deprecated: Use SchemaCatalog.ProtoReflect.Descriptor instead.+func (*SchemaCatalog) Descriptor() ([]byte, []int) {return file_store_database_proto_rawDescGZIP(), []int{29}}-func (x *SchemaConfig) GetName() string {+func (x *SchemaCatalog) GetName() string {if x != nil {return x.Name}return ""}-func (x *SchemaConfig) GetTableConfigs() []*TableConfig {+func (x *SchemaCatalog) GetTables() []*TableCatalog {if x != nil {- return x.TableConfigs+ return x.Tables}return nil}-func (x *SchemaConfig) GetFunctionConfigs() []*FunctionConfig {+func (x *SchemaCatalog) GetFunctionConfigs() []*FunctionConfig {if x != nil {return x.FunctionConfigs}return nil}-func (x *SchemaConfig) GetProcedureConfigs() []*ProcedureConfig {+func (x *SchemaCatalog) GetProcedureConfigs() []*ProcedureConfig {if x != nil {return x.ProcedureConfigs}return nil}-func (x *SchemaConfig) GetViewConfigs() []*ViewConfig {+func (x *SchemaCatalog) GetViewConfigs() []*ViewConfig {if x != nil {return x.ViewConfigs}return nil}-type TableConfig struct {+type TableCatalog struct {state protoimpl.MessageState `protogen:"open.v1"`// The name is the name of a table.Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`// The column_configs is the ordered list of configs for columns in a table.- ColumnConfigs []*ColumnConfig `protobuf:"bytes,2,rep,name=column_configs,json=columnConfigs,proto3" json:"column_configs,omitempty"`- ObjectSchema *ObjectSchema `protobuf:"bytes,7,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`- ClassificationId string `protobuf:"bytes,3,opt,name=classification_id,json=classificationId,proto3" json:"classification_id,omitempty"`+ Columns []*ColumnCatalog `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"`+ ObjectSchema *ObjectSchema `protobuf:"bytes,7,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`+ ClassificationId string `protobuf:"bytes,3,opt,name=classification_id,json=classificationId,proto3" json:"classification_id,omitempty"`// The last updater of the table in branch.// Format: users/{userUID}.Updater string `protobuf:"bytes,4,opt,name=updater,proto3" json:"updater,omitempty"`@@ -3206,20 +3206,20 @@ type TableConfig struct {sizeCache protoimpl.SizeCache}-func (x *TableConfig) Reset() {- *x = TableConfig{}+func (x *TableCatalog) Reset() {+ *x = TableCatalog{}mi := &file_store_database_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *TableConfig) String() string {+func (x *TableCatalog) String() string {return protoimpl.X.MessageStringOf(x)}-func (*TableConfig) ProtoMessage() {}+func (*TableCatalog) ProtoMessage() {}-func (x *TableConfig) ProtoReflect() protoreflect.Message {+func (x *TableCatalog) ProtoReflect() protoreflect.Message {mi := &file_store_database_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3231,90 +3231,90 @@ func (x *TableConfig) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use TableConfig.ProtoReflect.Descriptor instead.-func (*TableConfig) Descriptor() ([]byte, []int) {+// Deprecated: Use TableCatalog.ProtoReflect.Descriptor instead.+func (*TableCatalog) Descriptor() ([]byte, []int) {return file_store_database_proto_rawDescGZIP(), []int{30}}-func (x *TableConfig) GetName() string {+func (x *TableCatalog) GetName() string {if x != nil {return x.Name}return ""}-func (x *TableConfig) GetColumnConfigs() []*ColumnConfig {+func (x *TableCatalog) GetColumns() []*ColumnCatalog {if x != nil {- return x.ColumnConfigs+ return x.Columns}return nil}-func (x *TableConfig) GetObjectSchema() *ObjectSchema {+func (x *TableCatalog) GetObjectSchema() *ObjectSchema {if x != nil {return x.ObjectSchema}return nil}-func (x *TableConfig) GetClassificationId() string {+func (x *TableCatalog) GetClassificationId() string {if x != nil {return x.ClassificationId}return ""}-func (x *TableConfig) GetUpdater() string {+func (x *TableCatalog) GetUpdater() string {if x != nil {return x.Updater}return ""}-func (x *TableConfig) GetSourceBranch() string {+func (x *TableCatalog) GetSourceBranch() string {if x != nil {return x.SourceBranch}return ""}-func (x *TableConfig) GetUpdateTime() *timestamppb.Timestamp {+func (x *TableCatalog) GetUpdateTime() *timestamppb.Timestamp {if x != nil {return x.UpdateTime}return nil}-type FunctionConfig struct {+type ColumnCatalog struct {state protoimpl.MessageState `protogen:"open.v1"`- // The name is the name of a function.- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The last updater of the function in branch.- // Format: users/{userUID}.- Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`- // The last change come from branch.- // Format: projcets/{project}/branches/{branch}- SourceBranch string `protobuf:"bytes,4,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`- // The timestamp when the function is updated in branch.- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // The name is the name of a column.+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ SemanticTypeId string `protobuf:"bytes,2,opt,name=semantic_type_id,json=semanticTypeId,proto3" json:"semantic_type_id,omitempty"`+ // The user labels for a column.+ Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`+ ClassificationId string `protobuf:"bytes,4,opt,name=classification_id,json=classificationId,proto3" json:"classification_id,omitempty"`+ MaskingLevel MaskingLevel `protobuf:"varint,5,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.store.MaskingLevel" json:"masking_level,omitempty"`+ FullMaskingAlgorithmId string `protobuf:"bytes,6,opt,name=full_masking_algorithm_id,json=fullMaskingAlgorithmId,proto3" json:"full_masking_algorithm_id,omitempty"`+ PartialMaskingAlgorithmId string `protobuf:"bytes,7,opt,name=partial_masking_algorithm_id,json=partialMaskingAlgorithmId,proto3" json:"partial_masking_algorithm_id,omitempty"`+ ObjectSchema *ObjectSchema `protobuf:"bytes,8,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}-func (x *FunctionConfig) Reset() {- *x = FunctionConfig{}+func (x *ColumnCatalog) Reset() {+ *x = ColumnCatalog{}mi := &file_store_database_proto_msgTypes[31]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *FunctionConfig) String() string {+func (x *ColumnCatalog) String() string {return protoimpl.X.MessageStringOf(x)}-func (*FunctionConfig) ProtoMessage() {}+func (*ColumnCatalog) ProtoMessage() {}-func (x *FunctionConfig) ProtoReflect() protoreflect.Message {+func (x *ColumnCatalog) ProtoReflect() protoreflect.Message {mi := &file_store_database_proto_msgTypes[31]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3326,69 +3326,93 @@ func (x *FunctionConfig) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use FunctionConfig.ProtoReflect.Descriptor instead.-func (*FunctionConfig) Descriptor() ([]byte, []int) {+// Deprecated: Use ColumnCatalog.ProtoReflect.Descriptor instead.+func (*ColumnCatalog) Descriptor() ([]byte, []int) {return file_store_database_proto_rawDescGZIP(), []int{31}}-func (x *FunctionConfig) GetName() string {+func (x *ColumnCatalog) GetName() string {if x != nil {return x.Name}return ""}-func (x *FunctionConfig) GetUpdater() string {+func (x *ColumnCatalog) GetSemanticTypeId() string {if x != nil {- return x.Updater+ return x.SemanticTypeId}return ""}-func (x *FunctionConfig) GetSourceBranch() string {+func (x *ColumnCatalog) GetLabels() map[string]string {if x != nil {- return x.SourceBranch+ return x.Labels+ }+ return nil+}++func (x *ColumnCatalog) GetClassificationId() string {+ if x != nil {+ return x.ClassificationId}return ""}-func (x *FunctionConfig) GetUpdateTime() *timestamppb.Timestamp {+func (x *ColumnCatalog) GetMaskingLevel() MaskingLevel {if x != nil {- return x.UpdateTime+ return x.MaskingLevel+ }+ return MaskingLevel_MASKING_LEVEL_UNSPECIFIED+}++func (x *ColumnCatalog) GetFullMaskingAlgorithmId() string {+ if x != nil {+ return x.FullMaskingAlgorithmId+ }+ return ""+}++func (x *ColumnCatalog) GetPartialMaskingAlgorithmId() string {+ if x != nil {+ return x.PartialMaskingAlgorithmId+ }+ return ""+}++func (x *ColumnCatalog) GetObjectSchema() *ObjectSchema {+ if x != nil {+ return x.ObjectSchema}return nil}-type ProcedureConfig struct {+type ObjectSchema struct {state protoimpl.MessageState `protogen:"open.v1"`- // The name is the name of a procedure.- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The last updater of the procedure in branch.- // Format: users/{userUID}.- Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`- // The last change come from branch.- // Format: projcets/{project}/branches/{branch}- SourceBranch string `protobuf:"bytes,4,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`- // The timestamp when the procedure is updated in branch.- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`+ Type ObjectSchema_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.ObjectSchema_Type" json:"type,omitempty"`+ // Types that are valid to be assigned to Kind:+ //+ // *ObjectSchema_StructKind_+ // *ObjectSchema_ArrayKind_+ Kind isObjectSchema_Kind `protobuf_oneof:"kind"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}-func (x *ProcedureConfig) Reset() {- *x = ProcedureConfig{}+func (x *ObjectSchema) Reset() {+ *x = ObjectSchema{}mi := &file_store_database_proto_msgTypes[32]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *ProcedureConfig) String() string {+func (x *ObjectSchema) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ProcedureConfig) ProtoMessage() {}+func (*ObjectSchema) ProtoMessage() {}-func (x *ProcedureConfig) ProtoReflect() protoreflect.Message {+func (x *ObjectSchema) ProtoReflect() protoreflect.Message {mi := &file_store_database_proto_msgTypes[32]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3400,69 +3424,89 @@ func (x *ProcedureConfig) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ProcedureConfig.ProtoReflect.Descriptor instead.-func (*ProcedureConfig) Descriptor() ([]byte, []int) {+// Deprecated: Use ObjectSchema.ProtoReflect.Descriptor instead.+func (*ObjectSchema) Descriptor() ([]byte, []int) {return file_store_database_proto_rawDescGZIP(), []int{32}}-func (x *ProcedureConfig) GetName() string {+func (x *ObjectSchema) GetType() ObjectSchema_Type {if x != nil {- return x.Name+ return x.Type}- return ""+ return ObjectSchema_TYPE_UNSPECIFIED}-func (x *ProcedureConfig) GetUpdater() string {+func (x *ObjectSchema) GetKind() isObjectSchema_Kind {if x != nil {- return x.Updater+ return x.Kind}- return ""+ return nil}-func (x *ProcedureConfig) GetSourceBranch() string {+func (x *ObjectSchema) GetStructKind() *ObjectSchema_StructKind {if x != nil {- return x.SourceBranch+ if x, ok := x.Kind.(*ObjectSchema_StructKind_); ok {+ return x.StructKind+ }}- return ""+ return nil}-func (x *ProcedureConfig) GetUpdateTime() *timestamppb.Timestamp {+func (x *ObjectSchema) GetArrayKind() *ObjectSchema_ArrayKind {if x != nil {- return x.UpdateTime+ if x, ok := x.Kind.(*ObjectSchema_ArrayKind_); ok {+ return x.ArrayKind+ }}return nil}-type ViewConfig struct {+type isObjectSchema_Kind interface {+ isObjectSchema_Kind()+}++type ObjectSchema_StructKind_ struct {+ StructKind *ObjectSchema_StructKind `protobuf:"bytes,2,opt,name=struct_kind,json=structKind,proto3,oneof"`+}++type ObjectSchema_ArrayKind_ struct {+ ArrayKind *ObjectSchema_ArrayKind `protobuf:"bytes,3,opt,name=array_kind,json=arrayKind,proto3,oneof"`+}++func (*ObjectSchema_StructKind_) isObjectSchema_Kind() {}++func (*ObjectSchema_ArrayKind_) isObjectSchema_Kind() {}++type FunctionConfig struct {state protoimpl.MessageState `protogen:"open.v1"`- // The name is the name of a view.+ // The name is the name of a function.Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- // The last updater of the view in branch.+ // The last updater of the function in branch.// Format: users/{userUID}.Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`// The last change come from branch.// Format: projcets/{project}/branches/{branch}SourceBranch string `protobuf:"bytes,4,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`- // The timestamp when the view is updated in branch.+ // The timestamp when the function is updated in branch.UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}-func (x *ViewConfig) Reset() {- *x = ViewConfig{}+func (x *FunctionConfig) Reset() {+ *x = FunctionConfig{}mi := &file_store_database_proto_msgTypes[33]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *ViewConfig) String() string {+func (x *FunctionConfig) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ViewConfig) ProtoMessage() {}+func (*FunctionConfig) ProtoMessage() {}-func (x *ViewConfig) ProtoReflect() protoreflect.Message {+func (x *FunctionConfig) ProtoReflect() protoreflect.Message {mi := &file_store_database_proto_msgTypes[33]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3474,69 +3518,69 @@ func (x *ViewConfig) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ViewConfig.ProtoReflect.Descriptor instead.-func (*ViewConfig) Descriptor() ([]byte, []int) {+// Deprecated: Use FunctionConfig.ProtoReflect.Descriptor instead.+func (*FunctionConfig) Descriptor() ([]byte, []int) {return file_store_database_proto_rawDescGZIP(), []int{33}}-func (x *ViewConfig) GetName() string {+func (x *FunctionConfig) GetName() string {if x != nil {return x.Name}return ""}-func (x *ViewConfig) GetUpdater() string {+func (x *FunctionConfig) GetUpdater() string {if x != nil {return x.Updater}return ""}-func (x *ViewConfig) GetSourceBranch() string {+func (x *FunctionConfig) GetSourceBranch() string {if x != nil {return x.SourceBranch}return ""}-func (x *ViewConfig) GetUpdateTime() *timestamppb.Timestamp {+func (x *FunctionConfig) GetUpdateTime() *timestamppb.Timestamp {if x != nil {return x.UpdateTime}return nil}-type ColumnConfig struct {+type ProcedureConfig struct {state protoimpl.MessageState `protogen:"open.v1"`- // The name is the name of a column.- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`- SemanticTypeId string `protobuf:"bytes,2,opt,name=semantic_type_id,json=semanticTypeId,proto3" json:"semantic_type_id,omitempty"`- // The user labels for a column.- Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`- ClassificationId string `protobuf:"bytes,4,opt,name=classification_id,json=classificationId,proto3" json:"classification_id,omitempty"`- MaskingLevel MaskingLevel `protobuf:"varint,5,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.store.MaskingLevel" json:"masking_level,omitempty"`- FullMaskingAlgorithmId string `protobuf:"bytes,6,opt,name=full_masking_algorithm_id,json=fullMaskingAlgorithmId,proto3" json:"full_masking_algorithm_id,omitempty"`- PartialMaskingAlgorithmId string `protobuf:"bytes,7,opt,name=partial_masking_algorithm_id,json=partialMaskingAlgorithmId,proto3" json:"partial_masking_algorithm_id,omitempty"`- ObjectSchema *ObjectSchema `protobuf:"bytes,8,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // The name is the name of a procedure.+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The last updater of the procedure in branch.+ // Format: users/{userUID}.+ Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`+ // The last change come from branch.+ // Format: projcets/{project}/branches/{branch}+ SourceBranch string `protobuf:"bytes,4,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`+ // The timestamp when the procedure is updated in branch.+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}-func (x *ColumnConfig) Reset() {- *x = ColumnConfig{}+func (x *ProcedureConfig) Reset() {+ *x = ProcedureConfig{}mi := &file_store_database_proto_msgTypes[34]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *ColumnConfig) String() string {+func (x *ProcedureConfig) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ColumnConfig) ProtoMessage() {}+func (*ProcedureConfig) ProtoMessage() {}-func (x *ColumnConfig) ProtoReflect() protoreflect.Message {+func (x *ProcedureConfig) ProtoReflect() protoreflect.Message {mi := &file_store_database_proto_msgTypes[34]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3548,93 +3592,69 @@ func (x *ColumnConfig) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ColumnConfig.ProtoReflect.Descriptor instead.-func (*ColumnConfig) Descriptor() ([]byte, []int) {+// Deprecated: Use ProcedureConfig.ProtoReflect.Descriptor instead.+func (*ProcedureConfig) Descriptor() ([]byte, []int) {return file_store_database_proto_rawDescGZIP(), []int{34}}-func (x *ColumnConfig) GetName() string {+func (x *ProcedureConfig) GetName() string {if x != nil {return x.Name}return ""}-func (x *ColumnConfig) GetSemanticTypeId() string {- if x != nil {- return x.SemanticTypeId- }- return ""-}--func (x *ColumnConfig) GetLabels() map[string]string {- if x != nil {- return x.Labels- }- return nil-}--func (x *ColumnConfig) GetClassificationId() string {- if x != nil {- return x.ClassificationId- }- return ""-}--func (x *ColumnConfig) GetMaskingLevel() MaskingLevel {- if x != nil {- return x.MaskingLevel- }- return MaskingLevel_MASKING_LEVEL_UNSPECIFIED-}--func (x *ColumnConfig) GetFullMaskingAlgorithmId() string {+func (x *ProcedureConfig) GetUpdater() string {if x != nil {- return x.FullMaskingAlgorithmId+ return x.Updater}return ""}-func (x *ColumnConfig) GetPartialMaskingAlgorithmId() string {+func (x *ProcedureConfig) GetSourceBranch() string {if x != nil {- return x.PartialMaskingAlgorithmId+ return x.SourceBranch}return ""}-func (x *ColumnConfig) GetObjectSchema() *ObjectSchema {+func (x *ProcedureConfig) GetUpdateTime() *timestamppb.Timestamp {if x != nil {- return x.ObjectSchema+ return x.UpdateTime}return nil}-type ObjectSchema struct {+type ViewConfig struct {state protoimpl.MessageState `protogen:"open.v1"`- Type ObjectSchema_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.ObjectSchema_Type" json:"type,omitempty"`- // Types that are valid to be assigned to Kind:- //- // *ObjectSchema_StructKind_- // *ObjectSchema_ArrayKind_- Kind isObjectSchema_Kind `protobuf_oneof:"kind"`+ // The name is the name of a view.+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`+ // The last updater of the view in branch.+ // Format: users/{userUID}.+ Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`+ // The last change come from branch.+ // Format: projcets/{project}/branches/{branch}+ SourceBranch string `protobuf:"bytes,4,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`+ // The timestamp when the view is updated in branch.+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}-func (x *ObjectSchema) Reset() {- *x = ObjectSchema{}+func (x *ViewConfig) Reset() {+ *x = ViewConfig{}mi := &file_store_database_proto_msgTypes[35]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *ObjectSchema) String() string {+func (x *ViewConfig) String() string {return protoimpl.X.MessageStringOf(x)}-func (*ObjectSchema) ProtoMessage() {}+func (*ViewConfig) ProtoMessage() {}-func (x *ObjectSchema) ProtoReflect() protoreflect.Message {+func (x *ViewConfig) ProtoReflect() protoreflect.Message {mi := &file_store_database_proto_msgTypes[35]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -3646,59 +3666,39 @@ func (x *ObjectSchema) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use ObjectSchema.ProtoReflect.Descriptor instead.-func (*ObjectSchema) Descriptor() ([]byte, []int) {+// Deprecated: Use ViewConfig.ProtoReflect.Descriptor instead.+func (*ViewConfig) Descriptor() ([]byte, []int) {return file_store_database_proto_rawDescGZIP(), []int{35}}-func (x *ObjectSchema) GetType() ObjectSchema_Type {+func (x *ViewConfig) GetName() string {if x != nil {- return x.Type+ return x.Name}- return ObjectSchema_TYPE_UNSPECIFIED+ return ""}-func (x *ObjectSchema) GetKind() isObjectSchema_Kind {+func (x *ViewConfig) GetUpdater() string {if x != nil {- return x.Kind+ return x.Updater}- return nil+ return ""}-func (x *ObjectSchema) GetStructKind() *ObjectSchema_StructKind {+func (x *ViewConfig) GetSourceBranch() string {if x != nil {- if x, ok := x.Kind.(*ObjectSchema_StructKind_); ok {- return x.StructKind- }+ return x.SourceBranch}- return nil+ return ""}-func (x *ObjectSchema) GetArrayKind() *ObjectSchema_ArrayKind {+func (x *ViewConfig) GetUpdateTime() *timestamppb.Timestamp {if x != nil {- if x, ok := x.Kind.(*ObjectSchema_ArrayKind_); ok {- return x.ArrayKind- }+ return x.UpdateTime}return nil}-type isObjectSchema_Kind interface {- isObjectSchema_Kind()-}--type ObjectSchema_StructKind_ struct {- StructKind *ObjectSchema_StructKind `protobuf:"bytes,2,opt,name=struct_kind,json=structKind,proto3,oneof"`-}--type ObjectSchema_ArrayKind_ struct {- ArrayKind *ObjectSchema_ArrayKind `protobuf:"bytes,3,opt,name=array_kind,json=arrayKind,proto3,oneof"`-}--func (*ObjectSchema_StructKind_) isObjectSchema_Kind() {}--func (*ObjectSchema_ArrayKind_) isObjectSchema_Kind() {}-type ObjectSchema_StructKind struct {state protoimpl.MessageState `protogen:"open.v1"`Properties map[string]*ObjectSchema `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`@@ -3733,7 +3733,7 @@ func (x *ObjectSchema_StructKind) ProtoReflect() protoreflect.Message {// Deprecated: Use ObjectSchema_StructKind.ProtoReflect.Descriptor instead.func (*ObjectSchema_StructKind) Descriptor() ([]byte, []int) {- return file_store_database_proto_rawDescGZIP(), []int{35, 0}+ return file_store_database_proto_rawDescGZIP(), []int{32, 0}}func (x *ObjectSchema_StructKind) GetProperties() map[string]*ObjectSchema {@@ -3777,7 +3777,7 @@ func (x *ObjectSchema_ArrayKind) ProtoReflect() protoreflect.Message {// Deprecated: Use ObjectSchema_ArrayKind.ProtoReflect.Descriptor instead.func (*ObjectSchema_ArrayKind) Descriptor() ([]byte, []int) {- return file_store_database_proto_rawDescGZIP(), []int{35, 1}+ return file_store_database_proto_rawDescGZIP(), []int{32, 1}}func (x *ObjectSchema_ArrayKind) GetKind() *ObjectSchema {@@ -4287,161 +4287,159 @@ var file_store_database_proto_rawDesc = []byte{0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c,0x75, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,- 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0e, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03,- 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,- 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x4a,- 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0xbc, 0x02, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x63, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x74, 0x61,- 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,- 0x72, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c,- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x49, 0x0a, 0x10,- 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73,- 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x4c, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65,- 0x64, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03,- 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x69, 0x65,- 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x73, 0x22, 0xfb, 0x02, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, 0x75,- 0x6d, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,- 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d,- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x46, 0x0a,- 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x07,- 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,- 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,- 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20,- 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61,- 0x6e, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,- 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a,- 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,- 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x22, 0xb2, 0x01, 0x0a, 0x0e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,- 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72,- 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74,- 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,- 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb3, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63,- 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x73, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0xb1, 0x02, 0x0a, 0x0d, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e,0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,- 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12,- 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68,- 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f,- 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,- 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01,- 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xae, 0x01,- 0x0a, 0x0a, 0x56, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04,- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x34, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x06, 0x74,+ 0x61, 0x62, 0x6c, 0x65, 0x73, 0x12, 0x49, 0x0a, 0x10, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,+ 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,+ 0x0f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73,+ 0x12, 0x4c, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6f,+ 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f,+ 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x70, 0x72,+ 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x3d,+ 0x0a, 0x0c, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x05,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x52, 0x0b, 0x76, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xf0, 0x02,+ 0x0a, 0x0c, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x12,+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x61, 0x74, 0x61, 0x6c,+ 0x6f, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x46, 0x0a, 0x0d, 0x6f,+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x07, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,+ 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x88, 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,+ 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,+ 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72,0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63,- 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73,+ 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73,0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,+ 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b,0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41,- 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x8f,- 0x04, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,- 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,- 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f,- 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73,- 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x40, 0x0a,- 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43,- 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65,- 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12,- 0x2b, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6c, 0x61, 0x73,- 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0d,- 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20,- 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,- 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65,- 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,- 0x39, 0x0a, 0x19, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f,- 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41,- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x70, 0x61,- 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c,- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,- 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x46, 0x0a, 0x0d, 0x6f,- 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x08, 0x20, 0x01,- 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x88, 0x01, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74,- 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x10,+ 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x42, 0x10,0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x22, 0xc0, 0x04, 0x0a, 0x0c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,- 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,- 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x54, 0x79,- 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x75,- 0x63, 0x74, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f,- 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x75,- 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74,- 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x6b, 0x69,- 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64,- 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x1a, 0xc2, 0x01,- 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x57, 0x0a, 0x0a,- 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,- 0x32, 0x37, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53,- 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72,- 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65,- 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x5b, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,- 0x69, 0x65, 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, 0x32, 0x0a, 0x05, 0x76, 0x61,- 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63,- 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,- 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x09, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x12,- 0x30, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,+ 0x22, 0x91, 0x04, 0x0a, 0x0d, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x61, 0x74, 0x61, 0x6c,+ 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74,+ 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0e, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64,+ 0x12, 0x41, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e,+ 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62,+ 0x65, 0x6c, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,+ 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,+ 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65,+ 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,+ 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65,+ 0x76, 0x65, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64,+ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x3f,+ 0x0a, 0x1c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e,+ 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x07,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73,+ 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12,+ 0x46, 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c,+ 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,+ 0x38, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x22, 0xc0, 0x04, 0x0a, 0x0c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4a, 0x0a, 0x0b,+ 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,+ 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e,+ 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74,+ 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x72, 0x72, 0x61,+ 0x79, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62,+ 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79,+ 0x4b, 0x69, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e,+ 0x64, 0x1a, 0xc2, 0x01, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64,+ 0x12, 0x57, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01,+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x2e, 0x50, 0x72,+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70,+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x5b, 0x0a, 0x0f, 0x50, 0x72, 0x6f,+ 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 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, 0x32,+ 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e,0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f,- 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x04, 0x6b, 0x69, 0x6e,- 0x64, 0x22, 0x58, 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,- 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4e,- 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45,- 0x41, 0x4e, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04,- 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x05, 0x42, 0x06, 0x0a, 0x04, 0x6b,- 0x69, 0x6e, 0x64, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c,+ 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x09, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b,+ 0x69, 0x6e, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,+ 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52,+ 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x58, 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, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12,+ 0x0a, 0x0a, 0x06, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x42,+ 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x42, 0x4a, 0x45,+ 0x43, 0x54, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x05, 0x42,+ 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xb2, 0x01, 0x0a, 0x0e, 0x46, 0x75, 0x6e, 0x63,+ 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e,+ 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x29,+ 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75,+ 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,+ 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,+ 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,+ 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb3, 0x01, 0x0a,+ 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,+ 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64,+ 0x61, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62,+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01,+ 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12,+ 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,+ 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,+ 0x6d, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x0a, 0x56, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69,+ 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,+ 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41,+ 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,+ 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,+ 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54,+ 0x69, 0x6d, 0x65, 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,}@@ -4496,15 +4494,15 @@ var file_store_database_proto_goTypes = []any{(*Secrets)(nil), // 32: bytebase.store.Secrets(*SecretItem)(nil), // 33: bytebase.store.SecretItem(*DatabaseConfig)(nil), // 34: bytebase.store.DatabaseConfig- (*SchemaConfig)(nil), // 35: bytebase.store.SchemaConfig- (*TableConfig)(nil), // 36: bytebase.store.TableConfig- (*FunctionConfig)(nil), // 37: bytebase.store.FunctionConfig- (*ProcedureConfig)(nil), // 38: bytebase.store.ProcedureConfig- (*ViewConfig)(nil), // 39: bytebase.store.ViewConfig- (*ColumnConfig)(nil), // 40: bytebase.store.ColumnConfig- (*ObjectSchema)(nil), // 41: bytebase.store.ObjectSchema+ (*SchemaCatalog)(nil), // 35: bytebase.store.SchemaCatalog+ (*TableCatalog)(nil), // 36: bytebase.store.TableCatalog+ (*ColumnCatalog)(nil), // 37: bytebase.store.ColumnCatalog+ (*ObjectSchema)(nil), // 38: bytebase.store.ObjectSchema+ (*FunctionConfig)(nil), // 39: bytebase.store.FunctionConfig+ (*ProcedureConfig)(nil), // 40: bytebase.store.ProcedureConfig+ (*ViewConfig)(nil), // 41: bytebase.store.ViewConfignil, // 42: bytebase.store.DatabaseMetadata.LabelsEntry- nil, // 43: bytebase.store.ColumnConfig.LabelsEntry+ nil, // 43: bytebase.store.ColumnCatalog.LabelsEntry(*ObjectSchema_StructKind)(nil), // 44: bytebase.store.ObjectSchema.StructKind(*ObjectSchema_ArrayKind)(nil), // 45: bytebase.store.ObjectSchema.ArrayKindnil, // 46: bytebase.store.ObjectSchema.StructKind.PropertiesEntry@@ -4552,26 +4550,26 @@ var file_store_database_proto_depIdxs = []int32{23, // 36: bytebase.store.MaterializedViewMetadata.dependent_columns:type_name -> bytebase.store.DependentColumn13, // 37: bytebase.store.MaterializedViewMetadata.triggers:type_name -> bytebase.store.TriggerMetadata33, // 38: bytebase.store.Secrets.items:type_name -> bytebase.store.SecretItem- 35, // 39: bytebase.store.DatabaseConfig.schema_configs:type_name -> bytebase.store.SchemaConfig- 36, // 40: bytebase.store.SchemaConfig.table_configs:type_name -> bytebase.store.TableConfig- 37, // 41: bytebase.store.SchemaConfig.function_configs:type_name -> bytebase.store.FunctionConfig- 38, // 42: bytebase.store.SchemaConfig.procedure_configs:type_name -> bytebase.store.ProcedureConfig- 39, // 43: bytebase.store.SchemaConfig.view_configs:type_name -> bytebase.store.ViewConfig- 40, // 44: bytebase.store.TableConfig.column_configs:type_name -> bytebase.store.ColumnConfig- 41, // 45: bytebase.store.TableConfig.object_schema:type_name -> bytebase.store.ObjectSchema- 47, // 46: bytebase.store.TableConfig.update_time:type_name -> google.protobuf.Timestamp- 47, // 47: bytebase.store.FunctionConfig.update_time:type_name -> google.protobuf.Timestamp- 47, // 48: bytebase.store.ProcedureConfig.update_time:type_name -> google.protobuf.Timestamp- 47, // 49: bytebase.store.ViewConfig.update_time:type_name -> google.protobuf.Timestamp- 43, // 50: bytebase.store.ColumnConfig.labels:type_name -> bytebase.store.ColumnConfig.LabelsEntry- 49, // 51: bytebase.store.ColumnConfig.masking_level:type_name -> bytebase.store.MaskingLevel- 41, // 52: bytebase.store.ColumnConfig.object_schema:type_name -> bytebase.store.ObjectSchema- 5, // 53: bytebase.store.ObjectSchema.type:type_name -> bytebase.store.ObjectSchema.Type- 44, // 54: bytebase.store.ObjectSchema.struct_kind:type_name -> bytebase.store.ObjectSchema.StructKind- 45, // 55: bytebase.store.ObjectSchema.array_kind:type_name -> bytebase.store.ObjectSchema.ArrayKind+ 35, // 39: bytebase.store.DatabaseConfig.schemas:type_name -> bytebase.store.SchemaCatalog+ 36, // 40: bytebase.store.SchemaCatalog.tables:type_name -> bytebase.store.TableCatalog+ 39, // 41: bytebase.store.SchemaCatalog.function_configs:type_name -> bytebase.store.FunctionConfig+ 40, // 42: bytebase.store.SchemaCatalog.procedure_configs:type_name -> bytebase.store.ProcedureConfig+ 41, // 43: bytebase.store.SchemaCatalog.view_configs:type_name -> bytebase.store.ViewConfig+ 37, // 44: bytebase.store.TableCatalog.columns:type_name -> bytebase.store.ColumnCatalog+ 38, // 45: bytebase.store.TableCatalog.object_schema:type_name -> bytebase.store.ObjectSchema+ 47, // 46: bytebase.store.TableCatalog.update_time:type_name -> google.protobuf.Timestamp+ 43, // 47: bytebase.store.ColumnCatalog.labels:type_name -> bytebase.store.ColumnCatalog.LabelsEntry+ 49, // 48: bytebase.store.ColumnCatalog.masking_level:type_name -> bytebase.store.MaskingLevel+ 38, // 49: bytebase.store.ColumnCatalog.object_schema:type_name -> bytebase.store.ObjectSchema+ 5, // 50: bytebase.store.ObjectSchema.type:type_name -> bytebase.store.ObjectSchema.Type+ 44, // 51: bytebase.store.ObjectSchema.struct_kind:type_name -> bytebase.store.ObjectSchema.StructKind+ 45, // 52: bytebase.store.ObjectSchema.array_kind:type_name -> bytebase.store.ObjectSchema.ArrayKind+ 47, // 53: bytebase.store.FunctionConfig.update_time:type_name -> google.protobuf.Timestamp+ 47, // 54: bytebase.store.ProcedureConfig.update_time:type_name -> google.protobuf.Timestamp+ 47, // 55: bytebase.store.ViewConfig.update_time:type_name -> google.protobuf.Timestamp46, // 56: bytebase.store.ObjectSchema.StructKind.properties:type_name -> bytebase.store.ObjectSchema.StructKind.PropertiesEntry- 41, // 57: bytebase.store.ObjectSchema.ArrayKind.kind:type_name -> bytebase.store.ObjectSchema- 41, // 58: bytebase.store.ObjectSchema.StructKind.PropertiesEntry.value:type_name -> bytebase.store.ObjectSchema+ 38, // 57: bytebase.store.ObjectSchema.ArrayKind.kind:type_name -> bytebase.store.ObjectSchema+ 38, // 58: bytebase.store.ObjectSchema.StructKind.PropertiesEntry.value:type_name -> bytebase.store.ObjectSchema59, // [59:59] is the sub-list for method output_type59, // [59:59] is the sub-list for method input_type59, // [59:59] is the sub-list for extension type_name@@ -4591,8 +4589,8 @@ func file_store_database_proto_init() {(*ColumnMetadata_DefaultExpression)(nil),}file_store_database_proto_msgTypes[30].OneofWrappers = []any{}- file_store_database_proto_msgTypes[34].OneofWrappers = []any{}- file_store_database_proto_msgTypes[35].OneofWrappers = []any{+ file_store_database_proto_msgTypes[31].OneofWrappers = []any{}+ file_store_database_proto_msgTypes[32].OneofWrappers = []any{(*ObjectSchema_StructKind_)(nil),(*ObjectSchema_ArrayKind_)(nil),}diff --git a/proto/generated-go/store/setting.pb.go b/proto/generated-go/store/setting.pb.goindex cf4ec3bac0..4e877387a7 100644--- a/proto/generated-go/store/setting.pb.go+++ b/proto/generated-go/store/setting.pb.go@@ -1396,7 +1396,7 @@ type SchemaTemplateSetting_FieldTemplate struct {Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.store.Engine" json:"engine,omitempty"`Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`Column *ColumnMetadata `protobuf:"bytes,4,opt,name=column,proto3" json:"column,omitempty"`- Config *ColumnConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`+ Catalog *ColumnCatalog `protobuf:"bytes,5,opt,name=catalog,proto3" json:"catalog,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -1459,9 +1459,9 @@ func (x *SchemaTemplateSetting_FieldTemplate) GetColumn() *ColumnMetadata {return nil}-func (x *SchemaTemplateSetting_FieldTemplate) GetConfig() *ColumnConfig {+func (x *SchemaTemplateSetting_FieldTemplate) GetCatalog() *ColumnCatalog {if x != nil {- return x.Config+ return x.Catalog}return nil}@@ -1532,7 +1532,7 @@ type SchemaTemplateSetting_TableTemplate struct {Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.store.Engine" json:"engine,omitempty"`Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`Table *TableMetadata `protobuf:"bytes,4,opt,name=table,proto3" json:"table,omitempty"`- Config *TableConfig `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"`+ Catalog *TableCatalog `protobuf:"bytes,5,opt,name=catalog,proto3" json:"catalog,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -1595,9 +1595,9 @@ func (x *SchemaTemplateSetting_TableTemplate) GetTable() *TableMetadata {return nil}-func (x *SchemaTemplateSetting_TableTemplate) GetConfig() *TableConfig {+func (x *SchemaTemplateSetting_TableTemplate) GetCatalog() *TableCatalog {if x != nil {- return x.Config+ return x.Catalog}return nil}@@ -2711,7 +2711,7 @@ var file_store_setting_proto_rawDesc = []byte{0x4c, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e,0x54, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4c, 0x4f, 0x47, 0x49, 0x4e, 0x10, 0x03,0x12, 0x1b, 0x0a, 0x17, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x49,- 0x4f, 0x4e, 0x5f, 0x43, 0x52, 0x41, 0x4d, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x04, 0x22, 0xca, 0x06,+ 0x4f, 0x4e, 0x5f, 0x43, 0x52, 0x41, 0x4d, 0x5f, 0x4d, 0x44, 0x35, 0x10, 0x04, 0x22, 0xd0, 0x06,0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65,0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x5c, 0x0a, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64,0x5f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,@@ -2730,7 +2730,7 @@ var file_store_setting_proto_rawDesc = []byte{0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x54, 0x65, 0x6d, 0x70, 0x6c,0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x0e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x54,- 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x1a, 0xd9, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65,+ 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x1a, 0xdc, 0x01, 0x0a, 0x0d, 0x46, 0x69, 0x65,0x6c, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e,0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74,@@ -2740,251 +2740,252 @@ var file_store_setting_proto_rawDesc = []byte{0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x36, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65,- 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x34,- 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,- 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x6c, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79,- 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69,- 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05,- 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x74, 0x79, 0x70,- 0x65, 0x73, 0x1a, 0xd5, 0x01, 0x0a, 0x0d, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x65, 0x6d, 0x70,- 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,- 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e,- 0x67, 0x69, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79,- 0x12, 0x33, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x37,+ 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,- 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x05,- 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,- 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66,- 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0xd4, 0x06, 0x0a, 0x19, 0x44,- 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x5c, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66,- 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43,- 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74,- 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,- 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x1a, 0xd8, 0x05, 0x0a, 0x18, 0x44, 0x61, 0x74, 0x61, 0x43,+ 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07,+ 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x1a, 0x6c, 0x0a, 0x0a, 0x43, 0x6f, 0x6c, 0x75, 0x6d,+ 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65,+ 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12,+ 0x14, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,+ 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0xd8, 0x01, 0x0a, 0x0d, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,+ 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52,+ 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67,+ 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67,+ 0x6f, 0x72, 0x79, 0x12, 0x33, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01,+ 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,+ 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,+ 0x61, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x61, 0x74, 0x61,+ 0x6c, 0x6f, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,+ 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,+ 0x22, 0xd4, 0x06, 0x0a, 0x19, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x5c,+ 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x42, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43,0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,- 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x60, 0x0a, 0x06, 0x6c, 0x65, 0x76,- 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x62, 0x79, 0x74, 0x65,- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43,- 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74,- 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,- 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x65,- 0x76, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x12, 0x7e, 0x0a, 0x0e, 0x63,- 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20,- 0x03, 0x28, 0x0b, 0x32, 0x56, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,- 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,- 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44,- 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69,- 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6c, 0x61,- 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x1a, 0x63,- 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x72,- 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x18, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46,- 0x72, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x4f, 0x0a, 0x05, 0x4c, 0x65, 0x76,- 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,- 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,- 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x89, 0x01, 0x0a, 0x12, 0x44,- 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,- 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,- 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,- 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,- 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x08, 0x6c, 0x65, 0x76,- 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6c,- 0x65, 0x76, 0x65, 0x6c, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x65,- 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x1a, 0x98, 0x01, 0x0a, 0x13, 0x43, 0x6c, 0x61, 0x73, 0x73,- 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,- 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,- 0x12, 0x6b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,- 0x55, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,+ 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x1a, 0xd8, 0x05, 0x0a,+ 0x18, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74,+ 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12,+ 0x60, 0x0a, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,+ 0x48, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43,0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e,- 0x66, 0x69, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69,- 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,- 0x01, 0x22, 0xa6, 0x02, 0x0a, 0x13, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79,- 0x70, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x46, 0x0a, 0x05, 0x74, 0x79, 0x70,- 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74,- 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65,- 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65,- 0x73, 0x1a, 0xc6, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79,- 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,- 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,- 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x61,- 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72,- 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x70,- 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69,- 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61,- 0x73, 0x6b, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18,- 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x41,- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x22, 0x83, 0x09, 0x0a, 0x17, 0x4d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53,- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x51, 0x0a, 0x0a, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69,- 0x74, 0x68, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b,- 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x52, 0x0a, 0x61,- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x1a, 0x94, 0x08, 0x0a, 0x09, 0x41, 0x6c,- 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,+ 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c,+ 0x73, 0x12, 0x7e, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x56, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43,+ 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6c,+ 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x74, 0x72,+ 0x79, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,+ 0x6e, 0x12, 0x3c, 0x0a, 0x1a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,+ 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63,+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a,+ 0x4f, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20,+ 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,+ 0x1a, 0x89, 0x01, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a,0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,- 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x59, 0x0a, 0x09, 0x66,- 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a,+ 0x1e, 0x0a, 0x08, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x09, 0x48, 0x00, 0x52, 0x07, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42,+ 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x69, 0x64, 0x1a, 0x98, 0x01, 0x0a,+ 0x13, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45,+ 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x6b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x55, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73,+ 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x43, 0x6c,+ 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x76, 0x61,+ 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa6, 0x02, 0x0a, 0x13, 0x53, 0x65, 0x6d, 0x61,+ 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,+ 0x46, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30,+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,+ 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x74, 0x74,+ 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65,+ 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x1a, 0xc6, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61,+ 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c,+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x20,+ 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,+ 0x12, 0x39, 0x0a, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b,+ 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x16, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b,+ 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x16, 0x66,+ 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,+ 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x66, 0x75, 0x6c,+ 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64,+ 0x22, 0x83, 0x09, 0x0a, 0x17, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f,+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x51, 0x0a, 0x0a,+ 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,+ 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69,+ 0x74, 0x68, 0x6d, 0x52, 0x0a, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x73, 0x1a,+ 0x94, 0x08, 0x0a, 0x09, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x0e, 0x0a,+ 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a,+ 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,+ 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,+ 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,+ 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,+ 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,+ 0x79, 0x12, 0x59, 0x0a, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67,+ 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c,+ 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b,+ 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x5c, 0x0a, 0x0a,+ 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,+ 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69,+ 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52,+ 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x56, 0x0a, 0x08, 0x6d, 0x64,+ 0x35, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65,+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e,+ 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x64, 0x35, 0x4d, 0x61,+ 0x73, 0x6b, 0x12, 0x6c, 0x0a, 0x10, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74, 0x65,+ 0x72, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61,+ 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65,+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e,+ 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00,+ 0x52, 0x0e, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b,+ 0x1a, 0x2e, 0x0a, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x22, 0x0a, 0x0c,+ 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e,+ 0x1a, 0xbb, 0x01, 0x0a, 0x09, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x59,+ 0x0a, 0x06, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41,0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d,0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,- 0x6d, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x08, 0x66, 0x75,- 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x5c, 0x0a, 0x0a, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x5f,- 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b,- 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61,- 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x09, 0x72, 0x61, 0x6e, 0x67, 0x65,- 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x56, 0x0a, 0x08, 0x6d, 0x64, 0x35, 0x5f, 0x6d, 0x61, 0x73, 0x6b,- 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41,- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,- 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73,- 0x6b, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x64, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x6c, 0x0a, 0x10,- 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x73, 0x6b,- 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41,- 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,- 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f,- 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x6e, 0x65,- 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x1a, 0x2e, 0x0a, 0x08, 0x46, 0x75,- 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69,- 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75,- 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0xbb, 0x01, 0x0a, 0x09, 0x52,- 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x59, 0x0a, 0x06, 0x73, 0x6c, 0x69, 0x63,- 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x41, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,- 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67,- 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6c, 0x69,- 0x63, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x05, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05,- 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61,- 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,- 0x03, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75,- 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73,- 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d, 0x0a, 0x07, 0x4d, 0x44, 0x35, 0x4d,- 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x1a, 0x8e, 0x02, 0x0a, 0x0e, 0x49, 0x6e, 0x6e, 0x65,- 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72,- 0x65, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09,- 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x75, 0x66,- 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73,- 0x75, 0x66, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73,- 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,- 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x04,- 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x49, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b,- 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e,- 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x4d, 0x61, 0x73,- 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x3b, 0x0a, 0x08, 0x4d,- 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x5f,- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,- 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a,- 0x05, 0x4f, 0x55, 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x06, 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b,- 0x22, 0xd0, 0x04, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 0x12, 0x38, 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53,- 0x6c, 0x61, 0x63, 0x6b, 0x52, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x12, 0x3b, 0x0a, 0x06, 0x66,- 0x65, 0x69, 0x73, 0x68, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70,- 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x46, 0x65, 0x69, 0x73, 0x68, 0x75,- 0x52, 0x06, 0x66, 0x65, 0x69, 0x73, 0x68, 0x75, 0x12, 0x38, 0x0a, 0x05, 0x77, 0x65, 0x63, 0x6f,- 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65,- 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x57, 0x65, 0x63, 0x6f, 0x6d, 0x52, 0x05, 0x77, 0x65, 0x63,- 0x6f, 0x6d, 0x12, 0x35, 0x0a, 0x04, 0x6c, 0x61, 0x72, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,- 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4c,- 0x61, 0x72, 0x6b, 0x52, 0x04, 0x6c, 0x61, 0x72, 0x6b, 0x1a, 0x37, 0x0a, 0x05, 0x53, 0x6c, 0x61,- 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05,- 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b,- 0x65, 0x6e, 0x1a, 0x58, 0x0a, 0x06, 0x46, 0x65, 0x69, 0x73, 0x68, 0x75, 0x12, 0x18, 0x0a, 0x07,- 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65,- 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a,- 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,- 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x6d, 0x0a, 0x05,- 0x57, 0x65, 0x63, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12,- 0x17, 0x0a, 0x07, 0x63, 0x6f, 0x72, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x06, 0x63, 0x6f, 0x72, 0x70, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e,- 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e,- 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x1a, 0x56, 0x0a, 0x04, 0x4c,- 0x61, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x15, 0x0a,- 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,- 0x70, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x72,- 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x53, 0x65, 0x63,- 0x72, 0x65, 0x74, 0x22, 0x33, 0x0a, 0x1b, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x53, 0x51,- 0x4c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,- 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x23, 0x0a, 0x0b, 0x53, 0x43, 0x49, 0x4d,- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x03,- 0x0a, 0x1a, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69,- 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a,- 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,- 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x72,- 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20,- 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62,- 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6c, 0x65,- 0x74, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75,- 0x69, 0x72, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x38, 0x0a, 0x18, 0x72, 0x65, 0x71,- 0x75, 0x69, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x6c,- 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x72, 0x65, 0x71,- 0x75, 0x69, 0x72, 0x65, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x4c, 0x65, 0x74,- 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x19, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x73,- 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72,- 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x53,- 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x12,- 0x51, 0x0a, 0x26, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74,- 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x66, 0x69,- 0x72, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52,- 0x21, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x50, 0x61, 0x73,- 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x6f, 0x72, 0x46, 0x69, 0x72, 0x73, 0x74, 0x4c, 0x6f, 0x67,- 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x11, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x72,- 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 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, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,- 0x72, 0x64, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65,- 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41,- 0x4e, 0x47, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49,- 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x44, 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02,- 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,- 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x6d, 0x2e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x53, 0x6c, 0x69, 0x63,+ 0x65, 0x52, 0x06, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x53, 0x0a, 0x05, 0x53, 0x6c, 0x69,+ 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x75,+ 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1d,+ 0x0a, 0x07, 0x4d, 0x44, 0x35, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x61, 0x6c,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x61, 0x6c, 0x74, 0x1a, 0x8e, 0x02,+ 0x0a, 0x0e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b,+ 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x01,+ 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12,+ 0x1d, 0x0a, 0x0a, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x4c, 0x65, 0x6e, 0x12, 0x22,+ 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 0x69,+ 0x6f, 0x6e, 0x12, 0x5d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x49, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,+ 0x68, 0x6d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69,+ 0x74, 0x68, 0x6d, 0x2e, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4f, 0x75, 0x74, 0x65, 0x72, 0x4d, 0x61,+ 0x73, 0x6b, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,+ 0x65, 0x22, 0x3b, 0x0a, 0x08, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a,+ 0x15, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x4e, 0x45,+ 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4f, 0x55, 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0x06,+ 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0xd0, 0x04, 0x0a, 0x0c, 0x41, 0x70, 0x70, 0x49, 0x4d,+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x38, 0x0a, 0x05, 0x73, 0x6c, 0x61, 0x63, 0x6b,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x52, 0x05, 0x73, 0x6c, 0x61, 0x63,+ 0x6b, 0x12, 0x3b, 0x0a, 0x06, 0x66, 0x65, 0x69, 0x73, 0x68, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,+ 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e,+ 0x46, 0x65, 0x69, 0x73, 0x68, 0x75, 0x52, 0x06, 0x66, 0x65, 0x69, 0x73, 0x68, 0x75, 0x12, 0x38,+ 0x0a, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41,+ 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x57, 0x65, 0x63, 0x6f,+ 0x6d, 0x52, 0x05, 0x77, 0x65, 0x63, 0x6f, 0x6d, 0x12, 0x35, 0x0a, 0x04, 0x6c, 0x61, 0x72, 0x6b,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x49, 0x4d, 0x53, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x61, 0x72, 0x6b, 0x52, 0x04, 0x6c, 0x61, 0x72, 0x6b, 0x1a,+ 0x37, 0x0a, 0x05, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62,+ 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c,+ 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x58, 0x0a, 0x06, 0x46, 0x65, 0x69, 0x73,+ 0x68, 0x75, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20,+ 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x15, 0x0a, 0x06,+ 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,+ 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x70, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65,+ 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x70, 0x70, 0x53, 0x65, 0x63, 0x72,+ 0x65, 0x74, 0x1a, 0x6d, 0x0a, 0x05, 0x57, 0x65, 0x63, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x65,+ 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e,+ 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x63, 0x6f, 0x72, 0x70, 0x5f, 0x69, 0x64,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x72, 0x70, 0x49, 0x64, 0x12, 0x19,+ 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63,+ 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65,+ 0x74, 0x1a, 0x56, 0x0a, 0x04, 0x4c, 0x61, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61,+ 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62,+ 0x6c, 0x65, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x61, 0x70, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x70,+ 0x70, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,+ 0x61, 0x70, 0x70, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x22, 0x33, 0x0a, 0x1b, 0x4d, 0x61, 0x78,+ 0x69, 0x6d, 0x75, 0x6d, 0x53, 0x51, 0x4c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x53, 0x69, 0x7a,+ 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69,+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x23,+ 0x0a, 0x0b, 0x53, 0x43, 0x49, 0x4d, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a,+ 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f,+ 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x03, 0x0a, 0x1a, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64,+ 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69,+ 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74,+ 0x68, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x6e, 0x75, 0x6d,+ 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69,+ 0x72, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75,+ 0x69, 0x72, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,+ 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12,+ 0x38, 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72,+ 0x63, 0x61, 0x73, 0x65, 0x5f, 0x6c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x08, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63,+ 0x61, 0x73, 0x65, 0x4c, 0x65, 0x74, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x19, 0x72, 0x65, 0x71,+ 0x75, 0x69, 0x72, 0x65, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x63, 0x68, 0x61,+ 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x72, 0x65,+ 0x71, 0x75, 0x69, 0x72, 0x65, 0x53, 0x70, 0x65, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x68, 0x61, 0x72,+ 0x61, 0x63, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x26, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,+ 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f,+ 0x66, 0x6f, 0x72, 0x5f, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18,+ 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x21, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x52, 0x65,+ 0x73, 0x65, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x46, 0x6f, 0x72, 0x46, 0x69,+ 0x72, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x11, 0x70, 0x61, 0x73, 0x73,+ 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 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,+ 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,+ 0x2a, 0x54, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x68, 0x61, 0x6e,+ 0x67, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x20, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41,+ 0x53, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08,+ 0x50, 0x49, 0x50, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x44,+ 0x49, 0x54, 0x4f, 0x52, 0x10, 0x02, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,+ 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x33,}var (@@ -3048,9 +3049,9 @@ var file_store_setting_proto_goTypes = []any{(*expr.Expr)(nil), // 43: google.type.Expr(Engine)(0), // 44: bytebase.store.Engine(*ColumnMetadata)(nil), // 45: bytebase.store.ColumnMetadata- (*ColumnConfig)(nil), // 46: bytebase.store.ColumnConfig+ (*ColumnCatalog)(nil), // 46: bytebase.store.ColumnCatalog(*TableMetadata)(nil), // 47: bytebase.store.TableMetadata- (*TableConfig)(nil), // 48: bytebase.store.TableConfig+ (*TableCatalog)(nil), // 48: bytebase.store.TableCatalog}var file_store_setting_proto_depIdxs = []int32{40, // 0: bytebase.store.WorkspaceProfileSetting.token_duration:type_name -> google.protobuf.Duration@@ -3078,11 +3079,11 @@ var file_store_setting_proto_depIdxs = []int32{43, // 22: bytebase.store.WorkspaceApprovalSetting.Rule.condition:type_name -> google.type.Expr44, // 23: bytebase.store.SchemaTemplateSetting.FieldTemplate.engine:type_name -> bytebase.store.Engine45, // 24: bytebase.store.SchemaTemplateSetting.FieldTemplate.column:type_name -> bytebase.store.ColumnMetadata- 46, // 25: bytebase.store.SchemaTemplateSetting.FieldTemplate.config:type_name -> bytebase.store.ColumnConfig+ 46, // 25: bytebase.store.SchemaTemplateSetting.FieldTemplate.catalog:type_name -> bytebase.store.ColumnCatalog44, // 26: bytebase.store.SchemaTemplateSetting.ColumnType.engine:type_name -> bytebase.store.Engine44, // 27: bytebase.store.SchemaTemplateSetting.TableTemplate.engine:type_name -> bytebase.store.Engine47, // 28: bytebase.store.SchemaTemplateSetting.TableTemplate.table:type_name -> bytebase.store.TableMetadata- 48, // 29: bytebase.store.SchemaTemplateSetting.TableTemplate.config:type_name -> bytebase.store.TableConfig+ 48, // 29: bytebase.store.SchemaTemplateSetting.TableTemplate.catalog:type_name -> bytebase.store.TableCatalog26, // 30: bytebase.store.DataClassificationSetting.DataClassificationConfig.levels:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.Level28, // 31: bytebase.store.DataClassificationSetting.DataClassificationConfig.classification:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry27, // 32: bytebase.store.DataClassificationSetting.DataClassificationConfig.ClassificationEntry.value:type_name -> bytebase.store.DataClassificationSetting.DataClassificationConfig.DataClassificationdiff --git a/proto/store/database.proto b/proto/store/database.protoindex 28bd5c704d..dbe0c80f8e 100644--- a/proto/store/database.proto+++ b/proto/store/database.proto@@ -680,16 +680,16 @@ message DatabaseConfig {string name = 1;// The schema_configs is the list of configs for schemas in a database.- repeated SchemaConfig schema_configs = 2;+ repeated SchemaCatalog schemas = 2;}-message SchemaConfig {+message SchemaCatalog {// The name is the schema name.// It is an empty string for databases without such concept such as MySQL.string name = 1;// The table_configs is the list of configs for tables in a schema.- repeated TableConfig table_configs = 2;+ repeated TableCatalog tables = 2;repeated FunctionConfig function_configs = 3;@@ -698,12 +698,12 @@ message SchemaConfig {repeated ViewConfig view_configs = 5;}-message TableConfig {+message TableCatalog {// The name is the name of a table.string name = 1;// The column_configs is the ordered list of configs for columns in a table.- repeated ColumnConfig column_configs = 2;+ repeated ColumnCatalog columns = 2;optional ObjectSchema object_schema = 7;@@ -721,6 +721,48 @@ message TableConfig {google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];}+message ColumnCatalog {+ // The name is the name of a column.+ string name = 1;++ string semantic_type_id = 2;++ // The user labels for a column.+ map<string, string> labels = 3;++ string classification_id = 4;++ MaskingLevel masking_level = 5;++ string full_masking_algorithm_id = 6;++ string partial_masking_algorithm_id = 7;++ optional ObjectSchema object_schema = 8;+}++message ObjectSchema {+ enum Type {+ TYPE_UNSPECIFIED = 0;+ STRING = 1;+ NUMBER = 2;+ BOOLEAN = 3;+ OBJECT = 4;+ ARRAY = 5;+ }+ Type type = 1;+ message StructKind {+ map<string, ObjectSchema> properties = 1;+ }+ message ArrayKind {+ ObjectSchema kind = 1;+ }+ oneof kind {+ StructKind struct_kind = 2;+ ArrayKind array_kind = 3;+ }+}+message FunctionConfig {// The name is the name of a function.string name = 1;@@ -768,45 +810,3 @@ message ViewConfig {// The timestamp when the view is updated in branch.google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];}--message ColumnConfig {- // The name is the name of a column.- string name = 1;-- string semantic_type_id = 2;-- // The user labels for a column.- map<string, string> labels = 3;-- string classification_id = 4;-- MaskingLevel masking_level = 5;-- string full_masking_algorithm_id = 6;-- string partial_masking_algorithm_id = 7;-- optional ObjectSchema object_schema = 8;-}--message ObjectSchema {- enum Type {- TYPE_UNSPECIFIED = 0;- STRING = 1;- NUMBER = 2;- BOOLEAN = 3;- OBJECT = 4;- ARRAY = 5;- }- Type type = 1;- message StructKind {- map<string, ObjectSchema> properties = 1;- }- message ArrayKind {- ObjectSchema kind = 1;- }- oneof kind {- StructKind struct_kind = 2;- ArrayKind array_kind = 3;- }-}diff --git a/proto/store/setting.proto b/proto/store/setting.protoindex 4aafcbc4bf..fb96f4addf 100644--- a/proto/store/setting.proto+++ b/proto/store/setting.proto@@ -160,7 +160,7 @@ message SchemaTemplateSetting {ColumnMetadata column = 4;- ColumnConfig config = 5;+ ColumnCatalog catalog = 5;}repeated FieldTemplate field_templates = 1;@@ -184,7 +184,7 @@ message SchemaTemplateSetting {TableMetadata table = 4;- TableConfig config = 5;+ TableCatalog catalog = 5;}repeated TableTemplate table_templates = 3;