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: buf generate for schema design (#7643)
boojack17b2f5e6bdf5
diff --git a/frontend/src/types/proto/store/sheet.ts b/frontend/src/types/proto/store/sheet.tsindex a22893bdde..aea38ff313 100644--- a/frontend/src/types/proto/store/sheet.ts+++ b/frontend/src/types/proto/store/sheet.ts@@ -64,9 +64,55 @@ export interface SheetPayload_UsedByIssue {}export interface SheetPayload_SchemaDesign {+ /** The type of the schema design. */+ type: SheetPayload_SchemaDesign_Type;+ /** The database instance engine of the schema design. */+ engine: Engine;/** The baseline instance change history id of the schema design. */baselineChangeHistoryId: string;- engine: Engine;+ /** The baseline schema design id. Using for personal draft types. AKA sheet id. */+ baselineSchemaDesignId: string;+}++export enum SheetPayload_SchemaDesign_Type {+ TYPE_UNSPECIFIED = 0,+ /** MAIN_BRANCH - Main branch type is the main version of schema design. And only allow to be updated/merged with personal drafts. */+ MAIN_BRANCH = 1,+ /** PERSONAL_DRAFT - Personal draft type is a copy of the main branch type schema designs. */+ PERSONAL_DRAFT = 2,+ UNRECOGNIZED = -1,+}++export function sheetPayload_SchemaDesign_TypeFromJSON(object: any): SheetPayload_SchemaDesign_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return SheetPayload_SchemaDesign_Type.TYPE_UNSPECIFIED;+ case 1:+ case "MAIN_BRANCH":+ return SheetPayload_SchemaDesign_Type.MAIN_BRANCH;+ case 2:+ case "PERSONAL_DRAFT":+ return SheetPayload_SchemaDesign_Type.PERSONAL_DRAFT;+ case -1:+ case "UNRECOGNIZED":+ default:+ return SheetPayload_SchemaDesign_Type.UNRECOGNIZED;+ }+}++export function sheetPayload_SchemaDesign_TypeToJSON(object: SheetPayload_SchemaDesign_Type): string {+ switch (object) {+ case SheetPayload_SchemaDesign_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case SheetPayload_SchemaDesign_Type.MAIN_BRANCH:+ return "MAIN_BRANCH";+ case SheetPayload_SchemaDesign_Type.PERSONAL_DRAFT:+ return "PERSONAL_DRAFT";+ case SheetPayload_SchemaDesign_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }}function createBaseSheetPayload(): SheetPayload {@@ -373,17 +419,23 @@ export const SheetPayload_UsedByIssue = {};function createBaseSheetPayload_SchemaDesign(): SheetPayload_SchemaDesign {- return { baselineChangeHistoryId: "", engine: 0 };+ return { type: 0, engine: 0, baselineChangeHistoryId: "", baselineSchemaDesignId: "" };}export const SheetPayload_SchemaDesign = {encode(message: SheetPayload_SchemaDesign, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.baselineChangeHistoryId !== "") {- writer.uint32(10).string(message.baselineChangeHistoryId);+ if (message.type !== 0) {+ writer.uint32(8).int32(message.type);}if (message.engine !== 0) {writer.uint32(16).int32(message.engine);}+ if (message.baselineChangeHistoryId !== "") {+ writer.uint32(26).string(message.baselineChangeHistoryId);+ }+ if (message.baselineSchemaDesignId !== "") {+ writer.uint32(34).string(message.baselineSchemaDesignId);+ }return writer;},@@ -395,11 +447,11 @@ export const SheetPayload_SchemaDesign = {const tag = reader.uint32();switch (tag >>> 3) {case 1:- if (tag !== 10) {+ if (tag !== 8) {break;}- message.baselineChangeHistoryId = reader.string();+ message.type = reader.int32() as any;continue;case 2:if (tag !== 16) {@@ -408,6 +460,20 @@ export const SheetPayload_SchemaDesign = {message.engine = reader.int32() as any;continue;+ case 3:+ if (tag !== 26) {+ break;+ }++ message.baselineChangeHistoryId = reader.string();+ continue;+ case 4:+ if (tag !== 34) {+ break;+ }++ message.baselineSchemaDesignId = reader.string();+ continue;}if ((tag & 7) === 4 || tag === 0) {break;@@ -419,15 +485,19 @@ export const SheetPayload_SchemaDesign = {fromJSON(object: any): SheetPayload_SchemaDesign {return {- baselineChangeHistoryId: isSet(object.baselineChangeHistoryId) ? String(object.baselineChangeHistoryId) : "",+ type: isSet(object.type) ? sheetPayload_SchemaDesign_TypeFromJSON(object.type) : 0,engine: isSet(object.engine) ? engineFromJSON(object.engine) : 0,+ baselineChangeHistoryId: isSet(object.baselineChangeHistoryId) ? String(object.baselineChangeHistoryId) : "",+ baselineSchemaDesignId: isSet(object.baselineSchemaDesignId) ? String(object.baselineSchemaDesignId) : "",};},toJSON(message: SheetPayload_SchemaDesign): unknown {const obj: any = {};- message.baselineChangeHistoryId !== undefined && (obj.baselineChangeHistoryId = message.baselineChangeHistoryId);+ message.type !== undefined && (obj.type = sheetPayload_SchemaDesign_TypeToJSON(message.type));message.engine !== undefined && (obj.engine = engineToJSON(message.engine));+ message.baselineChangeHistoryId !== undefined && (obj.baselineChangeHistoryId = message.baselineChangeHistoryId);+ message.baselineSchemaDesignId !== undefined && (obj.baselineSchemaDesignId = message.baselineSchemaDesignId);return obj;},@@ -437,8 +507,10 @@ export const SheetPayload_SchemaDesign = {fromPartial(object: DeepPartial<SheetPayload_SchemaDesign>): SheetPayload_SchemaDesign {const message = createBaseSheetPayload_SchemaDesign();- message.baselineChangeHistoryId = object.baselineChangeHistoryId ?? "";+ message.type = object.type ?? 0;message.engine = object.engine ?? 0;+ message.baselineChangeHistoryId = object.baselineChangeHistoryId ?? "";+ message.baselineSchemaDesignId = object.baselineSchemaDesignId ?? "";return message;},};diff --git a/frontend/src/types/proto/v1/schema_design_service.ts b/frontend/src/types/proto/v1/schema_design_service.tsindex 1babaf8b5a..7a67192516 100644--- a/frontend/src/types/proto/v1/schema_design_service.ts+++ b/frontend/src/types/proto/v1/schema_design_service.ts@@ -42,6 +42,10 @@ export interface SchemaDesign {* If not specified, the latest schema of database will be used as baseline schema.*/schemaVersion: string;+ /** The type of the schema design. */+ type: SchemaDesign_Type;+ /** The etag of the schema design. */+ etag: string;/*** The creator of the schema design.* Format: users/{email}@@ -60,6 +64,47 @@ export interface SchemaDesign {updateTime?: Date | undefined;}+export enum SchemaDesign_Type {+ TYPE_UNSPECIFIED = 0,+ /** MAIN_BRANCH - Main branch type is the main version of schema design. And only allow to be updated/merged with personal drafts. */+ MAIN_BRANCH = 1,+ /** PERSONAL_DRAFT - Personal draft type is a copy of the main branch type schema designs. */+ PERSONAL_DRAFT = 2,+ UNRECOGNIZED = -1,+}++export function schemaDesign_TypeFromJSON(object: any): SchemaDesign_Type {+ switch (object) {+ case 0:+ case "TYPE_UNSPECIFIED":+ return SchemaDesign_Type.TYPE_UNSPECIFIED;+ case 1:+ case "MAIN_BRANCH":+ return SchemaDesign_Type.MAIN_BRANCH;+ case 2:+ case "PERSONAL_DRAFT":+ return SchemaDesign_Type.PERSONAL_DRAFT;+ case -1:+ case "UNRECOGNIZED":+ default:+ return SchemaDesign_Type.UNRECOGNIZED;+ }+}++export function schemaDesign_TypeToJSON(object: SchemaDesign_Type): string {+ switch (object) {+ case SchemaDesign_Type.TYPE_UNSPECIFIED:+ return "TYPE_UNSPECIFIED";+ case SchemaDesign_Type.MAIN_BRANCH:+ return "MAIN_BRANCH";+ case SchemaDesign_Type.PERSONAL_DRAFT:+ return "PERSONAL_DRAFT";+ case SchemaDesign_Type.UNRECOGNIZED:+ default:+ return "UNRECOGNIZED";+ }+}+export interface GetSchemaDesignRequest {/*** The name of the schema design to retrieve.@@ -74,13 +119,7 @@ export interface ListSchemaDesignsRequest {* Foramt: projects/{project}*/parent: string;- /**- * To filter the search result.- * Format: only support the following spec for now:- * - `creator = users/{email}`, `creator != users/{email}`- * - `starred = true`, `starred = false`.- * Not support empty filter for now.- */+ /** To filter the search result. */filter: string;/*** The maximum number of schema designs to return. The service may return fewer than@@ -132,8 +171,15 @@ export interface UpdateSchemaDesignRequest {updateMask?: string[] | undefined;}+export interface MergeSchemaDesignRequest {+ /** The personal draft schema design to merge. */+ schemaDesign?: SchemaDesign | undefined;+}+export interface ParseSchemaStringRequest {+ /** The schema string to parse. */schemaString: string;+ /** The database engine of the schema string. */engine: Engine;}@@ -161,6 +207,8 @@ function createBaseSchemaDesign(): SchemaDesign {engine: 0,baselineDatabase: "",schemaVersion: "",+ type: 0,+ etag: "",creator: "",updater: "",createTime: undefined,@@ -197,17 +245,23 @@ export const SchemaDesign = {if (message.schemaVersion !== "") {writer.uint32(74).string(message.schemaVersion);}+ if (message.type !== 0) {+ writer.uint32(80).int32(message.type);+ }+ if (message.etag !== "") {+ writer.uint32(90).string(message.etag);+ }if (message.creator !== "") {- writer.uint32(82).string(message.creator);+ writer.uint32(98).string(message.creator);}if (message.updater !== "") {- writer.uint32(90).string(message.updater);+ writer.uint32(106).string(message.updater);}if (message.createTime !== undefined) {- Timestamp.encode(toTimestamp(message.createTime), writer.uint32(98).fork()).ldelim();+ Timestamp.encode(toTimestamp(message.createTime), writer.uint32(114).fork()).ldelim();}if (message.updateTime !== undefined) {- Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(106).fork()).ldelim();+ Timestamp.encode(toTimestamp(message.updateTime), writer.uint32(122).fork()).ldelim();}return writer;},@@ -283,31 +337,45 @@ export const SchemaDesign = {message.schemaVersion = reader.string();continue;case 10:- if (tag !== 82) {+ if (tag !== 80) {break;}- message.creator = reader.string();+ message.type = reader.int32() as any;continue;case 11:if (tag !== 90) {break;}- message.updater = reader.string();+ message.etag = reader.string();continue;case 12:if (tag !== 98) {break;}- message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ message.creator = reader.string();continue;case 13:if (tag !== 106) {break;}+ message.updater = reader.string();+ continue;+ case 14:+ if (tag !== 114) {+ break;+ }++ message.createTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));+ continue;+ case 15:+ if (tag !== 122) {+ break;+ }+message.updateTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));continue;}@@ -332,6 +400,8 @@ export const SchemaDesign = {engine: isSet(object.engine) ? engineFromJSON(object.engine) : 0,baselineDatabase: isSet(object.baselineDatabase) ? String(object.baselineDatabase) : "",schemaVersion: isSet(object.schemaVersion) ? String(object.schemaVersion) : "",+ type: isSet(object.type) ? schemaDesign_TypeFromJSON(object.type) : 0,+ etag: isSet(object.etag) ? String(object.etag) : "",creator: isSet(object.creator) ? String(object.creator) : "",updater: isSet(object.updater) ? String(object.updater) : "",createTime: isSet(object.createTime) ? fromJsonTimestamp(object.createTime) : undefined,@@ -353,6 +423,8 @@ export const SchemaDesign = {message.engine !== undefined && (obj.engine = engineToJSON(message.engine));message.baselineDatabase !== undefined && (obj.baselineDatabase = message.baselineDatabase);message.schemaVersion !== undefined && (obj.schemaVersion = message.schemaVersion);+ message.type !== undefined && (obj.type = schemaDesign_TypeToJSON(message.type));+ message.etag !== undefined && (obj.etag = message.etag);message.creator !== undefined && (obj.creator = message.creator);message.updater !== undefined && (obj.updater = message.updater);message.createTime !== undefined && (obj.createTime = message.createTime.toISOString());@@ -380,6 +452,8 @@ export const SchemaDesign = {message.engine = object.engine ?? 0;message.baselineDatabase = object.baselineDatabase ?? "";message.schemaVersion = object.schemaVersion ?? "";+ message.type = object.type ?? 0;+ message.etag = object.etag ?? "";message.creator = object.creator ?? "";message.updater = object.updater ?? "";message.createTime = object.createTime ?? undefined;@@ -766,6 +840,65 @@ export const UpdateSchemaDesignRequest = {},};+function createBaseMergeSchemaDesignRequest(): MergeSchemaDesignRequest {+ return { schemaDesign: undefined };+}++export const MergeSchemaDesignRequest = {+ encode(message: MergeSchemaDesignRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.schemaDesign !== undefined) {+ SchemaDesign.encode(message.schemaDesign, writer.uint32(10).fork()).ldelim();+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): MergeSchemaDesignRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseMergeSchemaDesignRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.schemaDesign = SchemaDesign.decode(reader, reader.uint32());+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): MergeSchemaDesignRequest {+ return { schemaDesign: isSet(object.schemaDesign) ? SchemaDesign.fromJSON(object.schemaDesign) : undefined };+ },++ toJSON(message: MergeSchemaDesignRequest): unknown {+ const obj: any = {};+ message.schemaDesign !== undefined &&+ (obj.schemaDesign = message.schemaDesign ? SchemaDesign.toJSON(message.schemaDesign) : undefined);+ return obj;+ },++ create(base?: DeepPartial<MergeSchemaDesignRequest>): MergeSchemaDesignRequest {+ return MergeSchemaDesignRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<MergeSchemaDesignRequest>): MergeSchemaDesignRequest {+ const message = createBaseMergeSchemaDesignRequest();+ message.schemaDesign = (object.schemaDesign !== undefined && object.schemaDesign !== null)+ ? SchemaDesign.fromPartial(object.schemaDesign)+ : undefined;+ return message;+ },+};+function createBaseParseSchemaStringRequest(): ParseSchemaStringRequest {return { schemaString: "", engine: 0 };}@@ -1277,6 +1410,97 @@ export const SchemaDesignServiceDefinition = {},},},+ mergeSchemaDesign: {+ name: "MergeSchemaDesign",+ requestType: MergeSchemaDesignRequest,+ requestStream: false,+ responseType: SchemaDesign,+ responseStream: false,+ options: {+ _unknownFields: {+ 8410: [new Uint8Array([12, 115, 99, 104, 101, 109, 97, 68, 101, 115, 105, 103, 110])],+ 578365826: [+ new Uint8Array([+ 74,+ 58,+ 13,+ 115,+ 99,+ 104,+ 101,+ 109,+ 97,+ 95,+ 100,+ 101,+ 115,+ 105,+ 103,+ 110,+ 34,+ 57,+ 47,+ 118,+ 49,+ 47,+ 123,+ 115,+ 99,+ 104,+ 101,+ 109,+ 97,+ 95,+ 100,+ 101,+ 115,+ 105,+ 103,+ 110,+ 46,+ 110,+ 97,+ 109,+ 101,+ 61,+ 112,+ 114,+ 111,+ 106,+ 101,+ 99,+ 116,+ 115,+ 47,+ 42,+ 47,+ 115,+ 99,+ 104,+ 101,+ 109,+ 97,+ 68,+ 101,+ 115,+ 105,+ 103,+ 110,+ 115,+ 47,+ 42,+ 125,+ 58,+ 109,+ 101,+ 114,+ 103,+ 101,+ ]),+ ],+ },+ },+ },parseSchemaString: {name: "ParseSchemaString",requestType: ParseSchemaStringRequest,@@ -1408,6 +1632,10 @@ export interface SchemaDesignServiceImplementation<CallContextExt = {}> {request: UpdateSchemaDesignRequest,context: CallContext & CallContextExt,): Promise<DeepPartial<SchemaDesign>>;+ mergeSchemaDesign(+ request: MergeSchemaDesignRequest,+ context: CallContext & CallContextExt,+ ): Promise<DeepPartial<SchemaDesign>>;parseSchemaString(request: ParseSchemaStringRequest,context: CallContext & CallContextExt,@@ -1435,6 +1663,10 @@ export interface SchemaDesignServiceClient<CallOptionsExt = {}> {request: DeepPartial<UpdateSchemaDesignRequest>,options?: CallOptions & CallOptionsExt,): Promise<SchemaDesign>;+ mergeSchemaDesign(+ request: DeepPartial<MergeSchemaDesignRequest>,+ options?: CallOptions & CallOptionsExt,+ ): Promise<SchemaDesign>;parseSchemaString(request: DeepPartial<ParseSchemaStringRequest>,options?: CallOptions & CallOptionsExt,diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 49722753be..fc9728a2eb 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -146,6 +146,7 @@- [SheetPayload.UsedByIssue](#bytebase-store-SheetPayload-UsedByIssue)- [SheetPayload.VCSPayload](#bytebase-store-SheetPayload-VCSPayload)+ - [SheetPayload.SchemaDesign.Type](#bytebase-store-SheetPayload-SchemaDesign-Type)- [SheetPayload.Type](#bytebase-store-SheetPayload-Type)- [store/slow_query.proto](#store_slow_query-proto)@@ -2178,8 +2179,10 @@ We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |+| type | [SheetPayload.SchemaDesign.Type](#bytebase-store-SheetPayload-SchemaDesign-Type) | | The type of the schema design. |+| engine | [Engine](#bytebase-store-Engine) | | The database instance engine of the schema design. || baseline_change_history_id | [string](#string) | | The baseline instance change history id of the schema design. |-| engine | [Engine](#bytebase-store-Engine) | | |+| baseline_schema_design_id | [string](#string) | | The baseline schema design id. Using for personal draft types. AKA sheet id. |@@ -2224,6 +2227,19 @@ We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.+<a name="bytebase-store-SheetPayload-SchemaDesign-Type"></a>++### SheetPayload.SchemaDesign.Type+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| MAIN_BRANCH | 1 | Main branch type is the main version of schema design. And only allow to be updated/merged with personal drafts. |+| PERSONAL_DRAFT | 2 | Personal draft type is a copy of the main branch type schema designs. |+++<a name="bytebase-store-SheetPayload-Type"></a>### SheetPayload.Typediff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 29e8a8e959..62bab95244 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -495,11 +495,14 @@- [GetSchemaDesignRequest](#bytebase-v1-GetSchemaDesignRequest)- [ListSchemaDesignsRequest](#bytebase-v1-ListSchemaDesignsRequest)- [ListSchemaDesignsResponse](#bytebase-v1-ListSchemaDesignsResponse)+ - [MergeSchemaDesignRequest](#bytebase-v1-MergeSchemaDesignRequest)- [ParseSchemaStringRequest](#bytebase-v1-ParseSchemaStringRequest)- [ParseSchemaStringResponse](#bytebase-v1-ParseSchemaStringResponse)- [SchemaDesign](#bytebase-v1-SchemaDesign)- [UpdateSchemaDesignRequest](#bytebase-v1-UpdateSchemaDesignRequest)+ - [SchemaDesign.Type](#bytebase-v1-SchemaDesign-Type)+- [SchemaDesignService](#bytebase-v1-SchemaDesignService)- [v1/subscription_service.proto](#v1_subscription_service-proto)@@ -7951,7 +7954,7 @@ Type is the database change type.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || parent | [string](#string) | | The parent resource of the schema design. Foramt: projects/{project} |-| filter | [string](#string) | | To filter the search result. Format: only support the following spec for now: - `creator = users/{email}`, `creator != users/{email}` - `starred = true`, `starred = false`. Not support empty filter for now. |+| filter | [string](#string) | | To filter the search result. || page_size | [int32](#int32) | | The maximum number of schema designs to return. The service may return fewer than this value. If unspecified, at most 50 schema designs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. || page_token | [string](#string) | | A page token, received from a previous `ListSchemaDesigns` call. Provide this to retrieve the subsequent page.@@ -7978,6 +7981,21 @@ When paginating, all other parameters provided to `ListSchemaDesigns` must match+<a name="bytebase-v1-MergeSchemaDesignRequest"></a>++### MergeSchemaDesignRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| schema_design | [SchemaDesign](#bytebase-v1-SchemaDesign) | | The personal draft schema design to merge. |++++++<a name="bytebase-v1-ParseSchemaStringRequest"></a>### ParseSchemaStringRequest@@ -7986,8 +8004,8 @@ When paginating, all other parameters provided to `ListSchemaDesigns` must match| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| schema_string | [string](#string) | | |-| engine | [Engine](#bytebase-v1-Engine) | | |+| schema_string | [string](#string) | | The schema string to parse. |+| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema string. |@@ -8026,6 +8044,8 @@ When paginating, all other parameters provided to `ListSchemaDesigns` must match| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema design. || baseline_database | [string](#string) | | The name of the baseline database. Format: instances/{instance}/databases/{database} || schema_version | [string](#string) | | The selected schema version of the baseline database. If not specified, the latest schema of database will be used as baseline schema. |+| type | [SchemaDesign.Type](#bytebase-v1-SchemaDesign-Type) | | The type of the schema design. |+| etag | [string](#string) | | The etag of the schema design. || creator | [string](#string) | | The creator of the schema design. Format: users/{email} || updater | [string](#string) | | The updater of the schema design. Format: users/{email} || create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | The timestamp when the schema design was created. |@@ -8055,6 +8075,19 @@ The schema design's `name` field is used to identify the schema design to up++<a name="bytebase-v1-SchemaDesign-Type"></a>++### SchemaDesign.Type+++| Name | Number | Description |+| ---- | ------ | ----------- |+| TYPE_UNSPECIFIED | 0 | |+| MAIN_BRANCH | 1 | Main branch type is the main version of schema design. And only allow to be updated/merged with personal drafts. |+| PERSONAL_DRAFT | 2 | Personal draft type is a copy of the main branch type schema designs. |++@@ -8071,6 +8104,7 @@ The schema design's `name` field is used to identify the schema design to up| ListSchemaDesigns | [ListSchemaDesignsRequest](#bytebase-v1-ListSchemaDesignsRequest) | [ListSchemaDesignsResponse](#bytebase-v1-ListSchemaDesignsResponse) | || CreateSchemaDesign | [CreateSchemaDesignRequest](#bytebase-v1-CreateSchemaDesignRequest) | [SchemaDesign](#bytebase-v1-SchemaDesign) | || UpdateSchemaDesign | [UpdateSchemaDesignRequest](#bytebase-v1-UpdateSchemaDesignRequest) | [SchemaDesign](#bytebase-v1-SchemaDesign) | |+| MergeSchemaDesign | [MergeSchemaDesignRequest](#bytebase-v1-MergeSchemaDesignRequest) | [SchemaDesign](#bytebase-v1-SchemaDesign) | || ParseSchemaString | [ParseSchemaStringRequest](#bytebase-v1-ParseSchemaStringRequest) | [ParseSchemaStringResponse](#bytebase-v1-ParseSchemaStringResponse) | || DeleteSchemaDesign | [DeleteSchemaDesignRequest](#bytebase-v1-DeleteSchemaDesignRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |diff --git a/proto/generated-go/store/sheet.pb.go b/proto/generated-go/store/sheet.pb.goindex c9b4fcd847..9a9428ded7 100644--- a/proto/generated-go/store/sheet.pb.go+++ b/proto/generated-go/store/sheet.pb.go@@ -67,6 +67,57 @@ func (SheetPayload_Type) EnumDescriptor() ([]byte, []int) {return file_store_sheet_proto_rawDescGZIP(), []int{0, 0}}+type SheetPayload_SchemaDesign_Type int32++const (+ SheetPayload_SchemaDesign_TYPE_UNSPECIFIED SheetPayload_SchemaDesign_Type = 0+ // Main branch type is the main version of schema design. And only allow to be updated/merged with personal drafts.+ SheetPayload_SchemaDesign_MAIN_BRANCH SheetPayload_SchemaDesign_Type = 1+ // Personal draft type is a copy of the main branch type schema designs.+ SheetPayload_SchemaDesign_PERSONAL_DRAFT SheetPayload_SchemaDesign_Type = 2+)++// Enum value maps for SheetPayload_SchemaDesign_Type.+var (+ SheetPayload_SchemaDesign_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "MAIN_BRANCH",+ 2: "PERSONAL_DRAFT",+ }+ SheetPayload_SchemaDesign_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "MAIN_BRANCH": 1,+ "PERSONAL_DRAFT": 2,+ }+)++func (x SheetPayload_SchemaDesign_Type) Enum() *SheetPayload_SchemaDesign_Type {+ p := new(SheetPayload_SchemaDesign_Type)+ *p = x+ return p+}++func (x SheetPayload_SchemaDesign_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (SheetPayload_SchemaDesign_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_store_sheet_proto_enumTypes[1].Descriptor()+}++func (SheetPayload_SchemaDesign_Type) Type() protoreflect.EnumType {+ return &file_store_sheet_proto_enumTypes[1]+}++func (x SheetPayload_SchemaDesign_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use SheetPayload_SchemaDesign_Type.Descriptor instead.+func (SheetPayload_SchemaDesign_Type) EnumDescriptor() ([]byte, []int) {+ return file_store_sheet_proto_rawDescGZIP(), []int{0, 2, 0}+}+type SheetPayload struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -286,9 +337,14 @@ type SheetPayload_SchemaDesign struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields+ // The type of the schema design.+ Type SheetPayload_SchemaDesign_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.SheetPayload_SchemaDesign_Type" json:"type,omitempty"`+ // The database instance engine of the schema design.+ Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.store.Engine" json:"engine,omitempty"`// The baseline instance change history id of the schema design.- BaselineChangeHistoryId string `protobuf:"bytes,1,opt,name=baseline_change_history_id,json=baselineChangeHistoryId,proto3" json:"baseline_change_history_id,omitempty"`- Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.store.Engine" json:"engine,omitempty"`+ BaselineChangeHistoryId string `protobuf:"bytes,3,opt,name=baseline_change_history_id,json=baselineChangeHistoryId,proto3" json:"baseline_change_history_id,omitempty"`+ // The baseline schema design id. Using for personal draft types. AKA sheet id.+ BaselineSchemaDesignId string `protobuf:"bytes,4,opt,name=baseline_schema_design_id,json=baselineSchemaDesignId,proto3" json:"baseline_schema_design_id,omitempty"`}func (x *SheetPayload_SchemaDesign) Reset() {@@ -323,11 +379,11 @@ func (*SheetPayload_SchemaDesign) Descriptor() ([]byte, []int) {return file_store_sheet_proto_rawDescGZIP(), []int{0, 2}}-func (x *SheetPayload_SchemaDesign) GetBaselineChangeHistoryId() string {+func (x *SheetPayload_SchemaDesign) GetType() SheetPayload_SchemaDesign_Type {if x != nil {- return x.BaselineChangeHistoryId+ return x.Type}- return ""+ return SheetPayload_SchemaDesign_TYPE_UNSPECIFIED}func (x *SheetPayload_SchemaDesign) GetEngine() Engine {@@ -337,13 +393,27 @@ func (x *SheetPayload_SchemaDesign) GetEngine() Engine {return Engine_ENGINE_UNSPECIFIED}+func (x *SheetPayload_SchemaDesign) GetBaselineChangeHistoryId() string {+ if x != nil {+ return x.BaselineChangeHistoryId+ }+ return ""+}++func (x *SheetPayload_SchemaDesign) GetBaselineSchemaDesignId() string {+ if x != nil {+ return x.BaselineSchemaDesignId+ }+ return ""+}+var File_store_sheet_proto protoreflect.FileDescriptorvar file_store_sheet_proto_rawDesc = []byte{0x0a, 0x11, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x2e, 0x70, 0x72,0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,0x6f, 0x72, 0x65, 0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,- 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x05, 0x0a, 0x0c, 0x53, 0x68, 0x65, 0x65,+ 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa8, 0x07, 0x0a, 0x0c, 0x53, 0x68, 0x65, 0x65,0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 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, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79,@@ -379,19 +449,31 @@ var file_store_sheet_proto_rawDesc = []byte{0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x69, 0x73, 0x73, 0x75, 0x65, 0x49, 0x64,0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x54, 0x69, 0x74, 0x6c,- 0x65, 0x1a, 0x7b, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67,- 0x6e, 0x12, 0x3b, 0x0a, 0x1a, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x68,- 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18,- 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x43,- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x12, 0x2e,- 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,- 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x2f,+ 0x65, 0x1a, 0xbd, 0x02, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,+ 0x67, 0x6e, 0x12, 0x42, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65,+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06,+ 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69,+ 0x6e, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72,+ 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x62, 0x61, 0x73, 0x65,+ 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72,+ 0x79, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x19, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x64,+ 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x22, 0x41,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, 0x11, 0x0a, 0x0d,- 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x45, 0x53, 0x49, 0x47, 0x4e, 0x10, 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,+ 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b,+ 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x12, 0x0a,+ 0x0e, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x44, 0x52, 0x41, 0x46, 0x54, 0x10,+ 0x02, 0x22, 0x2f, 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,+ 0x11, 0x0a, 0x0d, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x45, 0x53, 0x49, 0x47, 0x4e,+ 0x10, 0x01, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d,+ 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -406,27 +488,29 @@ func file_store_sheet_proto_rawDescGZIP() []byte {return file_store_sheet_proto_rawDescData}-var file_store_sheet_proto_enumTypes = make([]protoimpl.EnumInfo, 1)+var file_store_sheet_proto_enumTypes = make([]protoimpl.EnumInfo, 2)var file_store_sheet_proto_msgTypes = make([]protoimpl.MessageInfo, 4)var file_store_sheet_proto_goTypes = []interface{}{- (SheetPayload_Type)(0), // 0: bytebase.store.SheetPayload.Type- (*SheetPayload)(nil), // 1: bytebase.store.SheetPayload- (*SheetPayload_VCSPayload)(nil), // 2: bytebase.store.SheetPayload.VCSPayload- (*SheetPayload_UsedByIssue)(nil), // 3: bytebase.store.SheetPayload.UsedByIssue- (*SheetPayload_SchemaDesign)(nil), // 4: bytebase.store.SheetPayload.SchemaDesign- (Engine)(0), // 5: bytebase.store.Engine+ (SheetPayload_Type)(0), // 0: bytebase.store.SheetPayload.Type+ (SheetPayload_SchemaDesign_Type)(0), // 1: bytebase.store.SheetPayload.SchemaDesign.Type+ (*SheetPayload)(nil), // 2: bytebase.store.SheetPayload+ (*SheetPayload_VCSPayload)(nil), // 3: bytebase.store.SheetPayload.VCSPayload+ (*SheetPayload_UsedByIssue)(nil), // 4: bytebase.store.SheetPayload.UsedByIssue+ (*SheetPayload_SchemaDesign)(nil), // 5: bytebase.store.SheetPayload.SchemaDesign+ (Engine)(0), // 6: bytebase.store.Engine}var file_store_sheet_proto_depIdxs = []int32{0, // 0: bytebase.store.SheetPayload.type:type_name -> bytebase.store.SheetPayload.Type- 2, // 1: bytebase.store.SheetPayload.vcs_payload:type_name -> bytebase.store.SheetPayload.VCSPayload- 3, // 2: bytebase.store.SheetPayload.used_by_issues:type_name -> bytebase.store.SheetPayload.UsedByIssue- 4, // 3: bytebase.store.SheetPayload.schema_design:type_name -> bytebase.store.SheetPayload.SchemaDesign- 5, // 4: bytebase.store.SheetPayload.SchemaDesign.engine:type_name -> bytebase.store.Engine- 5, // [5:5] is the sub-list for method output_type- 5, // [5:5] is the sub-list for method input_type- 5, // [5:5] is the sub-list for extension type_name- 5, // [5:5] is the sub-list for extension extendee- 0, // [0:5] is the sub-list for field type_name+ 3, // 1: bytebase.store.SheetPayload.vcs_payload:type_name -> bytebase.store.SheetPayload.VCSPayload+ 4, // 2: bytebase.store.SheetPayload.used_by_issues:type_name -> bytebase.store.SheetPayload.UsedByIssue+ 5, // 3: bytebase.store.SheetPayload.schema_design:type_name -> bytebase.store.SheetPayload.SchemaDesign+ 1, // 4: bytebase.store.SheetPayload.SchemaDesign.type:type_name -> bytebase.store.SheetPayload.SchemaDesign.Type+ 6, // 5: bytebase.store.SheetPayload.SchemaDesign.engine:type_name -> bytebase.store.Engine+ 6, // [6:6] is the sub-list for method output_type+ 6, // [6:6] is the sub-list for method input_type+ 6, // [6:6] is the sub-list for extension type_name+ 6, // [6:6] is the sub-list for extension extendee+ 0, // [0:6] is the sub-list for field type_name}func init() { file_store_sheet_proto_init() }@@ -490,7 +574,7 @@ func file_store_sheet_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_sheet_proto_rawDesc,- NumEnums: 1,+ NumEnums: 2,NumMessages: 4,NumExtensions: 0,NumServices: 0,diff --git a/proto/generated-go/v1/schema_design_service.pb.go b/proto/generated-go/v1/schema_design_service.pb.goindex 3a601d9efb..af310f2371 100644--- a/proto/generated-go/v1/schema_design_service.pb.go+++ b/proto/generated-go/v1/schema_design_service.pb.go@@ -24,6 +24,57 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))+type SchemaDesign_Type int32++const (+ SchemaDesign_TYPE_UNSPECIFIED SchemaDesign_Type = 0+ // Main branch type is the main version of schema design. And only allow to be updated/merged with personal drafts.+ SchemaDesign_MAIN_BRANCH SchemaDesign_Type = 1+ // Personal draft type is a copy of the main branch type schema designs.+ SchemaDesign_PERSONAL_DRAFT SchemaDesign_Type = 2+)++// Enum value maps for SchemaDesign_Type.+var (+ SchemaDesign_Type_name = map[int32]string{+ 0: "TYPE_UNSPECIFIED",+ 1: "MAIN_BRANCH",+ 2: "PERSONAL_DRAFT",+ }+ SchemaDesign_Type_value = map[string]int32{+ "TYPE_UNSPECIFIED": 0,+ "MAIN_BRANCH": 1,+ "PERSONAL_DRAFT": 2,+ }+)++func (x SchemaDesign_Type) Enum() *SchemaDesign_Type {+ p := new(SchemaDesign_Type)+ *p = x+ return p+}++func (x SchemaDesign_Type) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (SchemaDesign_Type) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_schema_design_service_proto_enumTypes[0].Descriptor()+}++func (SchemaDesign_Type) Type() protoreflect.EnumType {+ return &file_v1_schema_design_service_proto_enumTypes[0]+}++func (x SchemaDesign_Type) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use SchemaDesign_Type.Descriptor instead.+func (SchemaDesign_Type) EnumDescriptor() ([]byte, []int) {+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{0, 0}+}+type SchemaDesign struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -51,16 +102,20 @@ type SchemaDesign struct {// The selected schema version of the baseline database.// If not specified, the latest schema of database will be used as baseline schema.SchemaVersion string `protobuf:"bytes,9,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`+ // The type of the schema design.+ Type SchemaDesign_Type `protobuf:"varint,10,opt,name=type,proto3,enum=bytebase.v1.SchemaDesign_Type" json:"type,omitempty"`+ // The etag of the schema design.+ Etag string `protobuf:"bytes,11,opt,name=etag,proto3" json:"etag,omitempty"`// The creator of the schema design.// Format: users/{email}- Creator string `protobuf:"bytes,10,opt,name=creator,proto3" json:"creator,omitempty"`+ Creator string `protobuf:"bytes,12,opt,name=creator,proto3" json:"creator,omitempty"`// The updater of the schema design.// Format: users/{email}- Updater string `protobuf:"bytes,11,opt,name=updater,proto3" json:"updater,omitempty"`+ Updater string `protobuf:"bytes,13,opt,name=updater,proto3" json:"updater,omitempty"`// The timestamp when the schema design was created.- CreateTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`+ CreateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`// The timestamp when the schema design was last updated.- UpdateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`+ UpdateTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`}func (x *SchemaDesign) Reset() {@@ -158,6 +213,20 @@ func (x *SchemaDesign) GetSchemaVersion() string {return ""}+func (x *SchemaDesign) GetType() SchemaDesign_Type {+ if x != nil {+ return x.Type+ }+ return SchemaDesign_TYPE_UNSPECIFIED+}++func (x *SchemaDesign) GetEtag() string {+ if x != nil {+ return x.Etag+ }+ return ""+}+func (x *SchemaDesign) GetCreator() string {if x != nil {return x.Creator@@ -244,10 +313,6 @@ type ListSchemaDesignsRequest struct {// Foramt: projects/{project}Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`// To filter the search result.- // Format: only support the following spec for now:- // - `creator = users/{email}`, `creator != users/{email}`- // - `starred = true`, `starred = false`.- // Not support empty filter for now.Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`// The maximum number of schema designs to return. The service may return fewer than// this value.@@ -497,19 +562,69 @@ func (x *UpdateSchemaDesignRequest) GetUpdateMask() *fieldmaskpb.FieldMask {return nil}+type MergeSchemaDesignRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The personal draft schema design to merge.+ SchemaDesign *SchemaDesign `protobuf:"bytes,1,opt,name=schema_design,json=schemaDesign,proto3" json:"schema_design,omitempty"`+}++func (x *MergeSchemaDesignRequest) Reset() {+ *x = MergeSchemaDesignRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_schema_design_service_proto_msgTypes[6]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *MergeSchemaDesignRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*MergeSchemaDesignRequest) ProtoMessage() {}++func (x *MergeSchemaDesignRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_schema_design_service_proto_msgTypes[6]+ if protoimpl.UnsafeEnabled && x != nil {+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ if ms.LoadMessageInfo() == nil {+ ms.StoreMessageInfo(mi)+ }+ return ms+ }+ return mi.MessageOf(x)+}++// Deprecated: Use MergeSchemaDesignRequest.ProtoReflect.Descriptor instead.+func (*MergeSchemaDesignRequest) Descriptor() ([]byte, []int) {+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{6}+}++func (x *MergeSchemaDesignRequest) GetSchemaDesign() *SchemaDesign {+ if x != nil {+ return x.SchemaDesign+ }+ return nil+}+type ParseSchemaStringRequest struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields+ // The schema string to parse.SchemaString string `protobuf:"bytes,1,opt,name=schema_string,json=schemaString,proto3" json:"schema_string,omitempty"`- Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`+ // The database engine of the schema string.+ Engine Engine `protobuf:"varint,2,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`}func (x *ParseSchemaStringRequest) Reset() {*x = ParseSchemaStringRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_schema_design_service_proto_msgTypes[6]+ mi := &file_v1_schema_design_service_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -522,7 +637,7 @@ func (x *ParseSchemaStringRequest) String() string {func (*ParseSchemaStringRequest) ProtoMessage() {}func (x *ParseSchemaStringRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_schema_design_service_proto_msgTypes[6]+ mi := &file_v1_schema_design_service_proto_msgTypes[7]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -535,7 +650,7 @@ func (x *ParseSchemaStringRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use ParseSchemaStringRequest.ProtoReflect.Descriptor instead.func (*ParseSchemaStringRequest) Descriptor() ([]byte, []int) {- return file_v1_schema_design_service_proto_rawDescGZIP(), []int{6}+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{7}}func (x *ParseSchemaStringRequest) GetSchemaString() string {@@ -564,7 +679,7 @@ type ParseSchemaStringResponse struct {func (x *ParseSchemaStringResponse) Reset() {*x = ParseSchemaStringResponse{}if protoimpl.UnsafeEnabled {- mi := &file_v1_schema_design_service_proto_msgTypes[7]+ mi := &file_v1_schema_design_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -577,7 +692,7 @@ func (x *ParseSchemaStringResponse) String() string {func (*ParseSchemaStringResponse) ProtoMessage() {}func (x *ParseSchemaStringResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_schema_design_service_proto_msgTypes[7]+ mi := &file_v1_schema_design_service_proto_msgTypes[8]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -590,7 +705,7 @@ func (x *ParseSchemaStringResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use ParseSchemaStringResponse.ProtoReflect.Descriptor instead.func (*ParseSchemaStringResponse) Descriptor() ([]byte, []int) {- return file_v1_schema_design_service_proto_rawDescGZIP(), []int{7}+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{8}}func (x *ParseSchemaStringResponse) GetSchemaMetadata() *DatabaseMetadata {@@ -613,7 +728,7 @@ type DeleteSchemaDesignRequest struct {func (x *DeleteSchemaDesignRequest) Reset() {*x = DeleteSchemaDesignRequest{}if protoimpl.UnsafeEnabled {- mi := &file_v1_schema_design_service_proto_msgTypes[8]+ mi := &file_v1_schema_design_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -626,7 +741,7 @@ func (x *DeleteSchemaDesignRequest) String() string {func (*DeleteSchemaDesignRequest) ProtoMessage() {}func (x *DeleteSchemaDesignRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_schema_design_service_proto_msgTypes[8]+ mi := &file_v1_schema_design_service_proto_msgTypes[9]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -639,7 +754,7 @@ func (x *DeleteSchemaDesignRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use DeleteSchemaDesignRequest.ProtoReflect.Descriptor instead.func (*DeleteSchemaDesignRequest) Descriptor() ([]byte, []int) {- return file_v1_schema_design_service_proto_rawDescGZIP(), []int{8}+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{9}}func (x *DeleteSchemaDesignRequest) GetName() string {@@ -669,7 +784,7 @@ var file_v1_schema_design_service_proto_rawDesc = []byte{0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62,0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,- 0x6f, 0x22, 0xf6, 0x04, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,+ 0x6f, 0x22, 0x81, 0x06, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,0x67, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x06,@@ -696,136 +811,163 @@ var file_v1_schema_design_service_proto_rawDesc = []byte{0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x0e,0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x09,0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61,- 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07,- 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74,- 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,- 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,- 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72,- 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,- 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,- 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,- 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a,- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x16, 0x47, 0x65,- 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8b, 0x01,- 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,- 0x67, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61,- 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,- 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65,- 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12,- 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01,- 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a,- 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x19,- 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e,- 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x73, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,- 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x0d, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e,- 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02,- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f,- 0x6b, 0x65, 0x6e, 0x22, 0x73, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,+ 0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,+ 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67,+ 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04,+ 0x65, 0x74, 0x61, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67,+ 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28,+ 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12,+ 0x1d, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09,+ 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x72, 0x12, 0x40,+ 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20,+ 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42,+ 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,+ 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,+ 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,+ 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,+ 0x6d, 0x65, 0x22, 0x41, 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, 0x0f, 0x0a, 0x0b, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10,+ 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x44, 0x52,+ 0x41, 0x46, 0x54, 0x10, 0x02, 0x22, 0x31, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,+ 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,+ 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8b, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73,+ 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x52, 0x65,+ 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,+ 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,+ 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,+ 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,+ 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f,+ 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67,+ 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64,+ 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62,+ 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44,+ 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70,+ 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,+ 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x73,+ 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65,+ 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72,+ 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65,+ 0x73, 0x69, 0x67, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44,+ 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73,+ 0x69, 0x67, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,+ 0x74, 0x12, 0x43, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69,+ 0x67, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73,+ 0x69, 0x67, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65,+ 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,+ 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69,+ 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d,+ 0x61, 0x73, 0x6b, 0x22, 0x5f, 0x0a, 0x18, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,+ 0x43, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e,+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67,+ 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65,+ 0x73, 0x69, 0x67, 0x6e, 0x22, 0x71, 0x0a, 0x18, 0x50, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,+ 0x12, 0x28, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,+ 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e,+ 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x62, 0x79, 0x74,+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52,+ 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x68, 0x0a, 0x19, 0x50, 0x61, 0x72, 0x73, 0x65,+ 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70,+ 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6d,+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61,+ 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x03, 0xe0, 0x41,+ 0x03, 0x52, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,+ 0x61, 0x22, 0x34, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17,+ 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,+ 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xfe, 0x08, 0x0a, 0x13, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,+ 0x87, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73,+ 0x69, 0x67, 0x6e, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,+ 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67,+ 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,+ 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73,+ 0x69, 0x67, 0x6e, 0x22, 0x34, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93,+ 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72,+ 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44,+ 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x94, 0x01, 0x0a, 0x11, 0x4c, 0x69,+ 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x12,+ 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,+ 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x52,+ 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44,+ 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30,+ 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,+ 0x2a, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73,+ 0x12, 0xaa, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x19, 0x55, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52,- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x73,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x75,- 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,- 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,- 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70,- 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x71, 0x0a, 0x18, 0x50, 0x61, 0x72, 0x73,- 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,- 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x73,- 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,- 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x2b,- 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13,- 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x67,- 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x22, 0x68, 0x0a, 0x19, 0x50,- 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67,- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x0f, 0x73, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28,- 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,- 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,- 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74,- 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x34, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,- 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,- 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xc5, 0x07, 0x0a, 0x13,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x53, 0x65, 0x72, 0x76,- 0x69, 0x63, 0x65, 0x12, 0x87, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,- 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44,+ 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x51, 0xda, 0x41, 0x13, 0x70,+ 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,+ 0x67, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61,+ 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,+ 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0xbe, 0x01,+ 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65,+ 0x73, 0x69, 0x67, 0x6e, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44,0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62,0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d,- 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x34, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,- 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d,- 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x94, 0x01,- 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,- 0x67, 0x6e, 0x73, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,- 0x67, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74,- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,- 0x73, 0x65, 0x22, 0x30, 0xda, 0x41, 0x00, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65,- 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73,- 0x69, 0x67, 0x6e, 0x73, 0x12, 0xaa, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x26, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75,- 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,- 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x51,- 0xda, 0x41, 0x13, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x0d, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x24, 0x2f, 0x76, 0x31,- 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,- 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67,- 0x6e, 0x12, 0xbe, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x68,- 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,- 0x1a, 0x19, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,- 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x65, 0xda, 0x41, 0x18,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x2c, 0x75, 0x70, 0x64,- 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x3a, 0x0d,- 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x32, 0x33, 0x2f,- 0x76, 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67,- 0x6e, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f,- 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x2f,- 0x2a, 0x7d, 0x12, 0x91, 0x01, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,- 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,- 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,- 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61,- 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52,- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a,- 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65,- 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x70, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x8a, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74,- 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x26, 0x2e,- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65,- 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65,- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x34, 0xda,- 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x2a, 0x25, 0x2f, 0x76,- 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,- 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73,- 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64,- 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x65, 0xda, 0x41, 0x18, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,+ 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x3a, 0x0d, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x32, 0x33, 0x2f, 0x76, 0x31, 0x2f, 0x7b,+ 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x6e, 0x61,+ 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb6,+ 0x01, 0x0a, 0x11, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65,+ 0x73, 0x69, 0x67, 0x6e, 0x12, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x72, 0x67, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65,+ 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x62, 0x79,+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,+ 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x5f, 0xda, 0x41, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d,+ 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x3a, 0x0d, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x39, 0x2f, 0x76,+ 0x31, 0x2f, 0x7b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e,+ 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a,+ 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x73, 0x2f, 0x2a,+ 0x7d, 0x3a, 0x6d, 0x65, 0x72, 0x67, 0x65, 0x12, 0x91, 0x01, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x73,+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x2e,+ 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73,+ 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,+ 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74,+ 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3,+ 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x01, 0x2a, 0x22, 0x22, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68,+ 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x70, 0x61, 0x72, 0x73, 0x65, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x8a, 0x01, 0x0a, 0x12,+ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,+ 0x67, 0x6e, 0x12, 0x26, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31,+ 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73,+ 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f,+ 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,+ 0x74, 0x79, 0x22, 0x34, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02,+ 0x27, 0x2a, 0x25, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,+ 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65,+ 0x73, 0x69, 0x67, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65,+ 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,+ 0x74, 0x6f, 0x33,}var (@@ -840,52 +982,59 @@ func file_v1_schema_design_service_proto_rawDescGZIP() []byte {return file_v1_schema_design_service_proto_rawDescData}-var file_v1_schema_design_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9)+var file_v1_schema_design_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)+var file_v1_schema_design_service_proto_msgTypes = make([]protoimpl.MessageInfo, 10)var file_v1_schema_design_service_proto_goTypes = []interface{}{- (*SchemaDesign)(nil), // 0: bytebase.v1.SchemaDesign- (*GetSchemaDesignRequest)(nil), // 1: bytebase.v1.GetSchemaDesignRequest- (*ListSchemaDesignsRequest)(nil), // 2: bytebase.v1.ListSchemaDesignsRequest- (*ListSchemaDesignsResponse)(nil), // 3: bytebase.v1.ListSchemaDesignsResponse- (*CreateSchemaDesignRequest)(nil), // 4: bytebase.v1.CreateSchemaDesignRequest- (*UpdateSchemaDesignRequest)(nil), // 5: bytebase.v1.UpdateSchemaDesignRequest- (*ParseSchemaStringRequest)(nil), // 6: bytebase.v1.ParseSchemaStringRequest- (*ParseSchemaStringResponse)(nil), // 7: bytebase.v1.ParseSchemaStringResponse- (*DeleteSchemaDesignRequest)(nil), // 8: bytebase.v1.DeleteSchemaDesignRequest- (*DatabaseMetadata)(nil), // 9: bytebase.v1.DatabaseMetadata- (Engine)(0), // 10: bytebase.v1.Engine- (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp- (*fieldmaskpb.FieldMask)(nil), // 12: google.protobuf.FieldMask- (*emptypb.Empty)(nil), // 13: google.protobuf.Empty+ (SchemaDesign_Type)(0), // 0: bytebase.v1.SchemaDesign.Type+ (*SchemaDesign)(nil), // 1: bytebase.v1.SchemaDesign+ (*GetSchemaDesignRequest)(nil), // 2: bytebase.v1.GetSchemaDesignRequest+ (*ListSchemaDesignsRequest)(nil), // 3: bytebase.v1.ListSchemaDesignsRequest+ (*ListSchemaDesignsResponse)(nil), // 4: bytebase.v1.ListSchemaDesignsResponse+ (*CreateSchemaDesignRequest)(nil), // 5: bytebase.v1.CreateSchemaDesignRequest+ (*UpdateSchemaDesignRequest)(nil), // 6: bytebase.v1.UpdateSchemaDesignRequest+ (*MergeSchemaDesignRequest)(nil), // 7: bytebase.v1.MergeSchemaDesignRequest+ (*ParseSchemaStringRequest)(nil), // 8: bytebase.v1.ParseSchemaStringRequest+ (*ParseSchemaStringResponse)(nil), // 9: bytebase.v1.ParseSchemaStringResponse+ (*DeleteSchemaDesignRequest)(nil), // 10: bytebase.v1.DeleteSchemaDesignRequest+ (*DatabaseMetadata)(nil), // 11: bytebase.v1.DatabaseMetadata+ (Engine)(0), // 12: bytebase.v1.Engine+ (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp+ (*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask+ (*emptypb.Empty)(nil), // 15: google.protobuf.Empty}var file_v1_schema_design_service_proto_depIdxs = []int32{- 9, // 0: bytebase.v1.SchemaDesign.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata- 9, // 1: bytebase.v1.SchemaDesign.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata- 10, // 2: bytebase.v1.SchemaDesign.engine:type_name -> bytebase.v1.Engine- 11, // 3: bytebase.v1.SchemaDesign.create_time:type_name -> google.protobuf.Timestamp- 11, // 4: bytebase.v1.SchemaDesign.update_time:type_name -> google.protobuf.Timestamp- 0, // 5: bytebase.v1.ListSchemaDesignsResponse.schema_designs:type_name -> bytebase.v1.SchemaDesign- 0, // 6: bytebase.v1.CreateSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign- 0, // 7: bytebase.v1.UpdateSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign- 12, // 8: bytebase.v1.UpdateSchemaDesignRequest.update_mask:type_name -> google.protobuf.FieldMask- 10, // 9: bytebase.v1.ParseSchemaStringRequest.engine:type_name -> bytebase.v1.Engine- 9, // 10: bytebase.v1.ParseSchemaStringResponse.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata- 1, // 11: bytebase.v1.SchemaDesignService.GetSchemaDesign:input_type -> bytebase.v1.GetSchemaDesignRequest- 2, // 12: bytebase.v1.SchemaDesignService.ListSchemaDesigns:input_type -> bytebase.v1.ListSchemaDesignsRequest- 4, // 13: bytebase.v1.SchemaDesignService.CreateSchemaDesign:input_type -> bytebase.v1.CreateSchemaDesignRequest- 5, // 14: bytebase.v1.SchemaDesignService.UpdateSchemaDesign:input_type -> bytebase.v1.UpdateSchemaDesignRequest- 6, // 15: bytebase.v1.SchemaDesignService.ParseSchemaString:input_type -> bytebase.v1.ParseSchemaStringRequest- 8, // 16: bytebase.v1.SchemaDesignService.DeleteSchemaDesign:input_type -> bytebase.v1.DeleteSchemaDesignRequest- 0, // 17: bytebase.v1.SchemaDesignService.GetSchemaDesign:output_type -> bytebase.v1.SchemaDesign- 3, // 18: bytebase.v1.SchemaDesignService.ListSchemaDesigns:output_type -> bytebase.v1.ListSchemaDesignsResponse- 0, // 19: bytebase.v1.SchemaDesignService.CreateSchemaDesign:output_type -> bytebase.v1.SchemaDesign- 0, // 20: bytebase.v1.SchemaDesignService.UpdateSchemaDesign:output_type -> bytebase.v1.SchemaDesign- 7, // 21: bytebase.v1.SchemaDesignService.ParseSchemaString:output_type -> bytebase.v1.ParseSchemaStringResponse- 13, // 22: bytebase.v1.SchemaDesignService.DeleteSchemaDesign:output_type -> google.protobuf.Empty- 17, // [17:23] is the sub-list for method output_type- 11, // [11:17] is the sub-list for method input_type- 11, // [11:11] is the sub-list for extension type_name- 11, // [11:11] is the sub-list for extension extendee- 0, // [0:11] is the sub-list for field type_name+ 11, // 0: bytebase.v1.SchemaDesign.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 11, // 1: bytebase.v1.SchemaDesign.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 12, // 2: bytebase.v1.SchemaDesign.engine:type_name -> bytebase.v1.Engine+ 0, // 3: bytebase.v1.SchemaDesign.type:type_name -> bytebase.v1.SchemaDesign.Type+ 13, // 4: bytebase.v1.SchemaDesign.create_time:type_name -> google.protobuf.Timestamp+ 13, // 5: bytebase.v1.SchemaDesign.update_time:type_name -> google.protobuf.Timestamp+ 1, // 6: bytebase.v1.ListSchemaDesignsResponse.schema_designs:type_name -> bytebase.v1.SchemaDesign+ 1, // 7: bytebase.v1.CreateSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign+ 1, // 8: bytebase.v1.UpdateSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign+ 14, // 9: bytebase.v1.UpdateSchemaDesignRequest.update_mask:type_name -> google.protobuf.FieldMask+ 1, // 10: bytebase.v1.MergeSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign+ 12, // 11: bytebase.v1.ParseSchemaStringRequest.engine:type_name -> bytebase.v1.Engine+ 11, // 12: bytebase.v1.ParseSchemaStringResponse.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 2, // 13: bytebase.v1.SchemaDesignService.GetSchemaDesign:input_type -> bytebase.v1.GetSchemaDesignRequest+ 3, // 14: bytebase.v1.SchemaDesignService.ListSchemaDesigns:input_type -> bytebase.v1.ListSchemaDesignsRequest+ 5, // 15: bytebase.v1.SchemaDesignService.CreateSchemaDesign:input_type -> bytebase.v1.CreateSchemaDesignRequest+ 6, // 16: bytebase.v1.SchemaDesignService.UpdateSchemaDesign:input_type -> bytebase.v1.UpdateSchemaDesignRequest+ 7, // 17: bytebase.v1.SchemaDesignService.MergeSchemaDesign:input_type -> bytebase.v1.MergeSchemaDesignRequest+ 8, // 18: bytebase.v1.SchemaDesignService.ParseSchemaString:input_type -> bytebase.v1.ParseSchemaStringRequest+ 10, // 19: bytebase.v1.SchemaDesignService.DeleteSchemaDesign:input_type -> bytebase.v1.DeleteSchemaDesignRequest+ 1, // 20: bytebase.v1.SchemaDesignService.GetSchemaDesign:output_type -> bytebase.v1.SchemaDesign+ 4, // 21: bytebase.v1.SchemaDesignService.ListSchemaDesigns:output_type -> bytebase.v1.ListSchemaDesignsResponse+ 1, // 22: bytebase.v1.SchemaDesignService.CreateSchemaDesign:output_type -> bytebase.v1.SchemaDesign+ 1, // 23: bytebase.v1.SchemaDesignService.UpdateSchemaDesign:output_type -> bytebase.v1.SchemaDesign+ 1, // 24: bytebase.v1.SchemaDesignService.MergeSchemaDesign:output_type -> bytebase.v1.SchemaDesign+ 9, // 25: bytebase.v1.SchemaDesignService.ParseSchemaString:output_type -> bytebase.v1.ParseSchemaStringResponse+ 15, // 26: bytebase.v1.SchemaDesignService.DeleteSchemaDesign:output_type -> google.protobuf.Empty+ 20, // [20:27] is the sub-list for method output_type+ 13, // [13:20] is the sub-list for method input_type+ 13, // [13:13] is the sub-list for extension type_name+ 13, // [13:13] is the sub-list for extension extendee+ 0, // [0:13] is the sub-list for field type_name}func init() { file_v1_schema_design_service_proto_init() }@@ -969,7 +1118,7 @@ func file_v1_schema_design_service_proto_init() {}}file_v1_schema_design_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ParseSchemaStringRequest); i {+ switch v := v.(*MergeSchemaDesignRequest); i {case 0:return &v.statecase 1:@@ -981,7 +1130,7 @@ func file_v1_schema_design_service_proto_init() {}}file_v1_schema_design_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*ParseSchemaStringResponse); i {+ switch v := v.(*ParseSchemaStringRequest); i {case 0:return &v.statecase 1:@@ -993,6 +1142,18 @@ func file_v1_schema_design_service_proto_init() {}}file_v1_schema_design_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*ParseSchemaStringResponse); i {+ case 0:+ return &v.state+ case 1:+ return &v.sizeCache+ case 2:+ return &v.unknownFields+ default:+ return nil+ }+ }+ file_v1_schema_design_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*DeleteSchemaDesignRequest); i {case 0:return &v.state@@ -1010,13 +1171,14 @@ func file_v1_schema_design_service_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_schema_design_service_proto_rawDesc,- NumEnums: 0,- NumMessages: 9,+ NumEnums: 1,+ NumMessages: 10,NumExtensions: 0,NumServices: 1,},GoTypes: file_v1_schema_design_service_proto_goTypes,DependencyIndexes: file_v1_schema_design_service_proto_depIdxs,+ EnumInfos: file_v1_schema_design_service_proto_enumTypes,MessageInfos: file_v1_schema_design_service_proto_msgTypes,}.Build()File_v1_schema_design_service_proto = out.Filediff --git a/proto/generated-go/v1/schema_design_service.pb.gw.go b/proto/generated-go/v1/schema_design_service.pb.gw.goindex f90f54a131..6ed2af3e55 100644--- a/proto/generated-go/v1/schema_design_service.pb.gw.go+++ b/proto/generated-go/v1/schema_design_service.pb.gw.go@@ -321,6 +321,74 @@ func local_request_SchemaDesignService_UpdateSchemaDesign_0(ctx context.Context,}+func request_SchemaDesignService_MergeSchemaDesign_0(ctx context.Context, marshaler runtime.Marshaler, client SchemaDesignServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq MergeSchemaDesignRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.SchemaDesign); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["schema_design.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schema_design.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "schema_design.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schema_design.name", err)+ }++ msg, err := client.MergeSchemaDesign(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_SchemaDesignService_MergeSchemaDesign_0(ctx context.Context, marshaler runtime.Marshaler, server SchemaDesignServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq MergeSchemaDesignRequest+ var metadata runtime.ServerMetadata++ newReader, berr := utilities.IOReaderFactory(req.Body)+ if berr != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)+ }+ if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.SchemaDesign); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ var (+ val string+ ok bool+ err error+ _ = err+ )++ val, ok = pathParams["schema_design.name"]+ if !ok {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "schema_design.name")+ }++ err = runtime.PopulateFieldFromPath(&protoReq, "schema_design.name", val)+ if err != nil {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "schema_design.name", err)+ }++ msg, err := server.MergeSchemaDesign(ctx, &protoReq)+ return msg, metadata, err++}+func request_SchemaDesignService_ParseSchemaString_0(ctx context.Context, marshaler runtime.Marshaler, client SchemaDesignServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {var protoReq ParseSchemaStringRequestvar metadata runtime.ServerMetadata@@ -513,6 +581,31 @@ func RegisterSchemaDesignServiceHandlerServer(ctx context.Context, mux *runtime.})+ mux.Handle("POST", pattern_SchemaDesignService_MergeSchemaDesign_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ var stream runtime.ServerTransportStream+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.SchemaDesignService/MergeSchemaDesign", runtime.WithHTTPPathPattern("/v1/{schema_design.name=projects/*/schemaDesigns/*}:merge"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_SchemaDesignService_MergeSchemaDesign_0(annotatedContext, inboundMarshaler, server, req, pathParams)+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_SchemaDesignService_MergeSchemaDesign_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+mux.Handle("POST", pattern_SchemaDesignService_ParseSchemaString_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -692,6 +785,28 @@ func RegisterSchemaDesignServiceHandlerClient(ctx context.Context, mux *runtime.})+ mux.Handle("POST", pattern_SchemaDesignService_MergeSchemaDesign_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {+ ctx, cancel := context.WithCancel(req.Context())+ defer cancel()+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)+ var err error+ var annotatedContext context.Context+ annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.SchemaDesignService/MergeSchemaDesign", runtime.WithHTTPPathPattern("/v1/{schema_design.name=projects/*/schemaDesigns/*}:merge"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_SchemaDesignService_MergeSchemaDesign_0(annotatedContext, inboundMarshaler, client, req, pathParams)+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)+ if err != nil {+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)+ return+ }++ forward_SchemaDesignService_MergeSchemaDesign_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+mux.Handle("POST", pattern_SchemaDesignService_ParseSchemaString_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -748,6 +863,8 @@ var (pattern_SchemaDesignService_UpdateSchemaDesign_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "schemaDesigns", "schema_design.name"}, ""))+ pattern_SchemaDesignService_MergeSchemaDesign_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "schemaDesigns", "schema_design.name"}, "merge"))+pattern_SchemaDesignService_ParseSchemaString_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "schemaDesign"}, "parseSchemaString"))pattern_SchemaDesignService_DeleteSchemaDesign_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "schemaDesigns", "name"}, ""))@@ -762,6 +879,8 @@ var (forward_SchemaDesignService_UpdateSchemaDesign_0 = runtime.ForwardResponseMessage+ forward_SchemaDesignService_MergeSchemaDesign_0 = runtime.ForwardResponseMessage+forward_SchemaDesignService_ParseSchemaString_0 = runtime.ForwardResponseMessageforward_SchemaDesignService_DeleteSchemaDesign_0 = runtime.ForwardResponseMessagediff --git a/proto/generated-go/v1/schema_design_service_grpc.pb.go b/proto/generated-go/v1/schema_design_service_grpc.pb.goindex 94469e16d1..17bb3e2259 100644--- a/proto/generated-go/v1/schema_design_service_grpc.pb.go+++ b/proto/generated-go/v1/schema_design_service_grpc.pb.go@@ -24,6 +24,7 @@ const (SchemaDesignService_ListSchemaDesigns_FullMethodName = "/bytebase.v1.SchemaDesignService/ListSchemaDesigns"SchemaDesignService_CreateSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/CreateSchemaDesign"SchemaDesignService_UpdateSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/UpdateSchemaDesign"+ SchemaDesignService_MergeSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/MergeSchemaDesign"SchemaDesignService_ParseSchemaString_FullMethodName = "/bytebase.v1.SchemaDesignService/ParseSchemaString"SchemaDesignService_DeleteSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/DeleteSchemaDesign")@@ -36,6 +37,7 @@ type SchemaDesignServiceClient interface {ListSchemaDesigns(ctx context.Context, in *ListSchemaDesignsRequest, opts ...grpc.CallOption) (*ListSchemaDesignsResponse, error)CreateSchemaDesign(ctx context.Context, in *CreateSchemaDesignRequest, opts ...grpc.CallOption) (*SchemaDesign, error)UpdateSchemaDesign(ctx context.Context, in *UpdateSchemaDesignRequest, opts ...grpc.CallOption) (*SchemaDesign, error)+ MergeSchemaDesign(ctx context.Context, in *MergeSchemaDesignRequest, opts ...grpc.CallOption) (*SchemaDesign, error)ParseSchemaString(ctx context.Context, in *ParseSchemaStringRequest, opts ...grpc.CallOption) (*ParseSchemaStringResponse, error)DeleteSchemaDesign(ctx context.Context, in *DeleteSchemaDesignRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)}@@ -84,6 +86,15 @@ func (c *schemaDesignServiceClient) UpdateSchemaDesign(ctx context.Context, in *return out, nil}+func (c *schemaDesignServiceClient) MergeSchemaDesign(ctx context.Context, in *MergeSchemaDesignRequest, opts ...grpc.CallOption) (*SchemaDesign, error) {+ out := new(SchemaDesign)+ err := c.cc.Invoke(ctx, SchemaDesignService_MergeSchemaDesign_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}+func (c *schemaDesignServiceClient) ParseSchemaString(ctx context.Context, in *ParseSchemaStringRequest, opts ...grpc.CallOption) (*ParseSchemaStringResponse, error) {out := new(ParseSchemaStringResponse)err := c.cc.Invoke(ctx, SchemaDesignService_ParseSchemaString_FullMethodName, in, out, opts...)@@ -110,6 +121,7 @@ type SchemaDesignServiceServer interface {ListSchemaDesigns(context.Context, *ListSchemaDesignsRequest) (*ListSchemaDesignsResponse, error)CreateSchemaDesign(context.Context, *CreateSchemaDesignRequest) (*SchemaDesign, error)UpdateSchemaDesign(context.Context, *UpdateSchemaDesignRequest) (*SchemaDesign, error)+ MergeSchemaDesign(context.Context, *MergeSchemaDesignRequest) (*SchemaDesign, error)ParseSchemaString(context.Context, *ParseSchemaStringRequest) (*ParseSchemaStringResponse, error)DeleteSchemaDesign(context.Context, *DeleteSchemaDesignRequest) (*emptypb.Empty, error)mustEmbedUnimplementedSchemaDesignServiceServer()@@ -131,6 +143,9 @@ func (UnimplementedSchemaDesignServiceServer) CreateSchemaDesign(context.Contextfunc (UnimplementedSchemaDesignServiceServer) UpdateSchemaDesign(context.Context, *UpdateSchemaDesignRequest) (*SchemaDesign, error) {return nil, status.Errorf(codes.Unimplemented, "method UpdateSchemaDesign not implemented")}+func (UnimplementedSchemaDesignServiceServer) MergeSchemaDesign(context.Context, *MergeSchemaDesignRequest) (*SchemaDesign, error) {+ return nil, status.Errorf(codes.Unimplemented, "method MergeSchemaDesign not implemented")+}func (UnimplementedSchemaDesignServiceServer) ParseSchemaString(context.Context, *ParseSchemaStringRequest) (*ParseSchemaStringResponse, error) {return nil, status.Errorf(codes.Unimplemented, "method ParseSchemaString not implemented")}@@ -222,6 +237,24 @@ func _SchemaDesignService_UpdateSchemaDesign_Handler(srv interface{}, ctx contexreturn interceptor(ctx, in, info, handler)}+func _SchemaDesignService_MergeSchemaDesign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(MergeSchemaDesignRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(SchemaDesignServiceServer).MergeSchemaDesign(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: SchemaDesignService_MergeSchemaDesign_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(SchemaDesignServiceServer).MergeSchemaDesign(ctx, req.(*MergeSchemaDesignRequest))+ }+ return interceptor(ctx, in, info, handler)+}+func _SchemaDesignService_ParseSchemaString_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(ParseSchemaStringRequest)if err := dec(in); err != nil {@@ -281,6 +314,10 @@ var SchemaDesignService_ServiceDesc = grpc.ServiceDesc{MethodName: "UpdateSchemaDesign",Handler: _SchemaDesignService_UpdateSchemaDesign_Handler,},+ {+ MethodName: "MergeSchemaDesign",+ Handler: _SchemaDesignService_MergeSchemaDesign_Handler,+ },{MethodName: "ParseSchemaString",Handler: _SchemaDesignService_ParseSchemaString_Handler,diff --git a/proto/v1/schema_design_service.proto b/proto/v1/schema_design_service.protoindex 23e345765e..980381f473 100644--- a/proto/v1/schema_design_service.proto+++ b/proto/v1/schema_design_service.proto@@ -133,10 +133,6 @@ message ListSchemaDesignsRequest {string parent = 1 [(google.api.field_behavior) = REQUIRED];// To filter the search result.- // Format: only support the following spec for now:- // - `creator = users/{email}`, `creator != users/{email}`- // - `starred = true`, `starred = false`.- // Not support empty filter for now.string filter = 2;// The maximum number of schema designs to return. The service may return fewer than@@ -187,8 +183,10 @@ message MergeSchemaDesignRequest {}message ParseSchemaStringRequest {+ // The schema string to parse.string schema_string = 1 [(google.api.field_behavior) = REQUIRED];+ // The database engine of the schema string.Engine engine = 2;}