Skip to content

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

chore: revert PR/14670 (#14686)

Danny Xucdf1c68c1de7
diff --git a/frontend/src/types/proto/store/branch.ts b/frontend/src/types/proto/store/branch.ts
index e340b0d187..ed3fae9076 100644
--- a/frontend/src/types/proto/store/branch.ts
+++ b/frontend/src/types/proto/store/branch.ts
@@ -7,8 +7,6 @@
/* eslint-disable */
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import Long from "long";
-import { Timestamp } from "../google/protobuf/timestamp";
-import { MaskingLevel, maskingLevelFromJSON, maskingLevelToJSON, maskingLevelToNumber } from "./common";
import { DatabaseConfig, DatabaseSchemaMetadata } from "./database";
export const protobufPackage = "bytebase.store";
@@ -33,113 +31,6 @@ export interface BranchConfig {
sourceBranch: string;
}
-export interface BranchDatabaseConfig {
- name: string;
- /** The schema_configs is the list of configs for schemas in a database. */
- schemaConfigs: BranchSchemaConfig[];
-}
-
-export interface BranchSchemaConfig {
- /**
- * The name is the schema name.
- * It is an empty string for databases without such concept such as MySQL.
- */
- name: string;
- /** The table_configs is the list of configs for tables in a schema. */
- tableConfigs: BranchTableConfig[];
- functionConfigs: BranchFunctionConfig[];
- procedureConfigs: BranchProcedureConfig[];
- viewConfigs: BranchViewConfig[];
-}
-
-export interface BranchTableConfig {
- /** The name is the name of a table. */
- name: string;
- /** The column_configs is the ordered list of configs for columns in a table. */
- columnConfigs: BranchColumnConfig[];
- classificationId: string;
- /**
- * The last updater of the table in branch.
- * Format: users/{userUID}.
- */
- updater: string;
- /**
- * The last change come from branch.
- * Format: projcets/{project}/branches/{branch}
- */
- sourceBranch: string;
- /** The timestamp when the table is updated in branch. */
- updateTime: Timestamp | undefined;
-}
-
-export interface BranchFunctionConfig {
- /** The name is the name of a function. */
- name: string;
- /**
- * The last updater of the function in branch.
- * Format: users/{userUID}.
- */
- updater: string;
- /**
- * The last change come from branch.
- * Format: projcets/{project}/branches/{branch}
- */
- sourceBranch: string;
- /** The timestamp when the function is updated in branch. */
- updateTime: Timestamp | undefined;
-}
-
-export interface BranchProcedureConfig {
- /** The name is the name of a procedure. */
- name: string;
- /**
- * The last updater of the procedure in branch.
- * Format: users/{userUID}.
- */
- updater: string;
- /**
- * The last change come from branch.
- * Format: projcets/{project}/branches/{branch}
- */
- sourceBranch: string;
- /** The timestamp when the procedure is updated in branch. */
- updateTime: Timestamp | undefined;
-}
-
-export interface BranchViewConfig {
- /** The name is the name of a view. */
- name: string;
- /**
- * The last updater of the view in branch.
- * Format: users/{userUID}.
- */
- updater: string;
- /**
- * The last change come from branch.
- * Format: projcets/{project}/branches/{branch}
- */
- sourceBranch: string;
- /** The timestamp when the view is updated in branch. */
- updateTime: Timestamp | undefined;
-}
-
-export interface BranchColumnConfig {
- /** The name is the name of a column. */
- name: string;
- semanticTypeId: string;
- /** The user labels for a column. */
- labels: { [key: string]: string };
- classificationId: string;
- maskingLevel: MaskingLevel;
- fullMaskingAlgorithmId: string;
- partialMaskingAlgorithmId: string;
-}
-
-export interface BranchColumnConfig_LabelsEntry {
- key: string;
- value: string;
-}
-
function createBaseBranchSnapshot(): BranchSnapshot {
return { metadata: undefined, databaseConfig: undefined };
}
@@ -296,956 +187,7 @@ export const BranchConfig: MessageFns<BranchConfig> = {
},
};
-function createBaseBranchDatabaseConfig(): BranchDatabaseConfig {
- return { name: "", schemaConfigs: [] };
-}
-
-export const BranchDatabaseConfig: MessageFns<BranchDatabaseConfig> = {
- encode(message: BranchDatabaseConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.name !== "") {
- writer.uint32(10).string(message.name);
- }
- for (const v of message.schemaConfigs) {
- BranchSchemaConfig.encode(v!, writer.uint32(18).fork()).join();
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): BranchDatabaseConfig {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseBranchDatabaseConfig();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.name = reader.string();
- continue;
- }
- case 2: {
- if (tag !== 18) {
- break;
- }
-
- message.schemaConfigs.push(BranchSchemaConfig.decode(reader, reader.uint32()));
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): BranchDatabaseConfig {
- return {
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- schemaConfigs: globalThis.Array.isArray(object?.schemaConfigs)
- ? object.schemaConfigs.map((e: any) => BranchSchemaConfig.fromJSON(e))
- : [],
- };
- },
-
- toJSON(message: BranchDatabaseConfig): unknown {
- const obj: any = {};
- if (message.name !== "") {
- obj.name = message.name;
- }
- if (message.schemaConfigs?.length) {
- obj.schemaConfigs = message.schemaConfigs.map((e) => BranchSchemaConfig.toJSON(e));
- }
- return obj;
- },
-
- create(base?: DeepPartial<BranchDatabaseConfig>): BranchDatabaseConfig {
- return BranchDatabaseConfig.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<BranchDatabaseConfig>): BranchDatabaseConfig {
- const message = createBaseBranchDatabaseConfig();
- message.name = object.name ?? "";
- message.schemaConfigs = object.schemaConfigs?.map((e) => BranchSchemaConfig.fromPartial(e)) || [];
- return message;
- },
-};
-
-function createBaseBranchSchemaConfig(): BranchSchemaConfig {
- return { name: "", tableConfigs: [], functionConfigs: [], procedureConfigs: [], viewConfigs: [] };
-}
-
-export const BranchSchemaConfig: MessageFns<BranchSchemaConfig> = {
- encode(message: BranchSchemaConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.name !== "") {
- writer.uint32(10).string(message.name);
- }
- for (const v of message.tableConfigs) {
- BranchTableConfig.encode(v!, writer.uint32(18).fork()).join();
- }
- for (const v of message.functionConfigs) {
- BranchFunctionConfig.encode(v!, writer.uint32(26).fork()).join();
- }
- for (const v of message.procedureConfigs) {
- BranchProcedureConfig.encode(v!, writer.uint32(34).fork()).join();
- }
- for (const v of message.viewConfigs) {
- BranchViewConfig.encode(v!, writer.uint32(42).fork()).join();
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): BranchSchemaConfig {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseBranchSchemaConfig();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.name = reader.string();
- continue;
- }
- case 2: {
- if (tag !== 18) {
- break;
- }
-
- message.tableConfigs.push(BranchTableConfig.decode(reader, reader.uint32()));
- continue;
- }
- case 3: {
- if (tag !== 26) {
- break;
- }
-
- message.functionConfigs.push(BranchFunctionConfig.decode(reader, reader.uint32()));
- continue;
- }
- case 4: {
- if (tag !== 34) {
- break;
- }
-
- message.procedureConfigs.push(BranchProcedureConfig.decode(reader, reader.uint32()));
- continue;
- }
- case 5: {
- if (tag !== 42) {
- break;
- }
-
- message.viewConfigs.push(BranchViewConfig.decode(reader, reader.uint32()));
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): BranchSchemaConfig {
- return {
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- tableConfigs: globalThis.Array.isArray(object?.tableConfigs)
- ? object.tableConfigs.map((e: any) => BranchTableConfig.fromJSON(e))
- : [],
- functionConfigs: globalThis.Array.isArray(object?.functionConfigs)
- ? object.functionConfigs.map((e: any) => BranchFunctionConfig.fromJSON(e))
- : [],
- procedureConfigs: globalThis.Array.isArray(object?.procedureConfigs)
- ? object.procedureConfigs.map((e: any) => BranchProcedureConfig.fromJSON(e))
- : [],
- viewConfigs: globalThis.Array.isArray(object?.viewConfigs)
- ? object.viewConfigs.map((e: any) => BranchViewConfig.fromJSON(e))
- : [],
- };
- },
-
- toJSON(message: BranchSchemaConfig): unknown {
- const obj: any = {};
- if (message.name !== "") {
- obj.name = message.name;
- }
- if (message.tableConfigs?.length) {
- obj.tableConfigs = message.tableConfigs.map((e) => BranchTableConfig.toJSON(e));
- }
- if (message.functionConfigs?.length) {
- obj.functionConfigs = message.functionConfigs.map((e) => BranchFunctionConfig.toJSON(e));
- }
- if (message.procedureConfigs?.length) {
- obj.procedureConfigs = message.procedureConfigs.map((e) => BranchProcedureConfig.toJSON(e));
- }
- if (message.viewConfigs?.length) {
- obj.viewConfigs = message.viewConfigs.map((e) => BranchViewConfig.toJSON(e));
- }
- return obj;
- },
-
- create(base?: DeepPartial<BranchSchemaConfig>): BranchSchemaConfig {
- return BranchSchemaConfig.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<BranchSchemaConfig>): BranchSchemaConfig {
- const message = createBaseBranchSchemaConfig();
- message.name = object.name ?? "";
- message.tableConfigs = object.tableConfigs?.map((e) => BranchTableConfig.fromPartial(e)) || [];
- message.functionConfigs = object.functionConfigs?.map((e) => BranchFunctionConfig.fromPartial(e)) || [];
- message.procedureConfigs = object.procedureConfigs?.map((e) => BranchProcedureConfig.fromPartial(e)) || [];
- message.viewConfigs = object.viewConfigs?.map((e) => BranchViewConfig.fromPartial(e)) || [];
- return message;
- },
-};
-
-function createBaseBranchTableConfig(): BranchTableConfig {
- return { name: "", columnConfigs: [], classificationId: "", updater: "", sourceBranch: "", updateTime: undefined };
-}
-
-export const BranchTableConfig: MessageFns<BranchTableConfig> = {
- encode(message: BranchTableConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.name !== "") {
- writer.uint32(10).string(message.name);
- }
- for (const v of message.columnConfigs) {
- BranchColumnConfig.encode(v!, writer.uint32(18).fork()).join();
- }
- if (message.classificationId !== "") {
- writer.uint32(26).string(message.classificationId);
- }
- if (message.updater !== "") {
- writer.uint32(34).string(message.updater);
- }
- if (message.sourceBranch !== "") {
- writer.uint32(50).string(message.sourceBranch);
- }
- if (message.updateTime !== undefined) {
- Timestamp.encode(message.updateTime, writer.uint32(42).fork()).join();
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): BranchTableConfig {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseBranchTableConfig();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.name = reader.string();
- continue;
- }
- case 2: {
- if (tag !== 18) {
- break;
- }
-
- message.columnConfigs.push(BranchColumnConfig.decode(reader, reader.uint32()));
- continue;
- }
- case 3: {
- if (tag !== 26) {
- break;
- }
-
- message.classificationId = reader.string();
- continue;
- }
- case 4: {
- if (tag !== 34) {
- break;
- }
-
- message.updater = reader.string();
- continue;
- }
- case 6: {
- if (tag !== 50) {
- break;
- }
-
- message.sourceBranch = reader.string();
- continue;
- }
- case 5: {
- if (tag !== 42) {
- break;
- }
-
- message.updateTime = Timestamp.decode(reader, reader.uint32());
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): BranchTableConfig {
- return {
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- columnConfigs: globalThis.Array.isArray(object?.columnConfigs)
- ? object.columnConfigs.map((e: any) => BranchColumnConfig.fromJSON(e))
- : [],
- classificationId: isSet(object.classificationId) ? globalThis.String(object.classificationId) : "",
- updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
- sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",
- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
- };
- },
-
- toJSON(message: BranchTableConfig): unknown {
- const obj: any = {};
- if (message.name !== "") {
- obj.name = message.name;
- }
- if (message.columnConfigs?.length) {
- obj.columnConfigs = message.columnConfigs.map((e) => BranchColumnConfig.toJSON(e));
- }
- if (message.classificationId !== "") {
- obj.classificationId = message.classificationId;
- }
- if (message.updater !== "") {
- obj.updater = message.updater;
- }
- if (message.sourceBranch !== "") {
- obj.sourceBranch = message.sourceBranch;
- }
- if (message.updateTime !== undefined) {
- obj.updateTime = fromTimestamp(message.updateTime).toISOString();
- }
- return obj;
- },
-
- create(base?: DeepPartial<BranchTableConfig>): BranchTableConfig {
- return BranchTableConfig.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<BranchTableConfig>): BranchTableConfig {
- const message = createBaseBranchTableConfig();
- message.name = object.name ?? "";
- message.columnConfigs = object.columnConfigs?.map((e) => BranchColumnConfig.fromPartial(e)) || [];
- message.classificationId = object.classificationId ?? "";
- message.updater = object.updater ?? "";
- message.sourceBranch = object.sourceBranch ?? "";
- message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)
- ? Timestamp.fromPartial(object.updateTime)
- : undefined;
- return message;
- },
-};
-
-function createBaseBranchFunctionConfig(): BranchFunctionConfig {
- return { name: "", updater: "", sourceBranch: "", updateTime: undefined };
-}
-
-export const BranchFunctionConfig: MessageFns<BranchFunctionConfig> = {
- encode(message: BranchFunctionConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.name !== "") {
- writer.uint32(10).string(message.name);
- }
- if (message.updater !== "") {
- writer.uint32(18).string(message.updater);
- }
- if (message.sourceBranch !== "") {
- writer.uint32(34).string(message.sourceBranch);
- }
- if (message.updateTime !== undefined) {
- Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): BranchFunctionConfig {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseBranchFunctionConfig();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.name = reader.string();
- continue;
- }
- case 2: {
- if (tag !== 18) {
- break;
- }
-
- message.updater = reader.string();
- continue;
- }
- case 4: {
- if (tag !== 34) {
- break;
- }
-
- message.sourceBranch = reader.string();
- continue;
- }
- case 3: {
- if (tag !== 26) {
- break;
- }
-
- message.updateTime = Timestamp.decode(reader, reader.uint32());
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): BranchFunctionConfig {
- return {
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
- sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",
- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
- };
- },
-
- toJSON(message: BranchFunctionConfig): unknown {
- const obj: any = {};
- if (message.name !== "") {
- obj.name = message.name;
- }
- if (message.updater !== "") {
- obj.updater = message.updater;
- }
- if (message.sourceBranch !== "") {
- obj.sourceBranch = message.sourceBranch;
- }
- if (message.updateTime !== undefined) {
- obj.updateTime = fromTimestamp(message.updateTime).toISOString();
- }
- return obj;
- },
-
- create(base?: DeepPartial<BranchFunctionConfig>): BranchFunctionConfig {
- return BranchFunctionConfig.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<BranchFunctionConfig>): BranchFunctionConfig {
- const message = createBaseBranchFunctionConfig();
- message.name = object.name ?? "";
- message.updater = object.updater ?? "";
- message.sourceBranch = object.sourceBranch ?? "";
- message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)
- ? Timestamp.fromPartial(object.updateTime)
- : undefined;
- return message;
- },
-};
-
-function createBaseBranchProcedureConfig(): BranchProcedureConfig {
- return { name: "", updater: "", sourceBranch: "", updateTime: undefined };
-}
-
-export const BranchProcedureConfig: MessageFns<BranchProcedureConfig> = {
- encode(message: BranchProcedureConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.name !== "") {
- writer.uint32(10).string(message.name);
- }
- if (message.updater !== "") {
- writer.uint32(18).string(message.updater);
- }
- if (message.sourceBranch !== "") {
- writer.uint32(34).string(message.sourceBranch);
- }
- if (message.updateTime !== undefined) {
- Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): BranchProcedureConfig {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseBranchProcedureConfig();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.name = reader.string();
- continue;
- }
- case 2: {
- if (tag !== 18) {
- break;
- }
-
- message.updater = reader.string();
- continue;
- }
- case 4: {
- if (tag !== 34) {
- break;
- }
-
- message.sourceBranch = reader.string();
- continue;
- }
- case 3: {
- if (tag !== 26) {
- break;
- }
-
- message.updateTime = Timestamp.decode(reader, reader.uint32());
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): BranchProcedureConfig {
- return {
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
- sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",
- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
- };
- },
-
- toJSON(message: BranchProcedureConfig): unknown {
- const obj: any = {};
- if (message.name !== "") {
- obj.name = message.name;
- }
- if (message.updater !== "") {
- obj.updater = message.updater;
- }
- if (message.sourceBranch !== "") {
- obj.sourceBranch = message.sourceBranch;
- }
- if (message.updateTime !== undefined) {
- obj.updateTime = fromTimestamp(message.updateTime).toISOString();
- }
- return obj;
- },
-
- create(base?: DeepPartial<BranchProcedureConfig>): BranchProcedureConfig {
- return BranchProcedureConfig.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<BranchProcedureConfig>): BranchProcedureConfig {
- const message = createBaseBranchProcedureConfig();
- message.name = object.name ?? "";
- message.updater = object.updater ?? "";
- message.sourceBranch = object.sourceBranch ?? "";
- message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)
- ? Timestamp.fromPartial(object.updateTime)
- : undefined;
- return message;
- },
-};
-
-function createBaseBranchViewConfig(): BranchViewConfig {
- return { name: "", updater: "", sourceBranch: "", updateTime: undefined };
-}
-
-export const BranchViewConfig: MessageFns<BranchViewConfig> = {
- encode(message: BranchViewConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.name !== "") {
- writer.uint32(10).string(message.name);
- }
- if (message.updater !== "") {
- writer.uint32(18).string(message.updater);
- }
- if (message.sourceBranch !== "") {
- writer.uint32(34).string(message.sourceBranch);
- }
- if (message.updateTime !== undefined) {
- Timestamp.encode(message.updateTime, writer.uint32(26).fork()).join();
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): BranchViewConfig {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseBranchViewConfig();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.name = reader.string();
- continue;
- }
- case 2: {
- if (tag !== 18) {
- break;
- }
-
- message.updater = reader.string();
- continue;
- }
- case 4: {
- if (tag !== 34) {
- break;
- }
-
- message.sourceBranch = reader.string();
- continue;
- }
- case 3: {
- if (tag !== 26) {
- break;
- }
-
- message.updateTime = Timestamp.decode(reader, reader.uint32());
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): BranchViewConfig {
- return {
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- updater: isSet(object.updater) ? globalThis.String(object.updater) : "",
- sourceBranch: isSet(object.sourceBranch) ? globalThis.String(object.sourceBranch) : "",
- updateTime: isSet(object.updateTime) ? fromJsonTimestamp(object.updateTime) : undefined,
- };
- },
-
- toJSON(message: BranchViewConfig): unknown {
- const obj: any = {};
- if (message.name !== "") {
- obj.name = message.name;
- }
- if (message.updater !== "") {
- obj.updater = message.updater;
- }
- if (message.sourceBranch !== "") {
- obj.sourceBranch = message.sourceBranch;
- }
- if (message.updateTime !== undefined) {
- obj.updateTime = fromTimestamp(message.updateTime).toISOString();
- }
- return obj;
- },
-
- create(base?: DeepPartial<BranchViewConfig>): BranchViewConfig {
- return BranchViewConfig.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<BranchViewConfig>): BranchViewConfig {
- const message = createBaseBranchViewConfig();
- message.name = object.name ?? "";
- message.updater = object.updater ?? "";
- message.sourceBranch = object.sourceBranch ?? "";
- message.updateTime = (object.updateTime !== undefined && object.updateTime !== null)
- ? Timestamp.fromPartial(object.updateTime)
- : undefined;
- return message;
- },
-};
-
-function createBaseBranchColumnConfig(): BranchColumnConfig {
- return {
- name: "",
- semanticTypeId: "",
- labels: {},
- classificationId: "",
- maskingLevel: MaskingLevel.MASKING_LEVEL_UNSPECIFIED,
- fullMaskingAlgorithmId: "",
- partialMaskingAlgorithmId: "",
- };
-}
-
-export const BranchColumnConfig: MessageFns<BranchColumnConfig> = {
- encode(message: BranchColumnConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.name !== "") {
- writer.uint32(10).string(message.name);
- }
- if (message.semanticTypeId !== "") {
- writer.uint32(18).string(message.semanticTypeId);
- }
- Object.entries(message.labels).forEach(([key, value]) => {
- BranchColumnConfig_LabelsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join();
- });
- if (message.classificationId !== "") {
- writer.uint32(34).string(message.classificationId);
- }
- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {
- writer.uint32(40).int32(maskingLevelToNumber(message.maskingLevel));
- }
- if (message.fullMaskingAlgorithmId !== "") {
- writer.uint32(50).string(message.fullMaskingAlgorithmId);
- }
- if (message.partialMaskingAlgorithmId !== "") {
- writer.uint32(58).string(message.partialMaskingAlgorithmId);
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): BranchColumnConfig {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseBranchColumnConfig();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1: {
- if (tag !== 10) {
- break;
- }
-
- message.name = reader.string();
- continue;
- }
- case 2: {
- if (tag !== 18) {
- break;
- }
-
- message.semanticTypeId = reader.string();
- continue;
- }
- case 3: {
- if (tag !== 26) {
- break;
- }
-
- const entry3 = BranchColumnConfig_LabelsEntry.decode(reader, reader.uint32());
- if (entry3.value !== undefined) {
- message.labels[entry3.key] = entry3.value;
- }
- continue;
- }
- case 4: {
- if (tag !== 34) {
- break;
- }
-
- message.classificationId = reader.string();
- continue;
- }
- case 5: {
- if (tag !== 40) {
- break;
- }
-
- message.maskingLevel = maskingLevelFromJSON(reader.int32());
- continue;
- }
- case 6: {
- if (tag !== 50) {
- break;
- }
-
- message.fullMaskingAlgorithmId = reader.string();
- continue;
- }
- case 7: {
- if (tag !== 58) {
- break;
- }
-
- message.partialMaskingAlgorithmId = reader.string();
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): BranchColumnConfig {
- return {
- name: isSet(object.name) ? globalThis.String(object.name) : "",
- semanticTypeId: isSet(object.semanticTypeId) ? globalThis.String(object.semanticTypeId) : "",
- labels: isObject(object.labels)
- ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => {
- acc[key] = String(value);
- return acc;
- }, {})
- : {},
- classificationId: isSet(object.classificationId) ? globalThis.String(object.classificationId) : "",
- maskingLevel: isSet(object.maskingLevel)
- ? maskingLevelFromJSON(object.maskingLevel)
- : MaskingLevel.MASKING_LEVEL_UNSPECIFIED,
- fullMaskingAlgorithmId: isSet(object.fullMaskingAlgorithmId)
- ? globalThis.String(object.fullMaskingAlgorithmId)
- : "",
- partialMaskingAlgorithmId: isSet(object.partialMaskingAlgorithmId)
- ? globalThis.String(object.partialMaskingAlgorithmId)
- : "",
- };
- },
-
- toJSON(message: BranchColumnConfig): unknown {
- const obj: any = {};
- if (message.name !== "") {
- obj.name = message.name;
- }
- if (message.semanticTypeId !== "") {
- obj.semanticTypeId = message.semanticTypeId;
- }
- if (message.labels) {
- const entries = Object.entries(message.labels);
- if (entries.length > 0) {
- obj.labels = {};
- entries.forEach(([k, v]) => {
- obj.labels[k] = v;
- });
- }
- }
- if (message.classificationId !== "") {
- obj.classificationId = message.classificationId;
- }
- if (message.maskingLevel !== MaskingLevel.MASKING_LEVEL_UNSPECIFIED) {
- obj.maskingLevel = maskingLevelToJSON(message.maskingLevel);
- }
- if (message.fullMaskingAlgorithmId !== "") {
- obj.fullMaskingAlgorithmId = message.fullMaskingAlgorithmId;
- }
- if (message.partialMaskingAlgorithmId !== "") {
- obj.partialMaskingAlgorithmId = message.partialMaskingAlgorithmId;
- }
- return obj;
- },
-
- create(base?: DeepPartial<BranchColumnConfig>): BranchColumnConfig {
- return BranchColumnConfig.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<BranchColumnConfig>): BranchColumnConfig {
- const message = createBaseBranchColumnConfig();
- message.name = object.name ?? "";
- message.semanticTypeId = object.semanticTypeId ?? "";
- message.labels = Object.entries(object.labels ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {
- if (value !== undefined) {
- acc[key] = globalThis.String(value);
- }
- return acc;
- }, {});
- message.classificationId = object.classificationId ?? "";
- message.maskingLevel = object.maskingLevel ?? MaskingLevel.MASKING_LEVEL_UNSPECIFIED;
- message.fullMaskingAlgorithmId = object.fullMaskingAlgorithmId ?? "";
- message.partialMaskingAlgorithmId = object.partialMaskingAlgorithmId ?? "";
- return message;
- },
-};
-
-function createBaseBranchColumnConfig_LabelsEntry(): BranchColumnConfig_LabelsEntry {
- return { key: "", value: "" };
-}
-
-export const BranchColumnConfig_LabelsEntry: MessageFns<BranchColumnConfig_LabelsEntry> = {
- encode(message: BranchColumnConfig_LabelsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
- if (message.key !== "") {
- writer.uint32(10).string(message.key);
- }
- if (message.value !== "") {
- writer.uint32(18).string(message.value);
- }
- return writer;
- },
-
- decode(input: BinaryReader | Uint8Array, length?: number): BranchColumnConfig_LabelsEntry {
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseBranchColumnConfig_LabelsEntry();
- 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 = reader.string();
- continue;
- }
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skip(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): BranchColumnConfig_LabelsEntry {
- return {
- key: isSet(object.key) ? globalThis.String(object.key) : "",
- value: isSet(object.value) ? globalThis.String(object.value) : "",
- };
- },
-
- toJSON(message: BranchColumnConfig_LabelsEntry): unknown {
- const obj: any = {};
- if (message.key !== "") {
- obj.key = message.key;
- }
- if (message.value !== "") {
- obj.value = message.value;
- }
- return obj;
- },
-
- create(base?: DeepPartial<BranchColumnConfig_LabelsEntry>): BranchColumnConfig_LabelsEntry {
- return BranchColumnConfig_LabelsEntry.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<BranchColumnConfig_LabelsEntry>): BranchColumnConfig_LabelsEntry {
- const message = createBaseBranchColumnConfig_LabelsEntry();
- message.key = object.key ?? "";
- message.value = object.value ?? "";
- return message;
- },
-};
-
-type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
+type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T
: T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
@@ -1253,36 +195,6 @@ export type DeepPartial<T> = T extends Builtin ? T
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
: Partial<T>;
-function toTimestamp(date: Date): Timestamp {
- const seconds = numberToLong(Math.trunc(date.getTime() / 1_000));
- const nanos = (date.getTime() % 1_000) * 1_000_000;
- return { seconds, nanos };
-}
-
-function fromTimestamp(t: Timestamp): Date {
- let millis = (t.seconds.toNumber() || 0) * 1_000;
- millis += (t.nanos || 0) / 1_000_000;
- return new globalThis.Date(millis);
-}
-
-function fromJsonTimestamp(o: any): Timestamp {
- if (o instanceof globalThis.Date) {
- return toTimestamp(o);
- } else if (typeof o === "string") {
- return toTimestamp(new globalThis.Date(o));
- } else {
- return Timestamp.fromJSON(o);
- }
-}
-
-function numberToLong(number: number) {
- return Long.fromNumber(number);
-}
-
-function isObject(value: any): boolean {
- return typeof value === "object" && value !== null;
-}
-
function isSet(value: any): boolean {
return value !== null && value !== undefined;
}
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 8319849393..277254b870 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -88,16 +88,8 @@
- [TaskMetadata.State](#bytebase-store-TaskMetadata-State)
- [store/branch.proto](#store_branch-proto)
- - [BranchColumnConfig](#bytebase-store-BranchColumnConfig)
- - [BranchColumnConfig.LabelsEntry](#bytebase-store-BranchColumnConfig-LabelsEntry)
- [BranchConfig](#bytebase-store-BranchConfig)
- - [BranchDatabaseConfig](#bytebase-store-BranchDatabaseConfig)
- - [BranchFunctionConfig](#bytebase-store-BranchFunctionConfig)
- - [BranchProcedureConfig](#bytebase-store-BranchProcedureConfig)
- - [BranchSchemaConfig](#bytebase-store-BranchSchemaConfig)
- [BranchSnapshot](#bytebase-store-BranchSnapshot)
- - [BranchTableConfig](#bytebase-store-BranchTableConfig)
- - [BranchViewConfig](#bytebase-store-BranchViewConfig)
- [store/changelist.proto](#store_changelist-proto)
- [Changelist](#bytebase-store-Changelist)
@@ -1710,43 +1702,6 @@ LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
-<a name="bytebase-store-BranchColumnConfig"></a>
-
-### BranchColumnConfig
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name is the name of a column. |
-| semantic_type_id | [string](#string) | | |
-| labels | [BranchColumnConfig.LabelsEntry](#bytebase-store-BranchColumnConfig-LabelsEntry) | repeated | The user labels for a column. |
-| classification_id | [string](#string) | | |
-| masking_level | [MaskingLevel](#bytebase-store-MaskingLevel) | | |
-| full_masking_algorithm_id | [string](#string) | | |
-| partial_masking_algorithm_id | [string](#string) | | |
-
-
-
-
-
-
-<a name="bytebase-store-BranchColumnConfig-LabelsEntry"></a>
-
-### BranchColumnConfig.LabelsEntry
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| key | [string](#string) | | |
-| value | [string](#string) | | |
-
-
-
-
-
-
<a name="bytebase-store-BranchConfig"></a>
### BranchConfig
@@ -1763,77 +1718,6 @@ LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
-<a name="bytebase-store-BranchDatabaseConfig"></a>
-
-### BranchDatabaseConfig
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | |
-| schema_configs | [BranchSchemaConfig](#bytebase-store-BranchSchemaConfig) | repeated | The schema_configs is the list of configs for schemas in a database. |
-
-
-
-
-
-
-<a name="bytebase-store-BranchFunctionConfig"></a>
-
-### BranchFunctionConfig
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name is the name of a function. |
-| updater | [string](#string) | | The last updater of the function in branch. Format: users/{userUID}. |
-| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |
-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the function is updated in branch. |
-
-
-
-
-
-
-<a name="bytebase-store-BranchProcedureConfig"></a>
-
-### BranchProcedureConfig
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name is the name of a procedure. |
-| updater | [string](#string) | | The last updater of the procedure in branch. Format: users/{userUID}. |
-| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |
-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the procedure is updated in branch. |
-
-
-
-
-
-
-<a name="bytebase-store-BranchSchemaConfig"></a>
-
-### BranchSchemaConfig
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name is the schema name. It is an empty string for databases without such concept such as MySQL. |
-| table_configs | [BranchTableConfig](#bytebase-store-BranchTableConfig) | repeated | The table_configs is the list of configs for tables in a schema. |
-| function_configs | [BranchFunctionConfig](#bytebase-store-BranchFunctionConfig) | repeated | |
-| procedure_configs | [BranchProcedureConfig](#bytebase-store-BranchProcedureConfig) | repeated | |
-| view_configs | [BranchViewConfig](#bytebase-store-BranchViewConfig) | repeated | |
-
-
-
-
-
-
<a name="bytebase-store-BranchSnapshot"></a>
### BranchSnapshot
@@ -1849,44 +1733,6 @@ LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
-
-<a name="bytebase-store-BranchTableConfig"></a>
-
-### BranchTableConfig
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name is the name of a table. |
-| column_configs | [BranchColumnConfig](#bytebase-store-BranchColumnConfig) | repeated | The column_configs is the ordered list of configs for columns in a table. |
-| 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} |
-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the table is updated in branch. |
-
-
-
-
-
-
-<a name="bytebase-store-BranchViewConfig"></a>
-
-### BranchViewConfig
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| name | [string](#string) | | The name is the name of a view. |
-| updater | [string](#string) | | The last updater of the view in branch. Format: users/{userUID}. |
-| source_branch | [string](#string) | | The last change come from branch. Format: projcets/{project}/branches/{branch} |
-| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the view is updated in branch. |
-
-
-
-
-
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index 5c70301b44..36a03e9764 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -512,46 +512,14 @@
<a href="#store%2fbranch.proto">store/branch.proto</a>
<ul>
- <li>
- <a href="#bytebase.store.BranchColumnConfig"><span class="badge">M</span>BranchColumnConfig</a>
- </li>
-
- <li>
- <a href="#bytebase.store.BranchColumnConfig.LabelsEntry"><span class="badge">M</span>BranchColumnConfig.LabelsEntry</a>
- </li>
-
<li>
<a href="#bytebase.store.BranchConfig"><span class="badge">M</span>BranchConfig</a>
</li>
- <li>
- <a href="#bytebase.store.BranchDatabaseConfig"><span class="badge">M</span>BranchDatabaseConfig</a>
- </li>
-
- <li>
- <a href="#bytebase.store.BranchFunctionConfig"><span class="badge">M</span>BranchFunctionConfig</a>
- </li>
-
- <li>
- <a href="#bytebase.store.BranchProcedureConfig"><span class="badge">M</span>BranchProcedureConfig</a>
- </li>
-
- <li>
- <a href="#bytebase.store.BranchSchemaConfig"><span class="badge">M</span>BranchSchemaConfig</a>
- </li>
-
<li>
<a href="#bytebase.store.BranchSnapshot"><span class="badge">M</span>BranchSnapshot</a>
</li>
- <li>
- <a href="#bytebase.store.BranchTableConfig"><span class="badge">M</span>BranchTableConfig</a>
- </li>
-
- <li>
- <a href="#bytebase.store.BranchViewConfig"><span class="badge">M</span>BranchViewConfig</a>
- </li>
-
@@ -5212,103 +5180,6 @@ Format: projcets/{project}/branches/{branch} </p></td>
<p></p>
- <h3 id="bytebase.store.BranchColumnConfig">BranchColumnConfig</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>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name is the name of a column. </p></td>
- </tr>
-
- <tr>
- <td>semantic_type_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>labels</td>
- <td><a href="#bytebase.store.BranchColumnConfig.LabelsEntry">BranchColumnConfig.LabelsEntry</a></td>
- <td>repeated</td>
- <td><p>The user labels for a column. </p></td>
- </tr>
-
- <tr>
- <td>classification_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>masking_level</td>
- <td><a href="#bytebase.store.MaskingLevel">MaskingLevel</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>full_masking_algorithm_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>partial_masking_algorithm_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.BranchColumnConfig.LabelsEntry">BranchColumnConfig.LabelsEntry</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="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.store.BranchConfig">BranchConfig</h3>
<p></p>
@@ -5344,184 +5215,6 @@ Example: projects/project-id/branches/branch-id. </p></td>
- <h3 id="bytebase.store.BranchDatabaseConfig">BranchDatabaseConfig</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>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>schema_configs</td>
- <td><a href="#bytebase.store.BranchSchemaConfig">BranchSchemaConfig</a></td>
- <td>repeated</td>
- <td><p>The schema_configs is the list of configs for schemas in a database. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.BranchFunctionConfig">BranchFunctionConfig</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>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name is the name of a function. </p></td>
- </tr>
-
- <tr>
- <td>updater</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The last updater of the function in branch.
-Format: users/{userUID}. </p></td>
- </tr>
-
- <tr>
- <td>source_branch</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The last change come from branch.
-Format: projcets/{project}/branches/{branch} </p></td>
- </tr>
-
- <tr>
- <td>update_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td></td>
- <td><p>The timestamp when the function is updated in branch. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.BranchProcedureConfig">BranchProcedureConfig</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>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name is the name of a procedure. </p></td>
- </tr>
-
- <tr>
- <td>updater</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The last updater of the procedure in branch.
-Format: users/{userUID}. </p></td>
- </tr>
-
- <tr>
- <td>source_branch</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The last change come from branch.
-Format: projcets/{project}/branches/{branch} </p></td>
- </tr>
-
- <tr>
- <td>update_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td></td>
- <td><p>The timestamp when the procedure is updated in branch. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.BranchSchemaConfig">BranchSchemaConfig</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>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name is the schema name.
-It is an empty string for databases without such concept such as MySQL. </p></td>
- </tr>
-
- <tr>
- <td>table_configs</td>
- <td><a href="#bytebase.store.BranchTableConfig">BranchTableConfig</a></td>
- <td>repeated</td>
- <td><p>The table_configs is the list of configs for tables in a schema. </p></td>
- </tr>
-
- <tr>
- <td>function_configs</td>
- <td><a href="#bytebase.store.BranchFunctionConfig">BranchFunctionConfig</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>procedure_configs</td>
- <td><a href="#bytebase.store.BranchProcedureConfig">BranchProcedureConfig</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>view_configs</td>
- <td><a href="#bytebase.store.BranchViewConfig">BranchViewConfig</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
<h3 id="bytebase.store.BranchSnapshot">BranchSnapshot</h3>
<p></p>
@@ -5553,114 +5246,6 @@ It is an empty string for databases without such concept such as MySQL. </p></td
- <h3 id="bytebase.store.BranchTableConfig">BranchTableConfig</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>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name is the name of a table. </p></td>
- </tr>
-
- <tr>
- <td>column_configs</td>
- <td><a href="#bytebase.store.BranchColumnConfig">BranchColumnConfig</a></td>
- <td>repeated</td>
- <td><p>The column_configs is the ordered list of configs for columns in a table. </p></td>
- </tr>
-
- <tr>
- <td>classification_id</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>updater</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The last updater of the table in branch.
-Format: users/{userUID}. </p></td>
- </tr>
-
- <tr>
- <td>source_branch</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The last change come from branch.
-Format: projcets/{project}/branches/{branch} </p></td>
- </tr>
-
- <tr>
- <td>update_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td></td>
- <td><p>The timestamp when the table is updated in branch. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.BranchViewConfig">BranchViewConfig</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>name</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The name is the name of a view. </p></td>
- </tr>
-
- <tr>
- <td>updater</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The last updater of the view in branch.
-Format: users/{userUID}. </p></td>
- </tr>
-
- <tr>
- <td>source_branch</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The last change come from branch.
-Format: projcets/{project}/branches/{branch} </p></td>
- </tr>
-
- <tr>
- <td>update_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td></td>
- <td><p>The timestamp when the view is updated in branch. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
diff --git a/proto/generated-go/store/branch.pb.go b/proto/generated-go/store/branch.pb.go
index 02cc63f81b..f89b6def5d 100644
--- a/proto/generated-go/store/branch.pb.go
+++ b/proto/generated-go/store/branch.pb.go
@@ -7,10 +7,8 @@
package store
import (
- _ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
@@ -132,687 +130,31 @@ func (x *BranchConfig) GetSourceBranch() string {
return ""
}
-type BranchDatabaseConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The schema_configs is the list of configs for schemas in a database.
- SchemaConfigs []*BranchSchemaConfig `protobuf:"bytes,2,rep,name=schema_configs,json=schemaConfigs,proto3" json:"schema_configs,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BranchDatabaseConfig) Reset() {
- *x = BranchDatabaseConfig{}
- mi := &file_store_branch_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BranchDatabaseConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BranchDatabaseConfig) ProtoMessage() {}
-
-func (x *BranchDatabaseConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[2]
- 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 BranchDatabaseConfig.ProtoReflect.Descriptor instead.
-func (*BranchDatabaseConfig) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *BranchDatabaseConfig) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *BranchDatabaseConfig) GetSchemaConfigs() []*BranchSchemaConfig {
- if x != nil {
- return x.SchemaConfigs
- }
- return nil
-}
-
-type BranchSchemaConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // The name is the schema name.
- // It is an empty string for databases without such concept such as MySQL.
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The table_configs is the list of configs for tables in a schema.
- TableConfigs []*BranchTableConfig `protobuf:"bytes,2,rep,name=table_configs,json=tableConfigs,proto3" json:"table_configs,omitempty"`
- FunctionConfigs []*BranchFunctionConfig `protobuf:"bytes,3,rep,name=function_configs,json=functionConfigs,proto3" json:"function_configs,omitempty"`
- ProcedureConfigs []*BranchProcedureConfig `protobuf:"bytes,4,rep,name=procedure_configs,json=procedureConfigs,proto3" json:"procedure_configs,omitempty"`
- ViewConfigs []*BranchViewConfig `protobuf:"bytes,5,rep,name=view_configs,json=viewConfigs,proto3" json:"view_configs,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BranchSchemaConfig) Reset() {
- *x = BranchSchemaConfig{}
- mi := &file_store_branch_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BranchSchemaConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BranchSchemaConfig) ProtoMessage() {}
-
-func (x *BranchSchemaConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[3]
- 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 BranchSchemaConfig.ProtoReflect.Descriptor instead.
-func (*BranchSchemaConfig) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{3}
-}
-
-func (x *BranchSchemaConfig) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *BranchSchemaConfig) GetTableConfigs() []*BranchTableConfig {
- if x != nil {
- return x.TableConfigs
- }
- return nil
-}
-
-func (x *BranchSchemaConfig) GetFunctionConfigs() []*BranchFunctionConfig {
- if x != nil {
- return x.FunctionConfigs
- }
- return nil
-}
-
-func (x *BranchSchemaConfig) GetProcedureConfigs() []*BranchProcedureConfig {
- if x != nil {
- return x.ProcedureConfigs
- }
- return nil
-}
-
-func (x *BranchSchemaConfig) GetViewConfigs() []*BranchViewConfig {
- if x != nil {
- return x.ViewConfigs
- }
- return nil
-}
-
-type BranchTableConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // The name is the name of a table.
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The column_configs is the ordered list of configs for columns in a table.
- ColumnConfigs []*BranchColumnConfig `protobuf:"bytes,2,rep,name=column_configs,json=columnConfigs,proto3" json:"column_configs,omitempty"`
- ClassificationId string `protobuf:"bytes,3,opt,name=classification_id,json=classificationId,proto3" json:"classification_id,omitempty"`
- // The last updater of the table in branch.
- // Format: users/{userUID}.
- Updater string `protobuf:"bytes,4,opt,name=updater,proto3" json:"updater,omitempty"`
- // The last change come from branch.
- // Format: projcets/{project}/branches/{branch}
- SourceBranch string `protobuf:"bytes,6,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
- // The timestamp when the table is updated in branch.
- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BranchTableConfig) Reset() {
- *x = BranchTableConfig{}
- mi := &file_store_branch_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BranchTableConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BranchTableConfig) ProtoMessage() {}
-
-func (x *BranchTableConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[4]
- 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 BranchTableConfig.ProtoReflect.Descriptor instead.
-func (*BranchTableConfig) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{4}
-}
-
-func (x *BranchTableConfig) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *BranchTableConfig) GetColumnConfigs() []*BranchColumnConfig {
- if x != nil {
- return x.ColumnConfigs
- }
- return nil
-}
-
-func (x *BranchTableConfig) GetClassificationId() string {
- if x != nil {
- return x.ClassificationId
- }
- return ""
-}
-
-func (x *BranchTableConfig) GetUpdater() string {
- if x != nil {
- return x.Updater
- }
- return ""
-}
-
-func (x *BranchTableConfig) GetSourceBranch() string {
- if x != nil {
- return x.SourceBranch
- }
- return ""
-}
-
-func (x *BranchTableConfig) GetUpdateTime() *timestamppb.Timestamp {
- if x != nil {
- return x.UpdateTime
- }
- return nil
-}
-
-type BranchFunctionConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // The name is the name of a function.
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The last updater of the function in branch.
- // Format: users/{userUID}.
- Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`
- // The last change come from branch.
- // Format: projcets/{project}/branches/{branch}
- SourceBranch string `protobuf:"bytes,4,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
- // The timestamp when the function is updated in branch.
- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BranchFunctionConfig) Reset() {
- *x = BranchFunctionConfig{}
- mi := &file_store_branch_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BranchFunctionConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BranchFunctionConfig) ProtoMessage() {}
-
-func (x *BranchFunctionConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[5]
- 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 BranchFunctionConfig.ProtoReflect.Descriptor instead.
-func (*BranchFunctionConfig) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{5}
-}
-
-func (x *BranchFunctionConfig) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *BranchFunctionConfig) GetUpdater() string {
- if x != nil {
- return x.Updater
- }
- return ""
-}
-
-func (x *BranchFunctionConfig) GetSourceBranch() string {
- if x != nil {
- return x.SourceBranch
- }
- return ""
-}
-
-func (x *BranchFunctionConfig) GetUpdateTime() *timestamppb.Timestamp {
- if x != nil {
- return x.UpdateTime
- }
- return nil
-}
-
-type BranchProcedureConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // The name is the name of a procedure.
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The last updater of the procedure in branch.
- // Format: users/{userUID}.
- Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`
- // The last change come from branch.
- // Format: projcets/{project}/branches/{branch}
- SourceBranch string `protobuf:"bytes,4,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
- // The timestamp when the procedure is updated in branch.
- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BranchProcedureConfig) Reset() {
- *x = BranchProcedureConfig{}
- mi := &file_store_branch_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BranchProcedureConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BranchProcedureConfig) ProtoMessage() {}
-
-func (x *BranchProcedureConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[6]
- 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 BranchProcedureConfig.ProtoReflect.Descriptor instead.
-func (*BranchProcedureConfig) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{6}
-}
-
-func (x *BranchProcedureConfig) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *BranchProcedureConfig) GetUpdater() string {
- if x != nil {
- return x.Updater
- }
- return ""
-}
-
-func (x *BranchProcedureConfig) GetSourceBranch() string {
- if x != nil {
- return x.SourceBranch
- }
- return ""
-}
-
-func (x *BranchProcedureConfig) GetUpdateTime() *timestamppb.Timestamp {
- if x != nil {
- return x.UpdateTime
- }
- return nil
-}
-
-type BranchViewConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // The name is the name of a view.
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The last updater of the view in branch.
- // Format: users/{userUID}.
- Updater string `protobuf:"bytes,2,opt,name=updater,proto3" json:"updater,omitempty"`
- // The last change come from branch.
- // Format: projcets/{project}/branches/{branch}
- SourceBranch string `protobuf:"bytes,4,opt,name=source_branch,json=sourceBranch,proto3" json:"source_branch,omitempty"`
- // The timestamp when the view is updated in branch.
- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BranchViewConfig) Reset() {
- *x = BranchViewConfig{}
- mi := &file_store_branch_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BranchViewConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BranchViewConfig) ProtoMessage() {}
-
-func (x *BranchViewConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[7]
- 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 BranchViewConfig.ProtoReflect.Descriptor instead.
-func (*BranchViewConfig) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{7}
-}
-
-func (x *BranchViewConfig) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *BranchViewConfig) GetUpdater() string {
- if x != nil {
- return x.Updater
- }
- return ""
-}
-
-func (x *BranchViewConfig) GetSourceBranch() string {
- if x != nil {
- return x.SourceBranch
- }
- return ""
-}
-
-func (x *BranchViewConfig) GetUpdateTime() *timestamppb.Timestamp {
- if x != nil {
- return x.UpdateTime
- }
- return nil
-}
-
-type BranchColumnConfig struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- // The name is the name of a column.
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- SemanticTypeId string `protobuf:"bytes,2,opt,name=semantic_type_id,json=semanticTypeId,proto3" json:"semantic_type_id,omitempty"`
- // The user labels for a column.
- Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
- ClassificationId string `protobuf:"bytes,4,opt,name=classification_id,json=classificationId,proto3" json:"classification_id,omitempty"`
- MaskingLevel MaskingLevel `protobuf:"varint,5,opt,name=masking_level,json=maskingLevel,proto3,enum=bytebase.store.MaskingLevel" json:"masking_level,omitempty"`
- FullMaskingAlgorithmId string `protobuf:"bytes,6,opt,name=full_masking_algorithm_id,json=fullMaskingAlgorithmId,proto3" json:"full_masking_algorithm_id,omitempty"`
- PartialMaskingAlgorithmId string `protobuf:"bytes,7,opt,name=partial_masking_algorithm_id,json=partialMaskingAlgorithmId,proto3" json:"partial_masking_algorithm_id,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
-}
-
-func (x *BranchColumnConfig) Reset() {
- *x = BranchColumnConfig{}
- mi := &file_store_branch_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
-}
-
-func (x *BranchColumnConfig) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*BranchColumnConfig) ProtoMessage() {}
-
-func (x *BranchColumnConfig) ProtoReflect() protoreflect.Message {
- mi := &file_store_branch_proto_msgTypes[8]
- 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 BranchColumnConfig.ProtoReflect.Descriptor instead.
-func (*BranchColumnConfig) Descriptor() ([]byte, []int) {
- return file_store_branch_proto_rawDescGZIP(), []int{8}
-}
-
-func (x *BranchColumnConfig) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
-}
-
-func (x *BranchColumnConfig) GetSemanticTypeId() string {
- if x != nil {
- return x.SemanticTypeId
- }
- return ""
-}
-
-func (x *BranchColumnConfig) GetLabels() map[string]string {
- if x != nil {
- return x.Labels
- }
- return nil
-}
-
-func (x *BranchColumnConfig) GetClassificationId() string {
- if x != nil {
- return x.ClassificationId
- }
- return ""
-}
-
-func (x *BranchColumnConfig) GetMaskingLevel() MaskingLevel {
- if x != nil {
- return x.MaskingLevel
- }
- return MaskingLevel_MASKING_LEVEL_UNSPECIFIED
-}
-
-func (x *BranchColumnConfig) GetFullMaskingAlgorithmId() string {
- if x != nil {
- return x.FullMaskingAlgorithmId
- }
- return ""
-}
-
-func (x *BranchColumnConfig) GetPartialMaskingAlgorithmId() string {
- if x != nil {
- return x.PartialMaskingAlgorithmId
- }
- return ""
-}
-
var File_store_branch_proto protoreflect.FileDescriptor
var file_store_branch_proto_rawDesc = []byte{
0x0a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
- 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
- 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f,
- 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x22, 0x9d, 0x01, 0x0a, 0x0e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6e, 0x61, 0x70, 0x73,
- 0x68, 0x6f, 0x74, 0x12, 0x42, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53,
- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d,
- 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x47, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x22, 0x5c, 0x0a, 0x0c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62,
- 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63,
- 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75,
- 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x22, 0x7b,
- 0x0a, 0x14, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0e, 0x73, 0x63,
- 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03,
- 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,
- 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
- 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f,
- 0x6e, 0x66, 0x69, 0x67, 0x73, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0xda, 0x02, 0x0a, 0x12,
- 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
- 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42,
- 0x72, 0x61, 0x6e, 0x63, 0x68, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
- 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x4f,
- 0x0a, 0x10, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69,
- 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68,
- 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f,
- 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12,
- 0x52, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x6e,
- 0x66, 0x69, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e,
- 0x63, 0x68, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69,
- 0x67, 0x52, 0x10, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x73, 0x12, 0x43, 0x0a, 0x0c, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
- 0x69, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e, 0x63,
- 0x68, 0x56, 0x69, 0x65, 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x76, 0x69, 0x65,
- 0x77, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xad, 0x02, 0x0a, 0x11, 0x42, 0x72, 0x61,
- 0x6e, 0x63, 0x68, 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, 0x49, 0x0a, 0x0e, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x63, 0x6f, 0x6e,
- 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61, 0x6e,
- 0x63, 0x68, 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, 0xb8, 0x01, 0x0a, 0x14, 0x42, 0x72, 0x61,
- 0x6e, 0x63, 0x68, 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, 0xb9, 0x01, 0x0a, 0x15, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 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,
- 0xb4, 0x01, 0x0a, 0x10, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 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, 0xc1, 0x03, 0x0a, 0x12, 0x42, 0x72, 0x61, 0x6e, 0x63,
- 0x68, 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, 0x46, 0x0a, 0x06, 0x6c,
- 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x62, 0x79,
- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x42, 0x72, 0x61,
- 0x6e, 0x63, 0x68, 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,
+ 0x74, 0x6f, 0x72, 0x65, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x0e, 0x42,
+ 0x72, 0x61, 0x6e, 0x63, 0x68, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x12, 0x42, 0x0a,
+ 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
+ 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
+ 0x2e, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
+ 0x61, 0x12, 0x47, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x63, 0x6f,
+ 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61,
+ 0x62, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x5c, 0x0a, 0x0c, 0x42, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f,
+ 0x75, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62,
+ 0x61, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x62, 0x72,
+ 0x61, 0x6e, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72,
+ 0x63, 0x65, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 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 (
@@ -827,43 +169,21 @@ func file_store_branch_proto_rawDescGZIP() []byte {
return file_store_branch_proto_rawDescData
}
-var file_store_branch_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
+var file_store_branch_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_store_branch_proto_goTypes = []any{
(*BranchSnapshot)(nil), // 0: bytebase.store.BranchSnapshot
(*BranchConfig)(nil), // 1: bytebase.store.BranchConfig
- (*BranchDatabaseConfig)(nil), // 2: bytebase.store.BranchDatabaseConfig
- (*BranchSchemaConfig)(nil), // 3: bytebase.store.BranchSchemaConfig
- (*BranchTableConfig)(nil), // 4: bytebase.store.BranchTableConfig
- (*BranchFunctionConfig)(nil), // 5: bytebase.store.BranchFunctionConfig
- (*BranchProcedureConfig)(nil), // 6: bytebase.store.BranchProcedureConfig
- (*BranchViewConfig)(nil), // 7: bytebase.store.BranchViewConfig
- (*BranchColumnConfig)(nil), // 8: bytebase.store.BranchColumnConfig
- nil, // 9: bytebase.store.BranchColumnConfig.LabelsEntry
- (*DatabaseSchemaMetadata)(nil), // 10: bytebase.store.DatabaseSchemaMetadata
- (*DatabaseConfig)(nil), // 11: bytebase.store.DatabaseConfig
- (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp
- (MaskingLevel)(0), // 13: bytebase.store.MaskingLevel
+ (*DatabaseSchemaMetadata)(nil), // 2: bytebase.store.DatabaseSchemaMetadata
+ (*DatabaseConfig)(nil), // 3: bytebase.store.DatabaseConfig
}
var file_store_branch_proto_depIdxs = []int32{
- 10, // 0: bytebase.store.BranchSnapshot.metadata:type_name -> bytebase.store.DatabaseSchemaMetadata
- 11, // 1: bytebase.store.BranchSnapshot.database_config:type_name -> bytebase.store.DatabaseConfig
- 3, // 2: bytebase.store.BranchDatabaseConfig.schema_configs:type_name -> bytebase.store.BranchSchemaConfig
- 4, // 3: bytebase.store.BranchSchemaConfig.table_configs:type_name -> bytebase.store.BranchTableConfig
- 5, // 4: bytebase.store.BranchSchemaConfig.function_configs:type_name -> bytebase.store.BranchFunctionConfig
- 6, // 5: bytebase.store.BranchSchemaConfig.procedure_configs:type_name -> bytebase.store.BranchProcedureConfig
- 7, // 6: bytebase.store.BranchSchemaConfig.view_configs:type_name -> bytebase.store.BranchViewConfig
- 8, // 7: bytebase.store.BranchTableConfig.column_configs:type_name -> bytebase.store.BranchColumnConfig
- 12, // 8: bytebase.store.BranchTableConfig.update_time:type_name -> google.protobuf.Timestamp
- 12, // 9: bytebase.store.BranchFunctionConfig.update_time:type_name -> google.protobuf.Timestamp
- 12, // 10: bytebase.store.BranchProcedureConfig.update_time:type_name -> google.protobuf.Timestamp
- 12, // 11: bytebase.store.BranchViewConfig.update_time:type_name -> google.protobuf.Timestamp
- 9, // 12: bytebase.store.BranchColumnConfig.labels:type_name -> bytebase.store.BranchColumnConfig.LabelsEntry
- 13, // 13: bytebase.store.BranchColumnConfig.masking_level:type_name -> bytebase.store.MaskingLevel
- 14, // [14:14] is the sub-list for method output_type
- 14, // [14:14] is the sub-list for method input_type
- 14, // [14:14] is the sub-list for extension type_name
- 14, // [14:14] is the sub-list for extension extendee
- 0, // [0:14] is the sub-list for field type_name
+ 2, // 0: bytebase.store.BranchSnapshot.metadata:type_name -> bytebase.store.DatabaseSchemaMetadata
+ 3, // 1: bytebase.store.BranchSnapshot.database_config:type_name -> bytebase.store.DatabaseConfig
+ 2, // [2:2] is the sub-list for method output_type
+ 2, // [2:2] is the sub-list for method input_type
+ 2, // [2:2] is the sub-list for extension type_name
+ 2, // [2:2] is the sub-list for extension extendee
+ 0, // [0:2] is the sub-list for field type_name
}
func init() { file_store_branch_proto_init() }
@@ -871,7 +191,6 @@ func file_store_branch_proto_init() {
if File_store_branch_proto != nil {
return
}
- file_store_common_proto_init()
file_store_database_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
@@ -879,7 +198,7 @@ func file_store_branch_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_branch_proto_rawDesc,
NumEnums: 0,
- NumMessages: 10,
+ NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/store/branch.proto b/proto/store/branch.proto
index 8ee4bf7ae9..b56b3f3906 100644
--- a/proto/store/branch.proto
+++ b/proto/store/branch.proto
@@ -2,9 +2,6 @@ syntax = "proto3";
package bytebase.store;
-import "google/api/field_behavior.proto";
-import "google/protobuf/timestamp.proto";
-import "store/common.proto";
import "store/database.proto";
option go_package = "generated-go/store";
@@ -24,114 +21,3 @@ message BranchConfig {
// Example: projects/project-id/branches/branch-id.
string source_branch = 2;
}
-
-message BranchDatabaseConfig {
- reserved 3;
-
- string name = 1;
-
- // The schema_configs is the list of configs for schemas in a database.
- repeated BranchSchemaConfig schema_configs = 2;
-}
-
-message BranchSchemaConfig {
- // The name is the schema name.
- // It is an empty string for databases without such concept such as MySQL.
- string name = 1;
-
- // The table_configs is the list of configs for tables in a schema.
- repeated BranchTableConfig table_configs = 2;
-
- repeated BranchFunctionConfig function_configs = 3;
-
- repeated BranchProcedureConfig procedure_configs = 4;
-
- repeated BranchViewConfig view_configs = 5;
-}
-
-message BranchTableConfig {
- // The name is the name of a table.
- string name = 1;
-
- // The column_configs is the ordered list of configs for columns in a table.
- repeated BranchColumnConfig column_configs = 2;
-
- string classification_id = 3;
-
- // The last updater of the table in branch.
- // Format: users/{userUID}.
- string updater = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- // The last change come from branch.
- // Format: projcets/{project}/branches/{branch}
- string source_branch = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- // The timestamp when the table is updated in branch.
- google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
-}
-
-message BranchFunctionConfig {
- // The name is the name of a function.
- string name = 1;
-
- // The last updater of the function in branch.
- // Format: users/{userUID}.
- string updater = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- // The last change come from branch.
- // Format: projcets/{project}/branches/{branch}
- string source_branch = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- // The timestamp when the function is updated in branch.
- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-}
-
-message BranchProcedureConfig {
- // The name is the name of a procedure.
- string name = 1;
-
- // The last updater of the procedure in branch.
- // Format: users/{userUID}.
- string updater = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- // The last change come from branch.
- // Format: projcets/{project}/branches/{branch}
- string source_branch = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- // The timestamp when the procedure is updated in branch.
- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-}
-
-message BranchViewConfig {
- // The name is the name of a view.
- string name = 1;
-
- // The last updater of the view in branch.
- // Format: users/{userUID}.
- string updater = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- // The last change come from branch.
- // Format: projcets/{project}/branches/{branch}
- string source_branch = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- // The timestamp when the view is updated in branch.
- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-}
-
-message BranchColumnConfig {
- // The name is the name of a column.
- string name = 1;
-
- string semantic_type_id = 2;
-
- // The user labels for a column.
- map<string, string> labels = 3;
-
- string classification_id = 4;
-
- MaskingLevel masking_level = 5;
-
- string full_masking_algorithm_id = 6;
-
- string partial_masking_algorithm_id = 7;
-}