Skip to content

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

feat: introduce default type (#8687)

rebelice2be185137cc0
diff --git a/backend/api/v1/database_service.go b/backend/api/v1/database_service.go
index 0a1ed315df..f99942317c 100644
--- a/backend/api/v1/database_service.go
+++ b/backend/api/v1/database_service.go
@@ -1921,10 +1921,10 @@ func convertDatabaseMetadata(database *store.DatabaseMessage, metadata *storepb.
UserComment: table.UserComment,
}
for _, column := range table.Columns {
- t.Columns = append(t.Columns, &v1pb.ColumnMetadata{
+ columnMetadata := &v1pb.ColumnMetadata{
Name: column.Name,
Position: column.Position,
- Default: column.Default,
+ HasDefault: column.DefaultValue != nil,
Nullable: column.Nullable,
Type: column.Type,
CharacterSet: column.CharacterSet,
@@ -1932,7 +1932,22 @@ func convertDatabaseMetadata(database *store.DatabaseMessage, metadata *storepb.
Comment: column.Comment,
Classification: column.Classification,
UserComment: column.UserComment,
- })
+ }
+ if columnMetadata.HasDefault {
+ switch value := column.DefaultValue.(type) {
+ case *storepb.ColumnMetadata_Default:
+ if value.Default == nil {
+ columnMetadata.Default = &v1pb.ColumnMetadata_DefaultNull{DefaultNull: true}
+ } else {
+ columnMetadata.Default = &v1pb.ColumnMetadata_DefaultString{DefaultString: value.Default.Value}
+ }
+ case *storepb.ColumnMetadata_DefaultNull:
+ columnMetadata.Default = &v1pb.ColumnMetadata_DefaultNull{DefaultNull: true}
+ case *storepb.ColumnMetadata_DefaultExpression:
+ columnMetadata.Default = &v1pb.ColumnMetadata_DefaultExpression{DefaultExpression: value.DefaultExpression}
+ }
+ }
+ t.Columns = append(t.Columns, columnMetadata)
}
for _, index := range table.Indexes {
t.Indexes = append(t.Indexes, &v1pb.IndexMetadata{
diff --git a/backend/api/v1/schema_design_transformer.go b/backend/api/v1/schema_design_transformer.go
index 270e49f706..85b10293a9 100644
--- a/backend/api/v1/schema_design_transformer.go
+++ b/backend/api/v1/schema_design_transformer.go
@@ -9,7 +9,6 @@ import (
"github.com/pkg/errors"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
- "google.golang.org/protobuf/types/known/wrapperspb"
mysql "github.com/bytebase/mysql-parser"
@@ -23,10 +22,6 @@ func transformDatabaseMetadataToSchemaString(engine v1pb.Engine, database *v1pb.
switch engine {
case v1pb.Engine_MYSQL:
return getMySQLDesignSchema("", database)
- case v1pb.Engine_TIDB:
- return getTiDBDesignSchema("", database)
- case v1pb.Engine_POSTGRES:
- return pgSchemaEngine.GetDesignSchema("", database)
default:
return "", status.Errorf(codes.InvalidArgument, fmt.Sprintf("unsupported engine: %v", engine))
}
@@ -455,11 +450,43 @@ func (i *indexState) toString(buf *strings.Builder) error {
return nil
}
+type defaultValue interface {
+ isDefaultValue()
+ toString() string
+}
+
+type defaultValueNull struct {
+}
+
+func (*defaultValueNull) isDefaultValue() {}
+func (*defaultValueNull) toString() string {
+ return "NULL"
+}
+
+type defaultValueString struct {
+ value string
+}
+
+func (*defaultValueString) isDefaultValue() {}
+func (d *defaultValueString) toString() string {
+ return fmt.Sprintf("'%s'", strings.ReplaceAll(d.value, "'", "''"))
+}
+
+type defaultValueExpression struct {
+ value string
+}
+
+func (*defaultValueExpression) isDefaultValue() {}
+func (d *defaultValueExpression) toString() string {
+ return d.value
+}
+
type columnState struct {
id int
name string
tp string
- defaultValue *string
+ hasDefault bool
+ defaultValue defaultValue
comment string
nullable bool
}
@@ -477,8 +504,8 @@ func (c *columnState) toString(buf *strings.Builder) error {
return err
}
}
- if c.defaultValue != nil {
- if _, err := buf.WriteString(fmt.Sprintf(" DEFAULT %s", *c.defaultValue)); err != nil {
+ if c.hasDefault {
+ if _, err := buf.WriteString(fmt.Sprintf(" DEFAULT %s", c.defaultValue.toString())); err != nil {
return err
}
}
@@ -492,27 +519,43 @@ func (c *columnState) toString(buf *strings.Builder) error {
func (c *columnState) convertToColumnMetadata() *v1pb.ColumnMetadata {
result := &v1pb.ColumnMetadata{
- Name: c.name,
- Type: c.tp,
- Nullable: c.nullable,
- Comment: c.comment,
- }
- if c.defaultValue != nil {
- result.Default = &wrapperspb.StringValue{Value: *c.defaultValue}
+ Name: c.name,
+ Type: c.tp,
+ HasDefault: c.hasDefault,
+ Nullable: c.nullable,
+ Comment: c.comment,
+ }
+ if c.hasDefault {
+ switch value := c.defaultValue.(type) {
+ case *defaultValueNull:
+ result.Default = &v1pb.ColumnMetadata_DefaultNull{DefaultNull: true}
+ case *defaultValueString:
+ result.Default = &v1pb.ColumnMetadata_DefaultString{DefaultString: value.value}
+ case *defaultValueExpression:
+ result.Default = &v1pb.ColumnMetadata_DefaultExpression{DefaultExpression: value.value}
+ }
}
return result
}
func convertToColumnState(id int, column *v1pb.ColumnMetadata) *columnState {
result := &columnState{
- id: id,
- name: column.Name,
- tp: column.Type,
- nullable: column.Nullable,
- comment: column.Comment,
- }
- if column.Default != nil {
- result.defaultValue = &column.Default.Value
+ id: id,
+ name: column.Name,
+ tp: column.Type,
+ hasDefault: column.HasDefault,
+ nullable: column.Nullable,
+ comment: column.Comment,
+ }
+ if column.HasDefault {
+ switch value := column.Default.(type) {
+ case *v1pb.ColumnMetadata_DefaultNull:
+ result.defaultValue = &defaultValueNull{}
+ case *v1pb.ColumnMetadata_DefaultString:
+ result.defaultValue = &defaultValueString{value: value.DefaultString}
+ case *v1pb.ColumnMetadata_DefaultExpression:
+ result.defaultValue = &defaultValueExpression{value: value.DefaultExpression}
+ }
}
return result
}
@@ -658,6 +701,7 @@ func (t *mysqlTransformer) EnterColumnDefinition(ctx *mysql.ColumnDefinitionCont
id: len(table.columns),
name: columnName,
tp: dataType,
+ hasDefault: false,
defaultValue: nil,
comment: "",
nullable: true,
@@ -673,7 +717,17 @@ func (t *mysqlTransformer) EnterColumnDefinition(ctx *mysql.ColumnDefinitionCont
Start: defaultValueStart,
Stop: attribute.GetStop().GetTokenIndex(),
})
- columnState.defaultValue = &defaultValue
+ columnState.hasDefault = true
+ switch {
+ case strings.EqualFold(defaultValue, "NULL"):
+ columnState.defaultValue = &defaultValueNull{}
+ case strings.HasPrefix(defaultValue, "'") && strings.HasSuffix(defaultValue, "'"):
+ columnState.defaultValue = &defaultValueString{value: strings.ReplaceAll(defaultValue[1:len(defaultValue)-1], "''", "'")}
+ case strings.HasPrefix(defaultValue, "\"") && strings.HasSuffix(defaultValue, "\""):
+ columnState.defaultValue = &defaultValueString{value: strings.ReplaceAll(defaultValue[1:len(defaultValue)-1], "\"\"", "\"")}
+ default:
+ columnState.defaultValue = &defaultValueExpression{value: defaultValue}
+ }
case attribute.COMMENT_SYMBOL() != nil:
commentStart := nextDefaultChannelTokenIndex(ctx.GetParser().GetTokenStream(), attribute.COMMENT_SYMBOL().GetSymbol().GetTokenIndex())
comment := attribute.GetParser().GetTokenStream().GetTextFromInterval(antlr.Interval{
@@ -980,9 +1034,9 @@ func extractNewAttrs(column *columnState, attrs []mysql.IColumnAttributeContext)
order: columnAttrOrder["NULL"],
})
}
- if !defaultExists && column.defaultValue != nil {
+ if !defaultExists && column.hasDefault {
result = append(result, columnAttr{
- text: "DEFAULT " + *column.defaultValue,
+ text: "DEFAULT " + column.defaultValue.toString(),
order: columnAttrOrder["DEFAULT"],
})
}
@@ -1218,11 +1272,22 @@ func (g *mysqlDesignSchemaGenerator) EnterColumnDefinition(ctx *mysql.ColumnDefi
}
case attribute.DEFAULT_SYMBOL() != nil && attribute.SERIAL_SYMBOL() == nil:
defaultValueStart := nextDefaultChannelTokenIndex(attribute.GetParser().GetTokenStream(), attribute.DEFAULT_SYMBOL().GetSymbol().GetTokenIndex())
- defaultValue := attribute.GetParser().GetTokenStream().GetTextFromInterval(antlr.Interval{
+ defaultValueText := attribute.GetParser().GetTokenStream().GetTextFromInterval(antlr.Interval{
Start: defaultValueStart,
Stop: attribute.GetStop().GetTokenIndex(),
})
- if column.defaultValue != nil && *column.defaultValue == defaultValue {
+ var defaultValue defaultValue
+ switch {
+ case strings.EqualFold(defaultValueText, "NULL"):
+ defaultValue = &defaultValueNull{}
+ case strings.HasPrefix(defaultValueText, "'") && strings.HasSuffix(defaultValueText, "'"):
+ defaultValue = &defaultValueString{value: strings.ReplaceAll(defaultValueText[1:len(defaultValueText)-1], "''", "'")}
+ case strings.HasPrefix(defaultValueText, "\"") && strings.HasSuffix(defaultValueText, "\""):
+ defaultValue = &defaultValueString{value: strings.ReplaceAll(defaultValueText[1:len(defaultValueText)-1], "\"\"", "\"")}
+ default:
+ defaultValue = &defaultValueExpression{value: defaultValueText}
+ }
+ if column.hasDefault && column.defaultValue.toString() == defaultValue.toString() {
if _, err := g.columnDefine.WriteString(ctx.GetParser().GetTokenStream().GetTextFromInterval(antlr.Interval{
Start: startPos,
Stop: attribute.GetStop().GetTokenIndex(),
@@ -1230,7 +1295,7 @@ func (g *mysqlDesignSchemaGenerator) EnterColumnDefinition(ctx *mysql.ColumnDefi
g.err = err
return
}
- } else if column.defaultValue != nil {
+ } else if column.hasDefault {
if _, err := g.columnDefine.WriteString(ctx.GetParser().GetTokenStream().GetTextFromInterval(antlr.Interval{
Start: startPos,
Stop: defaultValueStart - 1,
@@ -1238,7 +1303,7 @@ func (g *mysqlDesignSchemaGenerator) EnterColumnDefinition(ctx *mysql.ColumnDefi
g.err = err
return
}
- if _, err := g.columnDefine.WriteString(*column.defaultValue); err != nil {
+ if _, err := g.columnDefine.WriteString(column.defaultValue.toString()); err != nil {
g.err = err
return
}
diff --git a/backend/api/v1/schema_design_transformer_test.go b/backend/api/v1/schema_design_transformer_test.go
index e5155edada..db1ed618b8 100644
--- a/backend/api/v1/schema_design_transformer_test.go
+++ b/backend/api/v1/schema_design_transformer_test.go
@@ -7,6 +7,7 @@ import (
"testing"
"github.com/stretchr/testify/require"
+ "google.golang.org/protobuf/encoding/protojson"
"gopkg.in/yaml.v3"
v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"
@@ -14,7 +15,7 @@ import (
type deparseTest struct {
Engine v1pb.Engine
- Metadata *v1pb.DatabaseMetadata
+ Metadata string
Schema string
}
@@ -37,7 +38,9 @@ func TestDeparseSchemaString(t *testing.T) {
a.NoError(yaml.Unmarshal(byteValue, &tests))
for i, t := range tests {
- result, err := transformDatabaseMetadataToSchemaString(t.Engine, t.Metadata)
+ metadata := &v1pb.DatabaseMetadata{}
+ a.NoError(protojson.Unmarshal([]byte(t.Metadata), metadata))
+ result, err := transformDatabaseMetadataToSchemaString(t.Engine, metadata)
a.NoError(err)
if record {
tests[i].Schema = strings.TrimSpace(result)
@@ -57,7 +60,7 @@ func TestDeparseSchemaString(t *testing.T) {
type transformTest struct {
Engine v1pb.Engine
Schema string
- Metadata *v1pb.DatabaseMetadata
+ Metadata string
}
func TestTransformSchemaString(t *testing.T) {
@@ -82,9 +85,9 @@ func TestTransformSchemaString(t *testing.T) {
result, err := transformSchemaStringToDatabaseMetadata(t.Engine, t.Schema)
a.NoError(err)
if record {
- tests[i].Metadata = result
+ tests[i].Metadata = protojson.Format(result)
} else {
- a.Equal(t.Metadata, result)
+ a.Equal(t.Metadata, protojson.Format(result))
}
}
@@ -99,7 +102,7 @@ func TestTransformSchemaString(t *testing.T) {
type designTest struct {
Engine v1pb.Engine
Baseline string
- Target *v1pb.DatabaseMetadata
+ Target string
Result string
}
@@ -122,7 +125,9 @@ func TestGetDesignSchema(t *testing.T) {
a.NoError(yaml.Unmarshal(byteValue, &tests))
for i, t := range tests {
- result, err := getDesignSchema(t.Engine, t.Baseline, t.Target)
+ targetMeta := &v1pb.DatabaseMetadata{}
+ a.NoError(protojson.Unmarshal([]byte(t.Target), targetMeta))
+ result, err := getDesignSchema(t.Engine, t.Baseline, targetMeta)
a.NoError(err)
if record {
tests[i].Result = result
@@ -141,7 +146,7 @@ func TestGetDesignSchema(t *testing.T) {
type checkTest struct {
Engine v1pb.Engine
- Metadata *v1pb.DatabaseMetadata
+ Metadata string
Err string
}
@@ -164,7 +169,9 @@ func TestCheckDatabaseMetadata(t *testing.T) {
a.NoError(yaml.Unmarshal(byteValue, &tests))
for i, t := range tests {
- err := checkDatabaseMetadata(t.Engine, t.Metadata)
+ meta := &v1pb.DatabaseMetadata{}
+ a.NoError(protojson.Unmarshal([]byte(t.Metadata), meta))
+ err := checkDatabaseMetadata(t.Engine, meta)
if record {
if err != nil {
tests[i].Err = err.Error()
diff --git a/backend/api/v1/schema_design_transformer_tidb.go b/backend/api/v1/schema_design_transformer_tidb.go
index fe2ac8cd4f..2467a615d8 100644
--- a/backend/api/v1/schema_design_transformer_tidb.go
+++ b/backend/api/v1/schema_design_transformer_tidb.go
@@ -91,12 +91,25 @@ func (t *tidbTransformer) Enter(in tidbast.Node) (tidbast.Node, bool) {
return in, true
}
columnState := &columnState{
- id: len(table.columns),
- name: columnName,
- tp: dataType,
- defaultValue: defaultValue,
- comment: comment,
- nullable: tidbColumnCanNull(column),
+ id: len(table.columns),
+ name: columnName,
+ tp: dataType,
+ comment: comment,
+ nullable: tidbColumnCanNull(column),
+ }
+
+ if defaultValue == nil {
+ columnState.hasDefault = false
+ } else {
+ columnState.hasDefault = true
+ switch {
+ case strings.EqualFold(*defaultValue, "NULL"):
+ columnState.defaultValue = &defaultValueNull{}
+ case strings.HasPrefix(*defaultValue, "'") && strings.HasSuffix(*defaultValue, "'"):
+ columnState.defaultValue = &defaultValueString{value: strings.ReplaceAll((*defaultValue)[1:len(*defaultValue)-1], "''", "'")}
+ default:
+ columnState.defaultValue = &defaultValueExpression{value: *defaultValue}
+ }
}
table.columns[columnName] = columnState
@@ -480,24 +493,33 @@ func (g *tidbDesignSchemaGenerator) Enter(in tidbast.Node) (tidbast.Node, bool)
}
}
case tidbast.ColumnOptionDefaultValue:
- defaultValue, err := columnDefaultValue(column)
+ defaultValueText, err := columnDefaultValue(column)
if err != nil {
g.err = err
return in, true
}
- if stateColumn.defaultValue != nil && *stateColumn.defaultValue == *defaultValue {
+ var defaultValue defaultValue
+ switch {
+ case strings.EqualFold(*defaultValueText, "NULL"):
+ defaultValue = &defaultValueNull{}
+ case strings.HasPrefix(*defaultValueText, "'") && strings.HasSuffix(*defaultValueText, "'"):
+ defaultValue = &defaultValueString{value: strings.ReplaceAll((*defaultValueText)[1:len(*defaultValueText)-1], "''", "'")}
+ default:
+ defaultValue = &defaultValueExpression{value: *defaultValueText}
+ }
+ if stateColumn.hasDefault && stateColumn.defaultValue.toString() == defaultValue.toString() {
if defaultStr, err := tidbRestoreNodeDefault(option); err == nil {
if _, err := g.columnDefine.WriteString(" " + defaultStr); err != nil {
g.err = err
return in, true
}
}
- } else if stateColumn.defaultValue != nil {
+ } else if stateColumn.hasDefault {
if _, err := g.columnDefine.WriteString(" DEFAUL"); err != nil {
g.err = err
return in, true
}
- if _, err := g.columnDefine.WriteString(" " + *stateColumn.defaultValue); err != nil {
+ if _, err := g.columnDefine.WriteString(" " + stateColumn.defaultValue.toString()); err != nil {
g.err = err
return in, true
}
@@ -805,9 +827,9 @@ func tidbExtractNewAttrs(column *columnState, options []*tidbast.ColumnOption) [
order: columnAttrOrder["NULL"],
})
}
- if !defaultExists && column.defaultValue != nil {
+ if !defaultExists && column.hasDefault {
result = append(result, columnAttr{
- text: "DEFAULT " + *column.defaultValue,
+ text: "DEFAULT " + column.defaultValue.toString(),
order: columnAttrOrder["DEFAULT"],
})
}
diff --git a/backend/api/v1/schema_design_transformer_tidb_test.go b/backend/api/v1/schema_design_transformer_tidb_test.go
index de949aa16c..a477728758 100644
--- a/backend/api/v1/schema_design_transformer_tidb_test.go
+++ b/backend/api/v1/schema_design_transformer_tidb_test.go
@@ -6,7 +6,10 @@ import (
"testing"
"github.com/stretchr/testify/require"
+ "google.golang.org/protobuf/encoding/protojson"
"gopkg.in/yaml.v3"
+
+ v1pb "github.com/bytebase/bytebase/proto/generated-go/v1"
)
func TestTiDBTransformSchemaString(t *testing.T) {
@@ -31,9 +34,9 @@ func TestTiDBTransformSchemaString(t *testing.T) {
result, err := transformSchemaStringToDatabaseMetadata(t.Engine, t.Schema)
a.NoError(err)
if record {
- tests[i].Metadata = result
+ tests[i].Metadata = protojson.Format(result)
} else {
- a.Equal(t.Metadata, result)
+ a.Equal(t.Metadata, protojson.Format(result))
}
}
@@ -64,7 +67,9 @@ func TestTiDBGetDesignSchema(t *testing.T) {
a.NoError(yaml.Unmarshal(byteValue, &tests))
for i, t := range tests {
- result, err := getDesignSchema(t.Engine, t.Baseline, t.Target)
+ targetMeta := &v1pb.DatabaseMetadata{}
+ a.NoError(protojson.Unmarshal([]byte(t.Target), targetMeta))
+ result, err := getDesignSchema(t.Engine, t.Baseline, targetMeta)
a.NoError(err)
if record {
tests[i].Result = result
@@ -100,7 +105,9 @@ func TestTiDBCheckDatabaseMetadata(t *testing.T) {
a.NoError(yaml.Unmarshal(byteValue, &tests))
for i, t := range tests {
- err := checkDatabaseMetadata(t.Engine, t.Metadata)
+ meta := &v1pb.DatabaseMetadata{}
+ a.NoError(protojson.Unmarshal([]byte(t.Metadata), meta))
+ err := checkDatabaseMetadata(t.Engine, meta)
if record {
if err != nil {
tests[i].Err = err.Error()
diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.go
index ad4e5b103a..912e2e8c75 100644
--- a/backend/api/v1/setting_service.go
+++ b/backend/api/v1/setting_service.go
@@ -742,8 +742,15 @@ func (s *SettingService) validateSchemaTemplate(ctx context.Context, schemaTempl
func convertToAddColumnContext(column *v1pb.ColumnMetadata) *api.AddColumnContext {
var defaultVal string
- if column.Default != nil {
- defaultVal = column.Default.Value
+ if column.HasDefault {
+ switch value := column.Default.(type) {
+ case *v1pb.ColumnMetadata_DefaultNull:
+ defaultVal = "NULL"
+ case *v1pb.ColumnMetadata_DefaultString:
+ defaultVal = fmt.Sprintf("'%s'", strings.ReplaceAll(value.DefaultString, "'", "''"))
+ case *v1pb.ColumnMetadata_DefaultExpression:
+ defaultVal = value.DefaultExpression
+ }
}
return &api.AddColumnContext{
diff --git a/backend/api/v1/testdata/check.yaml b/backend/api/v1/testdata/check.yaml
index 4abc58592e..0eaf05bfe7 100644
--- a/backend/api/v1/testdata/check.yaml
+++ b/backend/api/v1/testdata/check.yaml
@@ -1,510 +1,355 @@
- engine: 2
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: '''NULL'''
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: ""
- engine: 2
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: abcd
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: '''NULL'''
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "abcd",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: column a type abcd is invalid in table t
- engine: 2
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: '''NULL'''
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - c
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "c"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: primary key column c not found in table t
- engine: 2
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: '''NULL'''
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - a
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "a"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: foreign key fk1 in table t references column a in table t2 but not found
- engine: 2
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: '''NULL'''
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t3
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t3",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: foreign key fk1 in table t references table t3 but not found
diff --git a/backend/api/v1/testdata/deparse.yaml b/backend/api/v1/testdata/deparse.yaml
index d9d16c265c..32987f19bc 100644
--- a/backend/api/v1/testdata/deparse.yaml
+++ b/backend/api/v1/testdata/deparse.yaml
@@ -1,118 +1,85 @@
- engine: 2
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: c
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: abcdefg
- effectivemaskinglevel: 0
- - name: b
- position: 0
- default:
- value: '''NULL'''
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "c",
+ "nullable": true,
+ "type": "int"
+ },
+ {
+ "name": "a",
+ "hasDefault": true,
+ "defaultExpression": "1",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg",
+ "userComment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "hasDefault": true,
+ "defaultString": "NULL",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "hasDefault": true,
+ "defaultNull": true,
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
schema: |-
CREATE TABLE `t` (
`c` int NULL,
diff --git a/backend/api/v1/testdata/design.yaml b/backend/api/v1/testdata/design.yaml
index 321e956b74..8e6ceed33a 100644
--- a/backend/api/v1/testdata/design.yaml
+++ b/backend/api/v1/testdata/design.yaml
@@ -16,176 +16,112 @@
PRIMARY KEY (`a`, `c`, `d`),
CONSTRAINT fk1 FOREIGN KEY (`a`) REFERENCES `t2` (`b`)
);
- target:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: t4
- columns:
- - name: a
- position: 0
- default:
- value: '''default value'''
- nullable: false
- type: varchar(10)
- characterset: ""
- collation: ""
- comment: this is comment, aha
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: b
- position: 0
- default: null
- nullable: false
- type: char(10)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: c
- position: 0
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: e
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- - c
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - b
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: a
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - b
- referencedschema: ""
- referencedtable: t4
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ target: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "type": "int"
+ }
+ ]
+ },
+ {
+ "name": "t4",
+ "columns": [
+ {
+ "name": "a",
+ "type": "varchar(10)",
+ "hasDefault": true,
+ "defaultString": "default value",
+ "comment": "this is comment, aha"
+ },
+ {
+ "name": "b",
+ "type": "char(10)"
+ },
+ {
+ "name": "c",
+ "type": "int"
+ },
+ {
+ "name": "e",
+ "nullable": true,
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b",
+ "c"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "b"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "int"
+ },
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "b"
+ ],
+ "referencedTable": "t4",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
result: |+
CREATE TABLE `t` (
`a` int NOT NULL
diff --git a/backend/api/v1/testdata/schema.yaml b/backend/api/v1/testdata/schema.yaml
index df6e924c65..354203f8bd 100644
--- a/backend/api/v1/testdata/schema.yaml
+++ b/backend/api/v1/testdata/schema.yaml
@@ -9,113 +9,84 @@
constraint fk1 foreign key (a) references t2 (b)
);
create table t2(b int NOT NULL default NULL, primary key (b));
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: c
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: abcdefg
- - name: b
- position: 0
- default:
- value: '''NULL'''
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "c",
+ "nullable": true,
+ "type": "int"
+ },
+ {
+ "name": "a",
+ "hasDefault": true,
+ "defaultExpression": "1",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg",
+ "userComment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "hasDefault": true,
+ "defaultString": "NULL",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "hasDefault": true,
+ "defaultNull": true,
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
diff --git a/backend/api/v1/testdata/tidb/check.yaml b/backend/api/v1/testdata/tidb/check.yaml
index 03ea0cf650..ec113883a6 100644
--- a/backend/api/v1/testdata/tidb/check.yaml
+++ b/backend/api/v1/testdata/tidb/check.yaml
@@ -1,510 +1,355 @@
- engine: 6
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: "'NULL'"
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: ""
- engine: 6
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: abcd
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: "'NULL'"
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "abcd",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: column a type abcd is invalid in table t
- engine: 6
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: "'NULL'"
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - c
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "c"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: primary key column c not found in table t
- engine: 6
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: "'NULL'"
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - a
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "a"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: foreign key fk1 in table t references column a in table t2 but not found
- engine: 6
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: ""
- - name: b
- position: 0
- default:
- value: "'NULL'"
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t3
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t3",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: foreign key fk1 in table t references table t3 but not found
diff --git a/backend/api/v1/testdata/tidb/design.yaml b/backend/api/v1/testdata/tidb/design.yaml
index 3bde3d24ae..e4e9ce2915 100644
--- a/backend/api/v1/testdata/tidb/design.yaml
+++ b/backend/api/v1/testdata/tidb/design.yaml
@@ -20,234 +20,149 @@
`id` int(11) NOT NULL COMMENT 'ID',
PRIMARY KEY (`id`) /*T![clustered_index] CLUSTERED */
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
- target:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: users
- columns:
- - name: id
- position: 0
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ID
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: age
- position: 0
- default: null
- nullable: true
- type: varbinary(500)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: name
- position: 0
- default: null
- nullable: true
- type: binary(10)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: PRIMARY
- expressions:
- - id
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: t
- columns:
- - name: a
- position: 0
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: t4
- columns:
- - name: a
- position: 0
- default:
- value: '''default value'''
- nullable: false
- type: varchar(10)
- characterset: ""
- collation: ""
- comment: this is comment, aha
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: b
- position: 0
- default: null
- nullable: false
- type: char(10)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: c
- position: 0
- default:
- value: "1"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: col_b
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: e
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: col_e
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- - c
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - b
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: a
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - b
- referencedschema: ""
- referencedtable: t4
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- schemaconfigs: []
+ target: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "users",
+ "columns": [
+ {
+ "name": "id",
+ "type": "int",
+ "comment": "ID"
+ },
+ {
+ "name": "age",
+ "nullable": true,
+ "type": "varbinary(500)"
+ },
+ {
+ "name": "name",
+ "nullable": true,
+ "type": "binary(10)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "id"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ },
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "type": "int"
+ }
+ ]
+ },
+ {
+ "name": "t4",
+ "columns": [
+ {
+ "name": "a",
+ "type": "varchar(10)",
+ "hasDefault": true,
+ "defaultString": "default value",
+ "comment": "this is comment, aha"
+ },
+ {
+ "name": "b",
+ "type": "char(10)"
+ },
+ {
+ "name": "c",
+ "type": "int",
+ "hasDefault": true,
+ "defaultExpression": "1",
+ "comment": "col_b"
+ },
+ {
+ "name": "e",
+ "nullable": true,
+ "type": "int",
+ "hasDefault": true,
+ "defaultExpression": "1",
+ "comment": "col_e"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b",
+ "c"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "b"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "int"
+ },
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "b"
+ ],
+ "referencedTable": "t4",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
result: |
CREATE TABLE `t` (
`a` int NOT NULL
diff --git a/backend/api/v1/testdata/tidb/schema.yaml b/backend/api/v1/testdata/tidb/schema.yaml
index 2f6a3cd051..b928536173 100644
--- a/backend/api/v1/testdata/tidb/schema.yaml
+++ b/backend/api/v1/testdata/tidb/schema.yaml
@@ -11,133 +11,94 @@
constraint fk1 foreign key (a) references t2 (b)
);
create table t2(b int NOT NULL default NULL, primary key (b));
- metadata:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: c
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: abcdefg
- classification: ""
- usercomment: abcdefg
- - name: b
- position: 0
- default:
- value: "'NULL'"
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: d
- position: 0
- default: null
- nullable: true
- type: varbinary(500)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: e
- position: 0
- default: null
- nullable: true
- type: binary(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "c",
+ "nullable": true,
+ "type": "int"
+ },
+ {
+ "name": "a",
+ "hasDefault": true,
+ "defaultExpression": "1",
+ "nullable": true,
+ "type": "int",
+ "comment": "abcdefg",
+ "userComment": "abcdefg"
+ },
+ {
+ "name": "b",
+ "hasDefault": true,
+ "defaultString": "NULL",
+ "nullable": true,
+ "type": "varchar(20)"
+ },
+ {
+ "name": "d",
+ "nullable": true,
+ "type": "varbinary(500)"
+ },
+ {
+ "name": "e",
+ "nullable": true,
+ "type": "binary(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "hasDefault": true,
+ "defaultNull": true,
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
diff --git a/backend/plugin/advisor/catalog/state.go b/backend/plugin/advisor/catalog/state.go
index 48b2027b5b..9edee15b15 100644
--- a/backend/plugin/advisor/catalog/state.go
+++ b/backend/plugin/advisor/catalog/state.go
@@ -104,8 +104,18 @@ func newTableState(t *storepb.TableMetadata) *TableState {
func newColumnState(c *storepb.ColumnMetadata, position int) *ColumnState {
defaultValue := (*string)(nil)
- if c.Default != nil {
- defaultValue = copyStringPointer(&c.Default.Value)
+ if c.DefaultValue != nil {
+ switch value := c.DefaultValue.(type) {
+ case *storepb.ColumnMetadata_Default:
+ if value != nil {
+ defaultValue = copyStringPointer(&value.Default.Value)
+ }
+ case *storepb.ColumnMetadata_DefaultNull:
+ nullValue := "NULL"
+ defaultValue = &nullValue
+ case *storepb.ColumnMetadata_DefaultExpression:
+ defaultValue = copyStringPointer(&value.DefaultExpression)
+ }
}
return &ColumnState{
name: c.Name,
diff --git a/backend/plugin/advisor/catalog/test/mysql_walk_through.yaml b/backend/plugin/advisor/catalog/test/mysql_walk_through.yaml
index 20d6e2a582..691a04403f 100644
--- a/backend/plugin/advisor/catalog/test/mysql_walk_through.yaml
+++ b/backend/plugin/advisor/catalog/test/mysql_walk_through.yaml
@@ -1,24 +1,24 @@
- statement: CREATE TABLE t(a date default '');
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 407
- content: "[types:1292]Incorrect datetime value: ''"
+ content: '[types:1292]Incorrect datetime value: '''''
line: 1
payload: null
- statement: |-
CREATE TABLE t(a TEXT);
ALTER TABLE T ALTER COLUMN a SET DEFAULT '1';
ignore_case_sensitive: true
- want: null
+ want: ""
err:
type: 407
content: BLOB, TEXT, GEOMETRY or JSON column `a` can't have a default value
line: 2
payload: null
-- statement: " CREATE TABLE t(a TEXT DEFAULT '1')"
+- statement: ' CREATE TABLE t(a TEXT DEFAULT ''1'')'
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 407
content: BLOB, TEXT, GEOMETRY or JSON column `a` can't have a default value
@@ -28,39 +28,39 @@
CREATE TABLE t(a INT NOT NULL);
ALTER TABLE t ALTER COLUMN a SET DEFAULT NULL;
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 406
content: Invalid default value for column `a`
line: 2
payload: null
-- statement: " CREATE TABLE t(a INT NOT NULL DEFAULT NULL)"
+- statement: ' CREATE TABLE t(a INT NOT NULL DEFAULT NULL)'
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 406
content: Invalid default value for column `a`
line: 1
payload: null
-- statement: " CREATE TABLE t(a int ON UPDATE NOW())"
+- statement: ' CREATE TABLE t(a int ON UPDATE NOW())'
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 405
content: Column `a` use ON UPDATE but is not DATETIME or TIMESTAMP
line: 1
payload: null
-- statement: " CREATE TABLE t(a int auto_increment, b int auto_increment);"
+- statement: ' CREATE TABLE t(a int auto_increment, b int auto_increment);'
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 404
content: There can be only one auto column for table `t`
line: 1
payload: null
-- statement: " CREATE TABLE t as select * from t1;"
+- statement: ' CREATE TABLE t as select * from t1;'
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 303
content: Disallow the CREATE TABLE AS statement but "CREATE TABLE t as select * from t1;" uses
@@ -68,7 +68,7 @@
payload: null
- statement: "\n\t\t\t\tCREATE TABLE t(a int, b int); \n\t\t\t\tCREATE INDEX idx_c on t(c);\n\t\t\t"
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 402
content: Column `c` does not exist in table `t`
@@ -76,7 +76,7 @@
payload: null
- statement: "\n\t\t\t\tCREATE TABLE t(a int, b int); \n\t\t\t\tALTER TABLE t MODIFY COLUMN c int;\n\t\t\t"
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 402
content: Column `c` does not exist in table `t`
@@ -84,7 +84,7 @@
payload: null
- statement: "\n\t\t\t\tCREATE TABLE t(a int, b int); \n\t\t\t\tALTER TABLE t CHANGE COLUMN c aa int;\n\t\t\t"
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 402
content: Column `c` does not exist in table `t`
@@ -92,7 +92,7 @@
payload: null
- statement: "\n\t\t\t\tCREATE TABLE t(a int, b int); \n\t\t\t\tALTER TABLE t DROP COLUMN c;\n\t\t\t"
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 402
content: Column `c` does not exist in table `t`
@@ -100,7 +100,7 @@
payload: null
- statement: "\n\t\t\t\tCREATE TABLE t(a int, b int); \n\t\t\t\tALTER TABLE t RENAME COLUMN c TO cc;\n\t\t\t"
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 402
content: Column `c` does not exist in table `t`
@@ -108,7 +108,7 @@
payload: null
- statement: "\n\t\t\t\tCREATE TABLE t(a int, b int); \n\t\t\t\tALTER TABLE t RENAME COLUMN c TO cc;\n\t\t\t"
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 402
content: Column `c` does not exist in table `t`
@@ -116,7 +116,7 @@
payload: null
- statement: "\n\t\t\t\tCREATE TABLE t(a int, b int); \n\t\t\t\tALTER TABLE t ALTER COLUMN c DROP DEFAULT;\n\t\t\t"
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 402
content: Column `c` does not exist in table `t`
@@ -126,20 +126,15 @@
ALTER DATABASE CHARACTER SET = utf8mb4;
ALTER DATABASE test COLLATE utf8mb4_polish_ci;
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: utf8mb4
- collation: utf8mb4_polish_ci
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {}
+ ],
+ "characterSet": "utf8mb4",
+ "collation": "utf8mb4_polish_ci"
+ }
err: null
- statement: |-
CREATE TABLE t(
@@ -154,234 +149,192 @@
);
CREATE TABLE t_copy like t;
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default:
- value: "1"
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: false
- type: varchar(200)
- characterset: utf8mb4
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: c
- position: 3
- default: null
- nullable: true
- type: int(11)
- characterset: ""
- collation: ""
- comment: This is a comment
- classification: ""
- usercomment: ""
- - name: d
- position: 4
- default: null
- nullable: true
- type: varchar(10)
- characterset: ""
- collation: utf8mb4_polish_ci
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- type: BTREE
- unique: true
- primary: true
- visible: true
- comment: ""
- - name: b
- expressions:
- - b
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_2
- expressions:
- - b
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- - name: b_3
- expressions:
- - b
- - c
- - d
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_4
- expressions:
- - b
- - d
- type: FULLTEXT
- unique: false
- primary: false
- visible: false
- comment: ""
- - name: idx_a
- expressions:
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: t_copy
- columns:
- - name: a
- position: 1
- default:
- value: "1"
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: false
- type: varchar(200)
- characterset: utf8mb4
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: c
- position: 3
- default: null
- nullable: true
- type: int(11)
- characterset: ""
- collation: ""
- comment: This is a comment
- classification: ""
- usercomment: ""
- - name: d
- position: 4
- default: null
- nullable: true
- type: varchar(10)
- characterset: ""
- collation: utf8mb4_polish_ci
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- type: BTREE
- unique: true
- primary: true
- visible: true
- comment: ""
- - name: b
- expressions:
- - b
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_2
- expressions:
- - b
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- - name: b_3
- expressions:
- - b
- - c
- - d
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_4
- expressions:
- - b
- - d
- type: FULLTEXT
- unique: false
- primary: false
- visible: false
- comment: ""
- - name: idx_a
- expressions:
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "default": "1",
+ "type": "int(11)"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "type": "varchar(200)",
+ "characterSet": "utf8mb4"
+ },
+ {
+ "name": "c",
+ "position": 3,
+ "nullable": true,
+ "type": "int(11)",
+ "comment": "This is a comment"
+ },
+ {
+ "name": "d",
+ "position": 4,
+ "nullable": true,
+ "type": "varchar(10)",
+ "collation": "utf8mb4_polish_ci"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "primary": true,
+ "visible": true
+ },
+ {
+ "name": "b",
+ "expressions": [
+ "b"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_2",
+ "expressions": [
+ "b",
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ },
+ {
+ "name": "b_3",
+ "expressions": [
+ "b",
+ "c",
+ "d"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_4",
+ "expressions": [
+ "b",
+ "d"
+ ],
+ "type": "FULLTEXT"
+ },
+ {
+ "name": "idx_a",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ }
+ ]
+ },
+ {
+ "name": "t_copy",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "default": "1",
+ "type": "int(11)"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "type": "varchar(200)",
+ "characterSet": "utf8mb4"
+ },
+ {
+ "name": "c",
+ "position": 3,
+ "nullable": true,
+ "type": "int(11)",
+ "comment": "This is a comment"
+ },
+ {
+ "name": "d",
+ "position": 4,
+ "nullable": true,
+ "type": "varchar(10)",
+ "collation": "utf8mb4_polish_ci"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "primary": true,
+ "visible": true
+ },
+ {
+ "name": "b",
+ "expressions": [
+ "b"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_2",
+ "expressions": [
+ "b",
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ },
+ {
+ "name": "b_3",
+ "expressions": [
+ "b",
+ "c",
+ "d"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_4",
+ "expressions": [
+ "b",
+ "d"
+ ],
+ "type": "FULLTEXT"
+ },
+ {
+ "name": "idx_a",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE t(
@@ -395,127 +348,104 @@
FULLTEXT (b, d) WITH PARSER ngram INVISIBLE
)
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default:
- value: "1"
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: false
- type: varchar(200)
- characterset: utf8mb4
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: c
- position: 3
- default: null
- nullable: true
- type: int(11)
- characterset: ""
- collation: ""
- comment: This is a comment
- classification: ""
- usercomment: ""
- - name: d
- position: 4
- default: null
- nullable: true
- type: varchar(10)
- characterset: ""
- collation: utf8mb4_polish_ci
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- type: BTREE
- unique: true
- primary: true
- visible: true
- comment: ""
- - name: b
- expressions:
- - b
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_2
- expressions:
- - b
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- - name: b_3
- expressions:
- - b
- - c
- - d
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_4
- expressions:
- - b
- - d
- type: FULLTEXT
- unique: false
- primary: false
- visible: false
- comment: ""
- - name: idx_a
- expressions:
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "default": "1",
+ "type": "int(11)"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "type": "varchar(200)",
+ "characterSet": "utf8mb4"
+ },
+ {
+ "name": "c",
+ "position": 3,
+ "nullable": true,
+ "type": "int(11)",
+ "comment": "This is a comment"
+ },
+ {
+ "name": "d",
+ "position": 4,
+ "nullable": true,
+ "type": "varchar(10)",
+ "collation": "utf8mb4_polish_ci"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "primary": true,
+ "visible": true
+ },
+ {
+ "name": "b",
+ "expressions": [
+ "b"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_2",
+ "expressions": [
+ "b",
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ },
+ {
+ "name": "b_3",
+ "expressions": [
+ "b",
+ "c",
+ "d"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_4",
+ "expressions": [
+ "b",
+ "d"
+ ],
+ "type": "FULLTEXT"
+ },
+ {
+ "name": "idx_a",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE t(
@@ -524,87 +454,61 @@
PRIMARY KEY (a, b)
)
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default: null
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- - b
- type: BTREE
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "type": "int(11)"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "type": "int(11)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE t1(a int, b int, c int);
CREATE TABLE t2(a int);
DROP TABLE t1, t2
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {}
+ ]
+ }
err: null
-- statement: " DROP TABLE t1, t2"
+- statement: ' DROP TABLE t1, t2'
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 302
content: Table `t1` does not exist
@@ -614,70 +518,46 @@
CREATE TABLE t(a int);
RENAME TABLE t to other_db.t1
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {}
+ ]
+ }
err: null
- statement: |-
CREATE TABLE t(a int);
RENAME TABLE t to test.t1
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables:
- - name: t1
- columns:
- - name: a
- position: 1
- default: null
- nullable: true
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t1",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "nullable": true,
+ "type": "int(11)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
-- this is comment
DROP DATABASE test;
CREATE TABLE t(a int);
ignore_case_sensitive: false
- want: null
+ want: ""
err:
type: 202
content: Database `test` is deleted
@@ -709,127 +589,99 @@
ALTER TABLE t_copy RENAME INDEX b TO idx_b;
ALTER TABLE t_copy ALTER INDEX b_3 INVISIBLE;
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables:
- - name: t_copy
- columns:
- - name: b
- position: 1
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: a_copy
- position: 2
- default: null
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: a1
- position: 3
- default: null
- nullable: true
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: d_copy
- position: 4
- default: null
- nullable: true
- type: varchar(10)
- characterset: ""
- collation: utf8mb4_polish_ci
- comment: ""
- classification: ""
- usercomment: ""
- - name: e
- position: 5
- default: null
- nullable: true
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: b_3
- expressions:
- - b
- - d_copy
- type: BTREE
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: b_4
- expressions:
- - b
- - d_copy
- type: FULLTEXT
- unique: false
- primary: false
- visible: false
- comment: ""
- - name: idx_a
- expressions:
- - a_copy
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- - name: idx_a_b
- expressions:
- - a_copy
- - b
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- - name: idx_b
- expressions:
- - b
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- engine: INNODB
- collation: utf8mb4_0900_ai_ci
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: This is a table comment
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t_copy",
+ "columns": [
+ {
+ "name": "b",
+ "position": 1,
+ "nullable": true,
+ "type": "varchar(20)"
+ },
+ {
+ "name": "a_copy",
+ "position": 2,
+ "type": "int(11)"
+ },
+ {
+ "name": "a1",
+ "position": 3,
+ "nullable": true,
+ "type": "int(11)"
+ },
+ {
+ "name": "d_copy",
+ "position": 4,
+ "nullable": true,
+ "type": "varchar(10)",
+ "collation": "utf8mb4_polish_ci"
+ },
+ {
+ "name": "e",
+ "position": 5,
+ "nullable": true,
+ "type": "int(11)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "b_3",
+ "expressions": [
+ "b",
+ "d_copy"
+ ],
+ "type": "BTREE",
+ "unique": true
+ },
+ {
+ "name": "b_4",
+ "expressions": [
+ "b",
+ "d_copy"
+ ],
+ "type": "FULLTEXT"
+ },
+ {
+ "name": "idx_a",
+ "expressions": [
+ "a_copy"
+ ],
+ "type": "BTREE",
+ "visible": true
+ },
+ {
+ "name": "idx_a_b",
+ "expressions": [
+ "a_copy",
+ "b"
+ ],
+ "type": "BTREE",
+ "visible": true
+ },
+ {
+ "name": "idx_b",
+ "expressions": [
+ "b"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ }
+ ],
+ "engine": "INNODB",
+ "collation": "utf8mb4_0900_ai_ci",
+ "comment": "This is a table comment"
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE t(
@@ -843,127 +695,104 @@
CREATE UNIQUE INDEX b_3 on t(b, c, d);
CREATE FULLTEXT INDEX b_4 on t(b, d) WITH PARSER ngram INVISIBLE;
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default:
- value: "1"
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: false
- type: varchar(200)
- characterset: utf8mb4
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: c
- position: 3
- default: null
- nullable: true
- type: int(11)
- characterset: ""
- collation: ""
- comment: This is a comment
- classification: ""
- usercomment: ""
- - name: d
- position: 4
- default: null
- nullable: true
- type: varchar(10)
- characterset: ""
- collation: utf8mb4_polish_ci
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- type: BTREE
- unique: true
- primary: true
- visible: true
- comment: ""
- - name: b
- expressions:
- - b
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_2
- expressions:
- - b
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- - name: b_3
- expressions:
- - b
- - c
- - d
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_4
- expressions:
- - b
- - d
- type: FULLTEXT
- unique: false
- primary: false
- visible: false
- comment: ""
- - name: idx_a
- expressions:
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "default": "1",
+ "type": "int(11)"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "type": "varchar(200)",
+ "characterSet": "utf8mb4"
+ },
+ {
+ "name": "c",
+ "position": 3,
+ "nullable": true,
+ "type": "int(11)",
+ "comment": "This is a comment"
+ },
+ {
+ "name": "d",
+ "position": 4,
+ "nullable": true,
+ "type": "varchar(10)",
+ "collation": "utf8mb4_polish_ci"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "primary": true,
+ "visible": true
+ },
+ {
+ "name": "b",
+ "expressions": [
+ "b"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_2",
+ "expressions": [
+ "b",
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ },
+ {
+ "name": "b_3",
+ "expressions": [
+ "b",
+ "c",
+ "d"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_4",
+ "expressions": [
+ "b",
+ "d"
+ ],
+ "type": "FULLTEXT"
+ },
+ {
+ "name": "idx_a",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE t(
@@ -972,61 +801,43 @@
);
DROP INDEX b on t;
ignore_case_sensitive: false
- want:
- name: test
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default:
- value: "1"
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: false
- type: varchar(200)
- characterset: utf8mb4
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- type: BTREE
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ want: |-
+ {
+ "name": "test",
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "default": "1",
+ "type": "int(11)"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "type": "varchar(200)",
+ "characterSet": "utf8mb4"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
diff --git a/backend/plugin/advisor/catalog/test/mysql_walk_through_for_incomplete.yaml b/backend/plugin/advisor/catalog/test/mysql_walk_through_for_incomplete.yaml
index f1244fec7f..391284b791 100644
--- a/backend/plugin/advisor/catalog/test/mysql_walk_through_for_incomplete.yaml
+++ b/backend/plugin/advisor/catalog/test/mysql_walk_through_for_incomplete.yaml
@@ -1,110 +1,62 @@
- statement: CREATE INDEX idx_a on t(a)
- want:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns: []
- indexes:
- - name: idx_a
- expressions:
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "indexes": [
+ {
+ "name": "idx_a",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: ALTER TABLE t RENAME COLUMN a TO a_copy
- want:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a_copy
- position: 0
- default: null
- nullable: false
- type: ""
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a_copy"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: ALTER TABLE t RENAME TO t1
- want:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t1
- columns: []
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t1"
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
ALTER TABLE t ADD PRIMARY KEY (a);
@@ -113,86 +65,76 @@
CREATE INDEX b_2 on t(b, a);
CREATE UNIQUE INDEX b_3 on t(b, c, d);
CREATE FULLTEXT INDEX b_4 on t(b, d) WITH PARSER ngram INVISIBLE;
- want:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns: []
- indexes:
- - name: PRIMARY
- expressions:
- - a
- type: BTREE
- unique: true
- primary: true
- visible: true
- comment: ""
- - name: b
- expressions:
- - b
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_2
- expressions:
- - b
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- - name: b_3
- expressions:
- - b
- - c
- - d
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_4
- expressions:
- - b
- - d
- type: FULLTEXT
- unique: false
- primary: false
- visible: false
- comment: ""
- - name: idx_a
- expressions:
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "primary": true,
+ "visible": true
+ },
+ {
+ "name": "b",
+ "expressions": [
+ "b"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_2",
+ "expressions": [
+ "b",
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ },
+ {
+ "name": "b_3",
+ "expressions": [
+ "b",
+ "c",
+ "d"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_4",
+ "expressions": [
+ "b",
+ "d"
+ ],
+ "type": "FULLTEXT"
+ },
+ {
+ "name": "idx_a",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE t(
@@ -205,157 +147,120 @@
UNIQUE (b, c, d),
FULLTEXT (b, d) WITH PARSER ngram INVISIBLE
)
- want:
- name: ""
- schemas:
- - name: ""
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default:
- value: "1"
- nullable: false
- type: int(11)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: false
- type: varchar(200)
- characterset: utf8mb4
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: c
- position: 3
- default: null
- nullable: true
- type: int(11)
- characterset: ""
- collation: ""
- comment: This is a comment
- classification: ""
- usercomment: ""
- - name: d
- position: 4
- default: null
- nullable: true
- type: varchar(10)
- characterset: ""
- collation: utf8mb4_polish_ci
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: PRIMARY
- expressions:
- - a
- type: BTREE
- unique: true
- primary: true
- visible: true
- comment: ""
- - name: b
- expressions:
- - b
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_2
- expressions:
- - b
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- - name: b_3
- expressions:
- - b
- - c
- - d
- type: BTREE
- unique: true
- primary: false
- visible: true
- comment: ""
- - name: b_4
- expressions:
- - b
- - d
- type: FULLTEXT
- unique: false
- primary: false
- visible: false
- comment: ""
- - name: idx_a
- expressions:
- - a
- type: BTREE
- unique: false
- primary: false
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "schemas": [
+ {
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "default": "1",
+ "type": "int(11)"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "type": "varchar(200)",
+ "characterSet": "utf8mb4"
+ },
+ {
+ "name": "c",
+ "position": 3,
+ "nullable": true,
+ "type": "int(11)",
+ "comment": "This is a comment"
+ },
+ {
+ "name": "d",
+ "position": 4,
+ "nullable": true,
+ "type": "varchar(10)",
+ "collation": "utf8mb4_polish_ci"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "primary": true,
+ "visible": true
+ },
+ {
+ "name": "b",
+ "expressions": [
+ "b"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_2",
+ "expressions": [
+ "b",
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ },
+ {
+ "name": "b_3",
+ "expressions": [
+ "b",
+ "c",
+ "d"
+ ],
+ "type": "BTREE",
+ "unique": true,
+ "visible": true
+ },
+ {
+ "name": "b_4",
+ "expressions": [
+ "b",
+ "d"
+ ],
+ "type": "FULLTEXT"
+ },
+ {
+ "name": "idx_a",
+ "expressions": [
+ "a"
+ ],
+ "type": "BTREE",
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: DROP TABLE t1, t2
- want:
- name: ""
- schemas:
- - name: ""
- tables: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "schemas": [
+ {}
+ ]
+ }
err: null
- statement: INSERT INTO test values (1)
- want:
- name: ""
- schemas:
- - name: ""
- tables: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "schemas": [
+ {}
+ ]
+ }
err: null
diff --git a/backend/plugin/advisor/catalog/test/pg_walk_through.yaml b/backend/plugin/advisor/catalog/test/pg_walk_through.yaml
index 22070e4f34..c421565efa 100644
--- a/backend/plugin/advisor/catalog/test/pg_walk_through.yaml
+++ b/backend/plugin/advisor/catalog/test/pg_walk_through.yaml
@@ -1,191 +1,118 @@
- statement: CREATE TABLE t(a int, b int);
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default: null
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: test
- columns:
- - name: id
- position: 1
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "nullable": true,
+ "type": "integer"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "nullable": true,
+ "type": "integer"
+ }
+ ]
+ },
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "id",
+ "position": 1,
+ "type": "int"
+ },
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE public.t(a int, "B" int);
CREATE INDEX ON t(a, "B");
CREATE UNIQUE INDEX ON t(a, "B");
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default: null
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: B
- position: 2
- default: null
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: t_a_B_idx
- expressions:
- - a
- - B
- type: btree
- unique: false
- primary: false
- visible: false
- comment: ""
- - name: t_a_B_idx1
- expressions:
- - a
- - B
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: test
- columns:
- - name: id
- position: 1
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "nullable": true,
+ "type": "integer"
+ },
+ {
+ "name": "B",
+ "position": 2,
+ "nullable": true,
+ "type": "integer"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "t_a_B_idx",
+ "expressions": [
+ "a",
+ "B"
+ ],
+ "type": "btree"
+ },
+ {
+ "name": "t_a_B_idx1",
+ "expressions": [
+ "a",
+ "B"
+ ],
+ "type": "btree",
+ "unique": true
+ }
+ ]
+ },
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "id",
+ "position": 1,
+ "type": "int"
+ },
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE public.t(
@@ -195,134 +122,94 @@
UNIQUE (a, b, c),
CONSTRAINT uk_a_b UNIQUE (a, b)
)
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default: null
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default:
- value: "1"
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: c
- position: 3
- default: null
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: t_a_b_c_idx
- expressions:
- - a
- - b
- - c
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: t_c_idx
- expressions:
- - c
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: t_pkey
- expressions:
- - a
- type: btree
- unique: true
- primary: true
- visible: false
- comment: ""
- - name: uk_a_b
- expressions:
- - a
- - b
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: test
- columns:
- - name: id
- position: 1
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "type": "integer"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "default": "1",
+ "type": "integer"
+ },
+ {
+ "name": "c",
+ "position": 3,
+ "nullable": true,
+ "type": "integer"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "t_a_b_c_idx",
+ "expressions": [
+ "a",
+ "b",
+ "c"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "t_c_idx",
+ "expressions": [
+ "c"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "t_pkey",
+ "expressions": [
+ "a"
+ ],
+ "type": "btree",
+ "unique": true,
+ "primary": true
+ },
+ {
+ "name": "uk_a_b",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "type": "btree",
+ "unique": true
+ }
+ ]
+ },
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "id",
+ "position": 1,
+ "type": "int"
+ },
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE public.t(
@@ -344,142 +231,101 @@
alter table t1 add constraint uk_d unique (d);
alter table t1 add constraint ukk_d unique (d);
alter table t1 drop constraint ukk_d;
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: t1
- columns:
- - name: a1
- position: 1
- default:
- value: "1"
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default: null
- nullable: false
- type: bigint
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: d
- position: 4
- default: null
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: t_a_b_c_idx
- expressions:
- - a1
- - b
- - c
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: t_c_idx
- expressions:
- - c
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: t_pkey
- expressions:
- - a1
- type: btree
- unique: true
- primary: true
- visible: false
- comment: ""
- - name: uk_d
- expressions:
- - d
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: ukk_a_b
- expressions:
- - a1
- - b
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: test
- columns:
- - name: id
- position: 1
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "t1",
+ "columns": [
+ {
+ "name": "a1",
+ "position": 1,
+ "default": "1",
+ "type": "integer"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "type": "bigint"
+ },
+ {
+ "name": "d",
+ "position": 4,
+ "type": "integer"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "t_a_b_c_idx",
+ "expressions": [
+ "a1",
+ "b",
+ "c"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "t_c_idx",
+ "expressions": [
+ "c"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "t_pkey",
+ "expressions": [
+ "a1"
+ ],
+ "type": "btree",
+ "unique": true,
+ "primary": true
+ },
+ {
+ "name": "uk_d",
+ "expressions": [
+ "d"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "ukk_a_b",
+ "expressions": [
+ "a1",
+ "b"
+ ],
+ "type": "btree",
+ "unique": true
+ }
+ ]
+ },
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "id",
+ "position": 1,
+ "type": "int"
+ },
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE public.t(
@@ -490,134 +336,94 @@
CONSTRAINT uk_a_b UNIQUE (a, b)
);
alter index uk_a_b rename to ukk_a_b;
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default: null
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default:
- value: "1"
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: c
- position: 3
- default: null
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: t_a_b_c_idx
- expressions:
- - a
- - b
- - c
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: t_c_idx
- expressions:
- - c
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: t_pkey
- expressions:
- - a
- type: btree
- unique: true
- primary: true
- visible: false
- comment: ""
- - name: ukk_a_b
- expressions:
- - a
- - b
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: test
- columns:
- - name: id
- position: 1
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "type": "integer"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "default": "1",
+ "type": "integer"
+ },
+ {
+ "name": "c",
+ "position": 3,
+ "nullable": true,
+ "type": "integer"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "t_a_b_c_idx",
+ "expressions": [
+ "a",
+ "b",
+ "c"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "t_c_idx",
+ "expressions": [
+ "c"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "t_pkey",
+ "expressions": [
+ "a"
+ ],
+ "type": "btree",
+ "unique": true,
+ "primary": true
+ },
+ {
+ "name": "ukk_a_b",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "type": "btree",
+ "unique": true
+ }
+ ]
+ },
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "id",
+ "position": 1,
+ "type": "int"
+ },
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE public.t(
@@ -628,125 +434,85 @@
CONSTRAINT uk_a_b UNIQUE (a, b)
);
drop index uk_a_b;
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: t
- columns:
- - name: a
- position: 1
- default: null
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: b
- position: 2
- default:
- value: "1"
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: c
- position: 3
- default: null
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes:
- - name: t_a_b_c_idx
- expressions:
- - a
- - b
- - c
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: t_c_idx
- expressions:
- - c
- type: btree
- unique: true
- primary: false
- visible: false
- comment: ""
- - name: t_pkey
- expressions:
- - a
- type: btree
- unique: true
- primary: true
- visible: false
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: test
- columns:
- - name: id
- position: 1
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 1,
+ "type": "integer"
+ },
+ {
+ "name": "b",
+ "position": 2,
+ "default": "1",
+ "type": "integer"
+ },
+ {
+ "name": "c",
+ "position": 3,
+ "nullable": true,
+ "type": "integer"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "t_a_b_c_idx",
+ "expressions": [
+ "a",
+ "b",
+ "c"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "t_c_idx",
+ "expressions": [
+ "c"
+ ],
+ "type": "btree",
+ "unique": true
+ },
+ {
+ "name": "t_pkey",
+ "expressions": [
+ "a"
+ ],
+ "type": "btree",
+ "unique": true,
+ "primary": true
+ }
+ ]
+ },
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "id",
+ "position": 1,
+ "type": "int"
+ },
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE public.t(
@@ -757,54 +523,34 @@
CONSTRAINT uk_a_b UNIQUE (a, b)
);
drop table t;
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: test
- columns:
- - name: id
- position: 1
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "id",
+ "position": 1,
+ "type": "int"
+ },
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
CREATE TABLE public.t(
@@ -815,17 +561,15 @@
CONSTRAINT uk_a_b UNIQUE (a, b)
);
drop schema public;
- want:
- name: postgres
- schemas: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres"
+ }
err: null
- statement: ALTER TABLE test DROP COLUMN id;
- want: null
+ ignore_case_sensitive: false
+ want: ""
err:
type: 408
content: 'Cannot drop column "id" in table "public"."test", it''s referenced by view: "public"."v1"'
@@ -833,7 +577,8 @@
payload:
- '"public"."v1"'
- statement: ALTER TABLE test ALTER COLUMN id TYPE varchar(20);
- want: null
+ ignore_case_sensitive: false
+ want: ""
err:
type: 408
content: 'Cannot alter type of column "id" in table "public"."test", it''s referenced by view: "public"."v1"'
@@ -841,7 +586,8 @@
payload:
- '"public"."v1"'
- statement: DROP TABLE test;
- want: null
+ ignore_case_sensitive: false
+ want: ""
err:
type: 304
content: 'Cannot drop table "public"."test", it''s referenced by view: "public"."v1"'
@@ -851,95 +597,60 @@
- statement: |-
DROP VIEW v1;
ALTER TABLE test DROP COLUMN id;
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: test
- columns:
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
- statement: |-
create view v1 as select * from t;
alter view v1 rename to this_is_view_del;
drop view this_is_view_del;
- want:
- name: postgres
- schemas:
- - name: public
- tables:
- - name: test
- columns:
- - name: id
- position: 1
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- - name: name
- position: 2
- default: null
- nullable: true
- type: varchar(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- datashare: false
- servicename: ""
+ ignore_case_sensitive: false
+ want: |-
+ {
+ "name": "postgres",
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "test",
+ "columns": [
+ {
+ "name": "id",
+ "position": 1,
+ "type": "int"
+ },
+ {
+ "name": "name",
+ "position": 2,
+ "nullable": true,
+ "type": "varchar(20)"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
err: null
diff --git a/backend/plugin/advisor/catalog/walk_through_test.go b/backend/plugin/advisor/catalog/walk_through_test.go
index 381c076aa9..fceefc0467 100644
--- a/backend/plugin/advisor/catalog/walk_through_test.go
+++ b/backend/plugin/advisor/catalog/walk_through_test.go
@@ -8,6 +8,7 @@ import (
"testing"
"github.com/stretchr/testify/require"
+ "google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/types/known/wrapperspb"
"gopkg.in/yaml.v3"
@@ -21,7 +22,7 @@ type testData struct {
Statement string
// Use custom yaml tag to avoid generate field name `ignorecasesensitive`.
IgnoreCaseSensitive bool `yaml:"ignore_case_sensitive"`
- Want *storepb.DatabaseSchemaMetadata
+ Want string
Err *WalkThroughError
}
@@ -158,9 +159,9 @@ func runWalkThroughTest(t *testing.T, file string, engineType storepb.Engine, or
require.NoError(t, err, test.Statement)
if record {
- tests[i].Want = state.convertToDatabaseMetadata()
+ tests[i].Want = protojson.Format(state.convertToDatabaseMetadata())
} else {
- require.Equal(t, test.Want, state.convertToDatabaseMetadata(), test.Statement)
+ require.Equal(t, test.Want, protojson.Format(state.convertToDatabaseMetadata()), test.Statement)
}
}
@@ -291,7 +292,7 @@ func (t *TableState) convertToColumnMetadataList() []*storepb.ColumnMetadata {
}
if column.defaultValue != nil {
- columnMeta.Default = &wrapperspb.StringValue{Value: *column.defaultValue}
+ columnMeta.DefaultValue = &storepb.ColumnMetadata_Default{Default: &wrapperspb.StringValue{Value: *column.defaultValue}}
}
if column.characterSet != nil {
diff --git a/backend/plugin/db/clickhouse/sync.go b/backend/plugin/db/clickhouse/sync.go
index ced14598c9..ed58e59e5e 100644
--- a/backend/plugin/db/clickhouse/sync.go
+++ b/backend/plugin/db/clickhouse/sync.go
@@ -7,8 +7,6 @@ import (
"strings"
"time"
- "google.golang.org/protobuf/types/known/wrapperspb"
-
"github.com/pkg/errors"
"github.com/bytebase/bytebase/backend/plugin/db"
@@ -110,7 +108,8 @@ func (driver *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchema
return nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
columnMap[tableName] = append(columnMap[tableName], column)
}
diff --git a/backend/plugin/db/dm/sync.go b/backend/plugin/db/dm/sync.go
index 5d5a813038..5ebc867a03 100644
--- a/backend/plugin/db/dm/sync.go
+++ b/backend/plugin/db/dm/sync.go
@@ -8,7 +8,6 @@ import (
"time"
"github.com/pkg/errors"
- "google.golang.org/protobuf/types/known/wrapperspb"
"github.com/bytebase/bytebase/backend/plugin/db"
"github.com/bytebase/bytebase/backend/plugin/db/util"
@@ -222,7 +221,8 @@ func getTableColumns(txn *sql.Tx, schemaName string) (map[db.TableKey][]*storepb
return nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
diff --git a/backend/plugin/db/mssql/sync.go b/backend/plugin/db/mssql/sync.go
index c02b4c1141..27f78c5ead 100644
--- a/backend/plugin/db/mssql/sync.go
+++ b/backend/plugin/db/mssql/sync.go
@@ -9,7 +9,6 @@ import (
"time"
"github.com/pkg/errors"
- "google.golang.org/protobuf/types/known/wrapperspb"
"github.com/bytebase/bytebase/backend/plugin/db"
"github.com/bytebase/bytebase/backend/plugin/db/util"
@@ -204,7 +203,8 @@ func getTableColumns(txn *sql.Tx) (map[db.TableKey][]*storepb.ColumnMetadata, er
column.Type = columnType
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
diff --git a/backend/plugin/db/mysql/sync.go b/backend/plugin/db/mysql/sync.go
index c1d3e77a54..fe1c4dc630 100644
--- a/backend/plugin/db/mysql/sync.go
+++ b/backend/plugin/db/mysql/sync.go
@@ -230,7 +230,8 @@ func (driver *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchema
COLUMN_TYPE,
IFNULL(CHARACTER_SET_NAME, ''),
IFNULL(COLLATION_NAME, ''),
- COLUMN_COMMENT
+ COLUMN_COMMENT,
+ EXTRA
FROM information_schema.COLUMNS
WHERE TABLE_SCHEMA = ?
ORDER BY TABLE_NAME, ORDINAL_POSITION`
@@ -241,7 +242,7 @@ func (driver *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchema
defer columnRows.Close()
for columnRows.Next() {
column := &storepb.ColumnMetadata{}
- var tableName, nullable string
+ var tableName, nullable, extra string
var defaultStr sql.NullString
if err := columnRows.Scan(
&tableName,
@@ -253,11 +254,16 @@ func (driver *Driver) SyncDBSchema(ctx context.Context) (*storepb.DatabaseSchema
&column.CharacterSet,
&column.Collation,
&column.Comment,
+ &extra,
); err != nil {
return nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ if strings.Contains(extra, "DEFAULT_GENERATED") {
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: fmt.Sprintf("(%s)", defaultStr.String)}
+ } else {
+ column.DefaultValue = &storepb.ColumnMetadata_Default{Default: &wrapperspb.StringValue{Value: defaultStr.String}}
+ }
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
diff --git a/backend/plugin/db/oracle/sync.go b/backend/plugin/db/oracle/sync.go
index 2d55f4cabd..29d72ba828 100644
--- a/backend/plugin/db/oracle/sync.go
+++ b/backend/plugin/db/oracle/sync.go
@@ -9,7 +9,6 @@ import (
"time"
"github.com/pkg/errors"
- "google.golang.org/protobuf/types/known/wrapperspb"
"github.com/bytebase/bytebase/backend/plugin/db"
"github.com/bytebase/bytebase/backend/plugin/db/util"
@@ -338,7 +337,8 @@ func getTableColumns(txn *sql.Tx, schemaName string) (map[db.TableKey][]*storepb
return nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
diff --git a/backend/plugin/db/pg/sync.go b/backend/plugin/db/pg/sync.go
index 3cbd26e9fa..d135106282 100644
--- a/backend/plugin/db/pg/sync.go
+++ b/backend/plugin/db/pg/sync.go
@@ -12,7 +12,6 @@ import (
"github.com/pkg/errors"
"google.golang.org/protobuf/types/known/durationpb"
"google.golang.org/protobuf/types/known/timestamppb"
- "google.golang.org/protobuf/types/known/wrapperspb"
"github.com/bytebase/bytebase/backend/common"
"github.com/bytebase/bytebase/backend/plugin/db"
@@ -389,7 +388,9 @@ func getTableColumns(txn *sql.Tx) (map[db.TableKey][]*storepb.ColumnMetadata, er
return nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{
+ DefaultExpression: defaultStr.String,
+ }
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
diff --git a/backend/plugin/db/redshift/sync.go b/backend/plugin/db/redshift/sync.go
index 3548406535..a064594060 100644
--- a/backend/plugin/db/redshift/sync.go
+++ b/backend/plugin/db/redshift/sync.go
@@ -12,7 +12,6 @@ import (
"time"
"github.com/pkg/errors"
- "google.golang.org/protobuf/types/known/wrapperspb"
"github.com/bytebase/bytebase/backend/common"
"github.com/bytebase/bytebase/backend/plugin/db"
@@ -473,7 +472,8 @@ func getTableColumns(txn *sql.Tx) (map[db.TableKey][]*storepb.ColumnMetadata, er
return nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
@@ -569,7 +569,8 @@ func (driver *Driver) getDatashareTableColumns(txn *sql.Tx) (map[db.TableKey][]*
return nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
diff --git a/backend/plugin/db/risingwave/sync.go b/backend/plugin/db/risingwave/sync.go
index 13f423bc12..baf3780e00 100644
--- a/backend/plugin/db/risingwave/sync.go
+++ b/backend/plugin/db/risingwave/sync.go
@@ -9,7 +9,6 @@ import (
"time"
"github.com/pkg/errors"
- "google.golang.org/protobuf/types/known/wrapperspb"
"github.com/bytebase/bytebase/backend/common"
"github.com/bytebase/bytebase/backend/plugin/db"
@@ -248,7 +247,8 @@ func getTableColumns(txn *sql.Tx) (map[db.TableKey][]*storepb.ColumnMetadata, er
return nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
diff --git a/backend/plugin/db/snowflake/sync.go b/backend/plugin/db/snowflake/sync.go
index 6578d208a4..390b7afdc5 100644
--- a/backend/plugin/db/snowflake/sync.go
+++ b/backend/plugin/db/snowflake/sync.go
@@ -9,8 +9,6 @@ import (
"strings"
"time"
- "google.golang.org/protobuf/types/known/wrapperspb"
-
"github.com/pkg/errors"
"github.com/snowflakedb/gosnowflake"
@@ -388,7 +386,8 @@ func (driver *Driver) getTableSchema(ctx context.Context, database string) (map[
return nil, nil, err
}
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
isNullBool, err := util.ConvertYesNo(nullable)
if err != nil {
diff --git a/backend/plugin/db/spanner/sync.go b/backend/plugin/db/spanner/sync.go
index f922337ed3..a7bc29423c 100644
--- a/backend/plugin/db/spanner/sync.go
+++ b/backend/plugin/db/spanner/sync.go
@@ -10,7 +10,6 @@ import (
"google.golang.org/api/iterator"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
- "google.golang.org/protobuf/types/known/wrapperspb"
"github.com/pkg/errors"
@@ -200,7 +199,8 @@ func getColumn(ctx context.Context, tx *spanner.ReadOnlyTransaction) (map[db.Tab
}
column.Position = int32(position)
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.StringVal}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.StringVal}
}
key := db.TableKey{Schema: schemaName, Table: tableName}
columnsMap[key] = append(columnsMap[key], column)
diff --git a/backend/plugin/db/sqlite/sync.go b/backend/plugin/db/sqlite/sync.go
index d61301952d..ead4ae1ded 100644
--- a/backend/plugin/db/sqlite/sync.go
+++ b/backend/plugin/db/sqlite/sync.go
@@ -8,7 +8,6 @@ import (
"time"
"github.com/pkg/errors"
- "google.golang.org/protobuf/types/known/wrapperspb"
"github.com/bytebase/bytebase/backend/common"
"github.com/bytebase/bytebase/backend/plugin/db"
@@ -160,7 +159,8 @@ func getTables(txn *sql.Tx) ([]*storepb.TableMetadata, error) {
}
column.Nullable = !notNull
if defaultStr.Valid {
- column.Default = &wrapperspb.StringValue{Value: defaultStr.String}
+ // TODO: use correct default type
+ column.DefaultValue = &storepb.ColumnMetadata_DefaultExpression{DefaultExpression: defaultStr.String}
}
table.Columns = append(table.Columns, column)
diff --git a/backend/plugin/schema-engine/pg/structurer.go b/backend/plugin/schema-engine/pg/structurer.go
index 4765e3c76b..b98d77d093 100644
--- a/backend/plugin/schema-engine/pg/structurer.go
+++ b/backend/plugin/schema-engine/pg/structurer.go
@@ -5,8 +5,6 @@ import (
"sort"
"strings"
- "google.golang.org/protobuf/types/known/wrapperspb"
-
"github.com/antlr4-go/antlr/v4"
"github.com/pkg/errors"
@@ -71,7 +69,8 @@ func ParseToMetadata(schema string) (*v1pb.DatabaseMetadata, error) {
columnState.nullable = false
case ast.ConstraintTypeDefault:
defaultText := constraint.Expression.Text()
- columnState.defaultValue = &defaultText
+ columnState.hasDefault = true
+ columnState.defaultValue = &defaultValueExpression{value: defaultText}
}
}
@@ -135,7 +134,8 @@ func ParseToMetadata(schema string) (*v1pb.DatabaseMetadata, error) {
return nil, errors.Errorf("column %q not found in table %q.%q", item.ColumnName, stmt.Table.Schema, stmt.Table.Name)
}
defaultText := item.Expression.Text()
- column.defaultValue = &defaultText
+ column.defaultValue = &defaultValueExpression{value: defaultText}
+ column.hasDefault = true
case *ast.AddConstraintStmt:
switch item.Constraint.Type {
case ast.ConstraintTypePrimary:
@@ -636,6 +636,37 @@ func (i *indexState) toString(buf *strings.Builder, schemaName, tableName string
return nil
}
+type defaultValue interface {
+ isDefaultValue()
+ toString() string
+}
+
+type defaultValueNull struct {
+}
+
+func (*defaultValueNull) isDefaultValue() {}
+func (*defaultValueNull) toString() string {
+ return "NULL"
+}
+
+type defaultValueString struct {
+ value string
+}
+
+func (*defaultValueString) isDefaultValue() {}
+func (d *defaultValueString) toString() string {
+ return fmt.Sprintf("'%s'", strings.ReplaceAll(d.value, "'", "''"))
+}
+
+type defaultValueExpression struct {
+ value string
+}
+
+func (*defaultValueExpression) isDefaultValue() {}
+func (d *defaultValueExpression) toString() string {
+ return d.value
+}
+
type columnState struct {
// ignore means this column is already in the target schema.
// But we need the columnState to deal with the comment statement.
@@ -646,7 +677,8 @@ type columnState struct {
id int
name string
tp string
- defaultValue *string
+ hasDefault bool
+ defaultValue defaultValue
comment string
nullable bool
}
@@ -671,8 +703,8 @@ func (c *columnState) toString(buf *strings.Builder) error {
return err
}
}
- if c.defaultValue != nil {
- if _, err := buf.WriteString(fmt.Sprintf(" DEFAULT %s", *c.defaultValue)); err != nil {
+ if c.hasDefault {
+ if _, err := buf.WriteString(fmt.Sprintf(" DEFAULT %s", c.defaultValue.toString())); err != nil {
return err
}
}
@@ -681,27 +713,43 @@ func (c *columnState) toString(buf *strings.Builder) error {
func (c *columnState) convertToColumnMetadata() *v1pb.ColumnMetadata {
result := &v1pb.ColumnMetadata{
- Name: c.name,
- Type: c.tp,
- Nullable: c.nullable,
- Comment: c.comment,
- }
- if c.defaultValue != nil {
- result.Default = &wrapperspb.StringValue{Value: *c.defaultValue}
+ Name: c.name,
+ Type: c.tp,
+ Nullable: c.nullable,
+ Comment: c.comment,
+ HasDefault: c.hasDefault,
+ }
+ if c.hasDefault {
+ switch value := c.defaultValue.(type) {
+ case *defaultValueNull:
+ result.Default = &v1pb.ColumnMetadata_DefaultNull{DefaultNull: true}
+ case *defaultValueString:
+ result.Default = &v1pb.ColumnMetadata_DefaultString{DefaultString: value.value}
+ case *defaultValueExpression:
+ result.Default = &v1pb.ColumnMetadata_DefaultExpression{DefaultExpression: value.value}
+ }
}
return result
}
func convertToColumnState(id int, column *v1pb.ColumnMetadata) *columnState {
result := &columnState{
- id: id,
- name: column.Name,
- tp: column.Type,
- nullable: column.Nullable,
- comment: column.Comment,
- }
- if column.Default != nil {
- result.defaultValue = &column.Default.Value
+ id: id,
+ name: column.Name,
+ tp: column.Type,
+ hasDefault: column.HasDefault,
+ nullable: column.Nullable,
+ comment: column.Comment,
+ }
+ if column.HasDefault {
+ switch value := column.Default.(type) {
+ case *v1pb.ColumnMetadata_DefaultNull:
+ result.defaultValue = &defaultValueNull{}
+ case *v1pb.ColumnMetadata_DefaultString:
+ result.defaultValue = &defaultValueString{value: value.DefaultString}
+ case *v1pb.ColumnMetadata_DefaultExpression:
+ result.defaultValue = &defaultValueExpression{value: value.DefaultExpression}
+ }
}
return result
}
@@ -1407,14 +1455,14 @@ func (g *designSchemaGenerator) EnterColumnDef(ctx *postgres.ColumnDefContext) {
needOneSpace = true
}
- if column.defaultValue != nil && !defaultExists(ctx.Colquallist()) {
+ if column.hasDefault && !defaultExists(ctx.Colquallist()) {
if needOneSpace {
if _, err := g.columnDefine.WriteString(" "); err != nil {
g.err = err
return
}
}
- if _, err := g.columnDefine.WriteString(fmt.Sprintf("DEFAULT %s", *column.defaultValue)); err != nil {
+ if _, err := g.columnDefine.WriteString(fmt.Sprintf("DEFAULT %s", column.defaultValue.toString())); err != nil {
g.err = err
return
}
@@ -1463,7 +1511,7 @@ func (g *designSchemaGenerator) EnterColumnDef(ctx *postgres.ColumnDefContext) {
Start: constraint.B_expr().GetStart().GetTokenIndex(),
Stop: constraint.B_expr().GetStop().GetTokenIndex(),
})
- if column.defaultValue != nil && *column.defaultValue == defaultValue {
+ if column.hasDefault && column.defaultValue.toString() == defaultValue {
if _, err := g.columnDefine.WriteString(ctx.GetParser().GetTokenStream().GetTextFromInterval(
antlr.Interval{
Start: startPos,
@@ -1473,7 +1521,7 @@ func (g *designSchemaGenerator) EnterColumnDef(ctx *postgres.ColumnDefContext) {
g.err = err
return
}
- } else if column.defaultValue != nil {
+ } else if column.hasDefault {
if _, err := g.columnDefine.WriteString(ctx.GetParser().GetTokenStream().GetTextFromInterval(
antlr.Interval{
Start: startPos,
@@ -1483,7 +1531,7 @@ func (g *designSchemaGenerator) EnterColumnDef(ctx *postgres.ColumnDefContext) {
g.err = err
return
}
- if _, err := g.columnDefine.WriteString(*column.defaultValue); err != nil {
+ if _, err := g.columnDefine.WriteString(column.defaultValue.toString()); err != nil {
g.err = err
return
}
diff --git a/backend/plugin/schema-engine/pg/structurer_test.go b/backend/plugin/schema-engine/pg/structurer_test.go
index 25409e63c4..7d1951f5c4 100644
--- a/backend/plugin/schema-engine/pg/structurer_test.go
+++ b/backend/plugin/schema-engine/pg/structurer_test.go
@@ -6,6 +6,7 @@ import (
"testing"
"github.com/stretchr/testify/require"
+ "google.golang.org/protobuf/encoding/protojson"
"gopkg.in/yaml.v3"
// Import PostgreSQL parser.
@@ -15,12 +16,12 @@ import (
type parseToMetadataTest struct {
Schema string
- Metadata *v1pb.DatabaseMetadata
+ Metadata string
}
func TestParseToMetadata(t *testing.T) {
const (
- record = true
+ record = false
)
var (
filepath = "testdata/parse_to_metadata.yaml"
@@ -32,17 +33,22 @@ func TestParseToMetadata(t *testing.T) {
tests := []parseToMetadataTest{}
byteValue, err := io.ReadAll(yamlFile)
- a.NoError(yamlFile.Close())
a.NoError(err)
+ a.NoError(yamlFile.Close())
a.NoError(yaml.Unmarshal(byteValue, &tests))
for i, t := range tests {
result, err := ParseToMetadata(t.Schema)
a.NoError(err)
+ resultText := protojson.Format(result)
if record {
- tests[i].Metadata = result
+ tests[i].Metadata = resultText
} else {
- a.Equal(t.Metadata, result)
+ resultMeta := &v1pb.DatabaseMetadata{}
+ expectedMeta := &v1pb.DatabaseMetadata{}
+ a.NoError(protojson.Unmarshal([]byte(t.Metadata), resultMeta))
+ a.NoError(protojson.Unmarshal([]byte(t.Metadata), expectedMeta))
+ a.Equal(expectedMeta, resultMeta)
}
}
@@ -56,7 +62,7 @@ func TestParseToMetadata(t *testing.T) {
type getSchemaDesignTest struct {
Baseline string
- Target *v1pb.DatabaseMetadata
+ Target string
Result string
}
@@ -79,7 +85,9 @@ func TestGetSchemaDesign(t *testing.T) {
a.NoError(yaml.Unmarshal(byteValue, &tests))
for i, t := range tests {
- result, err := GetDesignSchema(t.Baseline, t.Target)
+ targetSchema := &v1pb.DatabaseMetadata{}
+ a.NoError(protojson.Unmarshal([]byte(t.Target), targetSchema))
+ result, err := GetDesignSchema(t.Baseline, targetSchema)
a.NoError(err)
if record {
tests[i].Result = result
diff --git a/backend/plugin/schema-engine/pg/testdata/get_design_schema.yaml b/backend/plugin/schema-engine/pg/testdata/get_design_schema.yaml
index b8b5837f61..68c70f5535 100644
--- a/backend/plugin/schema-engine/pg/testdata/get_design_schema.yaml
+++ b/backend/plugin/schema-engine/pg/testdata/get_design_schema.yaml
@@ -17,208 +17,138 @@
COMMENT ON COLUMN public.t4.c IS 'comment with ''; test escape';
ALTER TABLE public.t4 ADD CONSTRAINT pk_t4_a_c_d PRIMARY KEY (a, c, d);
ALTER TABLE public.t4 ADD CONSTRAINT fk_t4_a_t2_b FOREIGN KEY (a) REFERENCES public.t2 (b);
- target:
- name: ""
- schemas:
- - name: s1
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- - name: public
- tables:
- - name: t
- columns:
- - name: a
- position: 0
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes: []
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- - name: t4
- columns:
- - name: a
- position: 0
- default:
- value: '''default value'''
- nullable: false
- type: varchar(10)
- characterset: ""
- collation: ""
- comment: this is comment', aha
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: b
- position: 0
- default: null
- nullable: false
- type: char(10)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: c
- position: 0
- default: null
- nullable: false
- type: int
- characterset: ""
- collation: ""
- comment: comment with '; test escape
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: e
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: pk_t4_a_c_d
- expressions:
- - a
- - b
- - c
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk_t4_a_t2_b
- columns:
- - b
- referencedschema: public
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: a
- position: 0
- default: null
- nullable: true
- type: int
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: PRIMARY
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: fk_t2_b_t4_b
- columns:
- - b
- referencedschema: public
- referencedtable: t4
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- schemaconfigs: []
+ target: |-
+ {
+ "schemas": [
+ {
+ "name": "s1",
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "position": 0,
+ "nullable": false,
+ "type": "int"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "a",
+ "nullable": false,
+ "type": "integer"
+ }
+ ],
+ "indexes": [],
+ "foreignKeys": []
+ },
+ {
+ "name": "t4",
+ "columns": [
+ {
+ "name": "a",
+ "hasDefault": true,
+ "defaultExpression": "'default value'",
+ "nullable": false,
+ "type": "varchar(10)",
+ "comment": "this is comment', aha"
+ },
+ {
+ "name": "b",
+ "nullable": false,
+ "type": "char(10)"
+ },
+ {
+ "name": "c",
+ "nullable": false,
+ "type": "int",
+ "comment": "comment with '; test escape"
+ },
+ {
+ "name": "e",
+ "nullable": true,
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "pk_t4_a_c_d",
+ "expressions": [
+ "a",
+ "b",
+ "c"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk_t4_a_t2_b",
+ "columns": [
+ "b"
+ ],
+ "referencedSchema": "public",
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "nullable": true,
+ "type": "int"
+ },
+ {
+ "name": "a",
+ "nullable": true,
+ "type": "int"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "PRIMARY",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "fk_t2_b_t4_b",
+ "columns": [
+ "b"
+ ],
+ "referencedSchema": "public",
+ "referencedTable": "t4",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
result: |+
CREATE TABLE public."t" (
"a" int NOT NULL,
diff --git a/backend/plugin/schema-engine/pg/testdata/parse_to_metadata.yaml b/backend/plugin/schema-engine/pg/testdata/parse_to_metadata.yaml
index 2fcea6507c..11b4e099e3 100644
--- a/backend/plugin/schema-engine/pg/testdata/parse_to_metadata.yaml
+++ b/backend/plugin/schema-engine/pg/testdata/parse_to_metadata.yaml
@@ -9,118 +9,84 @@
);
create table public.t2(b int NOT NULL default NULL, constraint t2_pk primary key (b));
comment on column public.t.a is 'this is a comment';
- metadata:
- name: ""
- schemas:
- - name: public
- tables:
- - name: t
- columns:
- - name: c
- position: 0
- default: null
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: a
- position: 0
- default:
- value: "1"
- nullable: true
- type: integer
- characterset: ""
- collation: ""
- comment: this is a comment
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- - name: b
- position: 0
- default:
- value: '''NULL'''
- nullable: true
- type: character varying(20)
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: t_pk
- expressions:
- - a
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys:
- - name: t_fk1
- columns:
- - a
- referencedschema: ""
- referencedtable: t2
- referencedcolumns:
- - b
- ondelete: ""
- onupdate: ""
- matchtype: ""
- - name: t2
- columns:
- - name: b
- position: 0
- default:
- value: "NULL"
- nullable: false
- type: integer
- characterset: ""
- collation: ""
- comment: ""
- classification: ""
- usercomment: ""
- effectivemaskinglevel: 0
- indexes:
- - name: t2_pk
- expressions:
- - b
- type: ""
- unique: true
- primary: true
- visible: true
- comment: ""
- engine: ""
- collation: ""
- rowcount: 0
- datasize: 0
- indexsize: 0
- datafree: 0
- createoptions: ""
- comment: ""
- classification: ""
- usercomment: ""
- foreignkeys: []
- views: []
- functions: []
- streams: []
- tasks: []
- characterset: ""
- collation: ""
- extensions: []
- schemaconfigs: []
+ metadata: |-
+ {
+ "schemas": [
+ {
+ "name": "public",
+ "tables": [
+ {
+ "name": "t",
+ "columns": [
+ {
+ "name": "c",
+ "nullable": true,
+ "type": "integer"
+ },
+ {
+ "name": "a",
+ "hasDefault": true,
+ "defaultExpression": "1",
+ "nullable": true,
+ "type": "integer",
+ "comment": "this is a comment"
+ },
+ {
+ "name": "b",
+ "hasDefault": true,
+ "defaultExpression": "'NULL'",
+ "nullable": true,
+ "type": "character varying(20)"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "t_pk",
+ "expressions": [
+ "a",
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ],
+ "foreignKeys": [
+ {
+ "name": "t_fk1",
+ "columns": [
+ "a"
+ ],
+ "referencedTable": "t2",
+ "referencedColumns": [
+ "b"
+ ]
+ }
+ ]
+ },
+ {
+ "name": "t2",
+ "columns": [
+ {
+ "name": "b",
+ "hasDefault": true,
+ "defaultExpression": "NULL",
+ "type": "integer"
+ }
+ ],
+ "indexes": [
+ {
+ "name": "t2_pk",
+ "expressions": [
+ "b"
+ ],
+ "unique": true,
+ "primary": true,
+ "visible": true
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
diff --git a/frontend/src/types/proto/store/database.ts b/frontend/src/types/proto/store/database.ts
index 78e28df1fe..93543be10a 100644
--- a/frontend/src/types/proto/store/database.ts
+++ b/frontend/src/types/proto/store/database.ts
@@ -260,7 +260,9 @@ export interface ColumnMetadata {
/** The position is the position in columns. */
position: number;
/** The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. */
- default:
+ default?: string | undefined;
+ defaultNull?: boolean | undefined;
+ defaultExpression?:
| string
| undefined;
/** The nullable is the nullable of a column. */
@@ -1476,6 +1478,8 @@ function createBaseColumnMetadata(): ColumnMetadata {
name: "",
position: 0,
default: undefined,
+ defaultNull: undefined,
+ defaultExpression: undefined,
nullable: false,
type: "",
characterSet: "",
@@ -1497,26 +1501,32 @@ export const ColumnMetadata = {
if (message.default !== undefined) {
StringValue.encode({ value: message.default! }, writer.uint32(26).fork()).ldelim();
}
+ if (message.defaultNull !== undefined) {
+ writer.uint32(32).bool(message.defaultNull);
+ }
+ if (message.defaultExpression !== undefined) {
+ writer.uint32(42).string(message.defaultExpression);
+ }
if (message.nullable === true) {
- writer.uint32(32).bool(message.nullable);
+ writer.uint32(48).bool(message.nullable);
}
if (message.type !== "") {
- writer.uint32(42).string(message.type);
+ writer.uint32(58).string(message.type);
}
if (message.characterSet !== "") {
- writer.uint32(50).string(message.characterSet);
+ writer.uint32(66).string(message.characterSet);
}
if (message.collation !== "") {
- writer.uint32(58).string(message.collation);
+ writer.uint32(74).string(message.collation);
}
if (message.comment !== "") {
- writer.uint32(66).string(message.comment);
+ writer.uint32(82).string(message.comment);
}
if (message.classification !== "") {
- writer.uint32(74).string(message.classification);
+ writer.uint32(90).string(message.classification);
}
if (message.userComment !== "") {
- writer.uint32(82).string(message.userComment);
+ writer.uint32(98).string(message.userComment);
}
return writer;
},
@@ -1554,48 +1564,62 @@ export const ColumnMetadata = {
break;
}
- message.nullable = reader.bool();
+ message.defaultNull = reader.bool();
continue;
case 5:
if (tag !== 42) {
break;
}
- message.type = reader.string();
+ message.defaultExpression = reader.string();
continue;
case 6:
- if (tag !== 50) {
+ if (tag !== 48) {
break;
}
- message.characterSet = reader.string();
+ message.nullable = reader.bool();
continue;
case 7:
if (tag !== 58) {
break;
}
- message.collation = reader.string();
+ message.type = reader.string();
continue;
case 8:
if (tag !== 66) {
break;
}
- message.comment = reader.string();
+ message.characterSet = reader.string();
continue;
case 9:
if (tag !== 74) {
break;
}
- message.classification = reader.string();
+ message.collation = reader.string();
continue;
case 10:
if (tag !== 82) {
break;
}
+ message.comment = reader.string();
+ continue;
+ case 11:
+ if (tag !== 90) {
+ break;
+ }
+
+ message.classification = reader.string();
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
message.userComment = reader.string();
continue;
}
@@ -1612,6 +1636,8 @@ export const ColumnMetadata = {
name: isSet(object.name) ? String(object.name) : "",
position: isSet(object.position) ? Number(object.position) : 0,
default: isSet(object.default) ? String(object.default) : undefined,
+ defaultNull: isSet(object.defaultNull) ? Boolean(object.defaultNull) : undefined,
+ defaultExpression: isSet(object.defaultExpression) ? String(object.defaultExpression) : undefined,
nullable: isSet(object.nullable) ? Boolean(object.nullable) : false,
type: isSet(object.type) ? String(object.type) : "",
characterSet: isSet(object.characterSet) ? String(object.characterSet) : "",
@@ -1627,6 +1653,8 @@ export const ColumnMetadata = {
message.name !== undefined && (obj.name = message.name);
message.position !== undefined && (obj.position = Math.round(message.position));
message.default !== undefined && (obj.default = message.default);
+ message.defaultNull !== undefined && (obj.defaultNull = message.defaultNull);
+ message.defaultExpression !== undefined && (obj.defaultExpression = message.defaultExpression);
message.nullable !== undefined && (obj.nullable = message.nullable);
message.type !== undefined && (obj.type = message.type);
message.characterSet !== undefined && (obj.characterSet = message.characterSet);
@@ -1646,6 +1674,8 @@ export const ColumnMetadata = {
message.name = object.name ?? "";
message.position = object.position ?? 0;
message.default = object.default ?? undefined;
+ message.defaultNull = object.defaultNull ?? undefined;
+ message.defaultExpression = object.defaultExpression ?? undefined;
message.nullable = object.nullable ?? false;
message.type = object.type ?? "";
message.characterSet = object.characterSet ?? "";
diff --git a/frontend/src/types/proto/v1/database_service.ts b/frontend/src/types/proto/v1/database_service.ts
index 316238270c..4bdca83cbd 100644
--- a/frontend/src/types/proto/v1/database_service.ts
+++ b/frontend/src/types/proto/v1/database_service.ts
@@ -5,7 +5,6 @@ import { Duration } from "../google/protobuf/duration";
import { Empty } from "../google/protobuf/empty";
import { FieldMask } from "../google/protobuf/field_mask";
import { Timestamp } from "../google/protobuf/timestamp";
-import { StringValue } from "../google/protobuf/wrappers";
import { MaskingLevel, maskingLevelFromJSON, maskingLevelToJSON, State, stateFromJSON, stateToJSON } from "./common";
import { PushEvent } from "./vcs";
@@ -425,8 +424,10 @@ export interface ColumnMetadata {
name: string;
/** The position is the position in columns. */
position: number;
- /** The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. */
- default:
+ hasDefault: boolean;
+ defaultNull?: boolean | undefined;
+ defaultString?: string | undefined;
+ defaultExpression?:
| string
| undefined;
/** The nullable is the nullable of a column. */
@@ -3576,7 +3577,10 @@ function createBaseColumnMetadata(): ColumnMetadata {
return {
name: "",
position: 0,
- default: undefined,
+ hasDefault: false,
+ defaultNull: undefined,
+ defaultString: undefined,
+ defaultExpression: undefined,
nullable: false,
type: "",
characterSet: "",
@@ -3596,32 +3600,41 @@ export const ColumnMetadata = {
if (message.position !== 0) {
writer.uint32(16).int32(message.position);
}
- if (message.default !== undefined) {
- StringValue.encode({ value: message.default! }, writer.uint32(26).fork()).ldelim();
+ if (message.hasDefault === true) {
+ writer.uint32(24).bool(message.hasDefault);
+ }
+ if (message.defaultNull !== undefined) {
+ writer.uint32(32).bool(message.defaultNull);
+ }
+ if (message.defaultString !== undefined) {
+ writer.uint32(42).string(message.defaultString);
+ }
+ if (message.defaultExpression !== undefined) {
+ writer.uint32(50).string(message.defaultExpression);
}
if (message.nullable === true) {
- writer.uint32(32).bool(message.nullable);
+ writer.uint32(56).bool(message.nullable);
}
if (message.type !== "") {
- writer.uint32(42).string(message.type);
+ writer.uint32(66).string(message.type);
}
if (message.characterSet !== "") {
- writer.uint32(50).string(message.characterSet);
+ writer.uint32(74).string(message.characterSet);
}
if (message.collation !== "") {
- writer.uint32(58).string(message.collation);
+ writer.uint32(82).string(message.collation);
}
if (message.comment !== "") {
- writer.uint32(66).string(message.comment);
+ writer.uint32(90).string(message.comment);
}
if (message.classification !== "") {
- writer.uint32(74).string(message.classification);
+ writer.uint32(98).string(message.classification);
}
if (message.userComment !== "") {
- writer.uint32(82).string(message.userComment);
+ writer.uint32(106).string(message.userComment);
}
if (message.effectiveMaskingLevel !== 0) {
- writer.uint32(88).int32(message.effectiveMaskingLevel);
+ writer.uint32(112).int32(message.effectiveMaskingLevel);
}
return writer;
},
@@ -3648,63 +3661,84 @@ export const ColumnMetadata = {
message.position = reader.int32();
continue;
case 3:
- if (tag !== 26) {
+ if (tag !== 24) {
break;
}
- message.default = StringValue.decode(reader, reader.uint32()).value;
+ message.hasDefault = reader.bool();
continue;
case 4:
if (tag !== 32) {
break;
}
- message.nullable = reader.bool();
+ message.defaultNull = reader.bool();
continue;
case 5:
if (tag !== 42) {
break;
}
- message.type = reader.string();
+ message.defaultString = reader.string();
continue;
case 6:
if (tag !== 50) {
break;
}
- message.characterSet = reader.string();
+ message.defaultExpression = reader.string();
continue;
case 7:
- if (tag !== 58) {
+ if (tag !== 56) {
break;
}
- message.collation = reader.string();
+ message.nullable = reader.bool();
continue;
case 8:
if (tag !== 66) {
break;
}
- message.comment = reader.string();
+ message.type = reader.string();
continue;
case 9:
if (tag !== 74) {
break;
}
- message.classification = reader.string();
+ message.characterSet = reader.string();
continue;
case 10:
if (tag !== 82) {
break;
}
- message.userComment = reader.string();
+ message.collation = reader.string();
continue;
case 11:
- if (tag !== 88) {
+ if (tag !== 90) {
+ break;
+ }
+
+ message.comment = reader.string();
+ continue;
+ case 12:
+ if (tag !== 98) {
+ break;
+ }
+
+ message.classification = reader.string();
+ continue;
+ case 13:
+ if (tag !== 106) {
+ break;
+ }
+
+ message.userComment = reader.string();
+ continue;
+ case 14:
+ if (tag !== 112) {
break;
}
@@ -3723,7 +3757,10 @@ export const ColumnMetadata = {
return {
name: isSet(object.name) ? String(object.name) : "",
position: isSet(object.position) ? Number(object.position) : 0,
- default: isSet(object.default) ? String(object.default) : undefined,
+ hasDefault: isSet(object.hasDefault) ? Boolean(object.hasDefault) : false,
+ defaultNull: isSet(object.defaultNull) ? Boolean(object.defaultNull) : undefined,
+ defaultString: isSet(object.defaultString) ? String(object.defaultString) : undefined,
+ defaultExpression: isSet(object.defaultExpression) ? String(object.defaultExpression) : undefined,
nullable: isSet(object.nullable) ? Boolean(object.nullable) : false,
type: isSet(object.type) ? String(object.type) : "",
characterSet: isSet(object.characterSet) ? String(object.characterSet) : "",
@@ -3741,7 +3778,10 @@ export const ColumnMetadata = {
const obj: any = {};
message.name !== undefined && (obj.name = message.name);
message.position !== undefined && (obj.position = Math.round(message.position));
- message.default !== undefined && (obj.default = message.default);
+ message.hasDefault !== undefined && (obj.hasDefault = message.hasDefault);
+ message.defaultNull !== undefined && (obj.defaultNull = message.defaultNull);
+ message.defaultString !== undefined && (obj.defaultString = message.defaultString);
+ message.defaultExpression !== undefined && (obj.defaultExpression = message.defaultExpression);
message.nullable !== undefined && (obj.nullable = message.nullable);
message.type !== undefined && (obj.type = message.type);
message.characterSet !== undefined && (obj.characterSet = message.characterSet);
@@ -3762,7 +3802,10 @@ export const ColumnMetadata = {
const message = createBaseColumnMetadata();
message.name = object.name ?? "";
message.position = object.position ?? 0;
- message.default = object.default ?? undefined;
+ message.hasDefault = object.hasDefault ?? false;
+ message.defaultNull = object.defaultNull ?? undefined;
+ message.defaultString = object.defaultString ?? undefined;
+ message.defaultExpression = object.defaultExpression ?? undefined;
message.nullable = object.nullable ?? false;
message.type = object.type ?? "";
message.characterSet = object.characterSet ?? "";
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 7e4b6e880d..28abf25d84 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -757,6 +757,8 @@ ColumnMetadata is the metadata for columns.
| name | [string](#string) | | The name is the name of a column. |
| position | [int32](#int32) | | The position is the position in columns. |
| default | [google.protobuf.StringValue](#google-protobuf-StringValue) | | The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. |
+| default_null | [bool](#bool) | | |
+| default_expression | [string](#string) | | |
| nullable | [bool](#bool) | | The nullable is the nullable of a column. |
| type | [string](#string) | | The type is the type of a column. |
| character_set | [string](#string) | | The character_set is the character_set of a column. |
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 272b4e945e..9f93db460a 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -2634,7 +2634,10 @@ ColumnMetadata is the metadata for columns.
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | The name is the name of a column. |
| position | [int32](#int32) | | The position is the position in columns. |
-| default | [google.protobuf.StringValue](#google-protobuf-StringValue) | | The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default. |
+| has_default | [bool](#bool) | | |
+| default_null | [bool](#bool) | | |
+| default_string | [string](#string) | | |
+| default_expression | [string](#string) | | |
| nullable | [bool](#bool) | | The nullable is the nullable of a column. |
| type | [string](#string) | | The type is the type of a column. |
| character_set | [string](#string) | | The character_set is the character_set of a column. |
diff --git a/proto/generated-go/store/database.pb.go b/proto/generated-go/store/database.pb.go
index e350405554..ef0b6c8476 100644
--- a/proto/generated-go/store/database.pb.go
+++ b/proto/generated-go/store/database.pb.go
@@ -841,23 +841,29 @@ type ColumnMetadata struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The position is the position in columns.
Position int32 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
- // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
- Default *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"`
+ // The default_value is the default value of a column.
+ //
+ // Types that are assignable to DefaultValue:
+ //
+ // *ColumnMetadata_Default
+ // *ColumnMetadata_DefaultNull
+ // *ColumnMetadata_DefaultExpression
+ DefaultValue isColumnMetadata_DefaultValue `protobuf_oneof:"default_value"`
// The nullable is the nullable of a column.
- Nullable bool `protobuf:"varint,4,opt,name=nullable,proto3" json:"nullable,omitempty"`
+ Nullable bool `protobuf:"varint,6,opt,name=nullable,proto3" json:"nullable,omitempty"`
// The type is the type of a column.
- Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
+ Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
// The character_set is the character_set of a column.
- CharacterSet string `protobuf:"bytes,6,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
+ CharacterSet string `protobuf:"bytes,8,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
// The collation is the collation of a column.
- Collation string `protobuf:"bytes,7,opt,name=collation,proto3" json:"collation,omitempty"`
+ Collation string `protobuf:"bytes,9,opt,name=collation,proto3" json:"collation,omitempty"`
// The comment is the comment of a column.
// classification and user_comment is parsed from the comment.
- Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"`
+ Comment string `protobuf:"bytes,10,opt,name=comment,proto3" json:"comment,omitempty"`
// The classification is the classification of a table parsed from the comment.
- Classification string `protobuf:"bytes,9,opt,name=classification,proto3" json:"classification,omitempty"`
+ Classification string `protobuf:"bytes,11,opt,name=classification,proto3" json:"classification,omitempty"`
// The user_comment is the user comment of a table parsed from the comment.
- UserComment string `protobuf:"bytes,10,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
+ UserComment string `protobuf:"bytes,12,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
}
func (x *ColumnMetadata) Reset() {
@@ -906,13 +912,34 @@ func (x *ColumnMetadata) GetPosition() int32 {
return 0
}
+func (m *ColumnMetadata) GetDefaultValue() isColumnMetadata_DefaultValue {
+ if m != nil {
+ return m.DefaultValue
+ }
+ return nil
+}
+
func (x *ColumnMetadata) GetDefault() *wrapperspb.StringValue {
- if x != nil {
+ if x, ok := x.GetDefaultValue().(*ColumnMetadata_Default); ok {
return x.Default
}
return nil
}
+func (x *ColumnMetadata) GetDefaultNull() bool {
+ if x, ok := x.GetDefaultValue().(*ColumnMetadata_DefaultNull); ok {
+ return x.DefaultNull
+ }
+ return false
+}
+
+func (x *ColumnMetadata) GetDefaultExpression() string {
+ if x, ok := x.GetDefaultValue().(*ColumnMetadata_DefaultExpression); ok {
+ return x.DefaultExpression
+ }
+ return ""
+}
+
func (x *ColumnMetadata) GetNullable() bool {
if x != nil {
return x.Nullable
@@ -962,6 +989,29 @@ func (x *ColumnMetadata) GetUserComment() string {
return ""
}
+type isColumnMetadata_DefaultValue interface {
+ isColumnMetadata_DefaultValue()
+}
+
+type ColumnMetadata_Default struct {
+ // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
+ Default *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=default,proto3,oneof"`
+}
+
+type ColumnMetadata_DefaultNull struct {
+ DefaultNull bool `protobuf:"varint,4,opt,name=default_null,json=defaultNull,proto3,oneof"`
+}
+
+type ColumnMetadata_DefaultExpression struct {
+ DefaultExpression string `protobuf:"bytes,5,opt,name=default_expression,json=defaultExpression,proto3,oneof"`
+}
+
+func (*ColumnMetadata_Default) isColumnMetadata_DefaultValue() {}
+
+func (*ColumnMetadata_DefaultNull) isColumnMetadata_DefaultValue() {}
+
+func (*ColumnMetadata_DefaultExpression) isColumnMetadata_DefaultValue() {}
+
// ViewMetadata is the metadata for views.
type ViewMetadata struct {
state protoimpl.MessageState
@@ -2012,135 +2062,141 @@ var file_store_database_proto_rawDesc = []byte{
0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
0x72, 0x65, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x4d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65,
- 0x79, 0x73, 0x22, 0xd0, 0x02, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74,
+ 0x79, 0x73, 0x22, 0xb9, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74,
0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x73,
- 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
+ 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56,
- 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a,
- 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
- 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a,
- 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x06,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53,
- 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
- 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
- 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c,
- 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
- 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f,
- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xaa, 0x01, 0x0a, 0x0c, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x65,
- 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65,
- 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
- 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,
- 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e,
- 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
- 0x2e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
- 0x52, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
- 0x6e, 0x73, 0x22, 0x57, 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43,
- 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a,
- 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61,
- 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x46, 0x0a, 0x10, 0x46,
- 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
+ 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12,
+ 0x23, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
+ 0x4e, 0x75, 0x6c, 0x6c, 0x12, 0x2f, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
+ 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
+ 0x48, 0x00, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65,
+ 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c,
+ 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c,
+ 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74,
+ 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68,
+ 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f,
+ 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63,
+ 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
+ 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
+ 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73,
+ 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73,
+ 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0f, 0x0a,
+ 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xaa,
+ 0x01, 0x0a, 0x0c, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f,
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74,
- 0x69, 0x6f, 0x6e, 0x22, 0xbf, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, 0x65, 0x74,
- 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x70,
- 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b,
- 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74,
- 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
- 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61,
- 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72,
- 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01,
- 0x28, 0x08, 0x52, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63,
- 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x7b, 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
- 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16,
- 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
- 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
- 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
- 0x6f, 0x6e, 0x22, 0xa2, 0x02, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65,
- 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a,
- 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07,
- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72,
- 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x53, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63,
- 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f,
- 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12,
- 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x63, 0x6f,
- 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x66,
- 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b,
- 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x08, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f,
- 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
- 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63,
- 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61,
- 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x22, 0x40, 0x0a, 0x14, 0x49, 0x6e, 0x73, 0x74, 0x61,
- 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
- 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x07, 0x53, 0x65, 0x63,
- 0x72, 0x65, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
- 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52,
- 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x58, 0x0a, 0x0a, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
- 0x49, 0x74, 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20,
- 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
- 0x22, 0x69, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x73, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x64, 0x0a, 0x0c, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4c, 0x0a,
+ 0x11, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
+ 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64,
+ 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e,
+ 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x57, 0x0a, 0x0f, 0x44,
+ 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x16,
+ 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06,
+ 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f,
+ 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x46, 0x0a, 0x10, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a,
+ 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbf, 0x01, 0x0a,
+ 0x0d, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12,
+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
+ 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e,
+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73,
+ 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71,
+ 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65,
+ 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28,
+ 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x69,
+ 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x69, 0x73,
+ 0x69, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,
+ 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x7b,
+ 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64,
+ 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,
+ 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
+ 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
+ 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa2, 0x02, 0x0a, 0x12,
+ 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
+ 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x73,
+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x66,
+ 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x29, 0x0a,
+ 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c,
+ 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e,
+ 0x63, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x65,
+ 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05,
+ 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64,
+ 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x64, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6e, 0x44, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
+ 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65,
+ 0x22, 0x40, 0x0a, 0x14, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x6f, 0x6c, 0x65,
+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05,
+ 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x61,
+ 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x07, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x30, 0x0a,
+ 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62,
+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22,
+ 0x58, 0x0a, 0x0a, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x12, 0x0a,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72,
+ 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65,
+ 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x69, 0x0a, 0x0e, 0x44, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
- 0x40, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73,
- 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e,
- 0x66, 0x69, 0x67, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x73, 0x22, 0x66, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
- 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x63,
- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f,
- 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x75,
- 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x0c, 0x43, 0x6f,
- 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28,
- 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f,
- 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74,
- 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65,
- 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74,
- 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 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, 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,
+ 0x43, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43,
+ 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x73, 0x22, 0x64, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f,
+ 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c,
+ 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
+ 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x66, 0x0a, 0x0b, 0x54, 0x61,
+ 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a,
+ 0x0e, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18,
+ 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69,
+ 0x67, 0x73, 0x22, 0xc9, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e,
+ 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e,
+ 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0e, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x49,
+ 0x64, 0x12, 0x40, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
+ 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
+ 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62,
+ 0x65, 0x6c, 0x73, 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, 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 (
@@ -2463,6 +2519,11 @@ func file_store_database_proto_init() {
}
}
}
+ file_store_database_proto_msgTypes[6].OneofWrappers = []interface{}{
+ (*ColumnMetadata_Default)(nil),
+ (*ColumnMetadata_DefaultNull)(nil),
+ (*ColumnMetadata_DefaultExpression)(nil),
+ }
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
diff --git a/proto/generated-go/v1/database_service.pb.go b/proto/generated-go/v1/database_service.pb.go
index 59391a3122..58f1929a87 100644
--- a/proto/generated-go/v1/database_service.pb.go
+++ b/proto/generated-go/v1/database_service.pb.go
@@ -14,7 +14,6 @@ import (
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
- wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
reflect "reflect"
sync "sync"
)
@@ -2194,27 +2193,34 @@ type ColumnMetadata struct {
// The name is the name of a column.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The position is the position in columns.
- Position int32 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
- // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
- Default *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"`
+ Position int32 `protobuf:"varint,2,opt,name=position,proto3" json:"position,omitempty"`
+ HasDefault bool `protobuf:"varint,3,opt,name=has_default,json=hasDefault,proto3" json:"has_default,omitempty"`
+ // The default is the default value of a column.
+ //
+ // Types that are assignable to Default:
+ //
+ // *ColumnMetadata_DefaultNull
+ // *ColumnMetadata_DefaultString
+ // *ColumnMetadata_DefaultExpression
+ Default isColumnMetadata_Default `protobuf_oneof:"default"`
// The nullable is the nullable of a column.
- Nullable bool `protobuf:"varint,4,opt,name=nullable,proto3" json:"nullable,omitempty"`
+ Nullable bool `protobuf:"varint,7,opt,name=nullable,proto3" json:"nullable,omitempty"`
// The type is the type of a column.
- Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
+ Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"`
// The character_set is the character_set of a column.
- CharacterSet string `protobuf:"bytes,6,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
+ CharacterSet string `protobuf:"bytes,9,opt,name=character_set,json=characterSet,proto3" json:"character_set,omitempty"`
// The collation is the collation of a column.
- Collation string `protobuf:"bytes,7,opt,name=collation,proto3" json:"collation,omitempty"`
+ Collation string `protobuf:"bytes,10,opt,name=collation,proto3" json:"collation,omitempty"`
// The comment is the comment of a column.
// classification and user_comment is parsed from the comment.
- Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"`
+ Comment string `protobuf:"bytes,11,opt,name=comment,proto3" json:"comment,omitempty"`
// The classification is the classification of a column parsed from the comment.
- Classification string `protobuf:"bytes,9,opt,name=classification,proto3" json:"classification,omitempty"`
+ Classification string `protobuf:"bytes,12,opt,name=classification,proto3" json:"classification,omitempty"`
// The user_comment is the user comment of a column parsed from the comment.
- UserComment string `protobuf:"bytes,10,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
+ UserComment string `protobuf:"bytes,13,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
// The effective_masking_level is the effective masking level of the column, evaluate from the
// column masking data and global masking rules.
- EffectiveMaskingLevel MaskingLevel `protobuf:"varint,11,opt,name=effective_masking_level,json=effectiveMaskingLevel,proto3,enum=bytebase.v1.MaskingLevel" json:"effective_masking_level,omitempty"`
+ EffectiveMaskingLevel MaskingLevel `protobuf:"varint,14,opt,name=effective_masking_level,json=effectiveMaskingLevel,proto3,enum=bytebase.v1.MaskingLevel" json:"effective_masking_level,omitempty"`
}
func (x *ColumnMetadata) Reset() {
@@ -2263,13 +2269,41 @@ func (x *ColumnMetadata) GetPosition() int32 {
return 0
}
-func (x *ColumnMetadata) GetDefault() *wrapperspb.StringValue {
+func (x *ColumnMetadata) GetHasDefault() bool {
if x != nil {
- return x.Default
+ return x.HasDefault
+ }
+ return false
+}
+
+func (m *ColumnMetadata) GetDefault() isColumnMetadata_Default {
+ if m != nil {
+ return m.Default
}
return nil
}
+func (x *ColumnMetadata) GetDefaultNull() bool {
+ if x, ok := x.GetDefault().(*ColumnMetadata_DefaultNull); ok {
+ return x.DefaultNull
+ }
+ return false
+}
+
+func (x *ColumnMetadata) GetDefaultString() string {
+ if x, ok := x.GetDefault().(*ColumnMetadata_DefaultString); ok {
+ return x.DefaultString
+ }
+ return ""
+}
+
+func (x *ColumnMetadata) GetDefaultExpression() string {
+ if x, ok := x.GetDefault().(*ColumnMetadata_DefaultExpression); ok {
+ return x.DefaultExpression
+ }
+ return ""
+}
+
func (x *ColumnMetadata) GetNullable() bool {
if x != nil {
return x.Nullable
@@ -2326,6 +2360,28 @@ func (x *ColumnMetadata) GetEffectiveMaskingLevel() MaskingLevel {
return MaskingLevel_MASKING_LEVEL_UNSPECIFIED
}
+type isColumnMetadata_Default interface {
+ isColumnMetadata_Default()
+}
+
+type ColumnMetadata_DefaultNull struct {
+ DefaultNull bool `protobuf:"varint,4,opt,name=default_null,json=defaultNull,proto3,oneof"`
+}
+
+type ColumnMetadata_DefaultString struct {
+ DefaultString string `protobuf:"bytes,5,opt,name=default_string,json=defaultString,proto3,oneof"`
+}
+
+type ColumnMetadata_DefaultExpression struct {
+ DefaultExpression string `protobuf:"bytes,6,opt,name=default_expression,json=defaultExpression,proto3,oneof"`
+}
+
+func (*ColumnMetadata_DefaultNull) isColumnMetadata_Default() {}
+
+func (*ColumnMetadata_DefaultString) isColumnMetadata_Default() {}
+
+func (*ColumnMetadata_DefaultExpression) isColumnMetadata_Default() {}
+
// ViewMetadata is the metadata for views.
type ViewMetadata struct {
state protoimpl.MessageState
@@ -5040,8 +5096,6 @@ var file_v1_database_service_proto_rawDesc = []byte{
0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
- 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x0c, 0x76, 0x31, 0x2f, 0x76, 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x2d, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65,
@@ -5267,677 +5321,684 @@ var file_v1_database_service_proto_rawDesc = []byte{
0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0x52, 0x0b, 0x66, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79, 0x73, 0x22,
- 0xa3, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x96, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,
- 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75,
- 0x65, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x75,
- 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x75,
- 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68,
- 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12,
- 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a,
- 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
- 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73,
- 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
- 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,
- 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65,
- 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x17, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f,
- 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0b, 0x20,
- 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x15,
- 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,
- 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0xa7, 0x01, 0x0a, 0x0c, 0x56, 0x69, 0x65, 0x77, 0x4d, 0x65,
+ 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x61, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
+ 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x61, 0x73, 0x44, 0x65, 0x66, 0x61,
+ 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6e,
+ 0x75, 0x6c, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x66,
+ 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x75, 0x6c, 0x6c, 0x12, 0x27, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61,
+ 0x75, 0x6c, 0x74, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
+ 0x48, 0x00, 0x52, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x74, 0x72, 0x69, 0x6e,
+ 0x67, 0x12, 0x2f, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x65, 0x78, 0x70,
+ 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52,
+ 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69,
+ 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x07,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12,
+ 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79,
+ 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x72, 0x61, 0x63, 0x74, 0x65, 0x72, 0x5f,
+ 0x73, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x68, 0x61, 0x72, 0x61,
+ 0x63, 0x74, 0x65, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x6c, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x6c,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
+ 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12,
+ 0x26, 0x0a, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66,
+ 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x5f,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75,
+ 0x73, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x17, 0x65, 0x66,
+ 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f,
+ 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e,
+ 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x15, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76,
+ 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x09, 0x0a,
+ 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0xa7, 0x01, 0x0a, 0x0c, 0x56, 0x69, 0x65,
+ 0x77, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a,
+ 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a,
+ 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x65, 0x6e,
+ 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03,
+ 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
+ 0x52, 0x10, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
+ 0x6e, 0x73, 0x22, 0x57, 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43,
+ 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a,
+ 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x46, 0x0a, 0x10, 0x46,
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
+ 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74,
+ 0x69, 0x6f, 0x6e, 0x22, 0xfd, 0x02, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65,
+ 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18,
+ 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x61, 0x72, 0x65,
+ 0x68, 0x6f, 0x75, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x61, 0x72,
+ 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
+ 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x64, 0x65, 0x63, 0x65, 0x73, 0x73, 0x6f,
+ 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x64, 0x65, 0x63,
+ 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18,
+ 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a,
+ 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
+ 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x05, 0x53,
+ 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e,
+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53,
+ 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x13,
+ 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45,
+ 0x44, 0x10, 0x02, 0x22, 0x9f, 0x03, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65,
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65,
- 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
- 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,
- 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e,
- 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65,
- 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x10, 0x64,
- 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22,
- 0x57, 0x0a, 0x0f, 0x44, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6c, 0x75,
- 0x6d, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x61,
- 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65,
- 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x46, 0x0a, 0x10, 0x46, 0x75, 0x6e, 0x63,
- 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61,
+ 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e,
+ 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12,
+ 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
+ 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
+ 0x73, 0x74, 0x61, 0x6c, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
+ 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64,
+ 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 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, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50,
+ 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x54, 0x41, 0x10, 0x01, 0x22, 0x5a, 0x0a, 0x04, 0x4d, 0x6f, 0x64,
+ 0x65, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x4f, 0x44, 0x45, 0x5f,
+ 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44,
+ 0x45, 0x5f, 0x41, 0x50, 0x50, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12,
+ 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x45, 0x52, 0x54, 0x5f, 0x4f,
+ 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x22, 0xbf, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65,
+ 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
+ 0x52, 0x0b, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a,
+ 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
+ 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28,
+ 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69,
+ 0x6d, 0x61, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d,
+ 0x61, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06,
+ 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a,
+ 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
+ 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x7b, 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, 0x6e,
+ 0x73, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
- 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e,
- 0x22, 0xfd, 0x02, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
- 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63,
- 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f,
- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75,
- 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f,
- 0x75, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18,
- 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12,
- 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x64, 0x65, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x18,
- 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x65, 0x64, 0x65, 0x63, 0x65, 0x73, 0x73,
- 0x6f, 0x72, 0x73, 0x12, 0x35, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01,
- 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x53, 0x74,
- 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f,
- 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63,
- 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69,
- 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65,
- 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x46, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74,
- 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54,
- 0x45, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53,
- 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x44, 0x10, 0x02,
- 0x22, 0x9f, 0x03, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64,
- 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65,
- 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62,
- 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07,
- 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
- 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05,
- 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
- 0x61, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05,
- 0x73, 0x74, 0x61, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x74, 0x61,
- 0x6c, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e,
- 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
- 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x4d, 0x6f,
- 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x66, 0x69,
- 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65,
- 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 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, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44,
- 0x45, 0x4c, 0x54, 0x41, 0x10, 0x01, 0x22, 0x5a, 0x0a, 0x04, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x14,
- 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
- 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x44, 0x45, 0x46,
- 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x41,
- 0x50, 0x50, 0x45, 0x4e, 0x44, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10,
- 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x4e, 0x53, 0x45, 0x52, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59,
- 0x10, 0x03, 0x22, 0xbf, 0x01, 0x0a, 0x0d, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x4d, 0x65, 0x74, 0x61,
- 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x72,
- 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x65,
- 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
- 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16,
- 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06,
- 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72,
- 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79,
- 0x12, 0x18, 0x0a, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x08, 0x52, 0x07, 0x76, 0x69, 0x73, 0x69, 0x62, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,
- 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x7b, 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
- 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a,
- 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12,
- 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
- 0x6e, 0x22, 0xa2, 0x02, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e, 0x4b, 0x65, 0x79,
- 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07,
- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x63,
- 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
- 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x53, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65,
- 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x72,
- 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d,
- 0x0a, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x63, 0x6f, 0x6c,
- 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x66, 0x65,
- 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x1b, 0x0a,
- 0x09, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x08, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6e,
- 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f,
- 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x74, 0x63, 0x68,
- 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x74,
- 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x22, 0x61, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 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, 0x3d, 0x0a, 0x0d, 0x74, 0x61,
- 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
- 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x74, 0x61, 0x62,
- 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x63, 0x0a, 0x0b, 0x54, 0x61, 0x62,
- 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0e,
- 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02,
- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
- 0x0d, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xc6,
- 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
- 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f,
- 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73,
- 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x3d, 0x0a,
- 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,
- 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45,
- 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 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, 0x22, 0x28, 0x0a, 0x0e, 0x44, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x22, 0xb4, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4f, 0x0a, 0x16, 0x62, 0x61, 0x63, 0x6b, 0x75,
- 0x70, 0x5f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x52, 0x14, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6e,
- 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x72, 0x6f, 0x6e,
- 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x0c, 0x63, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x19, 0x0a,
- 0x08, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x07, 0x68, 0x6f, 0x6f, 0x6b, 0x55, 0x72, 0x6c, 0x22, 0xf5, 0x03, 0x0a, 0x06, 0x42, 0x61, 0x63,
- 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
- 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
- 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
- 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
- 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x05, 0x73,
- 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x2e,
- 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03,
- 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0b, 0x62, 0x61, 0x63, 0x6b, 0x75,
- 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75,
- 0x70, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x42, 0x03, 0xe0, 0x41,
- 0x03, 0x52, 0x0a, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a,
- 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
- 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x07,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x4e, 0x0a, 0x0a, 0x42, 0x61, 0x63,
- 0x6b, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x41, 0x43, 0x4b, 0x55,
- 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
- 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x4e, 0x55, 0x41, 0x4c, 0x10, 0x01,
- 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, 0x02, 0x12,
- 0x08, 0x0a, 0x04, 0x50, 0x49, 0x54, 0x52, 0x10, 0x03, 0x22, 0x55, 0x0a, 0x0b, 0x42, 0x61, 0x63,
- 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x42, 0x41, 0x43, 0x4b,
- 0x55, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e,
- 0x47, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f,
- 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03,
- 0x22, 0x68, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72,
- 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,
- 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,
- 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x5c, 0x0a, 0x17, 0x4c, 0x69,
- 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x73, 0x6c, 0x6f, 0x77, 0x5f, 0x71, 0x75,
- 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f,
- 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x0d, 0x73, 0x6c, 0x6f, 0x77, 0x51,
- 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x0c, 0x53, 0x6c, 0x6f,
- 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x12, 0x1f, 0x0a, 0x08, 0x72, 0x65, 0x73,
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
- 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72,
- 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f,
- 0x6a, 0x65, 0x63, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,
- 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79,
- 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74,
- 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xf6, 0x04, 0x0a, 0x13, 0x53, 0x6c, 0x6f, 0x77, 0x51,
- 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x12, 0x27,
- 0x0a, 0x0f, 0x73, 0x71, 0x6c, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e,
- 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x71, 0x6c, 0x46, 0x69, 0x6e, 0x67,
- 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x42, 0x0a,
- 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x69, 0x6d, 0x65,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
- 0x6d, 0x70, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x54, 0x69, 0x6d,
- 0x65, 0x12, 0x47, 0x0a, 0x12, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x71, 0x75, 0x65,
- 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
- 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67,
- 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x61,
- 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54,
- 0x69, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72,
- 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
- 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12,
- 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f,
- 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x69,
- 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61,
- 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d,
- 0x69, 0x6e, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x61, 0x76, 0x65, 0x72,
- 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12,
- 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f,
- 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13,
- 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69,
- 0x6e, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d,
- 0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x52,
- 0x10, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e,
- 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65,
- 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50,
- 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65,
- 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44,
- 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22,
- 0x9c, 0x02, 0x0a, 0x10, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x74,
- 0x61, 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69,
- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
- 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12,
- 0x38, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
- 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09,
- 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09, 0x6c, 0x6f, 0x63,
- 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67,
- 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44,
- 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d,
- 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x23,
- 0x0a, 0x0d, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69,
- 0x6e, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18,
- 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x71, 0x6c, 0x54, 0x65, 0x78, 0x74, 0x22, 0x6d,
- 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,
- 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6c, 0x0a,
- 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x18,
- 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x07, 0x73, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,
- 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,
- 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa9, 0x01, 0x0a, 0x13,
- 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x73,
- 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
- 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
- 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65,
- 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61,
- 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d, 0x69, 0x73, 0x73,
- 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x6f, 0x77,
- 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x2e, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74,
- 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17,
- 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
- 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe6, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x63, 0x72,
- 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x63,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
+ 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73,
+ 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
+ 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
+ 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa2, 0x02, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x65, 0x69, 0x67, 0x6e,
+ 0x4b, 0x65, 0x79, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+ 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09,
+ 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x66,
+ 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64,
+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x29, 0x0a, 0x10, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65,
+ 0x6e, 0x63, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c,
+ 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x5f,
+ 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x72,
+ 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
+ 0x12, 0x1b, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x06, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x0a,
+ 0x09, 0x6f, 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x08, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61,
+ 0x74, 0x63, 0x68, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
+ 0x6d, 0x61, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x22, 0x61, 0x0a, 0x0c, 0x53, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 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, 0x3d, 0x0a,
+ 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02,
+ 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c,
+ 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0x63, 0x0a, 0x0b,
+ 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
+ 0x40, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
+ 0x73, 0x22, 0xc6, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66,
+ 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74,
+ 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0e, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64,
+ 0x12, 0x3d, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
+ 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
+ 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65,
+ 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 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, 0x22, 0x28, 0x0a, 0x0e, 0x44, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x16, 0x0a, 0x06,
+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63,
+ 0x68, 0x65, 0x6d, 0x61, 0x22, 0xb4, 0x01, 0x0a, 0x0d, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4f, 0x0a, 0x16, 0x62, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f,
+ 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72,
+ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x74,
+ 0x61, 0x69, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63,
+ 0x72, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x0c, 0x63, 0x72, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65,
+ 0x12, 0x19, 0x0a, 0x08, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x68, 0x6f, 0x6f, 0x6b, 0x55, 0x72, 0x6c, 0x22, 0xf5, 0x03, 0x0a, 0x06,
+ 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72,
+ 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03,
+ 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b,
+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0,
- 0x41, 0x03, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12,
- 0x42, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
- 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x54,
- 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01,
- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x20,
- 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
- 0x22, 0x4f, 0x0a, 0x12, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e,
- 0x74, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65,
- 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x75, 0x72,
- 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1e,
- 0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x34,
- 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x73,
- 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14,
- 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x74, 0x61, 0x74, 0x65,
- 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xa5, 0x08, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48,
- 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
- 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07,
- 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63,
- 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,
- 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72,
- 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
- 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
- 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a,
- 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01,
- 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a,
- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65,
- 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x56, 0x65, 0x72, 0x73,
- 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x08, 0x20,
- 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e,
- 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x33,
- 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,
- 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
- 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20,
- 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e,
- 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18,
- 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
- 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
- 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74,
- 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73,
- 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,
- 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x53, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x12, 0x48, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64,
- 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,
+ 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a,
+ 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b,
+ 0x75, 0x70, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03,
+ 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0b, 0x62, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x42,
+ 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65,
+ 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
+ 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x4e, 0x0a, 0x0a,
+ 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x42, 0x41,
+ 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
+ 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x4e, 0x55, 0x41,
+ 0x4c, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43,
+ 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x49, 0x54, 0x52, 0x10, 0x03, 0x22, 0x55, 0x0a, 0x0b,
+ 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x42,
+ 0x41, 0x43, 0x4b, 0x55, 0x50, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x45, 0x4e,
+ 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x08, 0x0a,
+ 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45,
+ 0x44, 0x10, 0x03, 0x22, 0x68, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51,
+ 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,
+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
+ 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69,
+ 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74,
+ 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x03,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x5c, 0x0a,
+ 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0f, 0x73, 0x6c, 0x6f, 0x77,
+ 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x0d, 0x73, 0x6c,
+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x73, 0x22, 0x8b, 0x01, 0x0a, 0x0c,
+ 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x67, 0x12, 0x1f, 0x0a, 0x08,
+ 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
+ 0xe0, 0x41, 0x02, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a,
+ 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
+ 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x40, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x69,
+ 0x73, 0x74, 0x69, 0x63, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75,
+ 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x52, 0x0a, 0x73,
+ 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x22, 0xf6, 0x04, 0x0a, 0x13, 0x53, 0x6c,
+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63,
+ 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x71, 0x6c, 0x5f, 0x66, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70,
+ 0x72, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x71, 0x6c, 0x46,
+ 0x69, 0x6e, 0x67, 0x65, 0x72, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f,
+ 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
+ 0x12, 0x42, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74,
+ 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
+ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
+ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4c, 0x6f, 0x67,
+ 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x12, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f,
+ 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x61, 0x76, 0x65,
+ 0x72, 0x61, 0x67, 0x65, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x47, 0x0a,
+ 0x12, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74,
+ 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
+ 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61,
+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x51, 0x75, 0x65,
+ 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67,
+ 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x0f, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65,
+ 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f,
+ 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6d,
+ 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x32,
+ 0x0a, 0x15, 0x61, 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65,
+ 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x61,
+ 0x76, 0x65, 0x72, 0x61, 0x67, 0x65, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e,
+ 0x65, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x6f,
+ 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28,
+ 0x03, 0x52, 0x13, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x6f, 0x77, 0x73, 0x45, 0x78,
+ 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f,
+ 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01,
+ 0x28, 0x01, 0x52, 0x10, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x50, 0x65, 0x72,
+ 0x63, 0x65, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x65,
+ 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0c, 0x63, 0x6f, 0x75,
+ 0x6e, 0x74, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x07, 0x73, 0x61, 0x6d,
+ 0x70, 0x6c, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65,
+ 0x72, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c,
+ 0x65, 0x73, 0x22, 0x9c, 0x02, 0x0a, 0x10, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x79,
+ 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74,
+ 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
+ 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69,
+ 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x71, 0x75, 0x65, 0x72, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65,
+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
+ 0x6e, 0x52, 0x09, 0x71, 0x75, 0x65, 0x72, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x09,
+ 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+ 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x6b,
+ 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x73, 0x65, 0x6e,
+ 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x72, 0x6f, 0x77, 0x73, 0x53, 0x65, 0x6e,
+ 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x6f, 0x77, 0x73, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x69, 0x6e,
+ 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x6f, 0x77, 0x73, 0x45, 0x78,
+ 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x71, 0x6c, 0x5f, 0x74, 0x65,
+ 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x71, 0x6c, 0x54, 0x65, 0x78,
+ 0x74, 0x22, 0x6d, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
+ 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x22, 0x6c, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x52,
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x72, 0x65,
+ 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x07, 0x73,
+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70,
+ 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+ 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa9,
+ 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02,
+ 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
- 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74,
- 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x69,
- 0x73, 0x73, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x73, 0x73, 0x75,
- 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18,
- 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x70,
- 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4a, 0x0a, 0x11, 0x63, 0x68, 0x61, 0x6e,
- 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x13, 0x20,
- 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x73, 0x22, 0x3e, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16,
- 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10, 0x01, 0x12, 0x07,
- 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x49, 0x42, 0x52, 0x41,
- 0x52, 0x59, 0x10, 0x03, 0x22, 0x71, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10,
- 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
- 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01,
- 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x0f, 0x0a,
- 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10, 0x03, 0x12, 0x11,
- 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f, 0x53, 0x54, 0x10,
- 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x05, 0x12, 0x08, 0x0a,
- 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x06, 0x22, 0x43, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50,
- 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e,
- 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02,
- 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22, 0x56, 0x0a, 0x10,
- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
- 0x12, 0x42, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x73, 0x22, 0x6b, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52,
- 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12,
- 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
- 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x02,
- 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
- 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 0x73, 0x22, 0x66, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,
- 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
- 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39,
- 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21,
+ 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6d,
+ 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c,
+ 0x6c, 0x6f, 0x77, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x22, 0x2e, 0x0a, 0x13, 0x44, 0x65,
+ 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
+ 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe6, 0x01, 0x0a, 0x06, 0x53,
+ 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42,
+ 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02,
+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
+ 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
+ 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x54, 0x69,
+ 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x69,
+ 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
+ 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x04, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
+ 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
+ 0x69, 0x6f, 0x6e, 0x22, 0x4f, 0x0a, 0x12, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64,
+ 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72,
+ 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06,
+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d,
+ 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65,
+ 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x90, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49,
+ 0x6e, 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d,
+ 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x64, 0x65,
+ 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18,
+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f,
+ 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65,
+ 0x78, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x53, 0x74,
+ 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xa5, 0x08, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x6e,
+ 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a,
+ 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12,
+ 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x70, 0x64,
+ 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,
+ 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
+ 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
+ 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
+ 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
+ 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
+ 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x27, 0x0a,
+ 0x0f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
+ 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x56,
+ 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
+ 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,
+ 0x72, 0x79, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x12, 0x33, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0e, 0x32,
+ 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68,
+ 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x54, 0x79, 0x70, 0x65,
+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
+ 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,
+ 0x72, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
+ 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x64,
+ 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a,
+ 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x09, 0x73, 0x74, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73,
+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x5f, 0x73, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x76, 0x53, 0x63,
+ 0x68, 0x65, 0x6d, 0x61, 0x12, 0x48, 0x0a, 0x12, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f,
+ 0x6e, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b,
+ 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
+ 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x65, 0x78, 0x65,
+ 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14,
+ 0x0a, 0x05, 0x69, 0x73, 0x73, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69,
+ 0x73, 0x73, 0x75, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x65, 0x76, 0x65,
+ 0x6e, 0x74, 0x18, 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74,
+ 0x52, 0x09, 0x70, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x4a, 0x0a, 0x11, 0x63,
+ 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
+ 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x10, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65,
+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x22, 0x3e, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63,
+ 0x65, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
+ 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x06, 0x0a, 0x02, 0x55, 0x49, 0x10,
+ 0x01, 0x12, 0x07, 0x0a, 0x03, 0x56, 0x43, 0x53, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x4c, 0x49,
+ 0x42, 0x52, 0x41, 0x52, 0x59, 0x10, 0x03, 0x22, 0x71, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12,
+ 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
+ 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x41, 0x53, 0x45, 0x4c, 0x49, 0x4e,
+ 0x45, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02,
+ 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x44, 0x4c, 0x10,
+ 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x49, 0x47, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x48, 0x4f,
+ 0x53, 0x54, 0x10, 0x04, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x05,
+ 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x41, 0x10, 0x06, 0x22, 0x43, 0x0a, 0x06, 0x53, 0x74,
+ 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55,
+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07,
+ 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x4f, 0x4e,
+ 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x22,
+ 0x56, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x09, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x22, 0x6b, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67,
+ 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
+ 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73,
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x07, 0x73, 0x63, 0x68,
+ 0x65, 0x6d, 0x61, 0x73, 0x22, 0x66, 0x0a, 0x15, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52,
+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a,
+ 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
+ 0x65, 0x12, 0x39, 0x0a, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54,
+ 0x61, 0x62, 0x6c, 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x14,
+ 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54,
+ 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
+ 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73,
+ 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a,
+ 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18,
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
+ 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e,
0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61,
- 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x62, 0x6c,
- 0x65, 0x52, 0x06, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x43, 0x68, 0x61,
- 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x62, 0x6c,
- 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68,
- 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d,
- 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x0a,
- 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
- 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65,
- 0x77, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x8c, 0x01, 0x0a, 0x1b, 0x4c, 0x69,
- 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65,
- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x10, 0x63, 0x68, 0x61,
- 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52,
- 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73,
- 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f,
- 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50,
- 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74,
- 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04,
+ 0x76, 0x69, 0x65, 0x77, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x05,
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x8c, 0x01, 0x0a,
+ 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,
+ 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x10,
+ 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73,
+ 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,
- 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1d, 0x0a, 0x0a,
- 0x73, 0x64, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08,
- 0x52, 0x09, 0x73, 0x64, 0x6c, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2a, 0x75, 0x0a, 0x11, 0x43,
- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77,
- 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f,
- 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
- 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f,
- 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x42, 0x41, 0x53,
- 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48,
- 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46, 0x55, 0x4c, 0x4c,
- 0x10, 0x02, 0x32, 0xa4, 0x19, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x31, 0xda,
- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
- 0x12, 0x85, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x72, 0x79, 0x52, 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,
+ 0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65,
+ 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65,
+ 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x17,
+ 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x76,
+ 0x69, 0x65, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69,
+ 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x73, 0x64, 0x6c, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x64, 0x6c, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x2a, 0x75,
+ 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x56,
+ 0x69, 0x65, 0x77, 0x12, 0x23, 0x0a, 0x1f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x48, 0x49,
+ 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x43, 0x48, 0x41, 0x4e,
+ 0x47, 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f,
+ 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x48, 0x41, 0x4e, 0x47,
+ 0x45, 0x5f, 0x48, 0x49, 0x53, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x46,
+ 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x32, 0xa4, 0x19, 0x0a, 0x0f, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, 0x0a, 0x0b, 0x47, 0x65, 0x74,
+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
+ 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12,
+ 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x12, 0x85, 0x01, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0xda, 0x41, 0x00, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x61,
- 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63,
- 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0xa1, 0x01,
- 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x14,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
- 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
+ 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0xda, 0x41,
+ 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
+ 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x92, 0x01, 0x0a, 0x0f,
+ 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12,
+ 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
+ 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71,
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
+ 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
+ 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0xda, 0x41, 0x00, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65,
+ 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
+ 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68,
+ 0x12, 0xa1, 0x01, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x12, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22, 0x54,
+ 0xda, 0x41, 0x14, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2c, 0x75, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x08, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x32, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74,
+ 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa6, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e,
+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63,
+ 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,
+ 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
+ 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x87, 0x01,
+ 0x0a, 0x0c, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x20,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e,
+ 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
+ 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
+ 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
+ 0x2a, 0x7d, 0x3a, 0x73, 0x79, 0x6e, 0x63, 0x12, 0x92, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
+ 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
+ 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12,
+ 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0xbd, 0x01, 0x0a,
+ 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75,
+ 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
+ 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x22, 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x11, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0x3d, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x74,
+ 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0x8a, 0x01, 0x0a,
+ 0x11, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,
+ 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29,
+ 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
+ 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x0a, 0x44, 0x69,
+ 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d,
+ 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x82, 0xd3, 0xe4, 0x93, 0x02,
+ 0x75, 0x3a, 0x01, 0x2a, 0x5a, 0x41, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66,
+ 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
+ 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
+ 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66,
+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x8e, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x24, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63,
+ 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+ 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
+ 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x38, 0x82,
+ 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,
+ 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74,
+ 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53,
+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61,
+ 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12,
+ 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,
+ 0x64, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
+ 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74,
+ 0x74, 0x69, 0x6e, 0x67, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x3a, 0x07, 0x73, 0x65,
+ 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74,
+ 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,
0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,
- 0x7d, 0x12, 0xa6, 0x01, 0x0a, 0x14, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71,
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
- 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x3a, 0x01, 0x2a, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x3a, 0x62,
- 0x61, 0x74, 0x63, 0x68, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x0c, 0x53,
- 0x79, 0x6e, 0x63, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x20, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x6e, 0x63,
- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
- 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x76, 0x31,
- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
- 0x73, 0x79, 0x6e, 0x63, 0x12, 0x92, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x27, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,
- 0x64, 0x61, 0x74, 0x61, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x76,
- 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0xbd, 0x01, 0x0a, 0x16, 0x55, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61,
- 0x64, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
- 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22,
- 0x58, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x3a, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
- 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0x3d, 0x2f, 0x76, 0x31, 0x2f,
- 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
- 0x74, 0x61, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
- 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x7d, 0x12, 0x8a, 0x01, 0x0a, 0x11, 0x47, 0x65,
- 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12,
- 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
- 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x76, 0x31,
- 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x75, 0x3a, 0x01,
- 0x2a, 0x5a, 0x41, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,
- 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x22, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,
- 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61,
- 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x53, 0x63, 0x68,
- 0x65, 0x6d, 0x61, 0x12, 0x8e, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75,
- 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63,
- 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93,
- 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,
- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74,
- 0x69, 0x6e, 0x67, 0x7d, 0x12, 0xa5, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42,
- 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x27, 0x2e, 0x62,
+ 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12,
+ 0x83, 0x01, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70,
+ 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
+ 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
+ 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
+ 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a,
+ 0x06, 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x22, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61,
+ 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52,
+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73,
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72,
+ 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
+ 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f,
+ 0x62, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74,
+ 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c,
+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+ 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
+ 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
+ 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
+ 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c,
+ 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4c, 0x69,
+ 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72,
+ 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63,
+ 0x72, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41,
+ 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f,
+ 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61,
+ 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73,
+ 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x0c,
+ 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62,
0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74,
- 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,
- 0x67, 0x22, 0x49, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69,
- 0x6e, 0x67, 0x32, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
+ 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13,
+ 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63,
+ 0x72, 0x65, 0x74, 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x06, 0x73, 0x65, 0x63,
+ 0x72, 0x65, 0x74, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
- 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x61,
- 0x63, 0x6b, 0x75, 0x70, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x7d, 0x12, 0x83, 0x01, 0x0a,
- 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x12, 0x20, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61,
- 0x74, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x13, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61,
- 0x63, 0x6b, 0x75, 0x70, 0x22, 0x3c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x06, 0x62, 0x61,
- 0x63, 0x6b, 0x75, 0x70, 0x22, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x75,
- 0x70, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75,
- 0x70, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f,
- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x62, 0x61, 0x63,
- 0x6b, 0x75, 0x70, 0x73, 0x12, 0x9f, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f,
- 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x6c, 0x6f, 0x77, 0x51,
- 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,
- 0x53, 0x6c, 0x6f, 0x77, 0x51, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x6c, 0x6f, 0x77, 0x51,
- 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x53,
- 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x76, 0x31, 0x2f,
+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65,
+ 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63,
+ 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
+ 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
+ 0x74, 0x79, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x2a, 0x2c, 0x2f, 0x76, 0x31, 0x2f,
+ 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f,
+ 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65,
+ 0x63, 0x72, 0x65, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x76,
+ 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64,
+ 0x65, 0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e,
+ 0x64, 0x65, 0x78, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06,
+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x22, 0x30, 0x2f, 0x76,
+ 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e,
+ 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f,
+ 0x2a, 0x7d, 0x3a, 0x61, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0xaf,
+ 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,
+ 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48,
+ 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
+ 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
+ 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65,
+ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0xda, 0x41, 0x06, 0x70, 0x61,
+ 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31, 0x2f,
0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65,
0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d,
- 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x12, 0x8a, 0x01, 0x0a, 0x0c, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65,
- 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
- 0x22, 0x43, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74,
- 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x2e, 0x6e, 0x61,
- 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65,
- 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x7e, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53,
- 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
- 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x2a, 0x2c, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61,
- 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64,
- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x65, 0x63, 0x72, 0x65,
- 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x93, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65,
- 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72,
- 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x22, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
- 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73,
- 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x3a,
- 0x61, 0x64, 0x76, 0x69, 0x73, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0xaf, 0x01, 0x0a, 0x13,
- 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,
- 0x69, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74,
- 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43,
- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
- 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,
- 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,
- 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x68,
- 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x99, 0x01,
- 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f,
- 0x72, 0x79, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,
- 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,
- 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,
- 0x74, 0x6f, 0x72, 0x79, 0x22, 0x43, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69,
- 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,
- 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e,
- 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x33,
+ 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73,
+ 0x12, 0x99, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69,
+ 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73,
+ 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x43, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,
+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,
+ 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,
+ 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,
+ 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x2f, 0x2a, 0x7d, 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 (
@@ -6028,11 +6089,10 @@ var file_v1_database_service_proto_goTypes = []interface{}{
(*fieldmaskpb.FieldMask)(nil), // 70: google.protobuf.FieldMask
(State)(0), // 71: bytebase.v1.State
(*timestamppb.Timestamp)(nil), // 72: google.protobuf.Timestamp
- (*wrapperspb.StringValue)(nil), // 73: google.protobuf.StringValue
- (MaskingLevel)(0), // 74: bytebase.v1.MaskingLevel
- (*durationpb.Duration)(nil), // 75: google.protobuf.Duration
- (*PushEvent)(nil), // 76: bytebase.v1.PushEvent
- (*emptypb.Empty)(nil), // 77: google.protobuf.Empty
+ (MaskingLevel)(0), // 73: bytebase.v1.MaskingLevel
+ (*durationpb.Duration)(nil), // 74: google.protobuf.Duration
+ (*PushEvent)(nil), // 75: bytebase.v1.PushEvent
+ (*emptypb.Empty)(nil), // 76: google.protobuf.Empty
}
var file_v1_database_service_proto_depIdxs = []int32{
29, // 0: bytebase.v1.ListDatabasesResponse.databases:type_name -> bytebase.v1.Database
@@ -6060,95 +6120,94 @@ var file_v1_database_service_proto_depIdxs = []int32{
33, // 22: bytebase.v1.TableMetadata.columns:type_name -> bytebase.v1.ColumnMetadata
39, // 23: bytebase.v1.TableMetadata.indexes:type_name -> bytebase.v1.IndexMetadata
41, // 24: bytebase.v1.TableMetadata.foreign_keys:type_name -> bytebase.v1.ForeignKeyMetadata
- 73, // 25: bytebase.v1.ColumnMetadata.default:type_name -> google.protobuf.StringValue
- 74, // 26: bytebase.v1.ColumnMetadata.effective_masking_level:type_name -> bytebase.v1.MaskingLevel
- 35, // 27: bytebase.v1.ViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn
- 1, // 28: bytebase.v1.TaskMetadata.state:type_name -> bytebase.v1.TaskMetadata.State
- 2, // 29: bytebase.v1.StreamMetadata.type:type_name -> bytebase.v1.StreamMetadata.Type
- 3, // 30: bytebase.v1.StreamMetadata.mode:type_name -> bytebase.v1.StreamMetadata.Mode
- 43, // 31: bytebase.v1.SchemaConfig.table_configs:type_name -> bytebase.v1.TableConfig
- 44, // 32: bytebase.v1.TableConfig.column_configs:type_name -> bytebase.v1.ColumnConfig
- 69, // 33: bytebase.v1.ColumnConfig.labels:type_name -> bytebase.v1.ColumnConfig.LabelsEntry
- 75, // 34: bytebase.v1.BackupSetting.backup_retain_duration:type_name -> google.protobuf.Duration
- 72, // 35: bytebase.v1.Backup.create_time:type_name -> google.protobuf.Timestamp
- 72, // 36: bytebase.v1.Backup.update_time:type_name -> google.protobuf.Timestamp
- 5, // 37: bytebase.v1.Backup.state:type_name -> bytebase.v1.Backup.BackupState
- 4, // 38: bytebase.v1.Backup.backup_type:type_name -> bytebase.v1.Backup.BackupType
- 50, // 39: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog
- 51, // 40: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics
- 72, // 41: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp
- 75, // 42: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration
- 75, // 43: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration
- 52, // 44: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails
- 72, // 45: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
- 75, // 46: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
- 75, // 47: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration
- 57, // 48: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret
- 57, // 49: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret
- 70, // 50: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask
- 72, // 51: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp
- 72, // 52: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp
- 72, // 53: bytebase.v1.ChangeHistory.create_time:type_name -> google.protobuf.Timestamp
- 72, // 54: bytebase.v1.ChangeHistory.update_time:type_name -> google.protobuf.Timestamp
- 6, // 55: bytebase.v1.ChangeHistory.source:type_name -> bytebase.v1.ChangeHistory.Source
- 7, // 56: bytebase.v1.ChangeHistory.type:type_name -> bytebase.v1.ChangeHistory.Type
- 8, // 57: bytebase.v1.ChangeHistory.status:type_name -> bytebase.v1.ChangeHistory.Status
- 75, // 58: bytebase.v1.ChangeHistory.execution_duration:type_name -> google.protobuf.Duration
- 76, // 59: bytebase.v1.ChangeHistory.push_event:type_name -> bytebase.v1.PushEvent
- 61, // 60: bytebase.v1.ChangeHistory.changed_resources:type_name -> bytebase.v1.ChangedResources
- 62, // 61: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase
- 63, // 62: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema
- 64, // 63: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable
- 0, // 64: bytebase.v1.ListChangeHistoriesRequest.view:type_name -> bytebase.v1.ChangeHistoryView
- 60, // 65: bytebase.v1.ListChangeHistoriesResponse.change_histories:type_name -> bytebase.v1.ChangeHistory
- 0, // 66: bytebase.v1.GetChangeHistoryRequest.view:type_name -> bytebase.v1.ChangeHistoryView
- 9, // 67: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
- 10, // 68: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
- 12, // 69: bytebase.v1.DatabaseService.SearchDatabases:input_type -> bytebase.v1.SearchDatabasesRequest
- 14, // 70: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
- 15, // 71: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
- 17, // 72: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest
- 19, // 73: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
- 20, // 74: bytebase.v1.DatabaseService.UpdateDatabaseMetadata:input_type -> bytebase.v1.UpdateDatabaseMetadataRequest
- 21, // 75: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
- 22, // 76: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest
- 24, // 77: bytebase.v1.DatabaseService.GetBackupSetting:input_type -> bytebase.v1.GetBackupSettingRequest
- 25, // 78: bytebase.v1.DatabaseService.UpdateBackupSetting:input_type -> bytebase.v1.UpdateBackupSettingRequest
- 26, // 79: bytebase.v1.DatabaseService.CreateBackup:input_type -> bytebase.v1.CreateBackupRequest
- 27, // 80: bytebase.v1.DatabaseService.ListBackups:input_type -> bytebase.v1.ListBackupsRequest
- 48, // 81: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest
- 53, // 82: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest
- 55, // 83: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest
- 56, // 84: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest
- 58, // 85: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest
- 65, // 86: bytebase.v1.DatabaseService.ListChangeHistories:input_type -> bytebase.v1.ListChangeHistoriesRequest
- 67, // 87: bytebase.v1.DatabaseService.GetChangeHistory:input_type -> bytebase.v1.GetChangeHistoryRequest
- 29, // 88: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
- 11, // 89: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
- 13, // 90: bytebase.v1.DatabaseService.SearchDatabases:output_type -> bytebase.v1.SearchDatabasesResponse
- 29, // 91: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
- 16, // 92: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
- 18, // 93: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse
- 30, // 94: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
- 30, // 95: bytebase.v1.DatabaseService.UpdateDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
- 45, // 96: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
- 23, // 97: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse
- 46, // 98: bytebase.v1.DatabaseService.GetBackupSetting:output_type -> bytebase.v1.BackupSetting
- 46, // 99: bytebase.v1.DatabaseService.UpdateBackupSetting:output_type -> bytebase.v1.BackupSetting
- 47, // 100: bytebase.v1.DatabaseService.CreateBackup:output_type -> bytebase.v1.Backup
- 28, // 101: bytebase.v1.DatabaseService.ListBackups:output_type -> bytebase.v1.ListBackupsResponse
- 49, // 102: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse
- 54, // 103: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse
- 57, // 104: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret
- 77, // 105: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty
- 59, // 106: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse
- 66, // 107: bytebase.v1.DatabaseService.ListChangeHistories:output_type -> bytebase.v1.ListChangeHistoriesResponse
- 60, // 108: bytebase.v1.DatabaseService.GetChangeHistory:output_type -> bytebase.v1.ChangeHistory
- 88, // [88:109] is the sub-list for method output_type
- 67, // [67:88] is the sub-list for method input_type
- 67, // [67:67] is the sub-list for extension type_name
- 67, // [67:67] is the sub-list for extension extendee
- 0, // [0:67] is the sub-list for field type_name
+ 73, // 25: bytebase.v1.ColumnMetadata.effective_masking_level:type_name -> bytebase.v1.MaskingLevel
+ 35, // 26: bytebase.v1.ViewMetadata.dependent_columns:type_name -> bytebase.v1.DependentColumn
+ 1, // 27: bytebase.v1.TaskMetadata.state:type_name -> bytebase.v1.TaskMetadata.State
+ 2, // 28: bytebase.v1.StreamMetadata.type:type_name -> bytebase.v1.StreamMetadata.Type
+ 3, // 29: bytebase.v1.StreamMetadata.mode:type_name -> bytebase.v1.StreamMetadata.Mode
+ 43, // 30: bytebase.v1.SchemaConfig.table_configs:type_name -> bytebase.v1.TableConfig
+ 44, // 31: bytebase.v1.TableConfig.column_configs:type_name -> bytebase.v1.ColumnConfig
+ 69, // 32: bytebase.v1.ColumnConfig.labels:type_name -> bytebase.v1.ColumnConfig.LabelsEntry
+ 74, // 33: bytebase.v1.BackupSetting.backup_retain_duration:type_name -> google.protobuf.Duration
+ 72, // 34: bytebase.v1.Backup.create_time:type_name -> google.protobuf.Timestamp
+ 72, // 35: bytebase.v1.Backup.update_time:type_name -> google.protobuf.Timestamp
+ 5, // 36: bytebase.v1.Backup.state:type_name -> bytebase.v1.Backup.BackupState
+ 4, // 37: bytebase.v1.Backup.backup_type:type_name -> bytebase.v1.Backup.BackupType
+ 50, // 38: bytebase.v1.ListSlowQueriesResponse.slow_query_logs:type_name -> bytebase.v1.SlowQueryLog
+ 51, // 39: bytebase.v1.SlowQueryLog.statistics:type_name -> bytebase.v1.SlowQueryStatistics
+ 72, // 40: bytebase.v1.SlowQueryStatistics.latest_log_time:type_name -> google.protobuf.Timestamp
+ 74, // 41: bytebase.v1.SlowQueryStatistics.average_query_time:type_name -> google.protobuf.Duration
+ 74, // 42: bytebase.v1.SlowQueryStatistics.maximum_query_time:type_name -> google.protobuf.Duration
+ 52, // 43: bytebase.v1.SlowQueryStatistics.samples:type_name -> bytebase.v1.SlowQueryDetails
+ 72, // 44: bytebase.v1.SlowQueryDetails.start_time:type_name -> google.protobuf.Timestamp
+ 74, // 45: bytebase.v1.SlowQueryDetails.query_time:type_name -> google.protobuf.Duration
+ 74, // 46: bytebase.v1.SlowQueryDetails.lock_time:type_name -> google.protobuf.Duration
+ 57, // 47: bytebase.v1.ListSecretsResponse.secrets:type_name -> bytebase.v1.Secret
+ 57, // 48: bytebase.v1.UpdateSecretRequest.secret:type_name -> bytebase.v1.Secret
+ 70, // 49: bytebase.v1.UpdateSecretRequest.update_mask:type_name -> google.protobuf.FieldMask
+ 72, // 50: bytebase.v1.Secret.created_time:type_name -> google.protobuf.Timestamp
+ 72, // 51: bytebase.v1.Secret.updated_time:type_name -> google.protobuf.Timestamp
+ 72, // 52: bytebase.v1.ChangeHistory.create_time:type_name -> google.protobuf.Timestamp
+ 72, // 53: bytebase.v1.ChangeHistory.update_time:type_name -> google.protobuf.Timestamp
+ 6, // 54: bytebase.v1.ChangeHistory.source:type_name -> bytebase.v1.ChangeHistory.Source
+ 7, // 55: bytebase.v1.ChangeHistory.type:type_name -> bytebase.v1.ChangeHistory.Type
+ 8, // 56: bytebase.v1.ChangeHistory.status:type_name -> bytebase.v1.ChangeHistory.Status
+ 74, // 57: bytebase.v1.ChangeHistory.execution_duration:type_name -> google.protobuf.Duration
+ 75, // 58: bytebase.v1.ChangeHistory.push_event:type_name -> bytebase.v1.PushEvent
+ 61, // 59: bytebase.v1.ChangeHistory.changed_resources:type_name -> bytebase.v1.ChangedResources
+ 62, // 60: bytebase.v1.ChangedResources.databases:type_name -> bytebase.v1.ChangedResourceDatabase
+ 63, // 61: bytebase.v1.ChangedResourceDatabase.schemas:type_name -> bytebase.v1.ChangedResourceSchema
+ 64, // 62: bytebase.v1.ChangedResourceSchema.tables:type_name -> bytebase.v1.ChangedResourceTable
+ 0, // 63: bytebase.v1.ListChangeHistoriesRequest.view:type_name -> bytebase.v1.ChangeHistoryView
+ 60, // 64: bytebase.v1.ListChangeHistoriesResponse.change_histories:type_name -> bytebase.v1.ChangeHistory
+ 0, // 65: bytebase.v1.GetChangeHistoryRequest.view:type_name -> bytebase.v1.ChangeHistoryView
+ 9, // 66: bytebase.v1.DatabaseService.GetDatabase:input_type -> bytebase.v1.GetDatabaseRequest
+ 10, // 67: bytebase.v1.DatabaseService.ListDatabases:input_type -> bytebase.v1.ListDatabasesRequest
+ 12, // 68: bytebase.v1.DatabaseService.SearchDatabases:input_type -> bytebase.v1.SearchDatabasesRequest
+ 14, // 69: bytebase.v1.DatabaseService.UpdateDatabase:input_type -> bytebase.v1.UpdateDatabaseRequest
+ 15, // 70: bytebase.v1.DatabaseService.BatchUpdateDatabases:input_type -> bytebase.v1.BatchUpdateDatabasesRequest
+ 17, // 71: bytebase.v1.DatabaseService.SyncDatabase:input_type -> bytebase.v1.SyncDatabaseRequest
+ 19, // 72: bytebase.v1.DatabaseService.GetDatabaseMetadata:input_type -> bytebase.v1.GetDatabaseMetadataRequest
+ 20, // 73: bytebase.v1.DatabaseService.UpdateDatabaseMetadata:input_type -> bytebase.v1.UpdateDatabaseMetadataRequest
+ 21, // 74: bytebase.v1.DatabaseService.GetDatabaseSchema:input_type -> bytebase.v1.GetDatabaseSchemaRequest
+ 22, // 75: bytebase.v1.DatabaseService.DiffSchema:input_type -> bytebase.v1.DiffSchemaRequest
+ 24, // 76: bytebase.v1.DatabaseService.GetBackupSetting:input_type -> bytebase.v1.GetBackupSettingRequest
+ 25, // 77: bytebase.v1.DatabaseService.UpdateBackupSetting:input_type -> bytebase.v1.UpdateBackupSettingRequest
+ 26, // 78: bytebase.v1.DatabaseService.CreateBackup:input_type -> bytebase.v1.CreateBackupRequest
+ 27, // 79: bytebase.v1.DatabaseService.ListBackups:input_type -> bytebase.v1.ListBackupsRequest
+ 48, // 80: bytebase.v1.DatabaseService.ListSlowQueries:input_type -> bytebase.v1.ListSlowQueriesRequest
+ 53, // 81: bytebase.v1.DatabaseService.ListSecrets:input_type -> bytebase.v1.ListSecretsRequest
+ 55, // 82: bytebase.v1.DatabaseService.UpdateSecret:input_type -> bytebase.v1.UpdateSecretRequest
+ 56, // 83: bytebase.v1.DatabaseService.DeleteSecret:input_type -> bytebase.v1.DeleteSecretRequest
+ 58, // 84: bytebase.v1.DatabaseService.AdviseIndex:input_type -> bytebase.v1.AdviseIndexRequest
+ 65, // 85: bytebase.v1.DatabaseService.ListChangeHistories:input_type -> bytebase.v1.ListChangeHistoriesRequest
+ 67, // 86: bytebase.v1.DatabaseService.GetChangeHistory:input_type -> bytebase.v1.GetChangeHistoryRequest
+ 29, // 87: bytebase.v1.DatabaseService.GetDatabase:output_type -> bytebase.v1.Database
+ 11, // 88: bytebase.v1.DatabaseService.ListDatabases:output_type -> bytebase.v1.ListDatabasesResponse
+ 13, // 89: bytebase.v1.DatabaseService.SearchDatabases:output_type -> bytebase.v1.SearchDatabasesResponse
+ 29, // 90: bytebase.v1.DatabaseService.UpdateDatabase:output_type -> bytebase.v1.Database
+ 16, // 91: bytebase.v1.DatabaseService.BatchUpdateDatabases:output_type -> bytebase.v1.BatchUpdateDatabasesResponse
+ 18, // 92: bytebase.v1.DatabaseService.SyncDatabase:output_type -> bytebase.v1.SyncDatabaseResponse
+ 30, // 93: bytebase.v1.DatabaseService.GetDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
+ 30, // 94: bytebase.v1.DatabaseService.UpdateDatabaseMetadata:output_type -> bytebase.v1.DatabaseMetadata
+ 45, // 95: bytebase.v1.DatabaseService.GetDatabaseSchema:output_type -> bytebase.v1.DatabaseSchema
+ 23, // 96: bytebase.v1.DatabaseService.DiffSchema:output_type -> bytebase.v1.DiffSchemaResponse
+ 46, // 97: bytebase.v1.DatabaseService.GetBackupSetting:output_type -> bytebase.v1.BackupSetting
+ 46, // 98: bytebase.v1.DatabaseService.UpdateBackupSetting:output_type -> bytebase.v1.BackupSetting
+ 47, // 99: bytebase.v1.DatabaseService.CreateBackup:output_type -> bytebase.v1.Backup
+ 28, // 100: bytebase.v1.DatabaseService.ListBackups:output_type -> bytebase.v1.ListBackupsResponse
+ 49, // 101: bytebase.v1.DatabaseService.ListSlowQueries:output_type -> bytebase.v1.ListSlowQueriesResponse
+ 54, // 102: bytebase.v1.DatabaseService.ListSecrets:output_type -> bytebase.v1.ListSecretsResponse
+ 57, // 103: bytebase.v1.DatabaseService.UpdateSecret:output_type -> bytebase.v1.Secret
+ 76, // 104: bytebase.v1.DatabaseService.DeleteSecret:output_type -> google.protobuf.Empty
+ 59, // 105: bytebase.v1.DatabaseService.AdviseIndex:output_type -> bytebase.v1.AdviseIndexResponse
+ 66, // 106: bytebase.v1.DatabaseService.ListChangeHistories:output_type -> bytebase.v1.ListChangeHistoriesResponse
+ 60, // 107: bytebase.v1.DatabaseService.GetChangeHistory:output_type -> bytebase.v1.ChangeHistory
+ 87, // [87:108] is the sub-list for method output_type
+ 66, // [66:87] is the sub-list for method input_type
+ 66, // [66:66] is the sub-list for extension type_name
+ 66, // [66:66] is the sub-list for extension extendee
+ 0, // [0:66] is the sub-list for field type_name
}
func init() { file_v1_database_service_proto_init() }
@@ -6872,6 +6931,11 @@ func file_v1_database_service_proto_init() {
(*DiffSchemaRequest_Schema)(nil),
(*DiffSchemaRequest_ChangeHistory)(nil),
}
+ file_v1_database_service_proto_msgTypes[24].OneofWrappers = []interface{}{
+ (*ColumnMetadata_DefaultNull)(nil),
+ (*ColumnMetadata_DefaultString)(nil),
+ (*ColumnMetadata_DefaultExpression)(nil),
+ }
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
diff --git a/proto/store/database.proto b/proto/store/database.proto
index 0f943876ee..3288c05543 100644
--- a/proto/store/database.proto
+++ b/proto/store/database.proto
@@ -189,30 +189,35 @@ message ColumnMetadata {
// The position is the position in columns.
int32 position = 2;
- // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
- google.protobuf.StringValue default = 3;
+ // The default_value is the default value of a column.
+ oneof default_value {
+ // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
+ google.protobuf.StringValue default = 3;
+ bool default_null = 4;
+ string default_expression = 5;
+ }
// The nullable is the nullable of a column.
- bool nullable = 4;
+ bool nullable = 6;
// The type is the type of a column.
- string type = 5;
+ string type = 7;
// The character_set is the character_set of a column.
- string character_set = 6;
+ string character_set = 8;
// The collation is the collation of a column.
- string collation = 7;
+ string collation = 9;
// The comment is the comment of a column.
// classification and user_comment is parsed from the comment.
- string comment = 8;
+ string comment = 10;
// The classification is the classification of a table parsed from the comment.
- string classification = 9;
+ string classification = 11;
// The user_comment is the user comment of a table parsed from the comment.
- string user_comment = 10;
+ string user_comment = 12;
}
// ViewMetadata is the metadata for views.
diff --git a/proto/v1/database_service.proto b/proto/v1/database_service.proto
index 92c3ade2ae..12d9ff3e59 100644
--- a/proto/v1/database_service.proto
+++ b/proto/v1/database_service.proto
@@ -9,7 +9,6 @@ import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
-import "google/protobuf/wrappers.proto";
import "v1/common.proto";
import "v1/vcs.proto";
@@ -477,34 +476,40 @@ message ColumnMetadata {
// The position is the position in columns.
int32 position = 2;
- // The default is the default of a column. Use google.protobuf.StringValue to distinguish between an empty string default value or no default.
- google.protobuf.StringValue default = 3;
+ bool has_default = 3;
+
+ // The default is the default value of a column.
+ oneof default {
+ bool default_null = 4;
+ string default_string = 5;
+ string default_expression = 6;
+ }
// The nullable is the nullable of a column.
- bool nullable = 4;
+ bool nullable = 7;
// The type is the type of a column.
- string type = 5;
+ string type = 8;
// The character_set is the character_set of a column.
- string character_set = 6;
+ string character_set = 9;
// The collation is the collation of a column.
- string collation = 7;
+ string collation = 10;
// The comment is the comment of a column.
// classification and user_comment is parsed from the comment.
- string comment = 8;
+ string comment = 11;
// The classification is the classification of a column parsed from the comment.
- string classification = 9;
+ string classification = 12;
// The user_comment is the user comment of a column parsed from the comment.
- string user_comment = 10;
+ string user_comment = 13;
// The effective_masking_level is the effective masking level of the column, evaluate from the
// column masking data and global masking rules.
- MaskingLevel effective_masking_level = 11;
+ MaskingLevel effective_masking_level = 14;
}
// ViewMetadata is the metadata for views.