Skip to content

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

chore: rename proto (#14891)

Danny Xue5163b5c634a
diff --git a/backend/api/v1/branch_merge_test.go b/backend/api/v1/branch_merge_test.go
index 224cb2d700..fa1918d356 100644
--- a/backend/api/v1/branch_merge_test.go
+++ b/backend/api/v1/branch_merge_test.go
@@ -291,8 +291,8 @@ func TestApplyUpdateInfoDiffRootNode(t *testing.T) {
UpdateTime: time1,
Columns: []*storepb.ColumnCatalog{
{
- Name: "t",
- ClassificationId: "1-1-1",
+ Name: "t",
+ Classification: "1-1-1",
},
},
},
@@ -317,8 +317,8 @@ func TestApplyUpdateInfoDiffRootNode(t *testing.T) {
SourceBranch: "feat/01",
Columns: []*storepb.ColumnCatalog{
{
- Name: "t",
- ClassificationId: "1-1-1",
+ Name: "t",
+ Classification: "1-1-1",
},
},
},
diff --git a/backend/api/v1/branch_service.go b/backend/api/v1/branch_service.go
index 2705a6a9fb..dbbc559e48 100644
--- a/backend/api/v1/branch_service.go
+++ b/backend/api/v1/branch_service.go
@@ -976,14 +976,14 @@ func sanitizeCommentForSchemaMetadata(dbSchema *storepb.DatabaseSchemaMetadata,
tableConfig := schemaConfig.CreateOrGetTableConfig(table.Name)
classificationID := ""
if !classificationFromConfig {
- classificationID = tableConfig.ClassificationID
+ classificationID = tableConfig.Classification
}
table.Comment = common.GetCommentFromClassificationAndUserComment(classificationID, table.UserComment)
for _, col := range table.Columns {
columnConfig := tableConfig.CreateOrGetColumnConfig(col.Name)
classificationID := ""
if !classificationFromConfig {
- classificationID = columnConfig.ClassificationId
+ classificationID = columnConfig.Classification
}
col.Comment = common.GetCommentFromClassificationAndUserComment(classificationID, col.UserComment)
}
@@ -1634,11 +1634,11 @@ func alignDatabaseConfig(metadata *storepb.DatabaseSchemaMetadata, config *store
}
//nolint
tableConfig := &storepb.TableCatalog{
- Name: tableName,
- ClassificationId: oldTableConfig.ClassificationId,
- Updater: oldTableConfig.Updater,
- UpdateTime: oldTableConfig.UpdateTime,
- SourceBranch: oldTableConfig.SourceBranch,
+ Name: tableName,
+ Classification: oldTableConfig.Classification,
+ Updater: oldTableConfig.Updater,
+ UpdateTime: oldTableConfig.UpdateTime,
+ SourceBranch: oldTableConfig.SourceBranch,
}
columnConfigMap := buildMap(oldTableConfig.Columns, func(c *storepb.ColumnCatalog) string {
return c.Name
@@ -1651,10 +1651,10 @@ func alignDatabaseConfig(metadata *storepb.DatabaseSchemaMetadata, config *store
})
} else {
columnConfig := &storepb.ColumnCatalog{
- Name: columnName,
- ClassificationId: columnConfig.ClassificationId,
- SemanticTypeId: columnConfig.SemanticTypeId,
- Labels: columnConfig.Labels,
+ Name: columnName,
+ Classification: columnConfig.Classification,
+ SemanticType: columnConfig.SemanticType,
+ Labels: columnConfig.Labels,
}
tableConfig.Columns = append(tableConfig.Columns, columnConfig)
}
@@ -1750,7 +1750,7 @@ func setClassificationIDToConfig(a, b *storepb.DatabaseConfig) {
if !ok {
continue
}
- tableConfig.ClassificationId = aTableConfig.ClassificationId
+ tableConfig.Classification = aTableConfig.Classification
aColumnConfigMap := buildMap(aTableConfig.Columns, func(c *storepb.ColumnCatalog) string {
return c.Name
})
@@ -1759,7 +1759,7 @@ func setClassificationIDToConfig(a, b *storepb.DatabaseConfig) {
if !ok {
continue
}
- columnConfig.ClassificationId = aColumnConfig.ClassificationId
+ columnConfig.Classification = aColumnConfig.Classification
}
}
}
diff --git a/backend/api/v1/database_catalog_service.go b/backend/api/v1/database_catalog_service.go
index 3739ccbb8c..a31e001390 100644
--- a/backend/api/v1/database_catalog_service.go
+++ b/backend/api/v1/database_catalog_service.go
@@ -125,8 +125,8 @@ func convertDatabaseConfig(database *store.DatabaseMessage, config *storepb.Data
func convertTableCatalog(t *storepb.TableCatalog) *v1pb.TableCatalog {
tc := &v1pb.TableCatalog{
- Name: t.Name,
- ClassificationId: t.ClassificationId,
+ Name: t.Name,
+ Classification: t.Classification,
}
if t.ObjectSchema != nil && len(t.Columns) == 0 {
tc.Kind = &v1pb.TableCatalog_ObjectSchema{ObjectSchema: convertStoreObjectSchema(t.ObjectSchema)}
@@ -144,11 +144,11 @@ func convertTableCatalog(t *storepb.TableCatalog) *v1pb.TableCatalog {
func convertColumnCatalog(c *storepb.ColumnCatalog) *v1pb.ColumnCatalog {
return &v1pb.ColumnCatalog{
- Name: c.Name,
- SemanticTypeId: c.SemanticTypeId,
- Labels: c.Labels,
- ClassificationId: c.ClassificationId,
- ObjectSchema: convertStoreObjectSchema(c.ObjectSchema),
+ Name: c.Name,
+ SemanticType: c.SemanticType,
+ Labels: c.Labels,
+ Classification: c.Classification,
+ ObjectSchema: convertStoreObjectSchema(c.ObjectSchema),
}
}
@@ -202,8 +202,8 @@ func convertDatabaseCatalog(catalog *v1pb.DatabaseCatalog) *storepb.DatabaseConf
func convertV1TableCatalog(t *v1pb.TableCatalog) *storepb.TableCatalog {
tc := &storepb.TableCatalog{
- Name: t.Name,
- ClassificationId: t.ClassificationId,
+ Name: t.Name,
+ Classification: t.Classification,
}
if t.GetObjectSchema() != nil && len(t.GetColumns().GetColumns()) == 0 {
tc.ObjectSchema = convertV1ObjectSchema(t.GetObjectSchema())
@@ -217,11 +217,11 @@ func convertV1TableCatalog(t *v1pb.TableCatalog) *storepb.TableCatalog {
func convertV1ColumnCatalog(c *v1pb.ColumnCatalog) *storepb.ColumnCatalog {
return &storepb.ColumnCatalog{
- Name: c.Name,
- SemanticTypeId: c.SemanticTypeId,
- Labels: c.Labels,
- ClassificationId: c.ClassificationId,
- ObjectSchema: convertV1ObjectSchema(c.GetObjectSchema()),
+ Name: c.Name,
+ SemanticType: c.SemanticType,
+ Labels: c.Labels,
+ Classification: c.Classification,
+ ObjectSchema: convertV1ObjectSchema(c.GetObjectSchema()),
}
}
diff --git a/backend/api/v1/database_converter.go b/backend/api/v1/database_converter.go
index 0ee4e99410..354b20f9fb 100644
--- a/backend/api/v1/database_converter.go
+++ b/backend/api/v1/database_converter.go
@@ -549,7 +549,7 @@ func convertStoreViewConfig(ctx context.Context, config *storepb.ViewConfig, opt
func convertStoreTableConfig(ctx context.Context, table *storepb.TableCatalog, optionalStores *store.Store) *v1pb.TableConfig {
t := &v1pb.TableConfig{
Name: table.Name,
- ClassificationId: table.ClassificationId,
+ ClassificationId: table.Classification,
Updater: getUpdaterFromUID(ctx, table.Updater, optionalStores),
SourceBranch: table.SourceBranch,
UpdateTime: table.UpdateTime,
@@ -566,9 +566,9 @@ func convertStoreTableConfig(ctx context.Context, table *storepb.TableCatalog, o
func convertStoreColumnConfig(column *storepb.ColumnCatalog) *v1pb.ColumnConfig {
return &v1pb.ColumnConfig{
Name: column.Name,
- SemanticTypeId: column.SemanticTypeId,
+ SemanticTypeId: column.SemanticType,
Labels: column.Labels,
- ClassificationId: column.ClassificationId,
+ ClassificationId: column.Classification,
}
}
@@ -1057,11 +1057,11 @@ func convertV1ProcedureConfig(ctx context.Context, procedure *v1pb.ProcedureConf
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),
- UpdateTime: table.UpdateTime,
- SourceBranch: table.SourceBranch,
+ Name: table.Name,
+ Classification: table.ClassificationId,
+ Updater: getUpdaterFromEmail(ctx, table.Updater, optionalStores),
+ UpdateTime: table.UpdateTime,
+ SourceBranch: table.SourceBranch,
}
for _, column := range table.ColumnConfigs {
if column == nil {
@@ -1074,10 +1074,10 @@ func convertV1TableConfig(ctx context.Context, table *v1pb.TableConfig, optional
func convertV1ColumnConfig(column *v1pb.ColumnConfig) *storepb.ColumnCatalog {
return &storepb.ColumnCatalog{
- Name: column.Name,
- SemanticTypeId: column.SemanticTypeId,
- Labels: column.Labels,
- ClassificationId: column.ClassificationId,
+ Name: column.Name,
+ SemanticType: column.SemanticTypeId,
+ Labels: column.Labels,
+ Classification: column.ClassificationId,
}
}
diff --git a/backend/api/v1/masking_evaluator.go b/backend/api/v1/masking_evaluator.go
index ed5893220b..1db08f40e9 100644
--- a/backend/api/v1/masking_evaluator.go
+++ b/backend/api/v1/masking_evaluator.go
@@ -76,7 +76,7 @@ func (m *maskingLevelEvaluator) evaluateSemanticTypeOfColumn(
return "", errors.Wrapf(err, "failed to evaluate masking level of column")
}
if semanticTypeID == "" {
- semanticTypeID = columnConfig.GetSemanticTypeId()
+ semanticTypeID = columnConfig.GetSemanticType()
}
if semanticTypeID != "" {
pass, err := evaluateExceptionOfColumn(databaseMessage, schemaName, tableName, columnName, filteredMaskingExceptions)
@@ -99,7 +99,7 @@ func (m *maskingLevelEvaluator) evaluateGlobalMaskingLevelOfColumn(
dataClassificationConfig := m.getDataClassificationConfig(databaseProjectDataClassificationID)
// If the column has DEFAULT masking level in maskingPolicy or not set yet,
// we will eval the maskingRulePolicy to get the maskingLevel.
- classificationLevel := getClassificationLevelOfColumn(columnConfig.GetClassificationId(), dataClassificationConfig)
+ classificationLevel := getClassificationLevelOfColumn(columnConfig.GetClassification(), dataClassificationConfig)
for _, maskingRule := range m.maskingRules {
maskingRuleAttributes := map[string]any{
"environment_id": databaseMessage.EffectiveEnvironmentID,
diff --git a/backend/api/v1/masking_evaluator_test.go b/backend/api/v1/masking_evaluator_test.go
index 2c1227db4c..a9578b1ab4 100644
--- a/backend/api/v1/masking_evaluator_test.go
+++ b/backend/api/v1/masking_evaluator_test.go
@@ -88,7 +88,7 @@ func TestEvalMaskingLevelOfColumn(t *testing.T) {
tableName: "employees",
columnName: "salary",
columnCatalog: &storepb.ColumnCatalog{
- ClassificationId: "1-1-1",
+ Classification: "1-1-1",
},
maskingRulePolicy: &storepb.MaskingRulePolicy{
Rules: []*storepb.MaskingRulePolicy_MaskingRule{
@@ -112,7 +112,7 @@ func TestEvalMaskingLevelOfColumn(t *testing.T) {
tableName: "employees",
columnName: "salary",
columnCatalog: &storepb.ColumnCatalog{
- ClassificationId: "1-1-1",
+ Classification: "1-1-1",
},
maskingRulePolicy: &storepb.MaskingRulePolicy{
Rules: []*storepb.MaskingRulePolicy_MaskingRule{
@@ -144,7 +144,7 @@ func TestEvalMaskingLevelOfColumn(t *testing.T) {
tableName: "employees",
columnName: "salary",
columnCatalog: &storepb.ColumnCatalog{
- SemanticTypeId: "salary-amount",
+ SemanticType: "salary-amount",
},
maskingRulePolicy: &storepb.MaskingRulePolicy{},
dataClassification: defaultClassification,
diff --git a/backend/migrator/migration/prod/3.2/0009##catalog_id.sql b/backend/migrator/migration/prod/3.2/0009##catalog_id.sql
new file mode 100644
index 0000000000..0b25ccfb30
--- /dev/null
+++ b/backend/migrator/migration/prod/3.2/0009##catalog_id.sql
@@ -0,0 +1,4 @@
+UPDATE db_schema
+SET config = replace(config::TEXT, 'semanticTypeId', 'semanticType')::JSONB;
+UPDATE db_schema
+SET config = replace(config::TEXT, 'classificationId', 'classification')::JSONB;
\ No newline at end of file
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index 1ed2ab03ff..52b184d593 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -231,5 +231,5 @@ func TestMigrationCompatibility(t *testing.T) {
func TestGetCutoffVersion(t *testing.T) {
releaseVersion, err := getProdCutoffVersion()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("3.2.8"), releaseVersion)
+ require.Equal(t, semver.MustParse("3.2.9"), releaseVersion)
}
diff --git a/backend/runner/schemasync/syncer.go b/backend/runner/schemasync/syncer.go
index 42d030d6a4..44b643d212 100644
--- a/backend/runner/schemasync/syncer.go
+++ b/backend/runner/schemasync/syncer.go
@@ -771,14 +771,14 @@ func setClassificationAndUserCommentFromComment(dbSchema *storepb.DatabaseSchema
classification, userComment := common.GetClassificationAndUserComment(table.Comment, classificationConfig)
table.UserComment = userComment
- tableConfig.ClassificationID = classification
+ tableConfig.Classification = classification
for _, col := range table.Columns {
columnConfig := tableConfig.CreateOrGetColumnConfig(col.Name)
colClassification, colUserComment := common.GetClassificationAndUserComment(col.Comment, classificationConfig)
col.UserComment = colUserComment
- columnConfig.ClassificationId = colClassification
+ columnConfig.Classification = colClassification
if isEmptyColumnConfig(columnConfig) {
tableConfig.RemoveColumnConfig(col.Name)
@@ -797,8 +797,8 @@ func setClassificationAndUserCommentFromComment(dbSchema *storepb.DatabaseSchema
func isEmptyColumnConfig(config *storepb.ColumnCatalog) bool {
return config == nil || (len(config.Labels) == 0 &&
- config.ClassificationId == "" &&
- config.SemanticTypeId == "")
+ config.Classification == "" &&
+ config.SemanticType == "")
}
func setUserCommentFromComment(dbSchema *storepb.DatabaseSchemaMetadata) {
diff --git a/backend/server/init.go b/backend/server/init.go
index 6557a86af1..bd8d07114c 100644
--- a/backend/server/init.go
+++ b/backend/server/init.go
@@ -288,9 +288,9 @@ func (s *Server) migrateMaskingData(ctx context.Context) error {
tableConfig := schemaConfig.CreateOrGetTableConfig(mask.Table)
columnConfig := tableConfig.CreateOrGetColumnConfig(mask.Column)
if mask.FullMaskingAlgorithmId != "" {
- columnConfig.SemanticTypeId = mask.FullMaskingAlgorithmId
+ columnConfig.SemanticType = mask.FullMaskingAlgorithmId
} else if mask.PartialMaskingAlgorithmId != "" {
- columnConfig.SemanticTypeId = mask.PartialMaskingAlgorithmId
+ columnConfig.SemanticType = mask.PartialMaskingAlgorithmId
}
}
@@ -335,16 +335,16 @@ func (s *Server) migrateCatalog(ctx context.Context) error {
switch col.GetMaskingLevel() {
case storepb.MaskingLevel_FULL:
if col.GetFullMaskingAlgorithmId() != "" {
- col.SemanticTypeId = col.GetFullMaskingAlgorithmId()
+ col.SemanticType = col.GetFullMaskingAlgorithmId()
} else {
- col.SemanticTypeId = "default"
+ col.SemanticType = "default"
}
updated = true
case storepb.MaskingLevel_PARTIAL:
if col.GetPartialMaskingAlgorithmId() != "" {
- col.SemanticTypeId = col.GetPartialMaskingAlgorithmId()
+ col.SemanticType = col.GetPartialMaskingAlgorithmId()
} else {
- col.SemanticTypeId = "default-partial"
+ col.SemanticType = "default-partial"
}
updated = true
}
diff --git a/backend/server/onboard.go b/backend/server/onboard.go
index 2b46379281..f41a1f6d26 100644
--- a/backend/server/onboard.go
+++ b/backend/server/onboard.go
@@ -319,7 +319,7 @@ func (s *Server) generateOnboardingData(ctx context.Context, user *store.UserMes
schemaConfig := dbModelConfig.CreateOrGetSchemaConfig("public")
tableConfig := schemaConfig.CreateOrGetTableConfig("salary")
columnConfig := tableConfig.CreateOrGetColumnConfig("amount")
- columnConfig.SemanticTypeId = "default"
+ columnConfig.SemanticType = "default"
if err := s.store.UpdateDBSchema(ctx, prodDatabase.UID, &store.UpdateDBSchemaMessage{Config: dbModelConfig.BuildDatabaseConfig()}, userID); err != nil {
return errors.Wrapf(err, "failed to update db config for database %v", prodDatabase.UID)
diff --git a/backend/store/model/database.go b/backend/store/model/database.go
index 6d8ca3727f..fdf47c1801 100644
--- a/backend/store/model/database.go
+++ b/backend/store/model/database.go
@@ -191,8 +191,8 @@ func NewDatabaseConfig(config *storepb.DatabaseConfig) *DatabaseConfig {
}
for _, table := range schema.Tables {
tableConfig := &TableConfig{
- ClassificationID: table.ClassificationId,
- internal: make(map[string]*storepb.ColumnCatalog),
+ Classification: table.Classification,
+ internal: make(map[string]*storepb.ColumnCatalog),
}
for _, column := range table.Columns {
tableConfig.internal[column.Name] = column
@@ -227,14 +227,14 @@ func (d *DatabaseConfig) BuildDatabaseConfig() *storepb.DatabaseConfig {
schemaConfig := &storepb.SchemaCatalog{Name: schemaName}
for tableName, tConfig := range sConfig.internal {
- tableConfig := &storepb.TableCatalog{Name: tableName, ClassificationId: tConfig.ClassificationID}
+ tableConfig := &storepb.TableCatalog{Name: tableName, Classification: tConfig.Classification}
for colName, colConfig := range tConfig.internal {
tableConfig.Columns = append(tableConfig.Columns, &storepb.ColumnCatalog{
- Name: colName,
- SemanticTypeId: colConfig.SemanticTypeId,
- Labels: colConfig.Labels,
- ClassificationId: colConfig.ClassificationId,
+ Name: colName,
+ SemanticType: colConfig.SemanticType,
+ Labels: colConfig.Labels,
+ Classification: colConfig.Classification,
})
}
schemaConfig.Tables = append(schemaConfig.Tables, tableConfig)
@@ -273,8 +273,8 @@ func (s *SchemaConfig) RemoveTableConfig(name string) {
// TableConfig is the config for a table.
type TableConfig struct {
- ClassificationID string
- internal map[string]*storepb.ColumnCatalog
+ Classification string
+ internal map[string]*storepb.ColumnCatalog
}
// CreateOrGetColumnConfig creates or gets the column config by name.
@@ -295,7 +295,7 @@ func (t *TableConfig) RemoveColumnConfig(name string) {
// RemoveColumnConfig delete the column config by name.
func (t *TableConfig) IsEmpty() bool {
- return len(t.internal) == 0 && t.ClassificationID == ""
+ return len(t.internal) == 0 && t.Classification == ""
}
// DatabaseMetadata is the metadata for a database.
diff --git a/backend/tests/sensitive_data_test.go b/backend/tests/sensitive_data_test.go
index 99e1d0763d..a7cb6feddc 100644
--- a/backend/tests/sensitive_data_test.go
+++ b/backend/tests/sensitive_data_test.go
@@ -219,12 +219,12 @@ func TestSensitiveData(t *testing.T) {
Columns: &v1pb.TableCatalog_Columns{
Columns: []*v1pb.ColumnCatalog{
{
- Name: "id",
- SemanticTypeId: "default",
+ Name: "id",
+ SemanticType: "default",
},
{
- Name: "author",
- SemanticTypeId: "default",
+ Name: "author",
+ SemanticType: "default",
},
},
},
diff --git a/backend/utils/database_config_merge.go b/backend/utils/database_config_merge.go
index 021e5e9e0c..c11d5e3a4f 100644
--- a/backend/utils/database_config_merge.go
+++ b/backend/utils/database_config_merge.go
@@ -196,7 +196,7 @@ func mergeTableConfig(target, baseline, current *storepb.TableCatalog) *storepb.
delete(currentMap, tableName)
}
- result := &storepb.TableCatalog{Name: current.Name, ClassificationId: current.ClassificationId}
+ result := &storepb.TableCatalog{Name: current.Name, Classification: current.Classification}
lastUpdater, lastUpdateTime, sourceBranch := getLastUpdaterAndSourceBranch(target.GetUpdater(), target.GetUpdateTime(), target.GetSourceBranch(), baseline.GetUpdater(), current.GetUpdater(), current.GetUpdateTime(), current.GetSourceBranch())
result.Updater = lastUpdater
result.UpdateTime = lastUpdateTime
@@ -221,11 +221,11 @@ func mergeColumnConfig(target, baseline, current *storepb.ColumnCatalog) *storep
// Current is never nil.
// If baseline = A, target = B, current = C, we should set merged value to B.
// If baseline = A, target = A, current = B, we should set merged value to B since there is no change intentially.
- if target.SemanticTypeId != baseline.SemanticTypeId {
- current.SemanticTypeId = target.SemanticTypeId
+ if target.SemanticType != baseline.SemanticType {
+ current.SemanticType = target.SemanticType
}
- if target.ClassificationId != baseline.ClassificationId {
- current.ClassificationId = target.ClassificationId
+ if target.Classification != baseline.Classification {
+ current.Classification = target.Classification
}
if !reflect.DeepEqual(target.Labels, baseline.Labels) {
diff --git a/backend/utils/database_config_merge_test.go b/backend/utils/database_config_merge_test.go
index 921e812f37..dc971d77b3 100644
--- a/backend/utils/database_config_merge_test.go
+++ b/backend/utils/database_config_merge_test.go
@@ -32,13 +32,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
+ Name: "a",
+ SemanticType: "id_a",
},
{
- Name: "b",
- SemanticTypeId: "id_b",
- Labels: map[string]string{"hello": "world"},
+ Name: "b",
+ SemanticType: "id_b",
+ Labels: map[string]string{"hello": "world"},
},
},
},
@@ -56,8 +56,8 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
+ Name: "a",
+ SemanticType: "id_a",
},
},
},
@@ -75,8 +75,8 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
+ Name: "a",
+ SemanticType: "id_a",
},
},
},
@@ -94,13 +94,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
+ Name: "a",
+ SemanticType: "id_a",
},
{
- Name: "b",
- SemanticTypeId: "id_b",
- Labels: map[string]string{"hello": "world"},
+ Name: "b",
+ SemanticType: "id_b",
+ Labels: map[string]string{"hello": "world"},
},
},
},
@@ -121,8 +121,8 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_b",
+ Name: "a",
+ SemanticType: "id_b",
},
},
},
@@ -140,8 +140,8 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
+ Name: "a",
+ SemanticType: "id_a",
},
},
},
@@ -159,8 +159,8 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_c",
+ Name: "a",
+ SemanticType: "id_c",
},
},
},
@@ -178,8 +178,8 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_b",
+ Name: "a",
+ SemanticType: "id_b",
},
},
},
@@ -201,19 +201,19 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Columns: []*storepb.ColumnCatalog{
{
// Modify the semantic type id to id_b.
- Name: "a",
- SemanticTypeId: "id_b",
- Labels: map[string]string{"hello": "world"},
+ Name: "a",
+ SemanticType: "id_b",
+ Labels: map[string]string{"hello": "world"},
},
{
// Do not change.
- Name: "b",
- SemanticTypeId: "id_b",
+ Name: "b",
+ SemanticType: "id_b",
},
{
// Add a new column.
- Name: "c",
- SemanticTypeId: "id_c",
+ Name: "c",
+ SemanticType: "id_c",
},
},
},
@@ -223,7 +223,7 @@ func TestUpdateDatabaseConfig(t *testing.T) {
// Columns: []*storepb.ColumnCatalog{
// {
// Name: "a",
- // SemanticTypeId: "id_a",
+ // SemanticType: "id_a",
// },
// },
// },
@@ -232,12 +232,12 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table3",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
+ Name: "a",
+ SemanticType: "id_a",
},
{
- Name: "b",
- SemanticTypeId: "id_b",
+ Name: "b",
+ SemanticType: "id_b",
},
},
},
@@ -255,13 +255,13 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
- Labels: map[string]string{"world": "hello"},
+ Name: "a",
+ SemanticType: "id_a",
+ Labels: map[string]string{"world": "hello"},
},
{
- Name: "b",
- SemanticTypeId: "id_b",
+ Name: "b",
+ SemanticType: "id_b",
},
},
},
@@ -269,8 +269,8 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table2",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
+ Name: "a",
+ SemanticType: "id_a",
},
},
},
@@ -288,12 +288,12 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_c",
+ Name: "a",
+ SemanticType: "id_c",
},
{
- Name: "b",
- SemanticTypeId: "id_c",
+ Name: "b",
+ SemanticType: "id_c",
},
},
},
@@ -301,8 +301,8 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table2",
Columns: []*storepb.ColumnCatalog{
{
- Name: "b",
- SemanticTypeId: "id_b",
+ Name: "b",
+ SemanticType: "id_b",
},
},
},
@@ -320,17 +320,17 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table1",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_b",
- Labels: map[string]string{"hello": "world"},
+ Name: "a",
+ SemanticType: "id_b",
+ Labels: map[string]string{"hello": "world"},
},
{
- Name: "b",
- SemanticTypeId: "id_c",
+ Name: "b",
+ SemanticType: "id_c",
},
{
- Name: "c",
- SemanticTypeId: "id_c",
+ Name: "c",
+ SemanticType: "id_c",
},
},
},
@@ -338,12 +338,12 @@ func TestUpdateDatabaseConfig(t *testing.T) {
Name: "table3",
Columns: []*storepb.ColumnCatalog{
{
- Name: "a",
- SemanticTypeId: "id_a",
+ Name: "a",
+ SemanticType: "id_a",
},
{
- Name: "b",
- SemanticTypeId: "id_b",
+ Name: "b",
+ SemanticType: "id_b",
},
},
},
diff --git a/frontend/src/components/ColumnDataTable/SemanticTypeCell.vue b/frontend/src/components/ColumnDataTable/SemanticTypeCell.vue
index da2ee96b92..5021e7d5e3 100644
--- a/frontend/src/components/ColumnDataTable/SemanticTypeCell.vue
+++ b/frontend/src/components/ColumnDataTable/SemanticTypeCell.vue
@@ -85,13 +85,13 @@ const openSemanticTypeDrawer = () => {
state.showSemanticTypesDrawer = true;
};
-const onSemanticTypeApply = async (semanticTypeId: string) => {
+const onSemanticTypeApply = async (semanticType: string) => {
await updateColumnConfig({
database: props.database.name,
schema: props.schema,
table: props.table,
column: props.column,
- columnCatalog: { semanticTypeId },
+ columnCatalog: { semanticType },
});
};
</script>
diff --git a/frontend/src/components/ColumnDataTable/index.vue b/frontend/src/components/ColumnDataTable/index.vue
index e4d8aedb39..b5b117be50 100644
--- a/frontend/src/components/ColumnDataTable/index.vue
+++ b/frontend/src/components/ColumnDataTable/index.vue
@@ -167,7 +167,7 @@ const columns = computed(() => {
column.name
);
return h(ClassificationCell, {
- classification: columnCatalog.classificationId,
+ classification: columnCatalog.classification,
classificationConfig:
props.classificationConfig ??
DataClassificationConfig.fromPartial({}),
@@ -272,14 +272,14 @@ const filteredColumnList = computed(() => {
const onClassificationIdApply = async (
column: string,
- classificationId: string
+ classification: string
) => {
await updateColumnConfig({
database: props.database.name,
schema: props.schema,
table: props.table.name,
column,
- columnCatalog: { classificationId },
+ columnCatalog: { classification },
});
};
</script>
diff --git a/frontend/src/components/Database/DatabaseSensitiveDataPanel.vue b/frontend/src/components/Database/DatabaseSensitiveDataPanel.vue
index 574552821f..ada32bd28a 100644
--- a/frontend/src/components/Database/DatabaseSensitiveDataPanel.vue
+++ b/frontend/src/components/Database/DatabaseSensitiveDataPanel.vue
@@ -171,15 +171,15 @@ const updateList = async () => {
for (const schema of databaseCatalog.value.schemas) {
for (const table of schema.tables) {
for (const column of table.columns?.columns ?? []) {
- if (!column.semanticTypeId && !column.classificationId) {
+ if (!column.semanticType && !column.classification) {
continue;
}
sensitiveColumnList.push({
schema: schema.name,
table: table.name,
column: column.name,
- semanticTypeId: column.semanticTypeId,
- classificationId: column.classificationId,
+ semanticTypeId: column.semanticType,
+ classificationId: column.classification,
});
}
}
@@ -212,8 +212,8 @@ const removeSensitiveColumn = async (sensitiveColumn: MaskData) => {
table: sensitiveColumn.table,
column: sensitiveColumn.column,
columnCatalog: {
- classificationId: "",
- semanticTypeId: "",
+ classification: "",
+ semanticType: "",
},
});
await removeMaskingExceptions(sensitiveColumn);
diff --git a/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue b/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue
index 798c506711..47fb431efd 100644
--- a/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue
+++ b/frontend/src/components/SchemaTemplate/FieldTemplateForm.vue
@@ -77,13 +77,13 @@
</label>
<div class="flex items-center gap-x-2 mt-3">
<ClassificationLevelBadge
- :classification="state.catalog?.classificationId"
+ :classification="state.catalog?.classification"
:classification-config="classificationConfig"
/>
<div v-if="!readonly" class="flex items-center">
<MiniActionButton
- v-if="state.catalog?.classificationId"
- @click.prevent="state.catalog!.classificationId = ''"
+ v-if="state.catalog?.classification"
+ @click.prevent="state.catalog!.classification = ''"
>
<XIcon class="w-4 h-4" />
</MiniActionButton>
@@ -319,11 +319,11 @@ const semanticTypeList = computed(() => {
});
const columnSemanticType = computed(() => {
- if (!state.catalog?.semanticTypeId) {
+ if (!state.catalog?.semanticType) {
return;
}
return semanticTypeList.value.find(
- (data) => data.id === state.catalog?.semanticTypeId
+ (data) => data.id === state.catalog?.semanticType
);
});
@@ -459,7 +459,7 @@ const onClassificationSelect = (id: string) => {
if (!state.catalog) {
return;
}
- state.catalog.classificationId = id;
+ state.catalog.classification = id;
};
const handleColumnDefaultChange = (key: string) => {
@@ -525,10 +525,10 @@ const handleSelectedColumnDefaultValueExpressionChange = (
state.showColumnDefaultValueExpressionModal = false;
};
-const onSemanticTypeApply = async (semanticTypeId: string) => {
+const onSemanticTypeApply = async (semanticType: string) => {
state.catalog = ColumnCatalog.fromPartial({
...state.catalog,
- semanticTypeId,
+ semanticType,
});
};
</script>
diff --git a/frontend/src/components/SchemaTemplate/FieldTemplateTable.vue b/frontend/src/components/SchemaTemplate/FieldTemplateTable.vue
index 96c56c035a..46e5c11be9 100644
--- a/frontend/src/components/SchemaTemplate/FieldTemplateTable.vue
+++ b/frontend/src/components/SchemaTemplate/FieldTemplateTable.vue
@@ -16,7 +16,7 @@
</div>
<div v-if="classificationConfig" class="bb-grid-cell flex gap-x-1">
<ClassificationLevelBadge
- :classification="item.catalog?.classificationId"
+ :classification="item.catalog?.classification"
:classification-config="classificationConfig"
/>
</div>
diff --git a/frontend/src/components/SchemaTemplate/TableTemplateForm.vue b/frontend/src/components/SchemaTemplate/TableTemplateForm.vue
index c41b774c52..a070ef7f3b 100644
--- a/frontend/src/components/SchemaTemplate/TableTemplateForm.vue
+++ b/frontend/src/components/SchemaTemplate/TableTemplateForm.vue
@@ -285,7 +285,7 @@ const tableCatalog = computed(() => {
const tableClassificationId = computed({
get() {
- return tableCatalog.value?.classificationId;
+ return tableCatalog.value?.classification;
},
set(id) {
const { schema, table } = editing.value;
@@ -307,11 +307,11 @@ const tableClassificationId = computed({
if (!tableCatalog) {
tableCatalog = TableCatalog.fromPartial({
name: table.name,
- classificationId: id,
+ classification: id,
});
schemaCatalog.tables.push(tableCatalog);
}
- tableCatalog.classificationId = id ?? "";
+ tableCatalog.classification = id ?? "";
},
});
diff --git a/frontend/src/components/SchemaTemplate/TableTemplateTable.vue b/frontend/src/components/SchemaTemplate/TableTemplateTable.vue
index 8debdb3a42..894ef9987d 100644
--- a/frontend/src/components/SchemaTemplate/TableTemplateTable.vue
+++ b/frontend/src/components/SchemaTemplate/TableTemplateTable.vue
@@ -16,7 +16,7 @@
</div>
<div v-if="classificationConfig" class="bb-grid-cell flex gap-x-1">
<ClassificationLevelBadge
- :classification="item.catalog?.classificationId"
+ :classification="item.catalog?.classification"
:classification-config="classificationConfig"
/>
</div>
diff --git a/frontend/src/components/SensitiveData/components/SensitiveColumnTable.vue b/frontend/src/components/SensitiveData/components/SensitiveColumnTable.vue
index 78b4096483..8103a4e78c 100644
--- a/frontend/src/components/SensitiveData/components/SensitiveColumnTable.vue
+++ b/frontend/src/components/SensitiveData/components/SensitiveColumnTable.vue
@@ -140,7 +140,7 @@ const dataTableColumns = computed(() => {
return (
<ClassificationCell
- classification={columnCatalog.classificationId}
+ classification={columnCatalog.classification}
classificationConfig={classificationConfig.value}
onApply={(id: string) => onClassificationIdApply(item, id)}
/>
@@ -205,14 +205,14 @@ const dataTableColumns = computed(() => {
const onClassificationIdApply = async (
item: MaskData,
- classificationId: string
+ classification: string
) => {
await updateColumnConfig({
database: props.database.name,
schema: item.schema,
table: item.table,
column: item.column,
- columnCatalog: { classificationId },
+ columnCatalog: { classification },
});
};
diff --git a/frontend/src/components/SensitiveData/useSemanticType.ts b/frontend/src/components/SensitiveData/useSemanticType.ts
index 65f3608f03..42c5b75558 100644
--- a/frontend/src/components/SensitiveData/useSemanticType.ts
+++ b/frontend/src/components/SensitiveData/useSemanticType.ts
@@ -25,11 +25,11 @@ export const useSemanticType = ({
const semanticType = computed(() => {
const columnCatalog = getColumnCatalog(databaseCatalog.value, schema, table, column)
- if (!columnCatalog.semanticTypeId) {
+ if (!columnCatalog.semanticType) {
return;
}
return semanticTypeList.value.find(
- (data) => data.id === columnCatalog.semanticTypeId
+ (data) => data.id === columnCatalog.semanticType
);
});
diff --git a/frontend/src/components/TableDataTable.vue b/frontend/src/components/TableDataTable.vue
index 068120aa5e..30491aa95f 100644
--- a/frontend/src/components/TableDataTable.vue
+++ b/frontend/src/components/TableDataTable.vue
@@ -166,7 +166,7 @@ const columns = computed(() => {
render: (table) => {
const tableCatalog = getTableCatalog(databaseCatalog.value, props.schemaName, table.name)
return h(ClassificationCell, {
- classification: tableCatalog.classificationId,
+ classification: tableCatalog.classification,
classificationConfig:
classificationConfig.value ??
DataClassificationConfig.fromPartial({}),
@@ -247,10 +247,10 @@ const mixedTableList = computed(() => {
const onClassificationIdApply = async (
table: string,
- classificationId: string
+ classification: string
) => {
await updateTableConfig(props.database.name, props.schemaName, table, {
- classificationId,
+ classification,
});
};
</script>
diff --git a/frontend/src/components/TableDetailDrawer.vue b/frontend/src/components/TableDetailDrawer.vue
index 0a751c0898..32191493a6 100644
--- a/frontend/src/components/TableDetailDrawer.vue
+++ b/frontend/src/components/TableDetailDrawer.vue
@@ -129,7 +129,7 @@
</dt>
<dd class="mt-1 font-semibold">
<ClassificationLevelBadge
- :classification="tableCatalog.classificationId"
+ :classification="tableCatalog.classification"
:classification-config="classificationConfig"
placeholder="-"
/>
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.ts
index 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.ts
index 94997224de..1cc8e5163f 100644
--- a/frontend/src/types/proto/store/database.ts
+++ b/frontend/src/types/proto/store/database.ts
@@ -893,7 +893,7 @@ export interface TableCatalog {
/** The column_configs is the ordered list of configs for columns in a table. */
columns: ColumnCatalog[];
objectSchema?: ObjectSchema | undefined;
- classificationId: string;
+ classification: string;
/**
* The last updater of the table in branch.
* Format: users/{userUID}.
@@ -911,10 +911,10 @@ export interface TableCatalog {
export interface ColumnCatalog {
/** The name is the name of a column. */
name: string;
- semanticTypeId: string;
+ semanticType: string;
/** The user labels for a column. */
labels: { [key: string]: string };
- classificationId: string;
+ classification: string;
objectSchema?:
| ObjectSchema
| undefined;
@@ -935,6 +935,7 @@ export interface ObjectSchema {
type: ObjectSchema_Type;
structKind?: ObjectSchema_StructKind | undefined;
arrayKind?: ObjectSchema_ArrayKind | undefined;
+ semanticType: string;
}
export enum ObjectSchema_Type {
@@ -5864,7 +5865,7 @@ function createBaseTableCatalog(): TableCatalog {
name: "",
columns: [],
objectSchema: undefined,
- classificationId: "",
+ classification: "",
updater: "",
sourceBranch: "",
updateTime: undefined,
@@ -5882,8 +5883,8 @@ export const TableCatalog: MessageFns<TableCatalog> = {
if (message.objectSchema !== undefined) {
ObjectSchema.encode(message.objectSchema, writer.uint32(58).fork()).join();
}
- if (message.classificationId !== "") {
- writer.uint32(26).string(message.classificationId);
+ if (message.classification !== "") {
+ writer.uint32(26).string(message.classification);
}
if (message.updater !== "") {
writer.uint32(34).string(message.updater);
@@ -5933,7 +5934,7 @@ export const TableCatalog: MessageFns<TableCatalog> = {
break;
}
- message.classificationId = reader.string();
+ message.classification = reader.string();
continue;
}
case 4: {
@@ -5976,7 +5977,7 @@ export const TableCatalog: MessageFns<TableCatalog> = {
? 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) : "",
+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",
updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",
updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
@@ -5994,8 +5995,8 @@ export const TableCatalog: MessageFns<TableCatalog> = {
if (message.objectSchema !== undefined) {
obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);
}
- if (message.classificationId !== "") {
- obj.classificationId = message.classificationId;
+ if (message.classification !== "") {
+ obj.classification = message.classification;
}
if (message.updater !== "") {
obj.updater = message.updater;
@@ -6019,7 +6020,7 @@ export const TableCatalog: MessageFns<TableCatalog> = {
message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)
? ObjectSchema.fromPartial(object.objectSchema)
: undefined;
- message.classificationId = object.classificationId ?? "";
+ message.classification = object.classification ?? "";
message.updater = object.updater ?? "";
message.sourceBranch = object.sourceBranch ?? "";
message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)
@@ -6032,9 +6033,9 @@ export const TableCatalog: MessageFns<TableCatalog> = {
function createBaseColumnCatalog(): ColumnCatalog {
return {
name: "",
- semanticTypeId: "",
+ semanticType: "",
labels: {},
- classificationId: "",
+ classification: "",
objectSchema: undefined,
maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,
fullMaskingAlgorithmId: "",
@@ -6047,14 +6048,14 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
if (message.name !== "") {
writer.uint32(10).string(message.name);
}
- if (message.semanticTypeId !== "") {
- writer.uint32(18).string(message.semanticTypeId);
+ if (message.semanticType !== "") {
+ writer.uint32(18).string(message.semanticType);
}
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.classification !== "") {
+ writer.uint32(34).string(message.classification);
}
if (message.objectSchema !== undefined) {
ObjectSchema.encode(message.objectSchema, writer.uint32(42).fork()).join();
@@ -6091,7 +6092,7 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
break;
}
- message.semanticTypeId = reader.string();
+ message.semanticType = reader.string();
continue;
}
case 3: {
@@ -6110,7 +6111,7 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
break;
}
- message.classificationId = reader.string();
+ message.classification = reader.string();
continue;
}
case 5: {
@@ -6157,14 +6158,14 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
fromJSON(object: any): ColumnCatalog {
return {
name: isSet(object.name) ? globalThis.String(object.name) : "",
- semanticTypeId: isSet(object.semanticTypeId) ? globalThis.String(object.semanticTypeId) : "",
+ semanticType: isSet(object.semanticType) ? globalThis.String(object.semanticType) : "",
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) : "",
+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",
objectSchema: isSet(object.objectSchema) ? ObjectSchema.fromJSON(object.objectSchema) : undefined,
maskingLevel: isSet(object.maskingLevel)
? maskingLevelFromJSON(object.maskingLevel)
@@ -6183,8 +6184,8 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
if (message.name !== "") {
obj.name = message.name;
}
- if (message.semanticTypeId !== "") {
- obj.semanticTypeId = message.semanticTypeId;
+ if (message.semanticType !== "") {
+ obj.semanticType = message.semanticType;
}
if (message.labels) {
const entries = Object.entries(message.labels);
@@ -6195,8 +6196,8 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
});
}
}
- if (message.classificationId !== "") {
- obj.classificationId = message.classificationId;
+ if (message.classification !== "") {
+ obj.classification = message.classification;
}
if (message.objectSchema !== undefined) {
obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);
@@ -6219,14 +6220,14 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
fromPartial(object: DeepPartial<ColumnCatalog>): ColumnCatalog {
const message = createBaseColumnCatalog();
message.name = object.name ?? "";
- message.semanticTypeId = object.semanticTypeId ?? "";
+ message.semanticType = object.semanticType ?? "";
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.classification = object.classification ?? "";
message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)
? ObjectSchema.fromPartial(object.objectSchema)
: undefined;
@@ -6314,7 +6315,7 @@ export const ColumnCatalog_LabelsEntry: MessageFns<ColumnCatalog_LabelsEntry> =
};
function createBaseObjectSchema(): ObjectSchema {
- return { type: ObjectSchema_Type.TYPE_UNSPECIFIED, structKind: undefined, arrayKind: undefined };
+ return { type: ObjectSchema_Type.TYPE_UNSPECIFIED, structKind: undefined, arrayKind: undefined, semanticType: "" };
}
export const ObjectSchema: MessageFns<ObjectSchema> = {
@@ -6328,6 +6329,9 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
if (message.arrayKind !== undefined) {
ObjectSchema_ArrayKind.encode(message.arrayKind, writer.uint32(26).fork()).join();
}
+ if (message.semanticType !== "") {
+ writer.uint32(34).string(message.semanticType);
+ }
return writer;
},
@@ -6362,6 +6366,14 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
message.arrayKind = ObjectSchema_ArrayKind.decode(reader, reader.uint32());
continue;
}
+ case 4: {
+ if (tag !== 34) {
+ break;
+ }
+
+ message.semanticType = reader.string();
+ continue;
+ }
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -6376,6 +6388,7 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
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,
+ semanticType: isSet(object.semanticType) ? globalThis.String(object.semanticType) : "",
};
},
@@ -6390,6 +6403,9 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
if (message.arrayKind !== undefined) {
obj.arrayKind = ObjectSchema_ArrayKind.toJSON(message.arrayKind);
}
+ if (message.semanticType !== "") {
+ obj.semanticType = message.semanticType;
+ }
return obj;
},
@@ -6405,6 +6421,7 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
message.arrayKind = (object.arrayKind !== undefined && object.arrayKind !== null)
? ObjectSchema_ArrayKind.fromPartial(object.arrayKind)
: undefined;
+ message.semanticType = object.semanticType ?? "";
return message;
},
};
diff --git a/frontend/src/types/proto/v1/database_catalog_service.ts b/frontend/src/types/proto/v1/database_catalog_service.ts
index 8d3cb04ebe..20b4833932 100644
--- a/frontend/src/types/proto/v1/database_catalog_service.ts
+++ b/frontend/src/types/proto/v1/database_catalog_service.ts
@@ -51,7 +51,7 @@ export interface TableCatalog {
name: string;
columns?: TableCatalog_Columns | undefined;
objectSchema?: ObjectSchema | undefined;
- classificationId: string;
+ classification: string;
}
export interface TableCatalog_Columns {
@@ -60,10 +60,10 @@ export interface TableCatalog_Columns {
export interface ColumnCatalog {
name: string;
- semanticTypeId: string;
+ semanticType: string;
/** The user labels for a column. */
labels: { [key: string]: string };
- classificationId: string;
+ classification: string;
objectSchema?: ObjectSchema | undefined;
}
@@ -76,6 +76,7 @@ export interface ObjectSchema {
type: ObjectSchema_Type;
structKind?: ObjectSchema_StructKind | undefined;
arrayKind?: ObjectSchema_ArrayKind | undefined;
+ semanticType: string;
}
export enum ObjectSchema_Type {
@@ -459,7 +460,7 @@ export const SchemaCatalog: MessageFns<SchemaCatalog> = {
};
function createBaseTableCatalog(): TableCatalog {
- return { name: "", columns: undefined, objectSchema: undefined, classificationId: "" };
+ return { name: "", columns: undefined, objectSchema: undefined, classification: "" };
}
export const TableCatalog: MessageFns<TableCatalog> = {
@@ -473,8 +474,8 @@ export const TableCatalog: MessageFns<TableCatalog> = {
if (message.objectSchema !== undefined) {
ObjectSchema.encode(message.objectSchema, writer.uint32(26).fork()).join();
}
- if (message.classificationId !== "") {
- writer.uint32(34).string(message.classificationId);
+ if (message.classification !== "") {
+ writer.uint32(34).string(message.classification);
}
return writer;
},
@@ -515,7 +516,7 @@ export const TableCatalog: MessageFns<TableCatalog> = {
break;
}
- message.classificationId = reader.string();
+ message.classification = reader.string();
continue;
}
}
@@ -532,7 +533,7 @@ export const TableCatalog: MessageFns<TableCatalog> = {
name: isSet(object.name) ? globalThis.String(object.name) : "",
columns: isSet(object.columns) ? TableCatalog_Columns.fromJSON(object.columns) : undefined,
objectSchema: isSet(object.objectSchema) ? ObjectSchema.fromJSON(object.objectSchema) : undefined,
- classificationId: isSet(object.classificationId) ? globalThis.String(object.classificationId) : "",
+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",
};
},
@@ -547,8 +548,8 @@ export const TableCatalog: MessageFns<TableCatalog> = {
if (message.objectSchema !== undefined) {
obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);
}
- if (message.classificationId !== "") {
- obj.classificationId = message.classificationId;
+ if (message.classification !== "") {
+ obj.classification = message.classification;
}
return obj;
},
@@ -565,7 +566,7 @@ export const TableCatalog: MessageFns<TableCatalog> = {
message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)
? ObjectSchema.fromPartial(object.objectSchema)
: undefined;
- message.classificationId = object.classificationId ?? "";
+ message.classification = object.classification ?? "";
return message;
},
};
@@ -633,7 +634,7 @@ export const TableCatalog_Columns: MessageFns<TableCatalog_Columns> = {
};
function createBaseColumnCatalog(): ColumnCatalog {
- return { name: "", semanticTypeId: "", labels: {}, classificationId: "", objectSchema: undefined };
+ return { name: "", semanticType: "", labels: {}, classification: "", objectSchema: undefined };
}
export const ColumnCatalog: MessageFns<ColumnCatalog> = {
@@ -641,14 +642,14 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
if (message.name !== "") {
writer.uint32(10).string(message.name);
}
- if (message.semanticTypeId !== "") {
- writer.uint32(18).string(message.semanticTypeId);
+ if (message.semanticType !== "") {
+ writer.uint32(18).string(message.semanticType);
}
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.classification !== "") {
+ writer.uint32(34).string(message.classification);
}
if (message.objectSchema !== undefined) {
ObjectSchema.encode(message.objectSchema, writer.uint32(42).fork()).join();
@@ -676,7 +677,7 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
break;
}
- message.semanticTypeId = reader.string();
+ message.semanticType = reader.string();
continue;
}
case 3: {
@@ -695,7 +696,7 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
break;
}
- message.classificationId = reader.string();
+ message.classification = reader.string();
continue;
}
case 5: {
@@ -718,14 +719,14 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
fromJSON(object: any): ColumnCatalog {
return {
name: isSet(object.name) ? globalThis.String(object.name) : "",
- semanticTypeId: isSet(object.semanticTypeId) ? globalThis.String(object.semanticTypeId) : "",
+ semanticType: isSet(object.semanticType) ? globalThis.String(object.semanticType) : "",
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) : "",
+ classification: isSet(object.classification) ? globalThis.String(object.classification) : "",
objectSchema: isSet(object.objectSchema) ? ObjectSchema.fromJSON(object.objectSchema) : undefined,
};
},
@@ -735,8 +736,8 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
if (message.name !== "") {
obj.name = message.name;
}
- if (message.semanticTypeId !== "") {
- obj.semanticTypeId = message.semanticTypeId;
+ if (message.semanticType !== "") {
+ obj.semanticType = message.semanticType;
}
if (message.labels) {
const entries = Object.entries(message.labels);
@@ -747,8 +748,8 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
});
}
}
- if (message.classificationId !== "") {
- obj.classificationId = message.classificationId;
+ if (message.classification !== "") {
+ obj.classification = message.classification;
}
if (message.objectSchema !== undefined) {
obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);
@@ -762,14 +763,14 @@ export const ColumnCatalog: MessageFns<ColumnCatalog> = {
fromPartial(object: DeepPartial<ColumnCatalog>): ColumnCatalog {
const message = createBaseColumnCatalog();
message.name = object.name ?? "";
- message.semanticTypeId = object.semanticTypeId ?? "";
+ message.semanticType = object.semanticType ?? "";
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.classification = object.classification ?? "";
message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)
? ObjectSchema.fromPartial(object.objectSchema)
: undefined;
@@ -854,7 +855,7 @@ export const ColumnCatalog_LabelsEntry: MessageFns<ColumnCatalog_LabelsEntry> =
};
function createBaseObjectSchema(): ObjectSchema {
- return { type: ObjectSchema_Type.TYPE_UNSPECIFIED, structKind: undefined, arrayKind: undefined };
+ return { type: ObjectSchema_Type.TYPE_UNSPECIFIED, structKind: undefined, arrayKind: undefined, semanticType: "" };
}
export const ObjectSchema: MessageFns<ObjectSchema> = {
@@ -868,6 +869,9 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
if (message.arrayKind !== undefined) {
ObjectSchema_ArrayKind.encode(message.arrayKind, writer.uint32(26).fork()).join();
}
+ if (message.semanticType !== "") {
+ writer.uint32(34).string(message.semanticType);
+ }
return writer;
},
@@ -902,6 +906,14 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
message.arrayKind = ObjectSchema_ArrayKind.decode(reader, reader.uint32());
continue;
}
+ case 4: {
+ if (tag !== 34) {
+ break;
+ }
+
+ message.semanticType = reader.string();
+ continue;
+ }
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -916,6 +928,7 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
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,
+ semanticType: isSet(object.semanticType) ? globalThis.String(object.semanticType) : "",
};
},
@@ -930,6 +943,9 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
if (message.arrayKind !== undefined) {
obj.arrayKind = ObjectSchema_ArrayKind.toJSON(message.arrayKind);
}
+ if (message.semanticType !== "") {
+ obj.semanticType = message.semanticType;
+ }
return obj;
},
@@ -945,6 +961,7 @@ export const ObjectSchema: MessageFns<ObjectSchema> = {
message.arrayKind = (object.arrayKind !== undefined && object.arrayKind !== null)
? ObjectSchema_ArrayKind.fromPartial(object.arrayKind)
: undefined;
+ message.semanticType = object.semanticType ?? "";
return message;
},
};
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index df77be7d31..20d04c9ff8 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -9576,14 +9576,14 @@ components:
properties:
name:
type: string
- semanticTypeId:
+ semanticType:
type: string
labels:
type: object
additionalProperties:
type: string
description: The user labels for a column.
- classificationId:
+ classification:
type: string
objectSchema:
$ref: '#/components/schemas/ObjectSchema'
@@ -11791,6 +11791,8 @@ components:
$ref: '#/components/schemas/ObjectSchema_StructKind'
arrayKind:
$ref: '#/components/schemas/ObjectSchema_ArrayKind'
+ semanticType:
+ type: string
ObjectSchema_ArrayKind:
type: object
properties:
@@ -14199,7 +14201,7 @@ components:
$ref: '#/components/schemas/TableCatalog_Columns'
objectSchema:
$ref: '#/components/schemas/ObjectSchema'
- classificationId:
+ classification:
type: string
TableCatalog_Columns:
type: object
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 578e93e8e5..5a9219cef6 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -926,9 +926,9 @@ Metadata about the request.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | The name is the name of a column. |
-| semantic_type_id | [string](#string) | | |
+| semantic_type | [string](#string) | | |
| labels | [ColumnCatalog.LabelsEntry](#bytebase-store-ColumnCatalog-LabelsEntry) | repeated | The user labels for a column. |
-| classification_id | [string](#string) | | |
+| classification | [string](#string) | | |
| object_schema | [ObjectSchema](#bytebase-store-ObjectSchema) | optional | |
| masking_level | [MaskingLevel](#bytebase-store-MaskingLevel) | | Deprecated. |
| full_masking_algorithm_id | [string](#string) | | Deprecated. |
@@ -1314,6 +1314,7 @@ MaterializedViewMetadata is the metadata for materialized views.
| type | [ObjectSchema.Type](#bytebase-store-ObjectSchema-Type) | | |
| struct_kind | [ObjectSchema.StructKind](#bytebase-store-ObjectSchema-StructKind) | | |
| array_kind | [ObjectSchema.ArrayKind](#bytebase-store-ObjectSchema-ArrayKind) | | |
+| semantic_type | [string](#string) | | |
@@ -1560,7 +1561,7 @@ This is the concept of schema in Postgres, but it&#39;s a no-op for MySQL.
| name | [string](#string) | | The name is the name of 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) | | |
+| classification | [string](#string) | | |
| updater | [string](#string) | | The last updater of the table in branch. Format: users/{userUID}. |
| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |
| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the table is updated in branch. |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 5fcd6718ac..88bbe35a0a 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -2933,7 +2933,7 @@ This information is not authenticated and should be treated accordingly. </p></t
</tr>
<tr>
- <td>semantic_type_id</td>
+ <td>semantic_type</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -2947,7 +2947,7 @@ This information is not authenticated and should be treated accordingly. </p></t
</tr>
<tr>
- <td>classification_id</td>
+ <td>classification</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -4043,6 +4043,13 @@ engine. </p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>semantic_type</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
</tbody>
</table>
@@ -4713,7 +4720,7 @@ Snowflake. </p></td>
</tr>
<tr>
- <td>classification_id</td>
+ <td>classification</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index ea5f2f116f..89c4a3e6cb 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -960,9 +960,9 @@
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | |
-| semantic_type_id | [string](#string) | | |
+| semantic_type | [string](#string) | | |
| labels | [ColumnCatalog.LabelsEntry](#bytebase-v1-ColumnCatalog-LabelsEntry) | repeated | The user labels for a column. |
-| classification_id | [string](#string) | | |
+| classification | [string](#string) | | |
| object_schema | [ObjectSchema](#bytebase-v1-ObjectSchema) | optional | |
@@ -1028,6 +1028,7 @@
| type | [ObjectSchema.Type](#bytebase-v1-ObjectSchema-Type) | | |
| struct_kind | [ObjectSchema.StructKind](#bytebase-v1-ObjectSchema-StructKind) | | |
| array_kind | [ObjectSchema.ArrayKind](#bytebase-v1-ObjectSchema-ArrayKind) | | |
+| semantic_type | [string](#string) | | |
@@ -1107,7 +1108,7 @@
| name | [string](#string) | | |
| columns | [TableCatalog.Columns](#bytebase-v1-TableCatalog-Columns) | | |
| object_schema | [ObjectSchema](#bytebase-v1-ObjectSchema) | | |
-| classification_id | [string](#string) | | |
+| classification | [string](#string) | | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 217fc5e34e..78fc8f51a0 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -3598,7 +3598,7 @@ edition(ee).</p></td>
</tr>
<tr>
- <td>semantic_type_id</td>
+ <td>semantic_type</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -3612,7 +3612,7 @@ edition(ee).</p></td>
</tr>
<tr>
- <td>classification_id</td>
+ <td>classification</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -3751,6 +3751,13 @@ Format: instances/{instance}/databases/{database}/catalog </p></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>semantic_type</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
</tbody>
</table>
@@ -3900,7 +3907,7 @@ Format: instances/{instance}/databases/{database}/catalog </p></td>
</tr>
<tr>
- <td>classification_id</td>
+ <td>classification</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
diff --git a/proto/generated-go/store/database.pb.go b/proto/generated-go/store/database.pb.go
index a77c3c801b..19d18dfcb1 100644
--- a/proto/generated-go/store/database.pb.go
+++ b/proto/generated-go/store/database.pb.go
@@ -3242,9 +3242,9 @@ type TableCatalog struct {
// 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.
- 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"`
+ 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"`
+ Classification string `protobuf:"bytes,3,opt,name=classification,proto3" json:"classification,omitempty"`
// The last updater of the table in branch.
// Format: users/{userUID}.
Updater string `protobuf:"bytes,4,opt,name=updater,proto3" json:"updater,omitempty"`
@@ -3308,9 +3308,9 @@ func (x *TableCatalog) GetObjectSchema() *ObjectSchema {
return nil
}
-func (x *TableCatalog) GetClassificationId() string {
+func (x *TableCatalog) GetClassification() string {
if x != nil {
- return x.ClassificationId
+ return x.Classification
}
return ""
}
@@ -3339,12 +3339,12 @@ func (x *TableCatalog) GetUpdateTime() *timestamppb.Timestamp {
type ColumnCatalog 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"`
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ SemanticType string `protobuf:"bytes,2,opt,name=semantic_type,json=semanticType,proto3" json:"semantic_type,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"`
- ObjectSchema *ObjectSchema `protobuf:"bytes,5,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`
+ 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"`
+ Classification string `protobuf:"bytes,4,opt,name=classification,proto3" json:"classification,omitempty"`
+ ObjectSchema *ObjectSchema `protobuf:"bytes,5,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`
// Deprecated.
MaskingLevel MaskingLevel `protobuf:"varint,6,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.store.MaskingLevel" json:"masking_level,omitempty"`
// Deprecated.
@@ -3392,9 +3392,9 @@ func (x *ColumnCatalog) GetName() string {
return ""
}
-func (x *ColumnCatalog) GetSemanticTypeId() string {
+func (x *ColumnCatalog) GetSemanticType() string {
if x != nil {
- return x.SemanticTypeId
+ return x.SemanticType
}
return ""
}
@@ -3406,9 +3406,9 @@ func (x *ColumnCatalog) GetLabels() map[string]string {
return nil
}
-func (x *ColumnCatalog) GetClassificationId() string {
+func (x *ColumnCatalog) GetClassification() string {
if x != nil {
- return x.ClassificationId
+ return x.Classification
}
return ""
}
@@ -3449,6 +3449,7 @@ type ObjectSchema struct {
// *ObjectSchema_StructKind_
// *ObjectSchema_ArrayKind_
Kind isObjectSchema_Kind `protobuf_oneof:"kind"`
+ SemanticType string `protobuf:"bytes,4,opt,name=semantic_type,json=semanticType,proto3" json:"semantic_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -3515,6 +3516,13 @@ func (x *ObjectSchema) GetArrayKind() *ObjectSchema_ArrayKind {
return nil
}
+func (x *ObjectSchema) GetSemanticType() string {
+ if x != nil {
+ return x.SemanticType
+ }
+ return ""
+}
+
type isObjectSchema_Kind interface {
isObjectSchema_Kind()
}
@@ -4379,7 +4387,7 @@ var file_store_database_proto_rawDesc = []byte{
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,
+ 0x69, 0x67, 0x73, 0x22, 0xeb, 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,
@@ -4389,101 +4397,91 @@ var file_store_database_proto_rawDesc = []byte{
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, 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, 0x46, 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74,
- 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 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, 0x41,
- 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
- 0x06, 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, 0x07,
- 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, 0x08, 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, 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,
+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61,
+ 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 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, 0x87, 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, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e,
+ 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
+ 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 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,
+ 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 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,
+ 0x41, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,
+ 0x18, 0x06, 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,
+ 0x07, 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, 0x08, 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, 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, 0xe5, 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, 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,
+ 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, 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,
+ 0x61, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x09, 0x61,
+ 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61,
+ 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 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,
+ 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,
@@ -4494,20 +4492,31 @@ var file_store_database_proto_rawDesc = []byte{
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,
+ 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,
}
var (
diff --git a/proto/generated-go/v1/database_catalog_service.pb.go b/proto/generated-go/v1/database_catalog_service.pb.go
index 9601ef6286..ae1cfc49c0 100644
--- a/proto/generated-go/v1/database_catalog_service.pb.go
+++ b/proto/generated-go/v1/database_catalog_service.pb.go
@@ -296,10 +296,10 @@ type TableCatalog struct {
//
// *TableCatalog_Columns_
// *TableCatalog_ObjectSchema
- Kind isTableCatalog_Kind `protobuf_oneof:"kind"`
- ClassificationId string `protobuf:"bytes,4,opt,name=classification_id,json=classificationId,proto3" json:"classification_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ Kind isTableCatalog_Kind `protobuf_oneof:"kind"`
+ Classification string `protobuf:"bytes,4,opt,name=classification,proto3" json:"classification,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *TableCatalog) Reset() {
@@ -364,9 +364,9 @@ func (x *TableCatalog) GetObjectSchema() *ObjectSchema {
return nil
}
-func (x *TableCatalog) GetClassificationId() string {
+func (x *TableCatalog) GetClassification() string {
if x != nil {
- return x.ClassificationId
+ return x.Classification
}
return ""
}
@@ -388,15 +388,15 @@ func (*TableCatalog_Columns_) isTableCatalog_Kind() {}
func (*TableCatalog_ObjectSchema) isTableCatalog_Kind() {}
type ColumnCatalog struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- 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"`
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ SemanticType string `protobuf:"bytes,2,opt,name=semantic_type,json=semanticType,proto3" json:"semantic_type,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"`
- ObjectSchema *ObjectSchema `protobuf:"bytes,5,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ 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"`
+ Classification string `protobuf:"bytes,4,opt,name=classification,proto3" json:"classification,omitempty"`
+ ObjectSchema *ObjectSchema `protobuf:"bytes,5,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *ColumnCatalog) Reset() {
@@ -436,9 +436,9 @@ func (x *ColumnCatalog) GetName() string {
return ""
}
-func (x *ColumnCatalog) GetSemanticTypeId() string {
+func (x *ColumnCatalog) GetSemanticType() string {
if x != nil {
- return x.SemanticTypeId
+ return x.SemanticType
}
return ""
}
@@ -450,9 +450,9 @@ func (x *ColumnCatalog) GetLabels() map[string]string {
return nil
}
-func (x *ColumnCatalog) GetClassificationId() string {
+func (x *ColumnCatalog) GetClassification() string {
if x != nil {
- return x.ClassificationId
+ return x.Classification
}
return ""
}
@@ -472,6 +472,7 @@ type ObjectSchema struct {
// *ObjectSchema_StructKind_
// *ObjectSchema_ArrayKind_
Kind isObjectSchema_Kind `protobuf_oneof:"kind"`
+ SemanticType string `protobuf:"bytes,4,opt,name=semantic_type,json=semanticType,proto3" json:"semantic_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -538,6 +539,13 @@ func (x *ObjectSchema) GetArrayKind() *ObjectSchema_ArrayKind {
return nil
}
+func (x *ObjectSchema) GetSemanticType() string {
+ if x != nil {
+ return x.SemanticType
+ }
+ return ""
+}
+
type isObjectSchema_Kind interface {
isObjectSchema_Kind()
}
@@ -734,7 +742,7 @@ var file_v1_database_catalog_service_proto_rawDesc = []byte{
0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c,
- 0x6f, 0x67, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x99, 0x02, 0x0a, 0x0c, 0x54,
+ 0x6f, 0x67, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x94, 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,
0x3d, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
@@ -745,99 +753,100 @@ var file_v1_database_catalog_service_proto_rawDesc = []byte{
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
0x2e, 0x76, 0x31, 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,
- 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, 0x1a, 0x3f, 0x0a,
- 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75,
- 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x61,
- 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x42, 0x06,
- 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xcc, 0x02, 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, 0x3e, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73,
- 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 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, 0x43, 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0xae, 0x04, 0x0a, 0x0c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74,
- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 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, 0x47, 0x0a, 0x0b, 0x73, 0x74,
- 0x72, 0x75, 0x63, 0x74, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0x44, 0x0a, 0x0a, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x6b, 0x69, 0x6e,
- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0xbc, 0x01, 0x0a, 0x0a, 0x53, 0x74,
- 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x54, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70,
- 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0x58,
- 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, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 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, 0x3a, 0x0a, 0x09, 0x41, 0x72, 0x72, 0x61,
- 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 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, 0x32, 0xb3, 0x03, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
- 0x65, 0x12, 0xb4, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x58,
- 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x17, 0x62, 0x62, 0x2e, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x67,
- 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x7d, 0x12, 0xe1, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c,
- 0x6f, 0x67, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,
- 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x7f, 0xda, 0x41, 0x13,
- 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d,
- 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x1a, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a,
- 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x32, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x63,
- 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,
- 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x7d, 0x42, 0x11, 0x5a, 0x0f,
- 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62,
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69,
+ 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x3f, 0x0a, 0x07, 0x43, 0x6f, 0x6c, 0x75,
+ 0x6d, 0x6e, 0x73, 0x12, 0x34, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
+ 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e,
+ 0x64, 0x22, 0xc2, 0x02, 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, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e,
+ 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
+ 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x06,
+ 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0x26, 0x0a, 0x0e,
+ 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73,
+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0xd3, 0x04, 0x0a, 0x0c, 0x4f, 0x62, 0x6a, 0x65, 0x63,
+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 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, 0x47, 0x0a, 0x0b, 0x73,
+ 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0x44, 0x0a, 0x0a, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x6b, 0x69,
+ 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65,
+ 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x1a,
+ 0xbc, 0x01, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x54,
+ 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 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, 0x58, 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, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
+ 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0x3a,
+ 0x0a, 0x09, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x6b,
+ 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 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, 0x32, 0xb3, 0x03, 0x0a,
+ 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,
+ 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb4, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x26,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74,
+ 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x58, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30,
+ 0x17, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61,
+ 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,
+ 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,
+ 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x7d, 0x12, 0xe1,
+ 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f,
+ 0x67, 0x22, 0x7f, 0xda, 0x41, 0x13, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2c, 0x75, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x1a, 0x62, 0x62, 0x2e,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73,
+ 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x32, 0x32,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
+ 0x67, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,
+ 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/proto/store/database.proto b/proto/store/database.proto
index 1bc47fb4b3..72fb6bc4eb 100644
--- a/proto/store/database.proto
+++ b/proto/store/database.proto
@@ -722,7 +722,7 @@ message TableCatalog {
optional ObjectSchema object_schema = 7;
- string classification_id = 3;
+ string classification = 3;
// The last updater of the table in branch.
// Format: users/{userUID}.
@@ -740,12 +740,12 @@ message ColumnCatalog {
// The name is the name of a column.
string name = 1;
- string semantic_type_id = 2;
+ string semantic_type = 2;
// The user labels for a column.
map<string, string> labels = 3;
- string classification_id = 4;
+ string classification = 4;
optional ObjectSchema object_schema = 5;
@@ -767,6 +767,7 @@ message ObjectSchema {
ARRAY = 5;
}
Type type = 1;
+
message StructKind {
map<string, ObjectSchema> properties = 1;
}
@@ -777,6 +778,8 @@ message ObjectSchema {
StructKind struct_kind = 2;
ArrayKind array_kind = 3;
}
+
+ string semantic_type = 4;
}
message FunctionConfig {
diff --git a/proto/v1/database_catalog_service.proto b/proto/v1/database_catalog_service.proto
index 91c158dc81..5838352347 100644
--- a/proto/v1/database_catalog_service.proto
+++ b/proto/v1/database_catalog_service.proto
@@ -81,18 +81,18 @@ message TableCatalog {
ObjectSchema object_schema = 3;
}
- string classification_id = 4;
+ string classification = 4;
}
message ColumnCatalog {
string name = 1;
- string semantic_type_id = 2;
+ string semantic_type = 2;
// The user labels for a column.
map<string, string> labels = 3;
- string classification_id = 4;
+ string classification = 4;
optional ObjectSchema object_schema = 5;
}
@@ -107,6 +107,7 @@ message ObjectSchema {
ARRAY = 5;
}
Type type = 1;
+
message StructKind {
map<string, ObjectSchema> properties = 1;
}
@@ -117,4 +118,6 @@ message ObjectSchema {
StructKind struct_kind = 2;
ArrayKind array_kind = 3;
}
+
+ string semantic_type = 4;
}