Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: object schema in store (#14765)
Danny Xu546fe0c846f8
diff --git a/frontend/src/types/proto/google/protobuf/descriptor.ts b/frontend/src/types/proto/google/protobuf/descriptor.tsindex ae3f877dc7..2fdf22f5e2 100644--- a/frontend/src/types/proto/google/protobuf/descriptor.ts+++ b/frontend/src/types/proto/google/protobuf/descriptor.ts@@ -36,7 +36,7 @@ export enum Edition {EDITION_2024 = "EDITION_2024",/*** EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be- * used or relyed on outside of tests.+ * used or relied on outside of tests.*/EDITION_1_TEST_ONLY = "EDITION_1_TEST_ONLY",EDITION_2_TEST_ONLY = "EDITION_2_TEST_ONLY",@@ -1093,12 +1093,13 @@ export interface MessageOptions {export interface FieldOptions {/**+ * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.* The ctype option instructs the C++ code generator to use a different* representation of the field than it normally would. See the specific* options below. This option is only implemented to support use of* [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of- * type "bytes" in the open source release -- sorry, we'll try to include- * other types in a future version!+ * type "bytes" in the open source release.+ * TODO: make ctype actually deprecated.*/ctype?:| FieldOptions_CType@@ -1314,11 +1315,7 @@ export function fieldOptions_JSTypeToNumber(object: FieldOptions_JSType): number}}-/**- * If set to RETENTION_SOURCE, the option will be omitted from the binary.- * Note: as of January 2023, support for this is in progress and does not yet- * have an effect (b/264593489).- */+/** If set to RETENTION_SOURCE, the option will be omitted from the binary. */export enum FieldOptions_OptionRetention {RETENTION_UNKNOWN = "RETENTION_UNKNOWN",RETENTION_RUNTIME = "RETENTION_RUNTIME",@@ -1375,8 +1372,7 @@ export function fieldOptions_OptionRetentionToNumber(object: FieldOptions_Option/*** This indicates the types of entities that the field may apply to when used* as an option. If it is unset, then the field may be freely used as an- * option on any kind of entity. Note: as of January 2023, support for this is- * in progress and does not yet have an effect (b/264593489).+ * option on any kind of entity.*/export enum FieldOptions_OptionTargetType {TARGET_TYPE_UNKNOWN = "TARGET_TYPE_UNKNOWN",diff --git a/frontend/src/types/proto/store/database.ts b/frontend/src/types/proto/store/database.tsindex f2132a8c7f..059d90f826 100644--- a/frontend/src/types/proto/store/database.ts+++ b/frontend/src/types/proto/store/database.ts@@ -881,6 +881,7 @@ export interface TableConfig {name: string;/** The column_configs is the ordered list of configs for columns in a table. */columnConfigs: ColumnConfig[];+ objectSchema?: ObjectSchema | undefined;classificationId: string;/*** The last updater of the table in branch.@@ -957,6 +958,7 @@ export interface ColumnConfig {maskingLevel: MaskingLevel;fullMaskingAlgorithmId: string;partialMaskingAlgorithmId: string;+ objectSchema?: ObjectSchema | undefined;}export interface ColumnConfig_LabelsEntry {@@ -964,6 +966,102 @@ export interface ColumnConfig_LabelsEntry {value: string;}+export interface ObjectSchema {+ type: ObjectSchema_Type;+ structKind?: ObjectSchema_StructKind | undefined;+ arrayKind?: ObjectSchema_ArrayKind | undefined;+}++export enum ObjectSchema_Type {+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",+ STRING = "STRING",+ NUMBER = "NUMBER",+ BOOLEAN = "BOOLEAN",+ OBJECT = "OBJECT",+ ARRAY = "ARRAY",+ UNRECOGNIZED = "UNRECOGNIZED",+}++export function objectSchema_TypeFromJSON(object: any): ObjectSchema_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return ObjectSchema_Type.TYPE_UNSPECIFIED;+ case 1:+ case "STRING":+ return ObjectSchema_Type.STRING;+ case 2:+ case "NUMBER":+ return ObjectSchema_Type.NUMBER;+ case 3:+ case "BOOLEAN":+ return ObjectSchema_Type.BOOLEAN;+ case 4:+ case "OBJECT":+ return ObjectSchema_Type.OBJECT;+ case 5:+ case "ARRAY":+ return ObjectSchema_Type.ARRAY;+ case -1:+ case "UNRECOGNIZED":+ default:+ return ObjectSchema_Type.UNRECOGNIZED;+ }+}++export function objectSchema_TypeToJSON(object: ObjectSchema_Type): string {+ switch (object) {+ case ObjectSchema_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case ObjectSchema_Type.STRING:+ return "STRING";+ case ObjectSchema_Type.NUMBER:+ return "NUMBER";+ case ObjectSchema_Type.BOOLEAN:+ return "BOOLEAN";+ case ObjectSchema_Type.OBJECT:+ return "OBJECT";+ case ObjectSchema_Type.ARRAY:+ return "ARRAY";+ case ObjectSchema_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}++export function objectSchema_TypeToNumber(object: ObjectSchema_Type): number {+ switch (object) {+ case ObjectSchema_Type.TYPE_UNSPECIFIED:+ return 0;+ case ObjectSchema_Type.STRING:+ return 1;+ case ObjectSchema_Type.NUMBER:+ return 2;+ case ObjectSchema_Type.BOOLEAN:+ return 3;+ case ObjectSchema_Type.OBJECT:+ return 4;+ case ObjectSchema_Type.ARRAY:+ return 5;+ case ObjectSchema_Type.UNRECOGNIZED:+ default:+ return -1;+ }+}++export interface ObjectSchema_StructKind {+ properties: { [key: string]: ObjectSchema };+}++export interface ObjectSchema_StructKind_PropertiesEntry {+ key: string;+ value: ObjectSchema | undefined;+}++export interface ObjectSchema_ArrayKind {+ kind: ObjectSchema | undefined;+}+function createBaseDatabaseMetadata(): DatabaseMetadata {return { labels: {}, lastSyncTime: undefined, backupAvailable: false };}@@ -5644,7 +5742,15 @@ export const SchemaConfig: MessageFns<SchemaConfig> = {};function createBaseTableConfig(): TableConfig {- return { name: "", columnConfigs: [], classificationId: "", updater: "", sourceBranch: "", updateTime: undefined };+ return {+ name: "",+ columnConfigs: [],+ objectSchema: undefined,+ classificationId: "",+ updater: "",+ sourceBranch: "",+ updateTime: undefined,+ };}export const TableConfig: MessageFns<TableConfig> = {@@ -5655,6 +5761,9 @@ export const TableConfig: MessageFns<TableConfig> = {for (const v of message.columnConfigs) {ColumnConfig.encode(v!, writer.uint32(18).fork()).join();}+ if (message.objectSchema !== undefined) {+ ObjectSchema.encode(message.objectSchema, writer.uint32(58).fork()).join();+ }if (message.classificationId !== "") {writer.uint32(26).string(message.classificationId);}@@ -5693,6 +5802,14 @@ export const TableConfig: MessageFns<TableConfig> = {message.columnConfigs.push(ColumnConfig.decode(reader, reader.uint32()));continue;}+ case 7: {+ if (tag !== 58) {+ break;+ }++ message.objectSchema = ObjectSchema.decode(reader, reader.uint32());+ continue;+ }case 3: {if (tag !== 26) {break;@@ -5740,6 +5857,7 @@ export const TableConfig: MessageFns<TableConfig> = {columnConfigs: globalThis.Array.isArray(object?.columnConfigs)? object.columnConfigs.map((e: any) => ColumnConfig.fromJSON(e)): [],+ objectSchema: isSet(object.objectSchema) ? ObjectSchema.fromJSON(object.objectSchema) : undefined,classificationId: isSet(object.classificationId) ? globalThis.String(object.classificationId) : "",updater: isSet(object.updater) ? globalThis.String(object.updater) : "",sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",@@ -5755,6 +5873,9 @@ export const TableConfig: MessageFns<TableConfig> = {if (message.columnConfigs?.length) {obj.columnConfigs = message.columnConfigs.map((e) => ColumnConfig.toJSON(e));}+ if (message.objectSchema !== undefined) {+ obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);+ }if (message.classificationId !== "") {obj.classificationId = message.classificationId;}@@ -5777,6 +5898,9 @@ export const TableConfig: MessageFns<TableConfig> = {const message = createBaseTableConfig();message.name = object.name ?? "";message.columnConfigs = object.columnConfigs?.map((e) => ColumnConfig.fromPartial(e)) || [];+ message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)+ ? ObjectSchema.fromPartial(object.objectSchema)+ : undefined;message.classificationId = object.classificationId ?? "";message.updater = object.updater ?? "";message.sourceBranch = object.sourceBranch ?? "";@@ -6126,6 +6250,7 @@ function createBaseColumnConfig(): ColumnConfig {maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,fullMaskingAlgorithmId: "",partialMaskingAlgorithmId: "",+ objectSchema: undefined,};}@@ -6152,6 +6277,9 @@ export const ColumnConfig: MessageFns<ColumnConfig> = {if (message.partialMaskingAlgorithmId !== "") {writer.uint32(58).string(message.partialMaskingAlgorithmId);}+ if (message.objectSchema !== undefined) {+ ObjectSchema.encode(message.objectSchema, writer.uint32(66).fork()).join();+ }return writer;},@@ -6221,6 +6349,14 @@ export const ColumnConfig: MessageFns<ColumnConfig> = {message.partialMaskingAlgorithmId = reader.string();continue;}+ case 8: {+ if (tag !== 66) {+ break;+ }++ message.objectSchema = ObjectSchema.decode(reader, reader.uint32());+ continue;+ }}if ((tag & 7) === 4 || tag === 0) {break;@@ -6250,6 +6386,7 @@ export const ColumnConfig: MessageFns<ColumnConfig> = {partialMaskingAlgorithmId: isSet(object.partialMaskingAlgorithmId)? globalThis.String(object.partialMaskingAlgorithmId): "",+ objectSchema: isSet(object.objectSchema) ? ObjectSchema.fromJSON(object.objectSchema) : undefined,};},@@ -6282,6 +6419,9 @@ export const ColumnConfig: MessageFns<ColumnConfig> = {if (message.partialMaskingAlgorithmId !== "") {obj.partialMaskingAlgorithmId = message.partialMaskingAlgorithmId;}+ if (message.objectSchema !== undefined) {+ obj.objectSchema = ObjectSchema.toJSON(message.objectSchema);+ }return obj;},@@ -6302,6 +6442,9 @@ export const ColumnConfig: MessageFns<ColumnConfig> = {message.maskingLevel = object.maskingLevel ?? MaskingLevel.MASKING_LEVEL_UNSPECIFIED;message.fullMaskingAlgorithmId = object.fullMaskingAlgorithmId ?? "";message.partialMaskingAlgorithmId = object.partialMaskingAlgorithmId ?? "";+ message.objectSchema = (object.objectSchema !== undefined && object.objectSchema !== null)+ ? ObjectSchema.fromPartial(object.objectSchema)+ : undefined;return message;},};@@ -6382,6 +6525,322 @@ export const ColumnConfig_LabelsEntry: MessageFns<ColumnConfig_LabelsEntry> = {},};+function createBaseObjectSchema(): ObjectSchema {+ return { type: ObjectSchema_Type.TYPE_UNSPECIFIED, structKind: undefined, arrayKind: undefined };+}++export const ObjectSchema: MessageFns<ObjectSchema> = {+ encode(message: ObjectSchema, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.type !== ObjectSchema_Type.TYPE_UNSPECIFIED) {+ writer.uint32(8).int32(objectSchema_TypeToNumber(message.type));+ }+ if (message.structKind !== undefined) {+ ObjectSchema_StructKind.encode(message.structKind, writer.uint32(18).fork()).join();+ }+ if (message.arrayKind !== undefined) {+ ObjectSchema_ArrayKind.encode(message.arrayKind, writer.uint32(26).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseObjectSchema();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 8) {+ break;+ }++ message.type = objectSchema_TypeFromJSON(reader.int32());+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.structKind = ObjectSchema_StructKind.decode(reader, reader.uint32());+ continue;+ }+ case 3: {+ if (tag !== 26) {+ break;+ }++ message.arrayKind = ObjectSchema_ArrayKind.decode(reader, reader.uint32());+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ObjectSchema {+ return {+ type: isSet(object.type) ? objectSchema_TypeFromJSON(object.type) : ObjectSchema_Type.TYPE_UNSPECIFIED,+ structKind: isSet(object.structKind) ? ObjectSchema_StructKind.fromJSON(object.structKind) : undefined,+ arrayKind: isSet(object.arrayKind) ? ObjectSchema_ArrayKind.fromJSON(object.arrayKind) : undefined,+ };+ },++ toJSON(message: ObjectSchema): unknown {+ const obj: any = {};+ if (message.type !== ObjectSchema_Type.TYPE_UNSPECIFIED) {+ obj.type = objectSchema_TypeToJSON(message.type);+ }+ if (message.structKind !== undefined) {+ obj.structKind = ObjectSchema_StructKind.toJSON(message.structKind);+ }+ if (message.arrayKind !== undefined) {+ obj.arrayKind = ObjectSchema_ArrayKind.toJSON(message.arrayKind);+ }+ return obj;+ },++ create(base?: DeepPartial<ObjectSchema>): ObjectSchema {+ return ObjectSchema.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ObjectSchema>): ObjectSchema {+ const message = createBaseObjectSchema();+ message.type = object.type ?? ObjectSchema_Type.TYPE_UNSPECIFIED;+ message.structKind = (object.structKind !== undefined && object.structKind !== null)+ ? ObjectSchema_StructKind.fromPartial(object.structKind)+ : undefined;+ message.arrayKind = (object.arrayKind !== undefined && object.arrayKind !== null)+ ? ObjectSchema_ArrayKind.fromPartial(object.arrayKind)+ : undefined;+ return message;+ },+};++function createBaseObjectSchema_StructKind(): ObjectSchema_StructKind {+ return { properties: {} };+}++export const ObjectSchema_StructKind: MessageFns<ObjectSchema_StructKind> = {+ encode(message: ObjectSchema_StructKind, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ Object.entries(message.properties).forEach(([key, value]) => {+ ObjectSchema_StructKind_PropertiesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();+ });+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_StructKind {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseObjectSchema_StructKind();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ const entry1 = ObjectSchema_StructKind_PropertiesEntry.decode(reader, reader.uint32());+ if (entry1.value !== undefined) {+ message.properties[entry1.key] = entry1.value;+ }+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ObjectSchema_StructKind {+ return {+ properties: isObject(object.properties)+ ? Object.entries(object.properties).reduce<{ [key: string]: ObjectSchema }>((acc, [key, value]) => {+ acc[key] = ObjectSchema.fromJSON(value);+ return acc;+ }, {})+ : {},+ };+ },++ toJSON(message: ObjectSchema_StructKind): unknown {+ const obj: any = {};+ if (message.properties) {+ const entries = Object.entries(message.properties);+ if (entries.length > 0) {+ obj.properties = {};+ entries.forEach(([k, v]) => {+ obj.properties[k] = ObjectSchema.toJSON(v);+ });+ }+ }+ return obj;+ },++ create(base?: DeepPartial<ObjectSchema_StructKind>): ObjectSchema_StructKind {+ return ObjectSchema_StructKind.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ObjectSchema_StructKind>): ObjectSchema_StructKind {+ const message = createBaseObjectSchema_StructKind();+ message.properties = Object.entries(object.properties ?? {}).reduce<{ [key: string]: ObjectSchema }>(+ (acc, [key, value]) => {+ if (value !== undefined) {+ acc[key] = ObjectSchema.fromPartial(value);+ }+ return acc;+ },+ {},+ );+ return message;+ },+};++function createBaseObjectSchema_StructKind_PropertiesEntry(): ObjectSchema_StructKind_PropertiesEntry {+ return { key: "", value: undefined };+}++export const ObjectSchema_StructKind_PropertiesEntry: MessageFns<ObjectSchema_StructKind_PropertiesEntry> = {+ encode(message: ObjectSchema_StructKind_PropertiesEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.key !== "") {+ writer.uint32(10).string(message.key);+ }+ if (message.value !== undefined) {+ ObjectSchema.encode(message.value, writer.uint32(18).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_StructKind_PropertiesEntry {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseObjectSchema_StructKind_PropertiesEntry();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.key = reader.string();+ continue;+ }+ case 2: {+ if (tag !== 18) {+ break;+ }++ message.value = ObjectSchema.decode(reader, reader.uint32());+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ObjectSchema_StructKind_PropertiesEntry {+ return {+ key: isSet(object.key) ? globalThis.String(object.key) : "",+ value: isSet(object.value) ? ObjectSchema.fromJSON(object.value) : undefined,+ };+ },++ toJSON(message: ObjectSchema_StructKind_PropertiesEntry): unknown {+ const obj: any = {};+ if (message.key !== "") {+ obj.key = message.key;+ }+ if (message.value !== undefined) {+ obj.value = ObjectSchema.toJSON(message.value);+ }+ return obj;+ },++ create(base?: DeepPartial<ObjectSchema_StructKind_PropertiesEntry>): ObjectSchema_StructKind_PropertiesEntry {+ return ObjectSchema_StructKind_PropertiesEntry.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ObjectSchema_StructKind_PropertiesEntry>): ObjectSchema_StructKind_PropertiesEntry {+ const message = createBaseObjectSchema_StructKind_PropertiesEntry();+ message.key = object.key ?? "";+ message.value = (object.value !== undefined && object.value !== null)+ ? ObjectSchema.fromPartial(object.value)+ : undefined;+ return message;+ },+};++function createBaseObjectSchema_ArrayKind(): ObjectSchema_ArrayKind {+ return { kind: undefined };+}++export const ObjectSchema_ArrayKind: MessageFns<ObjectSchema_ArrayKind> = {+ encode(message: ObjectSchema_ArrayKind, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {+ if (message.kind !== undefined) {+ ObjectSchema.encode(message.kind, writer.uint32(10).fork()).join();+ }+ return writer;+ },++ decode(input: BinaryReader | Uint8Array, length?: number): ObjectSchema_ArrayKind {+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseObjectSchema_ArrayKind();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1: {+ if (tag !== 10) {+ break;+ }++ message.kind = ObjectSchema.decode(reader, reader.uint32());+ continue;+ }+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skip(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): ObjectSchema_ArrayKind {+ return { kind: isSet(object.kind) ? ObjectSchema.fromJSON(object.kind) : undefined };+ },++ toJSON(message: ObjectSchema_ArrayKind): unknown {+ const obj: any = {};+ if (message.kind !== undefined) {+ obj.kind = ObjectSchema.toJSON(message.kind);+ }+ return obj;+ },++ create(base?: DeepPartial<ObjectSchema_ArrayKind>): ObjectSchema_ArrayKind {+ return ObjectSchema_ArrayKind.fromPartial(base ?? {});+ },+ fromPartial(object: DeepPartial<ObjectSchema_ArrayKind>): ObjectSchema_ArrayKind {+ const message = createBaseObjectSchema_ArrayKind();+ message.kind = (object.kind !== undefined && object.kind !== null)+ ? ObjectSchema.fromPartial(object.kind)+ : undefined;+ return message;+ },+};+type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;export type DeepPartial<T> = T extends Builtin ? Tdiff --git a/frontend/src/types/proto/v1/database_catalog_service.ts b/frontend/src/types/proto/v1/database_catalog_service.tsindex 77c7164d57..b48f3818c1 100644--- a/frontend/src/types/proto/v1/database_catalog_service.ts+++ b/frontend/src/types/proto/v1/database_catalog_service.ts@@ -68,7 +68,7 @@ export interface ColumnCatalog {maskingLevel: MaskingLevel;fullMaskingAlgorithmId: string;partialMaskingAlgorithmId: string;- objectSchema: ObjectSchema | undefined;+ objectSchema?: ObjectSchema | undefined;}export interface ColumnCatalog_LabelsEntry {@@ -1023,7 +1023,7 @@ function createBaseObjectSchema_StructKind(): ObjectSchema_StructKind {export const ObjectSchema_StructKind: MessageFns<ObjectSchema_StructKind> = {encode(message: ObjectSchema_StructKind, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {Object.entries(message.properties).forEach(([key, value]) => {- ObjectSchema_StructKind_PropertiesEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join();+ ObjectSchema_StructKind_PropertiesEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join();});return writer;},@@ -1035,14 +1035,14 @@ export const ObjectSchema_StructKind: MessageFns<ObjectSchema_StructKind> = {while (reader.pos < end) {const tag = reader.uint32();switch (tag >>> 3) {- case 2: {- if (tag !== 18) {+ case 1: {+ if (tag !== 10) {break;}- const entry2 = ObjectSchema_StructKind_PropertiesEntry.decode(reader, reader.uint32());- if (entry2.value !== undefined) {- message.properties[entry2.key] = entry2.value;+ const entry1 = ObjectSchema_StructKind_PropertiesEntry.decode(reader, reader.uint32());+ if (entry1.value !== undefined) {+ message.properties[entry1.key] = entry1.value;}continue;}diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 88438f6fe7..0269f115d4 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -9844,6 +9844,8 @@ components:type: stringpartialMaskingAlgorithmId:type: string+ objectSchema:+ $ref: '#/components/schemas/ObjectSchema'ColumnMetadata:type: objectproperties:@@ -14589,6 +14591,8 @@ components:items:$ref: '#/components/schemas/ColumnConfig'description: The column_configs is the ordered list of configs for columns in a table.+ objectSchema:+ $ref: '#/components/schemas/ObjectSchema'classificationId:type: stringupdater:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 38cc7ba963..5576050a20 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -65,6 +65,10 @@- [InstanceRoleMetadata](#bytebase-store-InstanceRoleMetadata)- [LinkedDatabaseMetadata](#bytebase-store-LinkedDatabaseMetadata)- [MaterializedViewMetadata](#bytebase-store-MaterializedViewMetadata)+ - [ObjectSchema](#bytebase-store-ObjectSchema)+ - [ObjectSchema.ArrayKind](#bytebase-store-ObjectSchema-ArrayKind)+ - [ObjectSchema.StructKind](#bytebase-store-ObjectSchema-StructKind)+ - [ObjectSchema.StructKind.PropertiesEntry](#bytebase-store-ObjectSchema-StructKind-PropertiesEntry)- [PackageMetadata](#bytebase-store-PackageMetadata)- [ProcedureConfig](#bytebase-store-ProcedureConfig)- [ProcedureMetadata](#bytebase-store-ProcedureMetadata)@@ -83,6 +87,7 @@- [ViewMetadata](#bytebase-store-ViewMetadata)- [GenerationMetadata.Type](#bytebase-store-GenerationMetadata-Type)+ - [ObjectSchema.Type](#bytebase-store-ObjectSchema-Type)- [StreamMetadata.Mode](#bytebase-store-StreamMetadata-Mode)- [StreamMetadata.Type](#bytebase-store-StreamMetadata-Type)- [TablePartitionMetadata.Type](#bytebase-store-TablePartitionMetadata-Type)@@ -925,6 +930,7 @@ Metadata about the request.| masking_level | [MaskingLevel](#bytebase-store-MaskingLevel) | | || full_masking_algorithm_id | [string](#string) | | || partial_masking_algorithm_id | [string](#string) | | |+| object_schema | [ObjectSchema](#bytebase-store-ObjectSchema) | optional | |@@ -1290,6 +1296,69 @@ MaterializedViewMetadata is the metadata for materialized views.+<a name="bytebase-store-ObjectSchema"></a>++### ObjectSchema++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| type | [ObjectSchema.Type](#bytebase-store-ObjectSchema-Type) | | |+| struct_kind | [ObjectSchema.StructKind](#bytebase-store-ObjectSchema-StructKind) | | |+| array_kind | [ObjectSchema.ArrayKind](#bytebase-store-ObjectSchema-ArrayKind) | | |+++++++<a name="bytebase-store-ObjectSchema-ArrayKind"></a>++### ObjectSchema.ArrayKind++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| kind | [ObjectSchema](#bytebase-store-ObjectSchema) | | |+++++++<a name="bytebase-store-ObjectSchema-StructKind"></a>++### ObjectSchema.StructKind++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| properties | [ObjectSchema.StructKind.PropertiesEntry](#bytebase-store-ObjectSchema-StructKind-PropertiesEntry) | repeated | |+++++++<a name="bytebase-store-ObjectSchema-StructKind-PropertiesEntry"></a>++### ObjectSchema.StructKind.PropertiesEntry++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| key | [string](#string) | | |+| value | [ObjectSchema](#bytebase-store-ObjectSchema) | | |++++++<a name="bytebase-store-PackageMetadata"></a>### PackageMetadata@@ -1482,6 +1551,7 @@ This is the concept of schema in Postgres, but it's a no-op for MySQL.| ----- | ---- | ----- | ----------- || name | [string](#string) | | The name is the name of a table. || column_configs | [ColumnConfig](#bytebase-store-ColumnConfig) | repeated | The column_configs is the ordered list of configs for columns in a table. |+| object_schema | [ObjectSchema](#bytebase-store-ObjectSchema) | optional | || classification_id | [string](#string) | | || updater | [string](#string) | | The last updater of the table in branch. Format: users/{userUID}. || source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |@@ -1645,6 +1715,22 @@ ViewMetadata is the metadata for views.+<a name="bytebase-store-ObjectSchema-Type"></a>++### ObjectSchema.Type+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| STRING | 1 | |+| NUMBER | 2 | |+| BOOLEAN | 3 | |+| OBJECT | 4 | |+| ARRAY | 5 | |+++<a name="bytebase-store-StreamMetadata-Mode"></a>### StreamMetadata.Modediff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex ba1f5f0e37..8d1ba251c7 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -421,6 +421,22 @@<a href="#bytebase.store.MaterializedViewMetadata"><span class="badge">M</span>MaterializedViewMetadata</a></li>+ <li>+ <a href="#bytebase.store.ObjectSchema"><span class="badge">M</span>ObjectSchema</a>+ </li>++ <li>+ <a href="#bytebase.store.ObjectSchema.ArrayKind"><span class="badge">M</span>ObjectSchema.ArrayKind</a>+ </li>++ <li>+ <a href="#bytebase.store.ObjectSchema.StructKind"><span class="badge">M</span>ObjectSchema.StructKind</a>+ </li>++ <li>+ <a href="#bytebase.store.ObjectSchema.StructKind.PropertiesEntry"><span class="badge">M</span>ObjectSchema.StructKind.PropertiesEntry</a>+ </li>+<li><a href="#bytebase.store.PackageMetadata"><span class="badge">M</span>PackageMetadata</a></li>@@ -490,6 +506,10 @@<a href="#bytebase.store.GenerationMetadata.Type"><span class="badge">E</span>GenerationMetadata.Type</a></li>+ <li>+ <a href="#bytebase.store.ObjectSchema.Type"><span class="badge">E</span>ObjectSchema.Type</a>+ </li>+<li><a href="#bytebase.store.StreamMetadata.Mode"><span class="badge">E</span>StreamMetadata.Mode</a></li>@@ -2941,6 +2961,13 @@ This information is not authenticated and should be treated accordingly. </p></t<td><p> </p></td></tr>+ <tr>+ <td>object_schema</td>+ <td><a href="#bytebase.store.ObjectSchema">ObjectSchema</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>+</tbody></table>@@ -3936,6 +3963,123 @@ engine. </p></td>+ <h3 id="bytebase.store.ObjectSchema">ObjectSchema</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>type</td>+ <td><a href="#bytebase.store.ObjectSchema.Type">ObjectSchema.Type</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>struct_kind</td>+ <td><a href="#bytebase.store.ObjectSchema.StructKind">ObjectSchema.StructKind</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>array_kind</td>+ <td><a href="#bytebase.store.ObjectSchema.ArrayKind">ObjectSchema.ArrayKind</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.ObjectSchema.ArrayKind">ObjectSchema.ArrayKind</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>kind</td>+ <td><a href="#bytebase.store.ObjectSchema">ObjectSchema</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.ObjectSchema.StructKind">ObjectSchema.StructKind</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>properties</td>+ <td><a href="#bytebase.store.ObjectSchema.StructKind.PropertiesEntry">ObjectSchema.StructKind.PropertiesEntry</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.ObjectSchema.StructKind.PropertiesEntry">ObjectSchema.StructKind.PropertiesEntry</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#bytebase.store.ObjectSchema">ObjectSchema</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++++<h3 id="bytebase.store.PackageMetadata">PackageMetadata</h3><p>PackageMetadata is the metadata for packages.</p>@@ -4505,6 +4649,13 @@ Snowflake. </p></td><td><p>The column_configs is the ordered list of configs for columns in a table. </p></td></tr>+ <tr>+ <td>object_schema</td>+ <td><a href="#bytebase.store.ObjectSchema">ObjectSchema</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>+<tr><td>classification_id</td><td><a href="#string">string</a></td>@@ -5078,6 +5229,53 @@ Format: projcets/{project}/branches/{branch} </p></td></tbody></table>+ <h3 id="bytebase.store.ObjectSchema.Type">ObjectSchema.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>STRING</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>NUMBER</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>BOOLEAN</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>OBJECT</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ARRAY</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>+<h3 id="bytebase.store.StreamMetadata.Mode">StreamMetadata.Mode</h3><p></p><table class="enum-table">diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex b72acb432e..2c623c7bb4 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -6606,7 +6606,7 @@ The changelist's `name` field is used to identify the changelist to update.| masking_level | [MaskingLevel](#bytebase-v1-MaskingLevel) | | || full_masking_algorithm_id | [string](#string) | | || partial_masking_algorithm_id | [string](#string) | | |-| object_schema | [ObjectSchema](#bytebase-v1-ObjectSchema) | | |+| object_schema | [ObjectSchema](#bytebase-v1-ObjectSchema) | optional | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 82328f7416..abe9b50012 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -18949,7 +18949,7 @@ Format: projects/{project}/changelists/{changelist} </p></td><tr><td>object_schema</td><td><a href="#bytebase.v1.ObjectSchema">ObjectSchema</a></td>- <td></td>+ <td>optional</td><td><p> </p></td></tr>diff --git a/proto/generated-go/store/database.pb.go b/proto/generated-go/store/database.pb.goindex 1936d6ab29..d4a103ce94 100644--- a/proto/generated-go/store/database.pb.go+++ b/proto/generated-go/store/database.pb.go@@ -293,6 +293,64 @@ func (GenerationMetadata_Type) EnumDescriptor() ([]byte, []int) {return file_store_database_proto_rawDescGZIP(), []int{15, 0}}+type ObjectSchema_Type int32++const (+ ObjectSchema_TYPE_UNSPECIFIED ObjectSchema_Type = 0+ ObjectSchema_STRING ObjectSchema_Type = 1+ ObjectSchema_NUMBER ObjectSchema_Type = 2+ ObjectSchema_BOOLEAN ObjectSchema_Type = 3+ ObjectSchema_OBJECT ObjectSchema_Type = 4+ ObjectSchema_ARRAY ObjectSchema_Type = 5+)++// Enum value maps for ObjectSchema_Type.+var (+ ObjectSchema_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "STRING",+ 2: "NUMBER",+ 3: "BOOLEAN",+ 4: "OBJECT",+ 5: "ARRAY",+ }+ ObjectSchema_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "STRING": 1,+ "NUMBER": 2,+ "BOOLEAN": 3,+ "OBJECT": 4,+ "ARRAY": 5,+ }+)++func (x ObjectSchema_Type) Enum() *ObjectSchema_Type {+ p := new(ObjectSchema_Type)+ *p = x+ return p+}++func (x ObjectSchema_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (ObjectSchema_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_store_database_proto_enumTypes[5].Descriptor()+}++func (ObjectSchema_Type) Type() protoreflect.EnumType {+ return &file_store_database_proto_enumTypes[5]+}++func (x ObjectSchema_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use ObjectSchema_Type.Descriptor instead.+func (ObjectSchema_Type) EnumDescriptor() ([]byte, []int) {+ return file_store_database_proto_rawDescGZIP(), []int{35, 0}+}+// DatabaseMetadata is the metadata for databases.type DatabaseMetadata struct {state protoimpl.MessageState `protogen:"open.v1"`@@ -3134,6 +3192,7 @@ type TableConfig struct {Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`// The column_configs is the ordered list of configs for columns in a table.ColumnConfigs []*ColumnConfig `protobuf:"bytes,2,rep,name=column_configs,json=columnConfigs,proto3" json:"column_configs,omitempty"`+ ObjectSchema *ObjectSchema `protobuf:"bytes,7,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`ClassificationId string `protobuf:"bytes,3,opt,name=classification_id,json=classificationId,proto3" json:"classification_id,omitempty"`// The last updater of the table in branch.// Format: users/{userUID}.@@ -3191,6 +3250,13 @@ func (x *TableConfig) GetColumnConfigs() []*ColumnConfig {return nil}+func (x *TableConfig) GetObjectSchema() *ObjectSchema {+ if x != nil {+ return x.ObjectSchema+ }+ return nil+}+func (x *TableConfig) GetClassificationId() string {if x != nil {return x.ClassificationId@@ -3452,6 +3518,7 @@ type ColumnConfig struct {MaskingLevel MaskingLevel `protobuf:"varint,5,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.store.MaskingLevel" json:"masking_level,omitempty"`FullMaskingAlgorithmId string `protobuf:"bytes,6,opt,name=full_masking_algorithm_id,json=fullMaskingAlgorithmId,proto3" json:"full_masking_algorithm_id,omitempty"`PartialMaskingAlgorithmId string `protobuf:"bytes,7,opt,name=partial_masking_algorithm_id,json=partialMaskingAlgorithmId,proto3" json:"partial_masking_algorithm_id,omitempty"`+ ObjectSchema *ObjectSchema `protobuf:"bytes,8,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -3535,6 +3602,191 @@ func (x *ColumnConfig) GetPartialMaskingAlgorithmId() string {return ""}+func (x *ColumnConfig) GetObjectSchema() *ObjectSchema {+ if x != nil {+ return x.ObjectSchema+ }+ return nil+}++type ObjectSchema struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ Type ObjectSchema_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.ObjectSchema_Type" json:"type,omitempty"`+ // Types that are valid to be assigned to Kind:+ //+ // *ObjectSchema_StructKind_+ // *ObjectSchema_ArrayKind_+ Kind isObjectSchema_Kind `protobuf_oneof:"kind"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *ObjectSchema) Reset() {+ *x = ObjectSchema{}+ mi := &file_store_database_proto_msgTypes[35]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *ObjectSchema) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ObjectSchema) ProtoMessage() {}++func (x *ObjectSchema) ProtoReflect() protoreflect.Message {+ mi := &file_store_database_proto_msgTypes[35]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ObjectSchema.ProtoReflect.Descriptor instead.+func (*ObjectSchema) Descriptor() ([]byte, []int) {+ return file_store_database_proto_rawDescGZIP(), []int{35}+}++func (x *ObjectSchema) GetType() ObjectSchema_Type {+ if x != nil {+ return x.Type+ }+ return ObjectSchema_TYPE_UNSPECIFIED+}++func (x *ObjectSchema) GetKind() isObjectSchema_Kind {+ if x != nil {+ return x.Kind+ }+ return nil+}++func (x *ObjectSchema) GetStructKind() *ObjectSchema_StructKind {+ if x != nil {+ if x, ok := x.Kind.(*ObjectSchema_StructKind_); ok {+ return x.StructKind+ }+ }+ return nil+}++func (x *ObjectSchema) GetArrayKind() *ObjectSchema_ArrayKind {+ if x != nil {+ if x, ok := x.Kind.(*ObjectSchema_ArrayKind_); ok {+ return x.ArrayKind+ }+ }+ return nil+}++type isObjectSchema_Kind interface {+ isObjectSchema_Kind()+}++type ObjectSchema_StructKind_ struct {+ StructKind *ObjectSchema_StructKind `protobuf:"bytes,2,opt,name=struct_kind,json=structKind,proto3,oneof"`+}++type ObjectSchema_ArrayKind_ struct {+ ArrayKind *ObjectSchema_ArrayKind `protobuf:"bytes,3,opt,name=array_kind,json=arrayKind,proto3,oneof"`+}++func (*ObjectSchema_StructKind_) isObjectSchema_Kind() {}++func (*ObjectSchema_ArrayKind_) isObjectSchema_Kind() {}++type ObjectSchema_StructKind struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ Properties map[string]*ObjectSchema `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *ObjectSchema_StructKind) Reset() {+ *x = ObjectSchema_StructKind{}+ mi := &file_store_database_proto_msgTypes[38]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *ObjectSchema_StructKind) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ObjectSchema_StructKind) ProtoMessage() {}++func (x *ObjectSchema_StructKind) ProtoReflect() protoreflect.Message {+ mi := &file_store_database_proto_msgTypes[38]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ObjectSchema_StructKind.ProtoReflect.Descriptor instead.+func (*ObjectSchema_StructKind) Descriptor() ([]byte, []int) {+ return file_store_database_proto_rawDescGZIP(), []int{35, 0}+}++func (x *ObjectSchema_StructKind) GetProperties() map[string]*ObjectSchema {+ if x != nil {+ return x.Properties+ }+ return nil+}++type ObjectSchema_ArrayKind struct {+ state protoimpl.MessageState `protogen:"open.v1"`+ Kind *ObjectSchema `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache+}++func (x *ObjectSchema_ArrayKind) Reset() {+ *x = ObjectSchema_ArrayKind{}+ mi := &file_store_database_proto_msgTypes[39]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+}++func (x *ObjectSchema_ArrayKind) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*ObjectSchema_ArrayKind) ProtoMessage() {}++func (x *ObjectSchema_ArrayKind) ProtoReflect() protoreflect.Message {+ mi := &file_store_database_proto_msgTypes[39]+ if x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use ObjectSchema_ArrayKind.ProtoReflect.Descriptor instead.+func (*ObjectSchema_ArrayKind) Descriptor() ([]byte, []int) {+ return file_store_database_proto_rawDescGZIP(), []int{35, 1}+}++func (x *ObjectSchema_ArrayKind) GetKind() *ObjectSchema {+ if x != nil {+ return x.Kind+ }+ return nil+}+var File_store_database_proto protoreflect.FileDescriptorvar file_store_database_proto_rawDesc = []byte{@@ -4059,26 +4311,43 @@ var file_store_database_proto_rawDesc = []byte{0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a,0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,0x56, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x76, 0x69, 0x65, 0x77,- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xa1, 0x02, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c,+ 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xfb, 0x02, 0x0a, 0x0b, 0x54, 0x61, 0x62, 0x6c,0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0e, 0x63,0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20,0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69,0x67, 0x52, 0x0d, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73,- 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69,- 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6c, 0x61,- 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a,- 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04,- 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a,- 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x06,- 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,- 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,- 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb2, 0x01, 0x0a, 0x0e,- 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12,+ 0x12, 0x46, 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x73,+ 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,+ 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f,+ 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41,+ 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,+ 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,+ 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54,+ 0x69, 0x6d, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xb2, 0x01, 0x0a, 0x0e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69,+ 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2,+ 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d,+ 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20,+ 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63,+ 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74,+ 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,+ 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,+ 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a,+ 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb3, 0x01, 0x0a, 0x0f, 0x50,+ 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12,0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20,0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74,@@ -4089,58 +4358,89 @@ var file_store_database_proto_rawDesc = []byte{0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04,0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,- 0x22, 0xb3, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52,- 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72,- 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42,- 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61,- 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,- 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,- 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,- 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xae, 0x01, 0x0a, 0x0a, 0x56, 0x69, 0x65, 0x77, 0x43,- 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,- 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75,- 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72,- 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74,- 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,- 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,- 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xb5, 0x03, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75,- 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10,- 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64,- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,- 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73,- 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f,- 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,- 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x73,- 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20,- 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,- 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,- 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62,- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61,- 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b,- 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x66, 0x75, 0x6c, 0x6c,- 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,- 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x66, 0x75, 0x6c,- 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68,- 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a, 0x1c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d,- 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d,- 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69,- 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74,- 0x68, 0x6d, 0x49, 0x64, 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,+ 0x22, 0xae, 0x01, 0x0a, 0x0a, 0x56, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,+ 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,+ 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x02,+ 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61,+ 0x74, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72,+ 0x61, 0x6e, 0x63, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x03,+ 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x41,+ 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,+ 0x04, 0xe2, 0x41, 0x01, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,+ 0x65, 0x22, 0x8f, 0x04, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66,+ 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74,+ 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,+ 0x52, 0x0e, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64,+ 0x12, 0x40, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,+ 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c,+ 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65,+ 0x6c, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61,+ 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63,+ 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,+ 0x41, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,+ 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c,+ 0x65, 0x76, 0x65, 0x6c, 0x52, 0x0c, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x4c, 0x65, 0x76,+ 0x65, 0x6c, 0x12, 0x39, 0x0a, 0x19, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18,+ 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x66, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x69,+ 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x3f, 0x0a,+ 0x1c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67,+ 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20,+ 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x73, 0x6b,+ 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64, 0x12, 0x46,+ 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18,+ 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x88, 0x01, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,+ 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,+ 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x22, 0xc0, 0x04, 0x0a, 0x0c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,+ 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,+ 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x4a, 0x0a, 0x0b, 0x73,+ 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53,+ 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72,+ 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x72, 0x72, 0x61, 0x79,+ 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a,+ 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b,+ 0x69, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64,+ 0x1a, 0xc2, 0x01, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12,+ 0x57, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20,+ 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x2e, 0x50, 0x72, 0x6f,+ 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72,+ 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x5b, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70,+ 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,+ 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x32, 0x0a,+ 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x4f, 0x62,+ 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,+ 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3d, 0x0a, 0x09, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69,+ 0x6e, 0x64, 0x12, 0x30, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x04,+ 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x58, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10,+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,+ 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a,+ 0x0a, 0x06, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f,+ 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x42, 0x4a, 0x45, 0x43,+ 0x54, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x05, 0x42, 0x06,+ 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,+ 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x33,}var (@@ -4155,110 +4455,123 @@ func file_store_database_proto_rawDescGZIP() []byte {return file_store_database_proto_rawDescData}-var file_store_database_proto_enumTypes = make([]protoimpl.EnumInfo, 5)-var file_store_database_proto_msgTypes = make([]protoimpl.MessageInfo, 37)+var file_store_database_proto_enumTypes = make([]protoimpl.EnumInfo, 6)+var file_store_database_proto_msgTypes = make([]protoimpl.MessageInfo, 41)var file_store_database_proto_goTypes = []any{(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(GenerationMetadata_Type)(0), // 4: bytebase.store.GenerationMetadata.Type- (*DatabaseMetadata)(nil), // 5: bytebase.store.DatabaseMetadata- (*DatabaseSchemaMetadata)(nil), // 6: bytebase.store.DatabaseSchemaMetadata- (*LinkedDatabaseMetadata)(nil), // 7: bytebase.store.LinkedDatabaseMetadata- (*SchemaMetadata)(nil), // 8: bytebase.store.SchemaMetadata- (*EnumTypeMetadata)(nil), // 9: bytebase.store.EnumTypeMetadata- (*EventMetadata)(nil), // 10: bytebase.store.EventMetadata- (*SequenceMetadata)(nil), // 11: bytebase.store.SequenceMetadata- (*TriggerMetadata)(nil), // 12: bytebase.store.TriggerMetadata- (*TaskMetadata)(nil), // 13: bytebase.store.TaskMetadata- (*StreamMetadata)(nil), // 14: bytebase.store.StreamMetadata- (*TableMetadata)(nil), // 15: bytebase.store.TableMetadata- (*CheckConstraintMetadata)(nil), // 16: bytebase.store.CheckConstraintMetadata- (*ExternalTableMetadata)(nil), // 17: bytebase.store.ExternalTableMetadata- (*TablePartitionMetadata)(nil), // 18: bytebase.store.TablePartitionMetadata- (*ColumnMetadata)(nil), // 19: bytebase.store.ColumnMetadata- (*GenerationMetadata)(nil), // 20: bytebase.store.GenerationMetadata- (*ViewMetadata)(nil), // 21: bytebase.store.ViewMetadata- (*DependentColumn)(nil), // 22: bytebase.store.DependentColumn- (*MaterializedViewMetadata)(nil), // 23: bytebase.store.MaterializedViewMetadata- (*FunctionMetadata)(nil), // 24: bytebase.store.FunctionMetadata- (*ProcedureMetadata)(nil), // 25: bytebase.store.ProcedureMetadata- (*PackageMetadata)(nil), // 26: bytebase.store.PackageMetadata- (*IndexMetadata)(nil), // 27: bytebase.store.IndexMetadata- (*ExtensionMetadata)(nil), // 28: bytebase.store.ExtensionMetadata- (*ForeignKeyMetadata)(nil), // 29: bytebase.store.ForeignKeyMetadata- (*InstanceRoleMetadata)(nil), // 30: bytebase.store.InstanceRoleMetadata- (*Secrets)(nil), // 31: bytebase.store.Secrets- (*SecretItem)(nil), // 32: bytebase.store.SecretItem- (*DatabaseConfig)(nil), // 33: bytebase.store.DatabaseConfig- (*SchemaConfig)(nil), // 34: bytebase.store.SchemaConfig- (*TableConfig)(nil), // 35: bytebase.store.TableConfig- (*FunctionConfig)(nil), // 36: bytebase.store.FunctionConfig- (*ProcedureConfig)(nil), // 37: bytebase.store.ProcedureConfig- (*ViewConfig)(nil), // 38: bytebase.store.ViewConfig- (*ColumnConfig)(nil), // 39: bytebase.store.ColumnConfig- nil, // 40: bytebase.store.DatabaseMetadata.LabelsEntry- nil, // 41: bytebase.store.ColumnConfig.LabelsEntry- (*timestamppb.Timestamp)(nil), // 42: google.protobuf.Timestamp- (*wrapperspb.StringValue)(nil), // 43: google.protobuf.StringValue- (MaskingLevel)(0), // 44: bytebase.store.MaskingLevel+ (ObjectSchema_Type)(0), // 5: bytebase.store.ObjectSchema.Type+ (*DatabaseMetadata)(nil), // 6: bytebase.store.DatabaseMetadata+ (*DatabaseSchemaMetadata)(nil), // 7: bytebase.store.DatabaseSchemaMetadata+ (*LinkedDatabaseMetadata)(nil), // 8: bytebase.store.LinkedDatabaseMetadata+ (*SchemaMetadata)(nil), // 9: bytebase.store.SchemaMetadata+ (*EnumTypeMetadata)(nil), // 10: bytebase.store.EnumTypeMetadata+ (*EventMetadata)(nil), // 11: bytebase.store.EventMetadata+ (*SequenceMetadata)(nil), // 12: bytebase.store.SequenceMetadata+ (*TriggerMetadata)(nil), // 13: bytebase.store.TriggerMetadata+ (*TaskMetadata)(nil), // 14: bytebase.store.TaskMetadata+ (*StreamMetadata)(nil), // 15: bytebase.store.StreamMetadata+ (*TableMetadata)(nil), // 16: bytebase.store.TableMetadata+ (*CheckConstraintMetadata)(nil), // 17: bytebase.store.CheckConstraintMetadata+ (*ExternalTableMetadata)(nil), // 18: bytebase.store.ExternalTableMetadata+ (*TablePartitionMetadata)(nil), // 19: bytebase.store.TablePartitionMetadata+ (*ColumnMetadata)(nil), // 20: bytebase.store.ColumnMetadata+ (*GenerationMetadata)(nil), // 21: bytebase.store.GenerationMetadata+ (*ViewMetadata)(nil), // 22: bytebase.store.ViewMetadata+ (*DependentColumn)(nil), // 23: bytebase.store.DependentColumn+ (*MaterializedViewMetadata)(nil), // 24: bytebase.store.MaterializedViewMetadata+ (*FunctionMetadata)(nil), // 25: bytebase.store.FunctionMetadata+ (*ProcedureMetadata)(nil), // 26: bytebase.store.ProcedureMetadata+ (*PackageMetadata)(nil), // 27: bytebase.store.PackageMetadata+ (*IndexMetadata)(nil), // 28: bytebase.store.IndexMetadata+ (*ExtensionMetadata)(nil), // 29: bytebase.store.ExtensionMetadata+ (*ForeignKeyMetadata)(nil), // 30: bytebase.store.ForeignKeyMetadata+ (*InstanceRoleMetadata)(nil), // 31: bytebase.store.InstanceRoleMetadata+ (*Secrets)(nil), // 32: bytebase.store.Secrets+ (*SecretItem)(nil), // 33: bytebase.store.SecretItem+ (*DatabaseConfig)(nil), // 34: bytebase.store.DatabaseConfig+ (*SchemaConfig)(nil), // 35: bytebase.store.SchemaConfig+ (*TableConfig)(nil), // 36: bytebase.store.TableConfig+ (*FunctionConfig)(nil), // 37: bytebase.store.FunctionConfig+ (*ProcedureConfig)(nil), // 38: bytebase.store.ProcedureConfig+ (*ViewConfig)(nil), // 39: bytebase.store.ViewConfig+ (*ColumnConfig)(nil), // 40: bytebase.store.ColumnConfig+ (*ObjectSchema)(nil), // 41: bytebase.store.ObjectSchema+ nil, // 42: bytebase.store.DatabaseMetadata.LabelsEntry+ nil, // 43: bytebase.store.ColumnConfig.LabelsEntry+ (*ObjectSchema_StructKind)(nil), // 44: bytebase.store.ObjectSchema.StructKind+ (*ObjectSchema_ArrayKind)(nil), // 45: bytebase.store.ObjectSchema.ArrayKind+ nil, // 46: bytebase.store.ObjectSchema.StructKind.PropertiesEntry+ (*timestamppb.Timestamp)(nil), // 47: google.protobuf.Timestamp+ (*wrapperspb.StringValue)(nil), // 48: google.protobuf.StringValue+ (MaskingLevel)(0), // 49: bytebase.store.MaskingLevel}var file_store_database_proto_depIdxs = []int32{- 40, // 0: bytebase.store.DatabaseMetadata.labels:type_name -> bytebase.store.DatabaseMetadata.LabelsEntry- 42, // 1: bytebase.store.DatabaseMetadata.last_sync_time:type_name -> google.protobuf.Timestamp- 8, // 2: bytebase.store.DatabaseSchemaMetadata.schemas:type_name -> bytebase.store.SchemaMetadata- 28, // 3: bytebase.store.DatabaseSchemaMetadata.extensions:type_name -> bytebase.store.ExtensionMetadata- 7, // 4: bytebase.store.DatabaseSchemaMetadata.linked_databases:type_name -> bytebase.store.LinkedDatabaseMetadata- 15, // 5: bytebase.store.SchemaMetadata.tables:type_name -> bytebase.store.TableMetadata- 17, // 6: bytebase.store.SchemaMetadata.external_tables:type_name -> bytebase.store.ExternalTableMetadata- 21, // 7: bytebase.store.SchemaMetadata.views:type_name -> bytebase.store.ViewMetadata- 24, // 8: bytebase.store.SchemaMetadata.functions:type_name -> bytebase.store.FunctionMetadata- 25, // 9: bytebase.store.SchemaMetadata.procedures:type_name -> bytebase.store.ProcedureMetadata- 14, // 10: bytebase.store.SchemaMetadata.streams:type_name -> bytebase.store.StreamMetadata- 13, // 11: bytebase.store.SchemaMetadata.tasks:type_name -> bytebase.store.TaskMetadata- 23, // 12: bytebase.store.SchemaMetadata.materialized_views:type_name -> bytebase.store.MaterializedViewMetadata- 11, // 13: bytebase.store.SchemaMetadata.sequences:type_name -> bytebase.store.SequenceMetadata- 26, // 14: bytebase.store.SchemaMetadata.packages:type_name -> bytebase.store.PackageMetadata- 10, // 15: bytebase.store.SchemaMetadata.events:type_name -> bytebase.store.EventMetadata- 9, // 16: bytebase.store.SchemaMetadata.enum_types:type_name -> bytebase.store.EnumTypeMetadata+ 42, // 0: bytebase.store.DatabaseMetadata.labels:type_name -> bytebase.store.DatabaseMetadata.LabelsEntry+ 47, // 1: bytebase.store.DatabaseMetadata.last_sync_time:type_name -> google.protobuf.Timestamp+ 9, // 2: bytebase.store.DatabaseSchemaMetadata.schemas:type_name -> bytebase.store.SchemaMetadata+ 29, // 3: bytebase.store.DatabaseSchemaMetadata.extensions:type_name -> bytebase.store.ExtensionMetadata+ 8, // 4: bytebase.store.DatabaseSchemaMetadata.linked_databases:type_name -> bytebase.store.LinkedDatabaseMetadata+ 16, // 5: bytebase.store.SchemaMetadata.tables:type_name -> bytebase.store.TableMetadata+ 18, // 6: bytebase.store.SchemaMetadata.external_tables:type_name -> bytebase.store.ExternalTableMetadata+ 22, // 7: bytebase.store.SchemaMetadata.views:type_name -> bytebase.store.ViewMetadata+ 25, // 8: bytebase.store.SchemaMetadata.functions:type_name -> bytebase.store.FunctionMetadata+ 26, // 9: bytebase.store.SchemaMetadata.procedures:type_name -> bytebase.store.ProcedureMetadata+ 15, // 10: bytebase.store.SchemaMetadata.streams:type_name -> bytebase.store.StreamMetadata+ 14, // 11: bytebase.store.SchemaMetadata.tasks:type_name -> bytebase.store.TaskMetadata+ 24, // 12: bytebase.store.SchemaMetadata.materialized_views:type_name -> bytebase.store.MaterializedViewMetadata+ 12, // 13: bytebase.store.SchemaMetadata.sequences:type_name -> bytebase.store.SequenceMetadata+ 27, // 14: bytebase.store.SchemaMetadata.packages:type_name -> bytebase.store.PackageMetadata+ 11, // 15: bytebase.store.SchemaMetadata.events:type_name -> bytebase.store.EventMetadata+ 10, // 16: bytebase.store.SchemaMetadata.enum_types:type_name -> bytebase.store.EnumTypeMetadata0, // 17: bytebase.store.TaskMetadata.state:type_name -> bytebase.store.TaskMetadata.State1, // 18: bytebase.store.StreamMetadata.type:type_name -> bytebase.store.StreamMetadata.Type2, // 19: bytebase.store.StreamMetadata.mode:type_name -> bytebase.store.StreamMetadata.Mode- 19, // 20: bytebase.store.TableMetadata.columns:type_name -> bytebase.store.ColumnMetadata- 27, // 21: bytebase.store.TableMetadata.indexes:type_name -> bytebase.store.IndexMetadata- 29, // 22: bytebase.store.TableMetadata.foreign_keys:type_name -> bytebase.store.ForeignKeyMetadata- 18, // 23: bytebase.store.TableMetadata.partitions:type_name -> bytebase.store.TablePartitionMetadata- 16, // 24: bytebase.store.TableMetadata.check_constraints:type_name -> bytebase.store.CheckConstraintMetadata- 12, // 25: bytebase.store.TableMetadata.triggers:type_name -> bytebase.store.TriggerMetadata- 19, // 26: bytebase.store.ExternalTableMetadata.columns:type_name -> bytebase.store.ColumnMetadata+ 20, // 20: bytebase.store.TableMetadata.columns:type_name -> bytebase.store.ColumnMetadata+ 28, // 21: bytebase.store.TableMetadata.indexes:type_name -> bytebase.store.IndexMetadata+ 30, // 22: bytebase.store.TableMetadata.foreign_keys:type_name -> bytebase.store.ForeignKeyMetadata+ 19, // 23: bytebase.store.TableMetadata.partitions:type_name -> bytebase.store.TablePartitionMetadata+ 17, // 24: bytebase.store.TableMetadata.check_constraints:type_name -> bytebase.store.CheckConstraintMetadata+ 13, // 25: bytebase.store.TableMetadata.triggers:type_name -> bytebase.store.TriggerMetadata+ 20, // 26: bytebase.store.ExternalTableMetadata.columns:type_name -> bytebase.store.ColumnMetadata3, // 27: bytebase.store.TablePartitionMetadata.type:type_name -> bytebase.store.TablePartitionMetadata.Type- 18, // 28: bytebase.store.TablePartitionMetadata.subpartitions:type_name -> bytebase.store.TablePartitionMetadata- 27, // 29: bytebase.store.TablePartitionMetadata.indexes:type_name -> bytebase.store.IndexMetadata- 43, // 30: bytebase.store.ColumnMetadata.default:type_name -> google.protobuf.StringValue- 20, // 31: bytebase.store.ColumnMetadata.generation:type_name -> bytebase.store.GenerationMetadata+ 19, // 28: bytebase.store.TablePartitionMetadata.subpartitions:type_name -> bytebase.store.TablePartitionMetadata+ 28, // 29: bytebase.store.TablePartitionMetadata.indexes:type_name -> bytebase.store.IndexMetadata+ 48, // 30: bytebase.store.ColumnMetadata.default:type_name -> google.protobuf.StringValue+ 21, // 31: bytebase.store.ColumnMetadata.generation:type_name -> bytebase.store.GenerationMetadata4, // 32: bytebase.store.GenerationMetadata.type:type_name -> bytebase.store.GenerationMetadata.Type- 22, // 33: bytebase.store.ViewMetadata.dependent_columns:type_name -> bytebase.store.DependentColumn- 19, // 34: bytebase.store.ViewMetadata.columns:type_name -> bytebase.store.ColumnMetadata- 22, // 35: bytebase.store.MaterializedViewMetadata.dependent_columns:type_name -> bytebase.store.DependentColumn- 32, // 36: bytebase.store.Secrets.items:type_name -> bytebase.store.SecretItem- 34, // 37: bytebase.store.DatabaseConfig.schema_configs:type_name -> bytebase.store.SchemaConfig- 35, // 38: bytebase.store.SchemaConfig.table_configs:type_name -> bytebase.store.TableConfig- 36, // 39: bytebase.store.SchemaConfig.function_configs:type_name -> bytebase.store.FunctionConfig- 37, // 40: bytebase.store.SchemaConfig.procedure_configs:type_name -> bytebase.store.ProcedureConfig- 38, // 41: bytebase.store.SchemaConfig.view_configs:type_name -> bytebase.store.ViewConfig- 39, // 42: bytebase.store.TableConfig.column_configs:type_name -> bytebase.store.ColumnConfig- 42, // 43: bytebase.store.TableConfig.update_time:type_name -> google.protobuf.Timestamp- 42, // 44: bytebase.store.FunctionConfig.update_time:type_name -> google.protobuf.Timestamp- 42, // 45: bytebase.store.ProcedureConfig.update_time:type_name -> google.protobuf.Timestamp- 42, // 46: bytebase.store.ViewConfig.update_time:type_name -> google.protobuf.Timestamp- 41, // 47: bytebase.store.ColumnConfig.labels:type_name -> bytebase.store.ColumnConfig.LabelsEntry- 44, // 48: bytebase.store.ColumnConfig.masking_level:type_name -> bytebase.store.MaskingLevel- 49, // [49:49] is the sub-list for method output_type- 49, // [49:49] is the sub-list for method input_type- 49, // [49:49] is the sub-list for extension type_name- 49, // [49:49] is the sub-list for extension extendee- 0, // [0:49] is the sub-list for field type_name+ 23, // 33: bytebase.store.ViewMetadata.dependent_columns:type_name -> bytebase.store.DependentColumn+ 20, // 34: bytebase.store.ViewMetadata.columns:type_name -> bytebase.store.ColumnMetadata+ 23, // 35: bytebase.store.MaterializedViewMetadata.dependent_columns:type_name -> bytebase.store.DependentColumn+ 33, // 36: bytebase.store.Secrets.items:type_name -> bytebase.store.SecretItem+ 35, // 37: bytebase.store.DatabaseConfig.schema_configs:type_name -> bytebase.store.SchemaConfig+ 36, // 38: bytebase.store.SchemaConfig.table_configs:type_name -> bytebase.store.TableConfig+ 37, // 39: bytebase.store.SchemaConfig.function_configs:type_name -> bytebase.store.FunctionConfig+ 38, // 40: bytebase.store.SchemaConfig.procedure_configs:type_name -> bytebase.store.ProcedureConfig+ 39, // 41: bytebase.store.SchemaConfig.view_configs:type_name -> bytebase.store.ViewConfig+ 40, // 42: bytebase.store.TableConfig.column_configs:type_name -> bytebase.store.ColumnConfig+ 41, // 43: bytebase.store.TableConfig.object_schema:type_name -> bytebase.store.ObjectSchema+ 47, // 44: bytebase.store.TableConfig.update_time:type_name -> google.protobuf.Timestamp+ 47, // 45: bytebase.store.FunctionConfig.update_time:type_name -> google.protobuf.Timestamp+ 47, // 46: bytebase.store.ProcedureConfig.update_time:type_name -> google.protobuf.Timestamp+ 47, // 47: bytebase.store.ViewConfig.update_time:type_name -> google.protobuf.Timestamp+ 43, // 48: bytebase.store.ColumnConfig.labels:type_name -> bytebase.store.ColumnConfig.LabelsEntry+ 49, // 49: bytebase.store.ColumnConfig.masking_level:type_name -> bytebase.store.MaskingLevel+ 41, // 50: bytebase.store.ColumnConfig.object_schema:type_name -> bytebase.store.ObjectSchema+ 5, // 51: bytebase.store.ObjectSchema.type:type_name -> bytebase.store.ObjectSchema.Type+ 44, // 52: bytebase.store.ObjectSchema.struct_kind:type_name -> bytebase.store.ObjectSchema.StructKind+ 45, // 53: bytebase.store.ObjectSchema.array_kind:type_name -> bytebase.store.ObjectSchema.ArrayKind+ 46, // 54: bytebase.store.ObjectSchema.StructKind.properties:type_name -> bytebase.store.ObjectSchema.StructKind.PropertiesEntry+ 41, // 55: bytebase.store.ObjectSchema.ArrayKind.kind:type_name -> bytebase.store.ObjectSchema+ 41, // 56: bytebase.store.ObjectSchema.StructKind.PropertiesEntry.value:type_name -> bytebase.store.ObjectSchema+ 57, // [57:57] is the sub-list for method output_type+ 57, // [57:57] is the sub-list for method input_type+ 57, // [57:57] is the sub-list for extension type_name+ 57, // [57:57] is the sub-list for extension extendee+ 0, // [0:57] is the sub-list for field type_name}func init() { file_store_database_proto_init() }@@ -4272,13 +4585,19 @@ func file_store_database_proto_init() {(*ColumnMetadata_DefaultNull)(nil),(*ColumnMetadata_DefaultExpression)(nil),}+ file_store_database_proto_msgTypes[30].OneofWrappers = []any{}+ file_store_database_proto_msgTypes[34].OneofWrappers = []any{}+ file_store_database_proto_msgTypes[35].OneofWrappers = []any{+ (*ObjectSchema_StructKind_)(nil),+ (*ObjectSchema_ArrayKind_)(nil),+ }type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_database_proto_rawDesc,- NumEnums: 5,- NumMessages: 37,+ NumEnums: 6,+ NumMessages: 41,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/database_catalog_service.pb.go b/proto/generated-go/v1/database_catalog_service.pb.goindex f33af3d1fb..d07dac8f5d 100644--- a/proto/generated-go/v1/database_catalog_service.pb.go+++ b/proto/generated-go/v1/database_catalog_service.pb.go@@ -397,7 +397,7 @@ type ColumnCatalog struct {MaskingLevel MaskingLevel `protobuf:"varint,5,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.v1.MaskingLevel" json:"masking_level,omitempty"`FullMaskingAlgorithmId string `protobuf:"bytes,6,opt,name=full_masking_algorithm_id,json=fullMaskingAlgorithmId,proto3" json:"full_masking_algorithm_id,omitempty"`PartialMaskingAlgorithmId string `protobuf:"bytes,7,opt,name=partial_masking_algorithm_id,json=partialMaskingAlgorithmId,proto3" json:"partial_masking_algorithm_id,omitempty"`- ObjectSchema *ObjectSchema `protobuf:"bytes,8,opt,name=object_schema,json=objectSchema,proto3" json:"object_schema,omitempty"`+ ObjectSchema *ObjectSchema `protobuf:"bytes,8,opt,name=object_schema,json=objectSchema,proto3,oneof" json:"object_schema,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -624,7 +624,7 @@ func (x *TableCatalog_Columns) GetColumns() []*ColumnCatalog {type ObjectSchema_StructKind struct {state protoimpl.MessageState `protogen:"open.v1"`- Properties map[string]*ObjectSchema `protobuf:"bytes,2,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`+ Properties map[string]*ObjectSchema `protobuf:"bytes,1,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -777,7 +777,7 @@ var file_v1_database_catalog_service_proto_rawDesc = []byte{0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x79, 0x74,0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x43,0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x42,- 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xf1, 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6c, 0x75,+ 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x88, 0x04, 0x0a, 0x0d, 0x43, 0x6f, 0x6c, 0x75,0x6d, 0x6e, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a,0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69,@@ -801,78 +801,80 @@ var file_v1_database_catalog_service_proto_rawDesc = []byte{0x6e, 0x67, 0x5f, 0x61, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x5f, 0x69, 0x64, 0x18,0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61,0x73, 0x6b, 0x69, 0x6e, 0x67, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x49, 0x64,- 0x12, 0x3e, 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x12, 0x43, 0x0a, 0x0d, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d,0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 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, 0xae, 0x04, 0x0a, 0x0c,- 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x32, 0x0a, 0x04,- 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65,- 0x12, 0x47, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18,- 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,- 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x73,- 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x44, 0x0a, 0x0a, 0x61, 0x72, 0x72,- 0x61, 0x79, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65,- 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69,- 0x6e, 0x64, 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x1a,- 0xbc, 0x01, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x54,- 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03,- 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,- 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x74,- 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,- 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72,- 0x74, 0x69, 0x65, 0x73, 0x1a, 0x58, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69,- 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c,- 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3a,- 0x0a, 0x09, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x6b,- 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65,+ 0x6d, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x88, 0x01, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45,+ 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,+ 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,+ 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x22, 0xae, 0x04, 0x0a, 0x0c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,+ 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,+ 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x54, 0x79, 0x70,+ 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x75, 0x63,+ 0x74, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63,+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69,+ 0x6e, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64,+ 0x12, 0x44, 0x0a, 0x0a, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03,+ 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e,+ 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x09, 0x61, 0x72, 0x72,+ 0x61, 0x79, 0x4b, 0x69, 0x6e, 0x64, 0x1a, 0xbc, 0x01, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x75, 0x63,+ 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x54, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,+ 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x62, 0x79, 0x74, 0x65,0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x58, 0x0a, 0x04, 0x54, 0x79,- 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,- 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49,- 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02,- 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x03, 0x12, 0x0a, 0x0a,- 0x06, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x52,- 0x41, 0x59, 0x10, 0x05, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x32, 0xb3, 0x03, 0x0a,- 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67,- 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb4, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44,- 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x26,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,- 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74,- 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x58, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30,- 0x17, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61,- 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93,- 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e,- 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,- 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x7d, 0x12, 0xe1,- 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,- 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74,- 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f,- 0x67, 0x22, 0x7f, 0xda, 0x41, 0x13, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2c, 0x75, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x8a, 0xea, 0x30, 0x1a, 0x62, 0x62, 0x2e,- 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73,- 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea, 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82,- 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x07, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x32, 0x32,- 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x2e, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61,- 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,- 0x67, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,- 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x2e,+ 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,+ 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x1a, 0x58, 0x0a, 0x0f, 0x50,+ 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10,+ 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79,+ 0x12, 0x2f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x62,+ 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,+ 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3a, 0x0a, 0x09, 0x41, 0x72, 0x72, 0x61, 0x79, 0x4b, 0x69,+ 0x6e, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f,+ 0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x04, 0x6b, 0x69, 0x6e,+ 0x64, 0x22, 0x58, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50,+ 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,+ 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4e,+ 0x55, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45,+ 0x41, 0x4e, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x04,+ 0x12, 0x09, 0x0a, 0x05, 0x41, 0x52, 0x52, 0x41, 0x59, 0x10, 0x05, 0x42, 0x06, 0x0a, 0x04, 0x6b,+ 0x69, 0x6e, 0x64, 0x32, 0xb3, 0x03, 0x0a, 0x16, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,+ 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xb4,+ 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61,+ 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,+ 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,+ 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x58, 0xda, 0x41, 0x04,+ 0x6e, 0x61, 0x6d, 0x65, 0x8a, 0xea, 0x30, 0x17, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62,+ 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90,+ 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x2a,+ 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x61, 0x74,+ 0x61, 0x6c, 0x6f, 0x67, 0x7d, 0x12, 0xe1, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x12,+ 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,+ 0x64, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x61, 0x74, 0x61,+ 0x6c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,+ 0x65, 0x43, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x22, 0x7f, 0xda, 0x41, 0x13, 0x63, 0x61, 0x74,+ 0x61, 0x6c, 0x6f, 0x67, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b,+ 0x8a, 0xea, 0x30, 0x1a, 0x62, 0x62, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43,+ 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x73, 0x2e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x90, 0xea,+ 0x30, 0x01, 0x98, 0xea, 0x30, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x07, 0x63, 0x61,+ 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x32, 0x32, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x63, 0x61, 0x74, 0x61,+ 0x6c, 0x6f, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63,+ 0x65, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x73, 0x2f, 0x2a,+ 0x2f, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e,+ 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x33,}var (@@ -945,6 +947,7 @@ func file_v1_database_catalog_service_proto_init() {(*TableCatalog_Columns_)(nil),(*TableCatalog_ObjectSchema)(nil),}+ file_v1_database_catalog_service_proto_msgTypes[5].OneofWrappers = []any{}file_v1_database_catalog_service_proto_msgTypes[6].OneofWrappers = []any{(*ObjectSchema_StructKind_)(nil),(*ObjectSchema_ArrayKind_)(nil),diff --git a/proto/store/database.proto b/proto/store/database.protoindex 251b3e0240..714267f33d 100644--- a/proto/store/database.proto+++ b/proto/store/database.proto@@ -705,6 +705,8 @@ message TableConfig {// The column_configs is the ordered list of configs for columns in a table.repeated ColumnConfig column_configs = 2;+ optional ObjectSchema object_schema = 7;+string classification_id = 3;// The last updater of the table in branch.@@ -783,4 +785,28 @@ message ColumnConfig {string full_masking_algorithm_id = 6;string partial_masking_algorithm_id = 7;++ optional ObjectSchema object_schema = 8;+}++message ObjectSchema {+ enum Type {+ TYPE_UNSPECIFIED = 0;+ STRING = 1;+ NUMBER = 2;+ BOOLEAN = 3;+ OBJECT = 4;+ ARRAY = 5;+ }+ Type type = 1;+ message StructKind {+ map<string, ObjectSchema> properties = 1;+ }+ message ArrayKind {+ ObjectSchema kind = 1;+ }+ oneof kind {+ StructKind struct_kind = 2;+ ArrayKind array_kind = 3;+ }}diff --git a/proto/v1/database_catalog_service.proto b/proto/v1/database_catalog_service.protoindex d761fc1a5e..2884bb8afe 100644--- a/proto/v1/database_catalog_service.proto+++ b/proto/v1/database_catalog_service.proto@@ -101,7 +101,7 @@ message ColumnCatalog {string partial_masking_algorithm_id = 7;- ObjectSchema object_schema = 8;+ optional ObjectSchema object_schema = 8;}message ObjectSchema {@@ -115,7 +115,7 @@ message ObjectSchema {}Type type = 1;message StructKind {- map<string, ObjectSchema> properties = 2;+ map<string, ObjectSchema> properties = 1;}message ArrayKind {ObjectSchema kind = 1;