Skip to content

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

feat: introduce the proto struct for table partitions (#9278)

rebelice4d653256613e
diff --git a/frontend/src/types/proto/store/database.ts b/frontend/src/types/proto/store/database.ts
index b1ebe07dcd..89f17d957e 100644
--- a/frontend/src/types/proto/store/database.ts
+++ b/frontend/src/types/proto/store/database.ts
@@ -251,6 +251,65 @@ export interface TableMetadata {
userComment: string;
/** The foreign_keys is the list of foreign keys in a table. */
foreignKeys: ForeignKeyMetadata[];
+ /** The partitions is the list of partitions in a table. */
+ partitions: TablePartitionMetadata[];
+}
+
+/** TablePartitionMetadata is the metadata for table partitions. */
+export interface TablePartitionMetadata {
+ /** The name is the name of a table partition. */
+ name: string;
+ /** The type of a table partition. */
+ type: TablePartitionMetadata_Type;
+ /** The expression is the expression of a table partition. */
+ expression: string;
+ /** The subpartitions is the list of subpartitions in a table partition. */
+ subpartitions: TablePartitionMetadata[];
+}
+
+export enum TablePartitionMetadata_Type {
+ TYPE_UNSPECIFIED = 0,
+ RANGE = 1,
+ LIST = 2,
+ HASH = 3,
+ UNRECOGNIZED = -1,
+}
+
+export function tablePartitionMetadata_TypeFromJSON(object: any): TablePartitionMetadata_Type {
+ switch (object) {
+ case 0:
+ case "TYPE_UNSPECIFIED":
+ return TablePartitionMetadata_Type.TYPE_UNSPECIFIED;
+ case 1:
+ case "RANGE":
+ return TablePartitionMetadata_Type.RANGE;
+ case 2:
+ case "LIST":
+ return TablePartitionMetadata_Type.LIST;
+ case 3:
+ case "HASH":
+ return TablePartitionMetadata_Type.HASH;
+ case -1:
+ case "UNRECOGNIZED":
+ default:
+ return TablePartitionMetadata_Type.UNRECOGNIZED;
+ }
+}
+
+export function tablePartitionMetadata_TypeToJSON(object: TablePartitionMetadata_Type): string {
+ switch (object) {
+ case TablePartitionMetadata_Type.TYPE_UNSPECIFIED:
+ return "TYPE_UNSPECIFIED";
+ case TablePartitionMetadata_Type.RANGE:
+ return "RANGE";
+ case TablePartitionMetadata_Type.LIST:
+ return "LIST";
+ case TablePartitionMetadata_Type.HASH:
+ return "HASH";
+ case TablePartitionMetadata_Type.UNRECOGNIZED:
+ default:
+ return "UNRECOGNIZED";
+ }
}
/** ColumnMetadata is the metadata for columns. */
@@ -1277,6 +1336,7 @@ function createBaseTableMetadata(): TableMetadata {
classification: "",
userComment: "",
foreignKeys: [],
+ partitions: [],
};
}
@@ -1324,6 +1384,9 @@ export const TableMetadata = {
for (const v of message.foreignKeys) {
ForeignKeyMetadata.encode(v!, writer.uint32(98).fork()).ldelim();
}
+ for (const v of message.partitions) {
+ TablePartitionMetadata.encode(v!, writer.uint32(122).fork()).ldelim();
+ }
return writer;
},
@@ -1432,6 +1495,13 @@ export const TableMetadata = {
message.foreignKeys.push(ForeignKeyMetadata.decode(reader, reader.uint32()));
continue;
+ case 15:
+ if (tag !== 122) {
+ break;
+ }
+
+ message.partitions.push(TablePartitionMetadata.decode(reader, reader.uint32()));
+ continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -1463,6 +1533,9 @@ export const TableMetadata = {
foreignKeys: globalThis.Array.isArray(object?.foreignKeys)
? object.foreignKeys.map((e: any) => ForeignKeyMetadata.fromJSON(e))
: [],
+ partitions: globalThis.Array.isArray(object?.partitions)
+ ? object.partitions.map((e: any) => TablePartitionMetadata.fromJSON(e))
+ : [],
};
},
@@ -1510,6 +1583,9 @@ export const TableMetadata = {
if (message.foreignKeys?.length) {
obj.foreignKeys = message.foreignKeys.map((e) => ForeignKeyMetadata.toJSON(e));
}
+ if (message.partitions?.length) {
+ obj.partitions = message.partitions.map((e) => TablePartitionMetadata.toJSON(e));
+ }
return obj;
},
@@ -1540,6 +1616,113 @@ export const TableMetadata = {
message.classification = object.classification ?? "";
message.userComment = object.userComment ?? "";
message.foreignKeys = object.foreignKeys?.map((e) => ForeignKeyMetadata.fromPartial(e)) || [];
+ message.partitions = object.partitions?.map((e) => TablePartitionMetadata.fromPartial(e)) || [];
+ return message;
+ },
+};
+
+function createBaseTablePartitionMetadata(): TablePartitionMetadata {
+ return { name: "", type: 0, expression: "", subpartitions: [] };
+}
+
+export const TablePartitionMetadata = {
+ encode(message: TablePartitionMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
+ if (message.name !== "") {
+ writer.uint32(10).string(message.name);
+ }
+ if (message.type !== 0) {
+ writer.uint32(16).int32(message.type);
+ }
+ if (message.expression !== "") {
+ writer.uint32(26).string(message.expression);
+ }
+ for (const v of message.subpartitions) {
+ TablePartitionMetadata.encode(v!, writer.uint32(34).fork()).ldelim();
+ }
+ return writer;
+ },
+
+ decode(input: _m0.Reader | Uint8Array, length?: number): TablePartitionMetadata {
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
+ let end = length === undefined ? reader.len : reader.pos + length;
+ const message = createBaseTablePartitionMetadata();
+ while (reader.pos < end) {
+ const tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1:
+ if (tag !== 10) {
+ break;
+ }
+
+ message.name = reader.string();
+ continue;
+ case 2:
+ if (tag !== 16) {
+ break;
+ }
+
+ message.type = reader.int32() as any;
+ continue;
+ case 3:
+ if (tag !== 26) {
+ break;
+ }
+
+ message.expression = reader.string();
+ continue;
+ case 4:
+ if (tag !== 34) {
+ break;
+ }
+
+ message.subpartitions.push(TablePartitionMetadata.decode(reader, reader.uint32()));
+ continue;
+ }
+ if ((tag & 7) === 4 || tag === 0) {
+ break;
+ }
+ reader.skipType(tag & 7);
+ }
+ return message;
+ },
+
+ fromJSON(object: any): TablePartitionMetadata {
+ return {
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
+ type: isSet(object.type) ? tablePartitionMetadata_TypeFromJSON(object.type) : 0,
+ expression: isSet(object.expression) ? globalThis.String(object.expression) : "",
+ subpartitions: globalThis.Array.isArray(object?.subpartitions)
+ ? object.subpartitions.map((e: any) => TablePartitionMetadata.fromJSON(e))
+ : [],
+ };
+ },
+
+ toJSON(message: TablePartitionMetadata): unknown {
+ const obj: any = {};
+ if (message.name !== "") {
+ obj.name = message.name;
+ }
+ if (message.type !== 0) {
+ obj.type = tablePartitionMetadata_TypeToJSON(message.type);
+ }
+ if (message.expression !== "") {
+ obj.expression = message.expression;
+ }
+ if (message.subpartitions?.length) {
+ obj.subpartitions = message.subpartitions.map((e) => TablePartitionMetadata.toJSON(e));
+ }
+ return obj;
+ },
+
+ create(base?: DeepPartial<TablePartitionMetadata>): TablePartitionMetadata {
+ return TablePartitionMetadata.fromPartial(base ?? {});
+ },
+ fromPartial(object: DeepPartial<TablePartitionMetadata>): TablePartitionMetadata {
+ const message = createBaseTablePartitionMetadata();
+ message.name = object.name ?? "";
+ message.type = object.type ?? 0;
+ message.expression = object.expression ?? "";
+ message.subpartitions = object.subpartitions?.map((e) => TablePartitionMetadata.fromPartial(e)) || [];
return message;
},
};
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 28dce27e2b..4dc3fddb45 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -63,11 +63,13 @@
- [StreamMetadata](#bytebase-store-StreamMetadata)
- [TableConfig](#bytebase-store-TableConfig)
- [TableMetadata](#bytebase-store-TableMetadata)
+ - [TablePartitionMetadata](#bytebase-store-TablePartitionMetadata)
- [TaskMetadata](#bytebase-store-TaskMetadata)
- [ViewMetadata](#bytebase-store-ViewMetadata)
- [StreamMetadata.Mode](#bytebase-store-StreamMetadata-Mode)
- [StreamMetadata.Type](#bytebase-store-StreamMetadata-Type)
+ - [TablePartitionMetadata.Type](#bytebase-store-TablePartitionMetadata-Type)
- [TaskMetadata.State](#bytebase-store-TaskMetadata-State)
- [store/idp.proto](#store_idp-proto)
@@ -1090,6 +1092,25 @@ TableMetadata is the metadata for tables.
| classification | [string](#string) | | The classification is the classification of a table parsed from the comment. |
| user_comment | [string](#string) | | The user_comment is the user comment of a table parsed from the comment. |
| foreign_keys | [ForeignKeyMetadata](#bytebase-store-ForeignKeyMetadata) | repeated | The foreign_keys is the list of foreign keys in a table. |
+| partitions | [TablePartitionMetadata](#bytebase-store-TablePartitionMetadata) | repeated | The partitions is the list of partitions in a table. |
+
+
+
+
+
+
+<a name="bytebase-store-TablePartitionMetadata"></a>
+
+### TablePartitionMetadata
+TablePartitionMetadata is the metadata for table partitions.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| name | [string](#string) | | The name is the name of a table partition. |
+| type | [TablePartitionMetadata.Type](#bytebase-store-TablePartitionMetadata-Type) | | The type of a table partition. |
+| expression | [string](#string) | | The expression is the expression of a table partition. |
+| subpartitions | [TablePartitionMetadata](#bytebase-store-TablePartitionMetadata) | repeated | The subpartitions is the list of subpartitions in a table partition. |
@@ -1166,6 +1187,20 @@ ViewMetadata is the metadata for views.
+<a name="bytebase-store-TablePartitionMetadata-Type"></a>
+
+### TablePartitionMetadata.Type
+
+
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| TYPE_UNSPECIFIED | 0 | |
+| RANGE | 1 | |
+| LIST | 2 | |
+| HASH | 3 | |
+
+
+
<a name="bytebase-store-TaskMetadata-State"></a>
### TaskMetadata.State
diff --git a/proto/generated-go/store/database.pb.go b/proto/generated-go/store/database.pb.go
index ef0b6c8476..cc4c12e2d2 100644
--- a/proto/generated-go/store/database.pb.go
+++ b/proto/generated-go/store/database.pb.go
@@ -169,6 +169,58 @@ func (StreamMetadata_Mode) EnumDescriptor() ([]byte, []int) {
return file_store_database_proto_rawDescGZIP(), []int{4, 1}
}
+type TablePartitionMetadata_Type int32
+
+const (
+ TablePartitionMetadata_TYPE_UNSPECIFIED TablePartitionMetadata_Type = 0
+ TablePartitionMetadata_RANGE TablePartitionMetadata_Type = 1
+ TablePartitionMetadata_LIST TablePartitionMetadata_Type = 2
+ TablePartitionMetadata_HASH TablePartitionMetadata_Type = 3
+)
+
+// Enum value maps for TablePartitionMetadata_Type.
+var (
+ TablePartitionMetadata_Type_name = map[int32]string{
+ 0: "TYPE_UNSPECIFIED",
+ 1: "RANGE",
+ 2: "LIST",
+ 3: "HASH",
+ }
+ TablePartitionMetadata_Type_value = map[string]int32{
+ "TYPE_UNSPECIFIED": 0,
+ "RANGE": 1,
+ "LIST": 2,
+ "HASH": 3,
+ }
+)
+
+func (x TablePartitionMetadata_Type) Enum() *TablePartitionMetadata_Type {
+ p := new(TablePartitionMetadata_Type)
+ *p = x
+ return p
+}
+
+func (x TablePartitionMetadata_Type) String() string {
+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (TablePartitionMetadata_Type) Descriptor() protoreflect.EnumDescriptor {
+ return file_store_database_proto_enumTypes[3].Descriptor()
+}
+
+func (TablePartitionMetadata_Type) Type() protoreflect.EnumType {
+ return &file_store_database_proto_enumTypes[3]
+}
+
+func (x TablePartitionMetadata_Type) Number() protoreflect.EnumNumber {
+ return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use TablePartitionMetadata_Type.Descriptor instead.
+func (TablePartitionMetadata_Type) EnumDescriptor() ([]byte, []int) {
+ return file_store_database_proto_rawDescGZIP(), []int{6, 0}
+}
+
// DatabaseMetadata is the metadata for databases.
type DatabaseMetadata struct {
state protoimpl.MessageState
@@ -699,6 +751,8 @@ type TableMetadata struct {
UserComment string `protobuf:"bytes,14,opt,name=user_comment,json=userComment,proto3" json:"user_comment,omitempty"`
// The foreign_keys is the list of foreign keys in a table.
ForeignKeys []*ForeignKeyMetadata `protobuf:"bytes,12,rep,name=foreign_keys,json=foreignKeys,proto3" json:"foreign_keys,omitempty"`
+ // The partitions is the list of partitions in a table.
+ Partitions []*TablePartitionMetadata `protobuf:"bytes,15,rep,name=partitions,proto3" json:"partitions,omitempty"`
}
func (x *TableMetadata) Reset() {
@@ -831,6 +885,89 @@ func (x *TableMetadata) GetForeignKeys() []*ForeignKeyMetadata {
return nil
}
+func (x *TableMetadata) GetPartitions() []*TablePartitionMetadata {
+ if x != nil {
+ return x.Partitions
+ }
+ return nil
+}
+
+// TablePartitionMetadata is the metadata for table partitions.
+type TablePartitionMetadata struct {
+ state protoimpl.MessageState
+ sizeCache protoimpl.SizeCache
+ unknownFields protoimpl.UnknownFields
+
+ // The name is the name of a table partition.
+ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The type of a table partition.
+ Type TablePartitionMetadata_Type `protobuf:"varint,2,opt,name=type,proto3,enum=bytebase.store.TablePartitionMetadata_Type" json:"type,omitempty"`
+ // The expression is the expression of a table partition.
+ Expression string `protobuf:"bytes,3,opt,name=expression,proto3" json:"expression,omitempty"`
+ // The subpartitions is the list of subpartitions in a table partition.
+ Subpartitions []*TablePartitionMetadata `protobuf:"bytes,4,rep,name=subpartitions,proto3" json:"subpartitions,omitempty"`
+}
+
+func (x *TablePartitionMetadata) Reset() {
+ *x = TablePartitionMetadata{}
+ if protoimpl.UnsafeEnabled {
+ mi := &file_store_database_proto_msgTypes[6]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+ }
+}
+
+func (x *TablePartitionMetadata) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*TablePartitionMetadata) ProtoMessage() {}
+
+func (x *TablePartitionMetadata) ProtoReflect() protoreflect.Message {
+ mi := &file_store_database_proto_msgTypes[6]
+ if protoimpl.UnsafeEnabled && x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use TablePartitionMetadata.ProtoReflect.Descriptor instead.
+func (*TablePartitionMetadata) Descriptor() ([]byte, []int) {
+ return file_store_database_proto_rawDescGZIP(), []int{6}
+}
+
+func (x *TablePartitionMetadata) GetName() string {
+ if x != nil {
+ return x.Name
+ }
+ return ""
+}
+
+func (x *TablePartitionMetadata) GetType() TablePartitionMetadata_Type {
+ if x != nil {
+ return x.Type
+ }
+ return TablePartitionMetadata_TYPE_UNSPECIFIED
+}
+
+func (x *TablePartitionMetadata) GetExpression() string {
+ if x != nil {
+ return x.Expression
+ }
+ return ""
+}
+
+func (x *TablePartitionMetadata) GetSubpartitions() []*TablePartitionMetadata {
+ if x != nil {
+ return x.Subpartitions
+ }
+ return nil
+}
+
// ColumnMetadata is the metadata for columns.
type ColumnMetadata struct {
state protoimpl.MessageState
@@ -869,7 +1006,7 @@ type ColumnMetadata struct {
func (x *ColumnMetadata) Reset() {
*x = ColumnMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[6]
+ mi := &file_store_database_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -882,7 +1019,7 @@ func (x *ColumnMetadata) String() string {
func (*ColumnMetadata) ProtoMessage() {}
func (x *ColumnMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[6]
+ mi := &file_store_database_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -895,7 +1032,7 @@ func (x *ColumnMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use ColumnMetadata.ProtoReflect.Descriptor instead.
func (*ColumnMetadata) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{6}
+ return file_store_database_proto_rawDescGZIP(), []int{7}
}
func (x *ColumnMetadata) GetName() string {
@@ -1031,7 +1168,7 @@ type ViewMetadata struct {
func (x *ViewMetadata) Reset() {
*x = ViewMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[7]
+ mi := &file_store_database_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1044,7 +1181,7 @@ func (x *ViewMetadata) String() string {
func (*ViewMetadata) ProtoMessage() {}
func (x *ViewMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[7]
+ mi := &file_store_database_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1057,7 +1194,7 @@ func (x *ViewMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use ViewMetadata.ProtoReflect.Descriptor instead.
func (*ViewMetadata) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{7}
+ return file_store_database_proto_rawDescGZIP(), []int{8}
}
func (x *ViewMetadata) GetName() string {
@@ -1105,7 +1242,7 @@ type DependentColumn struct {
func (x *DependentColumn) Reset() {
*x = DependentColumn{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[8]
+ mi := &file_store_database_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1118,7 +1255,7 @@ func (x *DependentColumn) String() string {
func (*DependentColumn) ProtoMessage() {}
func (x *DependentColumn) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[8]
+ mi := &file_store_database_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1131,7 +1268,7 @@ func (x *DependentColumn) ProtoReflect() protoreflect.Message {
// Deprecated: Use DependentColumn.ProtoReflect.Descriptor instead.
func (*DependentColumn) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{8}
+ return file_store_database_proto_rawDescGZIP(), []int{9}
}
func (x *DependentColumn) GetSchema() string {
@@ -1170,7 +1307,7 @@ type FunctionMetadata struct {
func (x *FunctionMetadata) Reset() {
*x = FunctionMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[9]
+ mi := &file_store_database_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1183,7 +1320,7 @@ func (x *FunctionMetadata) String() string {
func (*FunctionMetadata) ProtoMessage() {}
func (x *FunctionMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[9]
+ mi := &file_store_database_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1196,7 +1333,7 @@ func (x *FunctionMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use FunctionMetadata.ProtoReflect.Descriptor instead.
func (*FunctionMetadata) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{9}
+ return file_store_database_proto_rawDescGZIP(), []int{10}
}
func (x *FunctionMetadata) GetName() string {
@@ -1239,7 +1376,7 @@ type IndexMetadata struct {
func (x *IndexMetadata) Reset() {
*x = IndexMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[10]
+ mi := &file_store_database_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1252,7 +1389,7 @@ func (x *IndexMetadata) String() string {
func (*IndexMetadata) ProtoMessage() {}
func (x *IndexMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[10]
+ mi := &file_store_database_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1265,7 +1402,7 @@ func (x *IndexMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use IndexMetadata.ProtoReflect.Descriptor instead.
func (*IndexMetadata) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{10}
+ return file_store_database_proto_rawDescGZIP(), []int{11}
}
func (x *IndexMetadata) GetName() string {
@@ -1336,7 +1473,7 @@ type ExtensionMetadata struct {
func (x *ExtensionMetadata) Reset() {
*x = ExtensionMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[11]
+ mi := &file_store_database_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1349,7 +1486,7 @@ func (x *ExtensionMetadata) String() string {
func (*ExtensionMetadata) ProtoMessage() {}
func (x *ExtensionMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[11]
+ mi := &file_store_database_proto_msgTypes[12]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1362,7 +1499,7 @@ func (x *ExtensionMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use ExtensionMetadata.ProtoReflect.Descriptor instead.
func (*ExtensionMetadata) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{11}
+ return file_store_database_proto_rawDescGZIP(), []int{12}
}
func (x *ExtensionMetadata) GetName() string {
@@ -1423,7 +1560,7 @@ type ForeignKeyMetadata struct {
func (x *ForeignKeyMetadata) Reset() {
*x = ForeignKeyMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[12]
+ mi := &file_store_database_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1436,7 +1573,7 @@ func (x *ForeignKeyMetadata) String() string {
func (*ForeignKeyMetadata) ProtoMessage() {}
func (x *ForeignKeyMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[12]
+ mi := &file_store_database_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1449,7 +1586,7 @@ func (x *ForeignKeyMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use ForeignKeyMetadata.ProtoReflect.Descriptor instead.
func (*ForeignKeyMetadata) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{12}
+ return file_store_database_proto_rawDescGZIP(), []int{13}
}
func (x *ForeignKeyMetadata) GetName() string {
@@ -1523,7 +1660,7 @@ type InstanceRoleMetadata struct {
func (x *InstanceRoleMetadata) Reset() {
*x = InstanceRoleMetadata{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[13]
+ mi := &file_store_database_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1536,7 +1673,7 @@ func (x *InstanceRoleMetadata) String() string {
func (*InstanceRoleMetadata) ProtoMessage() {}
func (x *InstanceRoleMetadata) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[13]
+ mi := &file_store_database_proto_msgTypes[14]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1549,7 +1686,7 @@ func (x *InstanceRoleMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use InstanceRoleMetadata.ProtoReflect.Descriptor instead.
func (*InstanceRoleMetadata) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{13}
+ return file_store_database_proto_rawDescGZIP(), []int{14}
}
func (x *InstanceRoleMetadata) GetName() string {
@@ -1578,7 +1715,7 @@ type Secrets struct {
func (x *Secrets) Reset() {
*x = Secrets{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[14]
+ mi := &file_store_database_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1591,7 +1728,7 @@ func (x *Secrets) String() string {
func (*Secrets) ProtoMessage() {}
func (x *Secrets) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[14]
+ mi := &file_store_database_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1604,7 +1741,7 @@ func (x *Secrets) ProtoReflect() protoreflect.Message {
// Deprecated: Use Secrets.ProtoReflect.Descriptor instead.
func (*Secrets) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{14}
+ return file_store_database_proto_rawDescGZIP(), []int{15}
}
func (x *Secrets) GetItems() []*SecretItem {
@@ -1630,7 +1767,7 @@ type SecretItem struct {
func (x *SecretItem) Reset() {
*x = SecretItem{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[15]
+ mi := &file_store_database_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1643,7 +1780,7 @@ func (x *SecretItem) String() string {
func (*SecretItem) ProtoMessage() {}
func (x *SecretItem) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[15]
+ mi := &file_store_database_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1656,7 +1793,7 @@ func (x *SecretItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use SecretItem.ProtoReflect.Descriptor instead.
func (*SecretItem) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{15}
+ return file_store_database_proto_rawDescGZIP(), []int{16}
}
func (x *SecretItem) GetName() string {
@@ -1693,7 +1830,7 @@ type DatabaseConfig struct {
func (x *DatabaseConfig) Reset() {
*x = DatabaseConfig{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[16]
+ mi := &file_store_database_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1706,7 +1843,7 @@ func (x *DatabaseConfig) String() string {
func (*DatabaseConfig) ProtoMessage() {}
func (x *DatabaseConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[16]
+ mi := &file_store_database_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1719,7 +1856,7 @@ func (x *DatabaseConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use DatabaseConfig.ProtoReflect.Descriptor instead.
func (*DatabaseConfig) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{16}
+ return file_store_database_proto_rawDescGZIP(), []int{17}
}
func (x *DatabaseConfig) GetName() string {
@@ -1751,7 +1888,7 @@ type SchemaConfig struct {
func (x *SchemaConfig) Reset() {
*x = SchemaConfig{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[17]
+ mi := &file_store_database_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1764,7 +1901,7 @@ func (x *SchemaConfig) String() string {
func (*SchemaConfig) ProtoMessage() {}
func (x *SchemaConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[17]
+ mi := &file_store_database_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1777,7 +1914,7 @@ func (x *SchemaConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use SchemaConfig.ProtoReflect.Descriptor instead.
func (*SchemaConfig) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{17}
+ return file_store_database_proto_rawDescGZIP(), []int{18}
}
func (x *SchemaConfig) GetName() string {
@@ -1808,7 +1945,7 @@ type TableConfig struct {
func (x *TableConfig) Reset() {
*x = TableConfig{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[18]
+ mi := &file_store_database_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1821,7 +1958,7 @@ func (x *TableConfig) String() string {
func (*TableConfig) ProtoMessage() {}
func (x *TableConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[18]
+ mi := &file_store_database_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1834,7 +1971,7 @@ func (x *TableConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use TableConfig.ProtoReflect.Descriptor instead.
func (*TableConfig) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{18}
+ return file_store_database_proto_rawDescGZIP(), []int{19}
}
func (x *TableConfig) GetName() string {
@@ -1866,7 +2003,7 @@ type ColumnConfig struct {
func (x *ColumnConfig) Reset() {
*x = ColumnConfig{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_database_proto_msgTypes[19]
+ mi := &file_store_database_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1879,7 +2016,7 @@ func (x *ColumnConfig) String() string {
func (*ColumnConfig) ProtoMessage() {}
func (x *ColumnConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_database_proto_msgTypes[19]
+ mi := &file_store_database_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -1892,7 +2029,7 @@ func (x *ColumnConfig) ProtoReflect() protoreflect.Message {
// Deprecated: Use ColumnConfig.ProtoReflect.Descriptor instead.
func (*ColumnConfig) Descriptor() ([]byte, []int) {
- return file_store_database_proto_rawDescGZIP(), []int{19}
+ return file_store_database_proto_rawDescGZIP(), []int{20}
}
func (x *ColumnConfig) GetName() string {
@@ -2028,7 +2165,7 @@ var file_store_database_proto_rawDesc = []byte{
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, 0x95, 0x04, 0x0a, 0x0d, 0x54,
+ 0x45, 0x52, 0x54, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x22, 0xdd, 0x04, 0x0a, 0x0d, 0x54,
0x61, 0x62, 0x6c, 0x65, 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, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
@@ -2062,141 +2199,163 @@ 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, 0xb9, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4d, 0x65, 0x74,
+ 0x79, 0x73, 0x12, 0x46, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73,
+ 0x18, 0x0f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,
+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72,
+ 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0a,
+ 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x98, 0x02, 0x0a, 0x16, 0x54,
+ 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 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, 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, 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, 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, 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,
+ 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70,
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61,
+ 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e,
+ 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78,
+ 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a,
+ 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x0d, 0x73, 0x75,
+ 0x62, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
+ 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,
+ 0x72, 0x65, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x73, 0x75, 0x62, 0x70, 0x61,
+ 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3b, 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, 0x09, 0x0a, 0x05, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10,
+ 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x48,
+ 0x41, 0x53, 0x48, 0x10, 0x03, 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, 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,
+ 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, 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, 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, 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,
+ 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, 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, 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,
+ 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, 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 (
@@ -2211,65 +2370,70 @@ func file_store_database_proto_rawDescGZIP() []byte {
return file_store_database_proto_rawDescData
}
-var file_store_database_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
-var file_store_database_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
+var file_store_database_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
+var file_store_database_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
var file_store_database_proto_goTypes = []interface{}{
- (TaskMetadata_State)(0), // 0: bytebase.store.TaskMetadata.State
- (StreamMetadata_Type)(0), // 1: bytebase.store.StreamMetadata.Type
- (StreamMetadata_Mode)(0), // 2: bytebase.store.StreamMetadata.Mode
- (*DatabaseMetadata)(nil), // 3: bytebase.store.DatabaseMetadata
- (*DatabaseSchemaMetadata)(nil), // 4: bytebase.store.DatabaseSchemaMetadata
- (*SchemaMetadata)(nil), // 5: bytebase.store.SchemaMetadata
- (*TaskMetadata)(nil), // 6: bytebase.store.TaskMetadata
- (*StreamMetadata)(nil), // 7: bytebase.store.StreamMetadata
- (*TableMetadata)(nil), // 8: bytebase.store.TableMetadata
- (*ColumnMetadata)(nil), // 9: bytebase.store.ColumnMetadata
- (*ViewMetadata)(nil), // 10: bytebase.store.ViewMetadata
- (*DependentColumn)(nil), // 11: bytebase.store.DependentColumn
- (*FunctionMetadata)(nil), // 12: bytebase.store.FunctionMetadata
- (*IndexMetadata)(nil), // 13: bytebase.store.IndexMetadata
- (*ExtensionMetadata)(nil), // 14: bytebase.store.ExtensionMetadata
- (*ForeignKeyMetadata)(nil), // 15: bytebase.store.ForeignKeyMetadata
- (*InstanceRoleMetadata)(nil), // 16: bytebase.store.InstanceRoleMetadata
- (*Secrets)(nil), // 17: bytebase.store.Secrets
- (*SecretItem)(nil), // 18: bytebase.store.SecretItem
- (*DatabaseConfig)(nil), // 19: bytebase.store.DatabaseConfig
- (*SchemaConfig)(nil), // 20: bytebase.store.SchemaConfig
- (*TableConfig)(nil), // 21: bytebase.store.TableConfig
- (*ColumnConfig)(nil), // 22: bytebase.store.ColumnConfig
- nil, // 23: bytebase.store.DatabaseMetadata.LabelsEntry
- nil, // 24: bytebase.store.ColumnConfig.LabelsEntry
- (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp
- (*wrapperspb.StringValue)(nil), // 26: google.protobuf.StringValue
+ (TaskMetadata_State)(0), // 0: bytebase.store.TaskMetadata.State
+ (StreamMetadata_Type)(0), // 1: bytebase.store.StreamMetadata.Type
+ (StreamMetadata_Mode)(0), // 2: bytebase.store.StreamMetadata.Mode
+ (TablePartitionMetadata_Type)(0), // 3: bytebase.store.TablePartitionMetadata.Type
+ (*DatabaseMetadata)(nil), // 4: bytebase.store.DatabaseMetadata
+ (*DatabaseSchemaMetadata)(nil), // 5: bytebase.store.DatabaseSchemaMetadata
+ (*SchemaMetadata)(nil), // 6: bytebase.store.SchemaMetadata
+ (*TaskMetadata)(nil), // 7: bytebase.store.TaskMetadata
+ (*StreamMetadata)(nil), // 8: bytebase.store.StreamMetadata
+ (*TableMetadata)(nil), // 9: bytebase.store.TableMetadata
+ (*TablePartitionMetadata)(nil), // 10: bytebase.store.TablePartitionMetadata
+ (*ColumnMetadata)(nil), // 11: bytebase.store.ColumnMetadata
+ (*ViewMetadata)(nil), // 12: bytebase.store.ViewMetadata
+ (*DependentColumn)(nil), // 13: bytebase.store.DependentColumn
+ (*FunctionMetadata)(nil), // 14: bytebase.store.FunctionMetadata
+ (*IndexMetadata)(nil), // 15: bytebase.store.IndexMetadata
+ (*ExtensionMetadata)(nil), // 16: bytebase.store.ExtensionMetadata
+ (*ForeignKeyMetadata)(nil), // 17: bytebase.store.ForeignKeyMetadata
+ (*InstanceRoleMetadata)(nil), // 18: bytebase.store.InstanceRoleMetadata
+ (*Secrets)(nil), // 19: bytebase.store.Secrets
+ (*SecretItem)(nil), // 20: bytebase.store.SecretItem
+ (*DatabaseConfig)(nil), // 21: bytebase.store.DatabaseConfig
+ (*SchemaConfig)(nil), // 22: bytebase.store.SchemaConfig
+ (*TableConfig)(nil), // 23: bytebase.store.TableConfig
+ (*ColumnConfig)(nil), // 24: bytebase.store.ColumnConfig
+ nil, // 25: bytebase.store.DatabaseMetadata.LabelsEntry
+ nil, // 26: bytebase.store.ColumnConfig.LabelsEntry
+ (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp
+ (*wrapperspb.StringValue)(nil), // 28: google.protobuf.StringValue
}
var file_store_database_proto_depIdxs = []int32{
- 23, // 0: bytebase.store.DatabaseMetadata.labels:type_name -> bytebase.store.DatabaseMetadata.LabelsEntry
- 25, // 1: bytebase.store.DatabaseMetadata.last_sync_time:type_name -> google.protobuf.Timestamp
- 5, // 2: bytebase.store.DatabaseSchemaMetadata.schemas:type_name -> bytebase.store.SchemaMetadata
- 14, // 3: bytebase.store.DatabaseSchemaMetadata.extensions:type_name -> bytebase.store.ExtensionMetadata
- 8, // 4: bytebase.store.SchemaMetadata.tables:type_name -> bytebase.store.TableMetadata
- 10, // 5: bytebase.store.SchemaMetadata.views:type_name -> bytebase.store.ViewMetadata
- 12, // 6: bytebase.store.SchemaMetadata.functions:type_name -> bytebase.store.FunctionMetadata
- 7, // 7: bytebase.store.SchemaMetadata.streams:type_name -> bytebase.store.StreamMetadata
- 6, // 8: bytebase.store.SchemaMetadata.tasks:type_name -> bytebase.store.TaskMetadata
+ 25, // 0: bytebase.store.DatabaseMetadata.labels:type_name -> bytebase.store.DatabaseMetadata.LabelsEntry
+ 27, // 1: bytebase.store.DatabaseMetadata.last_sync_time:type_name -> google.protobuf.Timestamp
+ 6, // 2: bytebase.store.DatabaseSchemaMetadata.schemas:type_name -> bytebase.store.SchemaMetadata
+ 16, // 3: bytebase.store.DatabaseSchemaMetadata.extensions:type_name -> bytebase.store.ExtensionMetadata
+ 9, // 4: bytebase.store.SchemaMetadata.tables:type_name -> bytebase.store.TableMetadata
+ 12, // 5: bytebase.store.SchemaMetadata.views:type_name -> bytebase.store.ViewMetadata
+ 14, // 6: bytebase.store.SchemaMetadata.functions:type_name -> bytebase.store.FunctionMetadata
+ 8, // 7: bytebase.store.SchemaMetadata.streams:type_name -> bytebase.store.StreamMetadata
+ 7, // 8: bytebase.store.SchemaMetadata.tasks:type_name -> bytebase.store.TaskMetadata
0, // 9: bytebase.store.TaskMetadata.state:type_name -> bytebase.store.TaskMetadata.State
1, // 10: bytebase.store.StreamMetadata.type:type_name -> bytebase.store.StreamMetadata.Type
2, // 11: bytebase.store.StreamMetadata.mode:type_name -> bytebase.store.StreamMetadata.Mode
- 9, // 12: bytebase.store.TableMetadata.columns:type_name -> bytebase.store.ColumnMetadata
- 13, // 13: bytebase.store.TableMetadata.indexes:type_name -> bytebase.store.IndexMetadata
- 15, // 14: bytebase.store.TableMetadata.foreign_keys:type_name -> bytebase.store.ForeignKeyMetadata
- 26, // 15: bytebase.store.ColumnMetadata.default:type_name -> google.protobuf.StringValue
- 11, // 16: bytebase.store.ViewMetadata.dependent_columns:type_name -> bytebase.store.DependentColumn
- 18, // 17: bytebase.store.Secrets.items:type_name -> bytebase.store.SecretItem
- 20, // 18: bytebase.store.DatabaseConfig.schema_configs:type_name -> bytebase.store.SchemaConfig
- 21, // 19: bytebase.store.SchemaConfig.table_configs:type_name -> bytebase.store.TableConfig
- 22, // 20: bytebase.store.TableConfig.column_configs:type_name -> bytebase.store.ColumnConfig
- 24, // 21: bytebase.store.ColumnConfig.labels:type_name -> bytebase.store.ColumnConfig.LabelsEntry
- 22, // [22:22] is the sub-list for method output_type
- 22, // [22:22] is the sub-list for method input_type
- 22, // [22:22] is the sub-list for extension type_name
- 22, // [22:22] is the sub-list for extension extendee
- 0, // [0:22] is the sub-list for field type_name
+ 11, // 12: bytebase.store.TableMetadata.columns:type_name -> bytebase.store.ColumnMetadata
+ 15, // 13: bytebase.store.TableMetadata.indexes:type_name -> bytebase.store.IndexMetadata
+ 17, // 14: bytebase.store.TableMetadata.foreign_keys:type_name -> bytebase.store.ForeignKeyMetadata
+ 10, // 15: bytebase.store.TableMetadata.partitions:type_name -> bytebase.store.TablePartitionMetadata
+ 3, // 16: bytebase.store.TablePartitionMetadata.type:type_name -> bytebase.store.TablePartitionMetadata.Type
+ 10, // 17: bytebase.store.TablePartitionMetadata.subpartitions:type_name -> bytebase.store.TablePartitionMetadata
+ 28, // 18: bytebase.store.ColumnMetadata.default:type_name -> google.protobuf.StringValue
+ 13, // 19: bytebase.store.ViewMetadata.dependent_columns:type_name -> bytebase.store.DependentColumn
+ 20, // 20: bytebase.store.Secrets.items:type_name -> bytebase.store.SecretItem
+ 22, // 21: bytebase.store.DatabaseConfig.schema_configs:type_name -> bytebase.store.SchemaConfig
+ 23, // 22: bytebase.store.SchemaConfig.table_configs:type_name -> bytebase.store.TableConfig
+ 24, // 23: bytebase.store.TableConfig.column_configs:type_name -> bytebase.store.ColumnConfig
+ 26, // 24: bytebase.store.ColumnConfig.labels:type_name -> bytebase.store.ColumnConfig.LabelsEntry
+ 25, // [25:25] is the sub-list for method output_type
+ 25, // [25:25] is the sub-list for method input_type
+ 25, // [25:25] is the sub-list for extension type_name
+ 25, // [25:25] is the sub-list for extension extendee
+ 0, // [0:25] is the sub-list for field type_name
}
func init() { file_store_database_proto_init() }
@@ -2351,7 +2515,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ColumnMetadata); i {
+ switch v := v.(*TablePartitionMetadata); i {
case 0:
return &v.state
case 1:
@@ -2363,7 +2527,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ViewMetadata); i {
+ switch v := v.(*ColumnMetadata); i {
case 0:
return &v.state
case 1:
@@ -2375,7 +2539,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DependentColumn); i {
+ switch v := v.(*ViewMetadata); i {
case 0:
return &v.state
case 1:
@@ -2387,7 +2551,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FunctionMetadata); i {
+ switch v := v.(*DependentColumn); i {
case 0:
return &v.state
case 1:
@@ -2399,7 +2563,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*IndexMetadata); i {
+ switch v := v.(*FunctionMetadata); i {
case 0:
return &v.state
case 1:
@@ -2411,7 +2575,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ExtensionMetadata); i {
+ switch v := v.(*IndexMetadata); i {
case 0:
return &v.state
case 1:
@@ -2423,7 +2587,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ForeignKeyMetadata); i {
+ switch v := v.(*ExtensionMetadata); i {
case 0:
return &v.state
case 1:
@@ -2435,7 +2599,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*InstanceRoleMetadata); i {
+ switch v := v.(*ForeignKeyMetadata); i {
case 0:
return &v.state
case 1:
@@ -2447,7 +2611,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Secrets); i {
+ switch v := v.(*InstanceRoleMetadata); i {
case 0:
return &v.state
case 1:
@@ -2459,7 +2623,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SecretItem); i {
+ switch v := v.(*Secrets); i {
case 0:
return &v.state
case 1:
@@ -2471,7 +2635,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DatabaseConfig); i {
+ switch v := v.(*SecretItem); i {
case 0:
return &v.state
case 1:
@@ -2483,7 +2647,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SchemaConfig); i {
+ switch v := v.(*DatabaseConfig); i {
case 0:
return &v.state
case 1:
@@ -2495,7 +2659,7 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TableConfig); i {
+ switch v := v.(*SchemaConfig); i {
case 0:
return &v.state
case 1:
@@ -2507,6 +2671,18 @@ func file_store_database_proto_init() {
}
}
file_store_database_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
+ switch v := v.(*TableConfig); i {
+ case 0:
+ return &v.state
+ case 1:
+ return &v.sizeCache
+ case 2:
+ return &v.unknownFields
+ default:
+ return nil
+ }
+ }
+ file_store_database_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnConfig); i {
case 0:
return &v.state
@@ -2519,7 +2695,7 @@ func file_store_database_proto_init() {
}
}
}
- file_store_database_proto_msgTypes[6].OneofWrappers = []interface{}{
+ file_store_database_proto_msgTypes[7].OneofWrappers = []interface{}{
(*ColumnMetadata_Default)(nil),
(*ColumnMetadata_DefaultNull)(nil),
(*ColumnMetadata_DefaultExpression)(nil),
@@ -2529,8 +2705,8 @@ func file_store_database_proto_init() {
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_database_proto_rawDesc,
- NumEnums: 3,
- NumMessages: 22,
+ NumEnums: 4,
+ NumMessages: 23,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/store/database.proto b/proto/store/database.proto
index 3288c05543..751cd95b92 100644
--- a/proto/store/database.proto
+++ b/proto/store/database.proto
@@ -179,6 +179,31 @@ message TableMetadata {
// The foreign_keys is the list of foreign keys in a table.
repeated ForeignKeyMetadata foreign_keys = 12;
+
+ // The partitions is the list of partitions in a table.
+ repeated TablePartitionMetadata partitions = 15;
+}
+
+// TablePartitionMetadata is the metadata for table partitions.
+message TablePartitionMetadata {
+ // The name is the name of a table partition.
+ string name = 1;
+
+ enum Type {
+ TYPE_UNSPECIFIED = 0;
+ RANGE = 1;
+ LIST = 2;
+ HASH = 3;
+ }
+
+ // The type of a table partition.
+ Type type = 2;
+
+ // The expression is the expression of a table partition.
+ string expression = 3;
+
+ // The subpartitions is the list of subpartitions in a table partition.
+ repeated TablePartitionMetadata subpartitions = 4;
}
// ColumnMetadata is the metadata for columns.