Skip to content

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

chore: remove deparse schema metadata api (#8360)

boojackf07b7c20e88a
diff --git a/backend/api/v1/schema_design_service.go b/backend/api/v1/schema_design_service.go
index 8cc64c8783..cb69fca1ef 100644
--- a/backend/api/v1/schema_design_service.go
+++ b/backend/api/v1/schema_design_service.go
@@ -404,20 +404,6 @@ func (*SchemaDesignService) ParseSchemaString(_ context.Context, request *v1pb.P
}, nil
}
-// DeparseSchemaMetadata deparse a database metadata to schema string.
-func (*SchemaDesignService) DeparseSchemaMetadata(_ context.Context, request *v1pb.DeparseSchemaMetadataRequest) (*v1pb.DeparseSchemaMetadataResponse, error) {
- if request.SchemaMetadata == nil {
- return nil, status.Errorf(codes.InvalidArgument, "schema_metadata is required")
- }
- schema, err := transformDatabaseMetadataToSchemaString(request.Engine, request.SchemaMetadata)
- if err != nil {
- return nil, err
- }
- return &v1pb.DeparseSchemaMetadataResponse{
- SchemaString: schema,
- }, nil
-}
-
// DeleteSchemaDesign deletes an existing schema design.
func (s *SchemaDesignService) DeleteSchemaDesign(ctx context.Context, request *v1pb.DeleteSchemaDesignRequest) (*emptypb.Empty, error) {
_, sheetID, err := common.GetProjectResourceIDAndSchemaDesignSheetID(request.Name)
diff --git a/frontend/src/types/proto/v1/schema_design_service.ts b/frontend/src/types/proto/v1/schema_design_service.ts
index 0f96f5cf14..c3137f9d66 100644
--- a/frontend/src/types/proto/v1/schema_design_service.ts
+++ b/frontend/src/types/proto/v1/schema_design_service.ts
@@ -209,20 +209,6 @@ export interface ParseSchemaStringResponse {
schemaMetadata?: DatabaseMetadata | undefined;
}
-export interface DeparseSchemaMetadataRequest {
- /** The metadata of the schema to deparse. */
- schemaMetadata?:
- | DatabaseMetadata
- | undefined;
- /** The database engine of the schema string. */
- engine: Engine;
-}
-
-export interface DeparseSchemaMetadataResponse {
- /** The schema string. */
- schemaString: string;
-}
-
export interface DeleteSchemaDesignRequest {
/**
* The name of the schema design to delete.
@@ -1185,136 +1171,6 @@ export const ParseSchemaStringResponse = {
},
};
-function createBaseDeparseSchemaMetadataRequest(): DeparseSchemaMetadataRequest {
- return { schemaMetadata: undefined, engine: 0 };
-}
-
-export const DeparseSchemaMetadataRequest = {
- encode(message: DeparseSchemaMetadataRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.schemaMetadata !== undefined) {
- DatabaseMetadata.encode(message.schemaMetadata, writer.uint32(10).fork()).ldelim();
- }
- if (message.engine !== 0) {
- writer.uint32(16).int32(message.engine);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): DeparseSchemaMetadataRequest {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseDeparseSchemaMetadataRequest();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 10) {
- break;
- }
-
- message.schemaMetadata = DatabaseMetadata.decode(reader, reader.uint32());
- continue;
- case 2:
- if (tag !== 16) {
- break;
- }
-
- message.engine = reader.int32() as any;
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): DeparseSchemaMetadataRequest {
- return {
- schemaMetadata: isSet(object.schemaMetadata) ? DatabaseMetadata.fromJSON(object.schemaMetadata) : undefined,
- engine: isSet(object.engine) ? engineFromJSON(object.engine) : 0,
- };
- },
-
- toJSON(message: DeparseSchemaMetadataRequest): unknown {
- const obj: any = {};
- message.schemaMetadata !== undefined &&
- (obj.schemaMetadata = message.schemaMetadata ? DatabaseMetadata.toJSON(message.schemaMetadata) : undefined);
- message.engine !== undefined && (obj.engine = engineToJSON(message.engine));
- return obj;
- },
-
- create(base?: DeepPartial<DeparseSchemaMetadataRequest>): DeparseSchemaMetadataRequest {
- return DeparseSchemaMetadataRequest.fromPartial(base ?? {});
- },
-
- fromPartial(object: DeepPartial<DeparseSchemaMetadataRequest>): DeparseSchemaMetadataRequest {
- const message = createBaseDeparseSchemaMetadataRequest();
- message.schemaMetadata = (object.schemaMetadata !== undefined && object.schemaMetadata !== null)
- ? DatabaseMetadata.fromPartial(object.schemaMetadata)
- : undefined;
- message.engine = object.engine ?? 0;
- return message;
- },
-};
-
-function createBaseDeparseSchemaMetadataResponse(): DeparseSchemaMetadataResponse {
- return { schemaString: "" };
-}
-
-export const DeparseSchemaMetadataResponse = {
- encode(message: DeparseSchemaMetadataResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.schemaString !== "") {
- writer.uint32(10).string(message.schemaString);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): DeparseSchemaMetadataResponse {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseDeparseSchemaMetadataResponse();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 10) {
- break;
- }
-
- message.schemaString = reader.string();
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): DeparseSchemaMetadataResponse {
- return { schemaString: isSet(object.schemaString) ? String(object.schemaString) : "" };
- },
-
- toJSON(message: DeparseSchemaMetadataResponse): unknown {
- const obj: any = {};
- message.schemaString !== undefined && (obj.schemaString = message.schemaString);
- return obj;
- },
-
- create(base?: DeepPartial<DeparseSchemaMetadataResponse>): DeparseSchemaMetadataResponse {
- return DeparseSchemaMetadataResponse.fromPartial(base ?? {});
- },
-
- fromPartial(object: DeepPartial<DeparseSchemaMetadataResponse>): DeparseSchemaMetadataResponse {
- const message = createBaseDeparseSchemaMetadataResponse();
- message.schemaString = object.schemaString ?? "";
- return message;
- },
-};
-
function createBaseDeleteSchemaDesignRequest(): DeleteSchemaDesignRequest {
return { name: "" };
}
@@ -1959,65 +1815,6 @@ export const SchemaDesignServiceDefinition = {
},
},
},
- deparseSchemaMetadata: {
- name: "DeparseSchemaMetadata",
- requestType: DeparseSchemaMetadataRequest,
- requestStream: false,
- responseType: DeparseSchemaMetadataResponse,
- responseStream: false,
- options: {
- _unknownFields: {
- 578365826: [
- new Uint8Array([
- 43,
- 58,
- 1,
- 42,
- 34,
- 38,
- 47,
- 118,
- 49,
- 47,
- 115,
- 99,
- 104,
- 101,
- 109,
- 97,
- 68,
- 101,
- 115,
- 105,
- 103,
- 110,
- 58,
- 100,
- 101,
- 112,
- 97,
- 114,
- 115,
- 101,
- 83,
- 99,
- 104,
- 101,
- 109,
- 97,
- 77,
- 101,
- 116,
- 97,
- 100,
- 97,
- 116,
- 97,
- ]),
- ],
- },
- },
- },
deleteSchemaDesign: {
name: "DeleteSchemaDesign",
requestType: DeleteSchemaDesignRequest,
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 9734218f55..cea9bdd61b 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -489,8 +489,6 @@
- [v1/schema_design_service.proto](#v1_schema_design_service-proto)
- [CreateSchemaDesignRequest](#bytebase-v1-CreateSchemaDesignRequest)
- [DeleteSchemaDesignRequest](#bytebase-v1-DeleteSchemaDesignRequest)
- - [DeparseSchemaMetadataRequest](#bytebase-v1-DeparseSchemaMetadataRequest)
- - [DeparseSchemaMetadataResponse](#bytebase-v1-DeparseSchemaMetadataResponse)
- [DiffMetadataRequest](#bytebase-v1-DiffMetadataRequest)
- [DiffMetadataResponse](#bytebase-v1-DiffMetadataResponse)
- [GetSchemaDesignRequest](#bytebase-v1-GetSchemaDesignRequest)
@@ -7891,37 +7889,6 @@ Type is the database change type.
-<a name="bytebase-v1-DeparseSchemaMetadataRequest"></a>
-
-### DeparseSchemaMetadataRequest
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| schema_metadata | [DatabaseMetadata](#bytebase-v1-DatabaseMetadata) | | The metadata of the schema to deparse. |
-| engine | [Engine](#bytebase-v1-Engine) | | The database engine of the schema string. |
-
-
-
-
-
-
-<a name="bytebase-v1-DeparseSchemaMetadataResponse"></a>
-
-### DeparseSchemaMetadataResponse
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| schema_string | [string](#string) | | The schema string. |
-
-
-
-
-
-
<a name="bytebase-v1-DiffMetadataRequest"></a>
### DiffMetadataRequest
@@ -8148,7 +8115,6 @@ The schema design&#39;s `name` field is used to identify the schema design to up
| 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) | |
-| DeparseSchemaMetadata | [DeparseSchemaMetadataRequest](#bytebase-v1-DeparseSchemaMetadataRequest) | [DeparseSchemaMetadataResponse](#bytebase-v1-DeparseSchemaMetadataResponse) | |
| DeleteSchemaDesign | [DeleteSchemaDesignRequest](#bytebase-v1-DeleteSchemaDesignRequest) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
| DiffMetadata | [DiffMetadataRequest](#bytebase-v1-DiffMetadataRequest) | [DiffMetadataResponse](#bytebase-v1-DiffMetadataResponse) | |
diff --git a/proto/generated-go/v1/schema_design_service.pb.go b/proto/generated-go/v1/schema_design_service.pb.go
index 07de3ccb6d..cdc6cebe15 100644
--- a/proto/generated-go/v1/schema_design_service.pb.go
+++ b/proto/generated-go/v1/schema_design_service.pb.go
@@ -745,111 +745,6 @@ func (x *ParseSchemaStringResponse) GetSchemaMetadata() *DatabaseMetadata {
return nil
}
-type DeparseSchemaMetadataRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // The metadata of the schema to deparse.
- SchemaMetadata *DatabaseMetadata `protobuf:"bytes,1,opt,name=schema_metadata,json=schemaMetadata,proto3" json:"schema_metadata,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 *DeparseSchemaMetadataRequest) Reset() {
- *x = DeparseSchemaMetadataRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_v1_schema_design_service_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *DeparseSchemaMetadataRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DeparseSchemaMetadataRequest) ProtoMessage() {}
-
-func (x *DeparseSchemaMetadataRequest) ProtoReflect() protoreflect.Message {
- 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 {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
-}
-
-// Deprecated: Use DeparseSchemaMetadataRequest.ProtoReflect.Descriptor instead.
-func (*DeparseSchemaMetadataRequest) Descriptor() ([]byte, []int) {
- return file_v1_schema_design_service_proto_rawDescGZIP(), []int{9}
-}
-
-func (x *DeparseSchemaMetadataRequest) GetSchemaMetadata() *DatabaseMetadata {
- if x != nil {
- return x.SchemaMetadata
- }
- return nil
-}
-
-func (x *DeparseSchemaMetadataRequest) GetEngine() Engine {
- if x != nil {
- return x.Engine
- }
- return Engine_ENGINE_UNSPECIFIED
-}
-
-type DeparseSchemaMetadataResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // The schema string.
- SchemaString string `protobuf:"bytes,1,opt,name=schema_string,json=schemaString,proto3" json:"schema_string,omitempty"`
-}
-
-func (x *DeparseSchemaMetadataResponse) Reset() {
- *x = DeparseSchemaMetadataResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_v1_schema_design_service_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *DeparseSchemaMetadataResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*DeparseSchemaMetadataResponse) ProtoMessage() {}
-
-func (x *DeparseSchemaMetadataResponse) 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 DeparseSchemaMetadataResponse.ProtoReflect.Descriptor instead.
-func (*DeparseSchemaMetadataResponse) Descriptor() ([]byte, []int) {
- return file_v1_schema_design_service_proto_rawDescGZIP(), []int{10}
-}
-
-func (x *DeparseSchemaMetadataResponse) GetSchemaString() string {
- if x != nil {
- return x.SchemaString
- }
- return ""
-}
-
type DeleteSchemaDesignRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -863,7 +758,7 @@ type DeleteSchemaDesignRequest struct {
func (x *DeleteSchemaDesignRequest) Reset() {
*x = DeleteSchemaDesignRequest{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_schema_design_service_proto_msgTypes[11]
+ mi := &file_v1_schema_design_service_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -876,7 +771,7 @@ func (x *DeleteSchemaDesignRequest) String() string {
func (*DeleteSchemaDesignRequest) ProtoMessage() {}
func (x *DeleteSchemaDesignRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_schema_design_service_proto_msgTypes[11]
+ 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 {
@@ -889,7 +784,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{11}
+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{9}
}
func (x *DeleteSchemaDesignRequest) GetName() string {
@@ -915,7 +810,7 @@ type DiffMetadataRequest struct {
func (x *DiffMetadataRequest) Reset() {
*x = DiffMetadataRequest{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_schema_design_service_proto_msgTypes[12]
+ mi := &file_v1_schema_design_service_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -928,7 +823,7 @@ func (x *DiffMetadataRequest) String() string {
func (*DiffMetadataRequest) ProtoMessage() {}
func (x *DiffMetadataRequest) ProtoReflect() protoreflect.Message {
- mi := &file_v1_schema_design_service_proto_msgTypes[12]
+ 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 {
@@ -941,7 +836,7 @@ func (x *DiffMetadataRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DiffMetadataRequest.ProtoReflect.Descriptor instead.
func (*DiffMetadataRequest) Descriptor() ([]byte, []int) {
- return file_v1_schema_design_service_proto_rawDescGZIP(), []int{12}
+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{10}
}
func (x *DiffMetadataRequest) GetSourceMetadata() *DatabaseMetadata {
@@ -977,7 +872,7 @@ type DiffMetadataResponse struct {
func (x *DiffMetadataResponse) Reset() {
*x = DiffMetadataResponse{}
if protoimpl.UnsafeEnabled {
- mi := &file_v1_schema_design_service_proto_msgTypes[13]
+ mi := &file_v1_schema_design_service_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -990,7 +885,7 @@ func (x *DiffMetadataResponse) String() string {
func (*DiffMetadataResponse) ProtoMessage() {}
func (x *DiffMetadataResponse) ProtoReflect() protoreflect.Message {
- mi := &file_v1_schema_design_service_proto_msgTypes[13]
+ 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 {
@@ -1003,7 +898,7 @@ func (x *DiffMetadataResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DiffMetadataResponse.ProtoReflect.Descriptor instead.
func (*DiffMetadataResponse) Descriptor() ([]byte, []int) {
- return file_v1_schema_design_service_proto_rawDescGZIP(), []int{13}
+ return file_v1_schema_design_service_proto_rawDescGZIP(), []int{11}
}
func (x *DiffMetadataResponse) GetDiff() string {
@@ -1025,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[14]
+ mi := &file_v1_schema_design_service_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -1038,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[14]
+ 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 {
@@ -1201,132 +1096,108 @@ var file_v1_schema_design_service_proto_rawDesc = []byte{
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, 0x98, 0x01, 0x0a,
- 0x1c, 0x44, 0x65, 0x70, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65,
- 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 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, 0x02, 0x52, 0x0e, 0x73, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 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, 0x49, 0x0a, 0x1d, 0x44, 0x65, 0x70, 0x61, 0x72,
- 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 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, 0x03, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x74, 0x72, 0x69,
- 0x6e, 0x67, 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, 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, 0x8a, 0x0b, 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, 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, 0xa1, 0x01, 0x0a, 0x15, 0x44, 0x65, 0x70, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65,
- 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x29, 0x2e, 0x62, 0x79, 0x74,
- 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x61, 0x72, 0x73, 0x65,
- 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d,
- 0x61, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x22, 0x31, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x76,
- 0x31, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x3a, 0x64,
- 0x65, 0x70, 0x61, 0x72, 0x73, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4d, 0x65, 0x74, 0x61,
- 0x64, 0x61, 0x74, 0x61, 0x12, 0x8a, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53,
+ 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, 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, 0xe6, 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, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
+ 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, 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, 0x7d, 0x0a, 0x0c, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
- 0x61, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
- 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
- 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 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,
+ 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, 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, 0x7d, 0x0a, 0x0c, 0x44, 0x69, 0x66, 0x66, 0x4d,
+ 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
+ 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65,
+ 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x4d, 0x65, 0x74, 0x61,
+ 0x64, 0x61, 0x74, 0x61, 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 (
@@ -1342,72 +1213,66 @@ 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, 15)
+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
- (*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
- (*DeparseSchemaMetadataRequest)(nil), // 10: bytebase.v1.DeparseSchemaMetadataRequest
- (*DeparseSchemaMetadataResponse)(nil), // 11: bytebase.v1.DeparseSchemaMetadataResponse
- (*DeleteSchemaDesignRequest)(nil), // 12: bytebase.v1.DeleteSchemaDesignRequest
- (*DiffMetadataRequest)(nil), // 13: bytebase.v1.DiffMetadataRequest
- (*DiffMetadataResponse)(nil), // 14: bytebase.v1.DiffMetadataResponse
- (*SchemaDesign_Protection)(nil), // 15: bytebase.v1.SchemaDesign.Protection
- (*DatabaseMetadata)(nil), // 16: bytebase.v1.DatabaseMetadata
- (Engine)(0), // 17: bytebase.v1.Engine
- (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp
- (*fieldmaskpb.FieldMask)(nil), // 19: google.protobuf.FieldMask
- (*emptypb.Empty)(nil), // 20: 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
+ (*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{
- 16, // 0: bytebase.v1.SchemaDesign.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 16, // 1: bytebase.v1.SchemaDesign.baseline_schema_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 17, // 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.Engine
0, // 3: bytebase.v1.SchemaDesign.type:type_name -> bytebase.v1.SchemaDesign.Type
- 15, // 4: bytebase.v1.SchemaDesign.protection:type_name -> bytebase.v1.SchemaDesign.Protection
- 18, // 5: bytebase.v1.SchemaDesign.create_time:type_name -> google.protobuf.Timestamp
- 18, // 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.Timestamp
1, // 7: bytebase.v1.ListSchemaDesignsResponse.schema_designs:type_name -> bytebase.v1.SchemaDesign
1, // 8: bytebase.v1.CreateSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign
1, // 9: bytebase.v1.UpdateSchemaDesignRequest.schema_design:type_name -> bytebase.v1.SchemaDesign
- 19, // 10: bytebase.v1.UpdateSchemaDesignRequest.update_mask:type_name -> google.protobuf.FieldMask
- 17, // 11: bytebase.v1.ParseSchemaStringRequest.engine:type_name -> bytebase.v1.Engine
- 16, // 12: bytebase.v1.ParseSchemaStringResponse.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 16, // 13: bytebase.v1.DeparseSchemaMetadataRequest.schema_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 17, // 14: bytebase.v1.DeparseSchemaMetadataRequest.engine:type_name -> bytebase.v1.Engine
- 16, // 15: bytebase.v1.DiffMetadataRequest.source_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 16, // 16: bytebase.v1.DiffMetadataRequest.target_metadata:type_name -> bytebase.v1.DatabaseMetadata
- 17, // 17: bytebase.v1.DiffMetadataRequest.engine:type_name -> bytebase.v1.Engine
- 2, // 18: bytebase.v1.SchemaDesignService.GetSchemaDesign:input_type -> bytebase.v1.GetSchemaDesignRequest
- 3, // 19: bytebase.v1.SchemaDesignService.ListSchemaDesigns:input_type -> bytebase.v1.ListSchemaDesignsRequest
- 5, // 20: bytebase.v1.SchemaDesignService.CreateSchemaDesign:input_type -> bytebase.v1.CreateSchemaDesignRequest
- 6, // 21: bytebase.v1.SchemaDesignService.UpdateSchemaDesign:input_type -> bytebase.v1.UpdateSchemaDesignRequest
- 7, // 22: bytebase.v1.SchemaDesignService.MergeSchemaDesign:input_type -> bytebase.v1.MergeSchemaDesignRequest
- 8, // 23: bytebase.v1.SchemaDesignService.ParseSchemaString:input_type -> bytebase.v1.ParseSchemaStringRequest
- 10, // 24: bytebase.v1.SchemaDesignService.DeparseSchemaMetadata:input_type -> bytebase.v1.DeparseSchemaMetadataRequest
- 12, // 25: bytebase.v1.SchemaDesignService.DeleteSchemaDesign:input_type -> bytebase.v1.DeleteSchemaDesignRequest
- 13, // 26: bytebase.v1.SchemaDesignService.DiffMetadata:input_type -> bytebase.v1.DiffMetadataRequest
- 1, // 27: bytebase.v1.SchemaDesignService.GetSchemaDesign:output_type -> bytebase.v1.SchemaDesign
- 4, // 28: bytebase.v1.SchemaDesignService.ListSchemaDesigns:output_type -> bytebase.v1.ListSchemaDesignsResponse
- 1, // 29: bytebase.v1.SchemaDesignService.CreateSchemaDesign:output_type -> bytebase.v1.SchemaDesign
- 1, // 30: bytebase.v1.SchemaDesignService.UpdateSchemaDesign:output_type -> bytebase.v1.SchemaDesign
- 1, // 31: bytebase.v1.SchemaDesignService.MergeSchemaDesign:output_type -> bytebase.v1.SchemaDesign
- 9, // 32: bytebase.v1.SchemaDesignService.ParseSchemaString:output_type -> bytebase.v1.ParseSchemaStringResponse
- 11, // 33: bytebase.v1.SchemaDesignService.DeparseSchemaMetadata:output_type -> bytebase.v1.DeparseSchemaMetadataResponse
- 20, // 34: bytebase.v1.SchemaDesignService.DeleteSchemaDesign:output_type -> google.protobuf.Empty
- 14, // 35: bytebase.v1.SchemaDesignService.DiffMetadata:output_type -> bytebase.v1.DiffMetadataResponse
- 27, // [27:36] is the sub-list for method output_type
- 18, // [18:27] is the sub-list for method input_type
- 18, // [18:18] is the sub-list for extension type_name
- 18, // [18:18] is the sub-list for extension extendee
- 0, // [0:18] 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
+ 11, // 23: bytebase.v1.SchemaDesignService.DiffMetadata:input_type -> bytebase.v1.DiffMetadataRequest
+ 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
+ 12, // 31: bytebase.v1.SchemaDesignService.DiffMetadata:output_type -> bytebase.v1.DiffMetadataResponse
+ 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() }
@@ -1527,30 +1392,6 @@ func file_v1_schema_design_service_proto_init() {
}
}
file_v1_schema_design_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeparseSchemaMetadataRequest); 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[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeparseSchemaMetadataResponse); 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.(*DeleteSchemaDesignRequest); i {
case 0:
return &v.state
@@ -1562,7 +1403,7 @@ func file_v1_schema_design_service_proto_init() {
return nil
}
}
- file_v1_schema_design_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+ 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
@@ -1574,7 +1415,7 @@ func file_v1_schema_design_service_proto_init() {
return nil
}
}
- file_v1_schema_design_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
+ 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
@@ -1586,7 +1427,7 @@ func file_v1_schema_design_service_proto_init() {
return nil
}
}
- file_v1_schema_design_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
+ 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
@@ -1606,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: 15,
+ 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.go
index 1614d235c2..c612bed07e 100644
--- a/proto/generated-go/v1/schema_design_service.pb.gw.go
+++ b/proto/generated-go/v1/schema_design_service.pb.gw.go
@@ -425,40 +425,6 @@ func local_request_SchemaDesignService_ParseSchemaString_0(ctx context.Context,
}
-func request_SchemaDesignService_DeparseSchemaMetadata_0(ctx context.Context, marshaler runtime.Marshaler, client SchemaDesignServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq DeparseSchemaMetadataRequest
- 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.DeparseSchemaMetadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
- return msg, metadata, err
-
-}
-
-func local_request_SchemaDesignService_DeparseSchemaMetadata_0(ctx context.Context, marshaler runtime.Marshaler, server SchemaDesignServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
- var protoReq DeparseSchemaMetadataRequest
- 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.DeparseSchemaMetadata(ctx, &protoReq)
- return msg, metadata, err
-
-}
-
func request_SchemaDesignService_DeleteSchemaDesign_0(ctx context.Context, marshaler runtime.Marshaler, client SchemaDesignServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq DeleteSchemaDesignRequest
var metadata runtime.ServerMetadata
@@ -701,31 +667,6 @@ func RegisterSchemaDesignServiceHandlerServer(ctx context.Context, mux *runtime.
})
- mux.Handle("POST", pattern_SchemaDesignService_DeparseSchemaMetadata_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/DeparseSchemaMetadata", runtime.WithHTTPPathPattern("/v1/schemaDesign:deparseSchemaMetadata"))
- if err != nil {
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
- return
- }
- resp, md, err := local_request_SchemaDesignService_DeparseSchemaMetadata_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_DeparseSchemaMetadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
-
- })
-
mux.Handle("DELETE", pattern_SchemaDesignService_DeleteSchemaDesign_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -949,28 +890,6 @@ func RegisterSchemaDesignServiceHandlerClient(ctx context.Context, mux *runtime.
})
- mux.Handle("POST", pattern_SchemaDesignService_DeparseSchemaMetadata_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/DeparseSchemaMetadata", runtime.WithHTTPPathPattern("/v1/schemaDesign:deparseSchemaMetadata"))
- if err != nil {
- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
- return
- }
- resp, md, err := request_SchemaDesignService_DeparseSchemaMetadata_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_DeparseSchemaMetadata_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
-
- })
-
mux.Handle("DELETE", pattern_SchemaDesignService_DeleteSchemaDesign_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -1031,8 +950,6 @@ var (
pattern_SchemaDesignService_ParseSchemaString_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "schemaDesign"}, "parseSchemaString"))
- pattern_SchemaDesignService_DeparseSchemaMetadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "schemaDesign"}, "deparseSchemaMetadata"))
-
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"))
@@ -1051,8 +968,6 @@ var (
forward_SchemaDesignService_ParseSchemaString_0 = runtime.ForwardResponseMessage
- forward_SchemaDesignService_DeparseSchemaMetadata_0 = runtime.ForwardResponseMessage
-
forward_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.go
index cb006754a5..e5790cb6fe 100644
--- a/proto/generated-go/v1/schema_design_service_grpc.pb.go
+++ b/proto/generated-go/v1/schema_design_service_grpc.pb.go
@@ -20,15 +20,14 @@ import (
const _ = grpc.SupportPackageIsVersion7
const (
- SchemaDesignService_GetSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/GetSchemaDesign"
- 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_DeparseSchemaMetadata_FullMethodName = "/bytebase.v1.SchemaDesignService/DeparseSchemaMetadata"
- SchemaDesignService_DeleteSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/DeleteSchemaDesign"
- SchemaDesignService_DiffMetadata_FullMethodName = "/bytebase.v1.SchemaDesignService/DiffMetadata"
+ SchemaDesignService_GetSchemaDesign_FullMethodName = "/bytebase.v1.SchemaDesignService/GetSchemaDesign"
+ 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"
+ SchemaDesignService_DiffMetadata_FullMethodName = "/bytebase.v1.SchemaDesignService/DiffMetadata"
)
// SchemaDesignServiceClient is the client API for SchemaDesignService service.
@@ -41,7 +40,6 @@ type SchemaDesignServiceClient interface {
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)
- DeparseSchemaMetadata(ctx context.Context, in *DeparseSchemaMetadataRequest, opts ...grpc.CallOption) (*DeparseSchemaMetadataResponse, error)
DeleteSchemaDesign(ctx context.Context, in *DeleteSchemaDesignRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
DiffMetadata(ctx context.Context, in *DiffMetadataRequest, opts ...grpc.CallOption) (*DiffMetadataResponse, error)
}
@@ -108,15 +106,6 @@ func (c *schemaDesignServiceClient) ParseSchemaString(ctx context.Context, in *P
return out, nil
}
-func (c *schemaDesignServiceClient) DeparseSchemaMetadata(ctx context.Context, in *DeparseSchemaMetadataRequest, opts ...grpc.CallOption) (*DeparseSchemaMetadataResponse, error) {
- out := new(DeparseSchemaMetadataResponse)
- err := c.cc.Invoke(ctx, SchemaDesignService_DeparseSchemaMetadata_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
-}
-
func (c *schemaDesignServiceClient) DeleteSchemaDesign(ctx context.Context, in *DeleteSchemaDesignRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, SchemaDesignService_DeleteSchemaDesign_FullMethodName, in, out, opts...)
@@ -145,7 +134,6 @@ type SchemaDesignServiceServer interface {
UpdateSchemaDesign(context.Context, *UpdateSchemaDesignRequest) (*SchemaDesign, error)
MergeSchemaDesign(context.Context, *MergeSchemaDesignRequest) (*SchemaDesign, error)
ParseSchemaString(context.Context, *ParseSchemaStringRequest) (*ParseSchemaStringResponse, error)
- DeparseSchemaMetadata(context.Context, *DeparseSchemaMetadataRequest) (*DeparseSchemaMetadataResponse, error)
DeleteSchemaDesign(context.Context, *DeleteSchemaDesignRequest) (*emptypb.Empty, error)
DiffMetadata(context.Context, *DiffMetadataRequest) (*DiffMetadataResponse, error)
mustEmbedUnimplementedSchemaDesignServiceServer()
@@ -173,9 +161,6 @@ func (UnimplementedSchemaDesignServiceServer) MergeSchemaDesign(context.Context,
func (UnimplementedSchemaDesignServiceServer) ParseSchemaString(context.Context, *ParseSchemaStringRequest) (*ParseSchemaStringResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ParseSchemaString not implemented")
}
-func (UnimplementedSchemaDesignServiceServer) DeparseSchemaMetadata(context.Context, *DeparseSchemaMetadataRequest) (*DeparseSchemaMetadataResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeparseSchemaMetadata not implemented")
-}
func (UnimplementedSchemaDesignServiceServer) DeleteSchemaDesign(context.Context, *DeleteSchemaDesignRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteSchemaDesign not implemented")
}
@@ -303,24 +288,6 @@ func _SchemaDesignService_ParseSchemaString_Handler(srv interface{}, ctx context
return interceptor(ctx, in, info, handler)
}
-func _SchemaDesignService_DeparseSchemaMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeparseSchemaMetadataRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SchemaDesignServiceServer).DeparseSchemaMetadata(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: SchemaDesignService_DeparseSchemaMetadata_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SchemaDesignServiceServer).DeparseSchemaMetadata(ctx, req.(*DeparseSchemaMetadataRequest))
- }
- return interceptor(ctx, in, info, handler)
-}
-
func _SchemaDesignService_DeleteSchemaDesign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteSchemaDesignRequest)
if err := dec(in); err != nil {
@@ -388,10 +355,6 @@ var SchemaDesignService_ServiceDesc = grpc.ServiceDesc{
MethodName: "ParseSchemaString",
Handler: _SchemaDesignService_ParseSchemaString_Handler,
},
- {
- MethodName: "DeparseSchemaMetadata",
- Handler: _SchemaDesignService_DeparseSchemaMetadata_Handler,
- },
{
MethodName: "DeleteSchemaDesign",
Handler: _SchemaDesignService_DeleteSchemaDesign_Handler,
diff --git a/proto/v1/schema_design_service.proto b/proto/v1/schema_design_service.proto
index 0dcce397f2..f031a1ff46 100644
--- a/proto/v1/schema_design_service.proto
+++ b/proto/v1/schema_design_service.proto
@@ -52,13 +52,6 @@ service SchemaDesignService {
};
}
- rpc DeparseSchemaMetadata(DeparseSchemaMetadataRequest) returns (DeparseSchemaMetadataResponse) {
- option (google.api.http) = {
- post: "/v1/schemaDesign:deparseSchemaMetadata"
- body: "*"
- };
- }
-
rpc DeleteSchemaDesign(DeleteSchemaDesignRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {delete: "/v1/{name=projects/*/schemaDesigns/*}"};
option (google.api.method_signature) = "name";
@@ -223,19 +216,6 @@ message ParseSchemaStringResponse {
DatabaseMetadata schema_metadata = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
}
-message DeparseSchemaMetadataRequest {
- // The metadata of the schema to deparse.
- DatabaseMetadata schema_metadata = 1 [(google.api.field_behavior) = REQUIRED];
-
- // The database engine of the schema string.
- Engine engine = 2;
-}
-
-message DeparseSchemaMetadataResponse {
- // The schema string.
- string schema_string = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-}
-
message DeleteSchemaDesignRequest {
// The name of the schema design to delete.
// Format: projects/{project}/schemaDesigns/{schemaDesign}