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: add diff metadata definition (#8327)
boojacka39e5212fb35
diff --git a/frontend/src/types/proto/v1/schema_design_service.ts b/frontend/src/types/proto/v1/schema_design_service.tsindex dce1c3f425..ff6eca38de 100644--- a/frontend/src/types/proto/v1/schema_design_service.ts+++ b/frontend/src/types/proto/v1/schema_design_service.ts@@ -217,6 +217,24 @@ export interface DeleteSchemaDesignRequest {name: string;}+export interface DiffMetadataRequest {+ /** The metadata of the source schema. */+ sourceMetadata?:+ | DatabaseMetadata+ | undefined;+ /** The metadata of the target schema. */+ targetMetadata?:+ | DatabaseMetadata+ | undefined;+ /** The database engine of the schema. */+ engine: Engine;+}++export interface DiffMetadataResponse {+ /** The diff of the metadata. */+ diff: string;+}+function createBaseSchemaDesign(): SchemaDesign {return {name: "",@@ -1209,6 +1227,152 @@ export const DeleteSchemaDesignRequest = {},};+function createBaseDiffMetadataRequest(): DiffMetadataRequest {+ return { sourceMetadata: undefined, targetMetadata: undefined, engine: 0 };+}++export const DiffMetadataRequest = {+ encode(message: DiffMetadataRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.sourceMetadata !== undefined) {+ DatabaseMetadata.encode(message.sourceMetadata, writer.uint32(10).fork()).ldelim();+ }+ if (message.targetMetadata !== undefined) {+ DatabaseMetadata.encode(message.targetMetadata, writer.uint32(18).fork()).ldelim();+ }+ if (message.engine !== 0) {+ writer.uint32(24).int32(message.engine);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DiffMetadataRequest {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDiffMetadataRequest();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.sourceMetadata = DatabaseMetadata.decode(reader, reader.uint32());+ continue;+ case 2:+ if (tag !== 18) {+ break;+ }++ message.targetMetadata = DatabaseMetadata.decode(reader, reader.uint32());+ continue;+ case 3:+ if (tag !== 24) {+ break;+ }++ message.engine = reader.int32() as any;+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DiffMetadataRequest {+ return {+ sourceMetadata: isSet(object.sourceMetadata) ? DatabaseMetadata.fromJSON(object.sourceMetadata) : undefined,+ targetMetadata: isSet(object.targetMetadata) ? DatabaseMetadata.fromJSON(object.targetMetadata) : undefined,+ engine: isSet(object.engine) ? engineFromJSON(object.engine) : 0,+ };+ },++ toJSON(message: DiffMetadataRequest): unknown {+ const obj: any = {};+ message.sourceMetadata !== undefined &&+ (obj.sourceMetadata = message.sourceMetadata ? DatabaseMetadata.toJSON(message.sourceMetadata) : undefined);+ message.targetMetadata !== undefined &&+ (obj.targetMetadata = message.targetMetadata ? DatabaseMetadata.toJSON(message.targetMetadata) : undefined);+ message.engine !== undefined && (obj.engine = engineToJSON(message.engine));+ return obj;+ },++ create(base?: DeepPartial<DiffMetadataRequest>): DiffMetadataRequest {+ return DiffMetadataRequest.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<DiffMetadataRequest>): DiffMetadataRequest {+ const message = createBaseDiffMetadataRequest();+ message.sourceMetadata = (object.sourceMetadata !== undefined && object.sourceMetadata !== null)+ ? DatabaseMetadata.fromPartial(object.sourceMetadata)+ : undefined;+ message.targetMetadata = (object.targetMetadata !== undefined && object.targetMetadata !== null)+ ? DatabaseMetadata.fromPartial(object.targetMetadata)+ : undefined;+ message.engine = object.engine ?? 0;+ return message;+ },+};++function createBaseDiffMetadataResponse(): DiffMetadataResponse {+ return { diff: "" };+}++export const DiffMetadataResponse = {+ encode(message: DiffMetadataResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {+ if (message.diff !== "") {+ writer.uint32(10).string(message.diff);+ }+ return writer;+ },++ decode(input: _m0.Reader | Uint8Array, length?: number): DiffMetadataResponse {+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);+ let end = length === undefined ? reader.len : reader.pos + length;+ const message = createBaseDiffMetadataResponse();+ while (reader.pos < end) {+ const tag = reader.uint32();+ switch (tag >>> 3) {+ case 1:+ if (tag !== 10) {+ break;+ }++ message.diff = reader.string();+ continue;+ }+ if ((tag & 7) === 4 || tag === 0) {+ break;+ }+ reader.skipType(tag & 7);+ }+ return message;+ },++ fromJSON(object: any): DiffMetadataResponse {+ return { diff: isSet(object.diff) ? String(object.diff) : "" };+ },++ toJSON(message: DiffMetadataResponse): unknown {+ const obj: any = {};+ message.diff !== undefined && (obj.diff = message.diff);+ return obj;+ },++ create(base?: DeepPartial<DiffMetadataResponse>): DiffMetadataResponse {+ return DiffMetadataResponse.fromPartial(base ?? {});+ },++ fromPartial(object: DeepPartial<DiffMetadataResponse>): DiffMetadataResponse {+ const message = createBaseDiffMetadataResponse();+ message.diff = object.diff ?? "";+ return message;+ },+};+export type SchemaDesignServiceDefinition = typeof SchemaDesignServiceDefinition;export const SchemaDesignServiceDefinition = {name: "SchemaDesignService",@@ -1707,6 +1871,56 @@ export const SchemaDesignServiceDefinition = {},},},+ diffMetadata: {+ name: "DiffMetadata",+ requestType: ParseSchemaStringRequest,+ requestStream: false,+ responseType: ParseSchemaStringResponse,+ responseStream: false,+ options: {+ _unknownFields: {+ 578365826: [+ new Uint8Array([+ 34,+ 58,+ 1,+ 42,+ 34,+ 29,+ 47,+ 118,+ 49,+ 47,+ 115,+ 99,+ 104,+ 101,+ 109,+ 97,+ 68,+ 101,+ 115,+ 105,+ 103,+ 110,+ 58,+ 100,+ 105,+ 102,+ 102,+ 77,+ 101,+ 116,+ 97,+ 100,+ 97,+ 116,+ 97,+ ]),+ ],+ },+ },+ },},} as const;diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex d697048cd8..4d7102452a 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -503,6 +503,8 @@- [v1/schema_design_service.proto](#v1_schema_design_service-proto)- [CreateSchemaDesignRequest](#bytebase-v1-CreateSchemaDesignRequest)- [DeleteSchemaDesignRequest](#bytebase-v1-DeleteSchemaDesignRequest)+ - [DiffMetadataRequest](#bytebase-v1-DiffMetadataRequest)+ - [DiffMetadataResponse](#bytebase-v1-DiffMetadataResponse)- [GetSchemaDesignRequest](#bytebase-v1-GetSchemaDesignRequest)- [ListSchemaDesignsRequest](#bytebase-v1-ListSchemaDesignsRequest)- [ListSchemaDesignsResponse](#bytebase-v1-ListSchemaDesignsResponse)@@ -8143,6 +8145,38 @@ Type is the database change type.+<a name="bytebase-v1-DiffMetadataRequest"></a>++### DiffMetadataRequest++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| source_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the source schema. |+| target_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the target schema. |+| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema. |+++++++<a name="bytebase-v1-DiffMetadataResponse"></a>++### DiffMetadataResponse++++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| diff | [string](#string) | | The diff of the metadata. |++++++<a name="bytebase-v1-GetSchemaDesignRequest"></a>### GetSchemaDesignRequest@@ -8338,6 +8372,7 @@ The schema design's `name` field is used to identify the schema design to up| 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) | |+| DiffMetadata | [ParseSchemaStringRequest](#bytebase-v1-ParseSchemaStringRequest) | [ParseSchemaStringResponse](#bytebase-v1-ParseSchemaStringResponse) | |diff --git a/proto/generated-go/v1/schema_design_service.pb.go b/proto/generated-go/v1/schema_design_service.pb.goindex 3ccb8adee2..db90328af1 100644--- a/proto/generated-go/v1/schema_design_service.pb.go+++ b/proto/generated-go/v1/schema_design_service.pb.go@@ -794,6 +794,120 @@ func (x *DeleteSchemaDesignRequest) GetName() string {return ""}+type DiffMetadataRequest struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The metadata of the source schema.+ SourceMetadata *DatabaseMetadata `protobuf:"bytes,1,opt,name=source_metadata,json=sourceMetadata,proto3" json:"source_metadata,omitempty"`+ // The metadata of the target schema.+ TargetMetadata *DatabaseMetadata `protobuf:"bytes,2,opt,name=target_metadata,json=targetMetadata,proto3" json:"target_metadata,omitempty"`+ // The database engine of the schema.+ Engine Engine `protobuf:"varint,3,opt,name=engine,proto3,enum=bytebase.v1.Engine" json:"engine,omitempty"`+}++func (x *DiffMetadataRequest) Reset() {+ *x = DiffMetadataRequest{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_schema_design_service_proto_msgTypes[10]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DiffMetadataRequest) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DiffMetadataRequest) ProtoMessage() {}++func (x *DiffMetadataRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_schema_design_service_proto_msgTypes[10]+ 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 DiffMetadataRequest.ProtoReflect.Descriptor instead.+func (*DiffMetadataRequest) Descriptor() ([]byte, []int) {+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{10}+}++func (x *DiffMetadataRequest) GetSourceMetadata() *DatabaseMetadata {+ if x != nil {+ return x.SourceMetadata+ }+ return nil+}++func (x *DiffMetadataRequest) GetTargetMetadata() *DatabaseMetadata {+ if x != nil {+ return x.TargetMetadata+ }+ return nil+}++func (x *DiffMetadataRequest) GetEngine() Engine {+ if x != nil {+ return x.Engine+ }+ return Engine_ENGINE_UNSPECIFIED+}++type DiffMetadataResponse struct {+ state protoimpl.MessageState+ sizeCache protoimpl.SizeCache+ unknownFields protoimpl.UnknownFields++ // The diff of the metadata.+ Diff string `protobuf:"bytes,1,opt,name=diff,proto3" json:"diff,omitempty"`+}++func (x *DiffMetadataResponse) Reset() {+ *x = DiffMetadataResponse{}+ if protoimpl.UnsafeEnabled {+ mi := &file_v1_schema_design_service_proto_msgTypes[11]+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))+ ms.StoreMessageInfo(mi)+ }+}++func (x *DiffMetadataResponse) String() string {+ return protoimpl.X.MessageStringOf(x)+}++func (*DiffMetadataResponse) ProtoMessage() {}++func (x *DiffMetadataResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_schema_design_service_proto_msgTypes[11]+ 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 DiffMetadataResponse.ProtoReflect.Descriptor instead.+func (*DiffMetadataResponse) Descriptor() ([]byte, []int) {+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{11}+}++func (x *DiffMetadataResponse) GetDiff() string {+ if x != nil {+ return x.Diff+ }+ return ""+}+type SchemaDesign_Protection struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -806,7 +920,7 @@ type SchemaDesign_Protection struct {func (x *SchemaDesign_Protection) Reset() {*x = SchemaDesign_Protection{}if protoimpl.UnsafeEnabled {- mi := &file_v1_schema_design_service_proto_msgTypes[10]+ mi := &file_v1_schema_design_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -819,7 +933,7 @@ func (x *SchemaDesign_Protection) String() string {func (*SchemaDesign_Protection) ProtoMessage() {}func (x *SchemaDesign_Protection) ProtoReflect() protoreflect.Message {- mi := &file_v1_schema_design_service_proto_msgTypes[10]+ mi := &file_v1_schema_design_service_proto_msgTypes[12]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -986,79 +1100,104 @@ var file_v1_schema_design_service_proto_rawDesc = []byte{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, 0xe7, 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,+ 0x6d, 0x65, 0x22, 0xdc, 0x01, 0x0a, 0x13, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64,+ 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0f, 0x73, 0x6f,+ 0x75, 0x72, 0x63, 0x65, 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, 0x02, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d,+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x4b, 0x0a, 0x0f, 0x74, 0x61, 0x72, 0x67, 0x65,+ 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 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, 0x02, 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61,+ 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x03,+ 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, 0x2a, 0x0a, 0x14, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,+ 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x69, 0x66,+ 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x69, 0x66, 0x66, 0x32, 0xf1, 0x09,+ 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, 0xab, 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, 0x52, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x73, 0x63, 0x68, 0x65,+ 0x6d, 0x61, 0x5f, 0x64, 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, 0xbf, 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, 0xab, 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, 0x52, 0xda, 0x41, 0x14, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,- 0x2c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 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, 0xbf, 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, 0x66, 0xda, 0x41, 0x19, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64,- 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, 0x9d, 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, 0x46, 0xda, 0x41, 0x10, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x74, 0x61, 0x72,- 0x67, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x22, 0x2b,- 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, 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,+ 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x66,+ 0xda, 0x41, 0x19, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 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, 0x9d, 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, 0x46,+ 0xda, 0x41, 0x10, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6e,+ 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x22, 0x2b, 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,+ 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, 0x12, 0x87, 0x01, 0x0a, 0x0c, 0x44, 0x69, 0x66, 0x66,+ 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 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, 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,+ 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, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x3a,+ 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65,+ 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x64, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,+ 0x61, 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 (@@ -1074,7 +1213,7 @@ func file_v1_schema_design_service_proto_rawDescGZIP() []byte {}var file_v1_schema_design_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_v1_schema_design_service_proto_msgTypes = make([]protoimpl.MessageInfo, 11)+var file_v1_schema_design_service_proto_msgTypes = make([]protoimpl.MessageInfo, 13)var file_v1_schema_design_service_proto_goTypes = []interface{}{(SchemaDesign_Type)(0), // 0: bytebase.v1.SchemaDesign.Type(*SchemaDesign)(nil), // 1: bytebase.v1.SchemaDesign@@ -1087,46 +1226,53 @@ var file_v1_schema_design_service_proto_goTypes = []interface{}{(*ParseSchemaStringRequest)(nil), // 8: bytebase.v1.ParseSchemaStringRequest(*ParseSchemaStringResponse)(nil), // 9: bytebase.v1.ParseSchemaStringResponse(*DeleteSchemaDesignRequest)(nil), // 10: bytebase.v1.DeleteSchemaDesignRequest- (*SchemaDesign_Protection)(nil), // 11: bytebase.v1.SchemaDesign.Protection- (*DatabaseMetadata)(nil), // 12: bytebase.v1.DatabaseMetadata- (Engine)(0), // 13: bytebase.v1.Engine- (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp- (*fieldmaskpb.FieldMask)(nil), // 15: google.protobuf.FieldMask- (*emptypb.Empty)(nil), // 16: google.protobuf.Empty+ (*DiffMetadataRequest)(nil), // 11: bytebase.v1.DiffMetadataRequest+ (*DiffMetadataResponse)(nil), // 12: bytebase.v1.DiffMetadataResponse+ (*SchemaDesign_Protection)(nil), // 13: bytebase.v1.SchemaDesign.Protection+ (*DatabaseMetadata)(nil), // 14: bytebase.v1.DatabaseMetadata+ (Engine)(0), // 15: bytebase.v1.Engine+ (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp+ (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask+ (*emptypb.Empty)(nil), // 18: google.protobuf.Empty}var file_v1_schema_design_service_proto_depIdxs = []int32{- 12, // 0: bytebase.v1.SchemaDesign.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata- 12, // 1: bytebase.v1.SchemaDesign.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata- 13, // 2: bytebase.v1.SchemaDesign.engine:type_name -> bytebase.v1.Engine+ 14, // 0: bytebase.v1.SchemaDesign.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 14, // 1: bytebase.v1.SchemaDesign.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 15, // 2: bytebase.v1.SchemaDesign.engine:type_name -> bytebase.v1.Engine0, // 3: bytebase.v1.SchemaDesign.type:type_name -> bytebase.v1.SchemaDesign.Type- 11, // 4: bytebase.v1.SchemaDesign.protection:type_name -> bytebase.v1.SchemaDesign.Protection- 14, // 5: bytebase.v1.SchemaDesign.create_time:type_name -> google.protobuf.Timestamp- 14, // 6: bytebase.v1.SchemaDesign.update_time:type_name -> google.protobuf.Timestamp+ 13, // 4: bytebase.v1.SchemaDesign.protection:type_name -> bytebase.v1.SchemaDesign.Protection+ 16, // 5: bytebase.v1.SchemaDesign.create_time:type_name -> google.protobuf.Timestamp+ 16, // 6: bytebase.v1.SchemaDesign.update_time:type_name -> google.protobuf.Timestamp1, // 7: bytebase.v1.ListSchemaDesignsResponse.schema_designs:type_name -> bytebase.v1.SchemaDesign1, // 8: bytebase.v1.CreateSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign1, // 9: bytebase.v1.UpdateSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign- 15, // 10: bytebase.v1.UpdateSchemaDesignRequest.update_mask:type_name -> google.protobuf.FieldMask- 13, // 11: bytebase.v1.ParseSchemaStringRequest.engine:type_name -> bytebase.v1.Engine- 12, // 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- 16, // 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+ 17, // 10: bytebase.v1.UpdateSchemaDesignRequest.update_mask:type_name -> google.protobuf.FieldMask+ 15, // 11: bytebase.v1.ParseSchemaStringRequest.engine:type_name -> bytebase.v1.Engine+ 14, // 12: bytebase.v1.ParseSchemaStringResponse.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 14, // 13: bytebase.v1.DiffMetadataRequest.source_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 14, // 14: bytebase.v1.DiffMetadataRequest.target_metadata:type_name -> bytebase.v1.DatabaseMetadata+ 15, // 15: bytebase.v1.DiffMetadataRequest.engine:type_name -> bytebase.v1.Engine+ 2, // 16: bytebase.v1.SchemaDesignService.GetSchemaDesign:input_type -> bytebase.v1.GetSchemaDesignRequest+ 3, // 17: bytebase.v1.SchemaDesignService.ListSchemaDesigns:input_type -> bytebase.v1.ListSchemaDesignsRequest+ 5, // 18: bytebase.v1.SchemaDesignService.CreateSchemaDesign:input_type -> bytebase.v1.CreateSchemaDesignRequest+ 6, // 19: bytebase.v1.SchemaDesignService.UpdateSchemaDesign:input_type -> bytebase.v1.UpdateSchemaDesignRequest+ 7, // 20: bytebase.v1.SchemaDesignService.MergeSchemaDesign:input_type -> bytebase.v1.MergeSchemaDesignRequest+ 8, // 21: bytebase.v1.SchemaDesignService.ParseSchemaString:input_type -> bytebase.v1.ParseSchemaStringRequest+ 10, // 22: bytebase.v1.SchemaDesignService.DeleteSchemaDesign:input_type -> bytebase.v1.DeleteSchemaDesignRequest+ 8, // 23: bytebase.v1.SchemaDesignService.DiffMetadata:input_type -> bytebase.v1.ParseSchemaStringRequest+ 1, // 24: bytebase.v1.SchemaDesignService.GetSchemaDesign:output_type -> bytebase.v1.SchemaDesign+ 4, // 25: bytebase.v1.SchemaDesignService.ListSchemaDesigns:output_type -> bytebase.v1.ListSchemaDesignsResponse+ 1, // 26: bytebase.v1.SchemaDesignService.CreateSchemaDesign:output_type -> bytebase.v1.SchemaDesign+ 1, // 27: bytebase.v1.SchemaDesignService.UpdateSchemaDesign:output_type -> bytebase.v1.SchemaDesign+ 1, // 28: bytebase.v1.SchemaDesignService.MergeSchemaDesign:output_type -> bytebase.v1.SchemaDesign+ 9, // 29: bytebase.v1.SchemaDesignService.ParseSchemaString:output_type -> bytebase.v1.ParseSchemaStringResponse+ 18, // 30: bytebase.v1.SchemaDesignService.DeleteSchemaDesign:output_type -> google.protobuf.Empty+ 9, // 31: bytebase.v1.SchemaDesignService.DiffMetadata:output_type -> bytebase.v1.ParseSchemaStringResponse+ 24, // [24:32] is the sub-list for method output_type+ 16, // [16:24] is the sub-list for method input_type+ 16, // [16:16] is the sub-list for extension type_name+ 16, // [16:16] is the sub-list for extension extendee+ 0, // [0:16] is the sub-list for field type_name}func init() { file_v1_schema_design_service_proto_init() }@@ -1258,6 +1404,30 @@ func file_v1_schema_design_service_proto_init() {}}file_v1_schema_design_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DiffMetadataRequest); 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[11].Exporter = func(v interface{}, i int) interface{} {+ switch v := v.(*DiffMetadataResponse); 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[12].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SchemaDesign_Protection); i {case 0:return &v.state@@ -1277,7 +1447,7 @@ func file_v1_schema_design_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_v1_schema_design_service_proto_rawDesc,NumEnums: 1,- NumMessages: 11,+ NumMessages: 13,NumExtensions: 0,NumServices: 1,},diff --git a/proto/generated-go/v1/schema_design_service.pb.gw.go b/proto/generated-go/v1/schema_design_service.pb.gw.goindex 32fff7befc..943224e620 100644--- a/proto/generated-go/v1/schema_design_service.pb.gw.go+++ b/proto/generated-go/v1/schema_design_service.pb.gw.go@@ -477,6 +477,40 @@ func local_request_SchemaDesignService_DeleteSchemaDesign_0(ctx context.Context,}+func request_SchemaDesignService_DiffMetadata_0(ctx context.Context, marshaler runtime.Marshaler, client SchemaDesignServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ParseSchemaStringRequest+ 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); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := client.DiffMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))+ return msg, metadata, err++}++func local_request_SchemaDesignService_DiffMetadata_0(ctx context.Context, marshaler runtime.Marshaler, server SchemaDesignServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {+ var protoReq ParseSchemaStringRequest+ 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); err != nil && err != io.EOF {+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)+ }++ msg, err := server.DiffMetadata(ctx, &protoReq)+ return msg, metadata, err++}+// RegisterSchemaDesignServiceHandlerServer registers the http handlers for service SchemaDesignService to "mux".// UnaryRPC :call SchemaDesignServiceServer directly.// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.@@ -658,6 +692,31 @@ func RegisterSchemaDesignServiceHandlerServer(ctx context.Context, mux *runtime.})+ mux.Handle("POST", pattern_SchemaDesignService_DiffMetadata_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/DiffMetadata", runtime.WithHTTPPathPattern("/v1/schemaDesign:diffMetadata"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := local_request_SchemaDesignService_DiffMetadata_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_DiffMetadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+return nil}@@ -853,6 +912,28 @@ func RegisterSchemaDesignServiceHandlerClient(ctx context.Context, mux *runtime.})+ mux.Handle("POST", pattern_SchemaDesignService_DiffMetadata_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/DiffMetadata", runtime.WithHTTPPathPattern("/v1/schemaDesign:diffMetadata"))+ if err != nil {+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)+ return+ }+ resp, md, err := request_SchemaDesignService_DiffMetadata_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_DiffMetadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)++ })+return nil}@@ -870,6 +951,8 @@ var (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"}, ""))++ pattern_SchemaDesignService_DiffMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "schemaDesign"}, "diffMetadata")))var (@@ -886,4 +969,6 @@ var (forward_SchemaDesignService_ParseSchemaString_0 = runtime.ForwardResponseMessageforward_SchemaDesignService_DeleteSchemaDesign_0 = runtime.ForwardResponseMessage++ forward_SchemaDesignService_DiffMetadata_0 = runtime.ForwardResponseMessage)diff --git a/proto/generated-go/v1/schema_design_service_grpc.pb.go b/proto/generated-go/v1/schema_design_service_grpc.pb.goindex 17bb3e2259..1d55db5251 100644--- a/proto/generated-go/v1/schema_design_service_grpc.pb.go+++ b/proto/generated-go/v1/schema_design_service_grpc.pb.go@@ -27,6 +27,7 @@ const (SchemaDesignService_MergeSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/MergeSchemaDesign"SchemaDesignService_ParseSchemaString_FullMethodName = "/bytebase.v1.SchemaDesignService/ParseSchemaString"SchemaDesignService_DeleteSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/DeleteSchemaDesign"+ SchemaDesignService_DiffMetadata_FullMethodName = "/bytebase.v1.SchemaDesignService/DiffMetadata")// SchemaDesignServiceClient is the client API for SchemaDesignService service.@@ -40,6 +41,7 @@ type SchemaDesignServiceClient interface {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)+ DiffMetadata(ctx context.Context, in *ParseSchemaStringRequest, opts ...grpc.CallOption) (*ParseSchemaStringResponse, error)}type schemaDesignServiceClient struct {@@ -113,6 +115,15 @@ func (c *schemaDesignServiceClient) DeleteSchemaDesign(ctx context.Context, in *return out, nil}+func (c *schemaDesignServiceClient) DiffMetadata(ctx context.Context, in *ParseSchemaStringRequest, opts ...grpc.CallOption) (*ParseSchemaStringResponse, error) {+ out := new(ParseSchemaStringResponse)+ err := c.cc.Invoke(ctx, SchemaDesignService_DiffMetadata_FullMethodName, in, out, opts...)+ if err != nil {+ return nil, err+ }+ return out, nil+}+// SchemaDesignServiceServer is the server API for SchemaDesignService service.// All implementations must embed UnimplementedSchemaDesignServiceServer// for forward compatibility@@ -124,6 +135,7 @@ type SchemaDesignServiceServer interface {MergeSchemaDesign(context.Context, *MergeSchemaDesignRequest) (*SchemaDesign, error)ParseSchemaString(context.Context, *ParseSchemaStringRequest) (*ParseSchemaStringResponse, error)DeleteSchemaDesign(context.Context, *DeleteSchemaDesignRequest) (*emptypb.Empty, error)+ DiffMetadata(context.Context, *ParseSchemaStringRequest) (*ParseSchemaStringResponse, error)mustEmbedUnimplementedSchemaDesignServiceServer()}@@ -152,6 +164,9 @@ func (UnimplementedSchemaDesignServiceServer) ParseSchemaString(context.Context,func (UnimplementedSchemaDesignServiceServer) DeleteSchemaDesign(context.Context, *DeleteSchemaDesignRequest) (*emptypb.Empty, error) {return nil, status.Errorf(codes.Unimplemented, "method DeleteSchemaDesign not implemented")}+func (UnimplementedSchemaDesignServiceServer) DiffMetadata(context.Context, *ParseSchemaStringRequest) (*ParseSchemaStringResponse, error) {+ return nil, status.Errorf(codes.Unimplemented, "method DiffMetadata not implemented")+}func (UnimplementedSchemaDesignServiceServer) mustEmbedUnimplementedSchemaDesignServiceServer() {}// UnsafeSchemaDesignServiceServer may be embedded to opt out of forward compatibility for this service.@@ -291,6 +306,24 @@ func _SchemaDesignService_DeleteSchemaDesign_Handler(srv interface{}, ctx contexreturn interceptor(ctx, in, info, handler)}+func _SchemaDesignService_DiffMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {+ in := new(ParseSchemaStringRequest)+ if err := dec(in); err != nil {+ return nil, err+ }+ if interceptor == nil {+ return srv.(SchemaDesignServiceServer).DiffMetadata(ctx, in)+ }+ info := &grpc.UnaryServerInfo{+ Server: srv,+ FullMethod: SchemaDesignService_DiffMetadata_FullMethodName,+ }+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {+ return srv.(SchemaDesignServiceServer).DiffMetadata(ctx, req.(*ParseSchemaStringRequest))+ }+ return interceptor(ctx, in, info, handler)+}+// SchemaDesignService_ServiceDesc is the grpc.ServiceDesc for SchemaDesignService service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)@@ -326,6 +359,10 @@ var SchemaDesignService_ServiceDesc = grpc.ServiceDesc{MethodName: "DeleteSchemaDesign",Handler: _SchemaDesignService_DeleteSchemaDesign_Handler,},+ {+ MethodName: "DiffMetadata",+ Handler: _SchemaDesignService_DiffMetadata_Handler,+ },},Streams: []grpc.StreamDesc{},Metadata: "v1/schema_design_service.proto",diff --git a/proto/v1/schema_design_service.proto b/proto/v1/schema_design_service.protoindex af2197f385..8dae1163d2 100644--- a/proto/v1/schema_design_service.proto+++ b/proto/v1/schema_design_service.proto@@ -56,6 +56,13 @@ service SchemaDesignService {option (google.api.http) = {delete: "/v1/{name=projects/*/schemaDesigns/*}"};option (google.api.method_signature) = "name";}++ rpc DiffMetadata(ParseSchemaStringRequest) returns (ParseSchemaStringResponse) {+ option (google.api.http) = {+ post: "/v1/schemaDesign:diffMetadata"+ body: "*"+ };+ }}message SchemaDesign {@@ -214,3 +221,19 @@ message DeleteSchemaDesignRequest {// Format: projects/{project}/schemaDesigns/{schemaDesign}string name = 1 [(google.api.field_behavior) = REQUIRED];}++message DiffMetadataRequest {+ // The metadata of the source schema.+ DatabaseMetadata source_metadata = 1 [(google.api.field_behavior) = REQUIRED];++ // The metadata of the target schema.+ DatabaseMetadata target_metadata = 2 [(google.api.field_behavior) = REQUIRED];++ // The database engine of the schema.+ Engine engine = 3;+}++message DiffMetadataResponse {+ // The diff of the metadata.+ string diff = 1;+}