// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: openapi/dp/restore.proto

package dp

import (
	_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
	cm "github.com/tidbcloud/idl/pbgen/proto/openapi/cm"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type ListRestoreRespItem_StatusEnum int32

const (
	ListRestoreRespItem_RESTORE_STATUS_UNSPECIFIED ListRestoreRespItem_StatusEnum = 0
	ListRestoreRespItem_PENDING                    ListRestoreRespItem_StatusEnum = 1
	ListRestoreRespItem_RUNNING                    ListRestoreRespItem_StatusEnum = 2
	ListRestoreRespItem_FAILED                     ListRestoreRespItem_StatusEnum = 3
	ListRestoreRespItem_SUCCESS                    ListRestoreRespItem_StatusEnum = 4
)

// Enum value maps for ListRestoreRespItem_StatusEnum.
var (
	ListRestoreRespItem_StatusEnum_name = map[int32]string{
		0: "RESTORE_STATUS_UNSPECIFIED",
		1: "PENDING",
		2: "RUNNING",
		3: "FAILED",
		4: "SUCCESS",
	}
	ListRestoreRespItem_StatusEnum_value = map[string]int32{
		"RESTORE_STATUS_UNSPECIFIED": 0,
		"PENDING":                    1,
		"RUNNING":                    2,
		"FAILED":                     3,
		"SUCCESS":                    4,
	}
)

func (x ListRestoreRespItem_StatusEnum) Enum() *ListRestoreRespItem_StatusEnum {
	p := new(ListRestoreRespItem_StatusEnum)
	*p = x
	return p
}

func (x ListRestoreRespItem_StatusEnum) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ListRestoreRespItem_StatusEnum) Descriptor() protoreflect.EnumDescriptor {
	return file_openapi_dp_restore_proto_enumTypes[0].Descriptor()
}

func (ListRestoreRespItem_StatusEnum) Type() protoreflect.EnumType {
	return &file_openapi_dp_restore_proto_enumTypes[0]
}

func (x ListRestoreRespItem_StatusEnum) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ListRestoreRespItem_StatusEnum.Descriptor instead.
func (ListRestoreRespItem_StatusEnum) EnumDescriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{4, 0}
}

type GetRestoreResp_StatusEnum int32

const (
	GetRestoreResp_RESTORE_STATUS_UNSPECIFIED GetRestoreResp_StatusEnum = 0
	GetRestoreResp_PENDING                    GetRestoreResp_StatusEnum = 1
	GetRestoreResp_RUNNING                    GetRestoreResp_StatusEnum = 2
	GetRestoreResp_FAILED                     GetRestoreResp_StatusEnum = 3
	GetRestoreResp_SUCCESS                    GetRestoreResp_StatusEnum = 4
)

// Enum value maps for GetRestoreResp_StatusEnum.
var (
	GetRestoreResp_StatusEnum_name = map[int32]string{
		0: "RESTORE_STATUS_UNSPECIFIED",
		1: "PENDING",
		2: "RUNNING",
		3: "FAILED",
		4: "SUCCESS",
	}
	GetRestoreResp_StatusEnum_value = map[string]int32{
		"RESTORE_STATUS_UNSPECIFIED": 0,
		"PENDING":                    1,
		"RUNNING":                    2,
		"FAILED":                     3,
		"SUCCESS":                    4,
	}
)

func (x GetRestoreResp_StatusEnum) Enum() *GetRestoreResp_StatusEnum {
	p := new(GetRestoreResp_StatusEnum)
	*p = x
	return p
}

func (x GetRestoreResp_StatusEnum) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (GetRestoreResp_StatusEnum) Descriptor() protoreflect.EnumDescriptor {
	return file_openapi_dp_restore_proto_enumTypes[1].Descriptor()
}

func (GetRestoreResp_StatusEnum) Type() protoreflect.EnumType {
	return &file_openapi_dp_restore_proto_enumTypes[1]
}

func (x GetRestoreResp_StatusEnum) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use GetRestoreResp_StatusEnum.Descriptor instead.
func (GetRestoreResp_StatusEnum) EnumDescriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{7, 0}
}

type CreateRestoreReq struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ProjectId     uint64                 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	BackupId      uint64                 `protobuf:"varint,2,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	Name          string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Config        *cm.ClusterConfig      `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateRestoreReq) Reset() {
	*x = CreateRestoreReq{}
	mi := &file_openapi_dp_restore_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateRestoreReq) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateRestoreReq) ProtoMessage() {}

func (x *CreateRestoreReq) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_dp_restore_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateRestoreReq.ProtoReflect.Descriptor instead.
func (*CreateRestoreReq) Descriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{0}
}

func (x *CreateRestoreReq) GetProjectId() uint64 {
	if x != nil {
		return x.ProjectId
	}
	return 0
}

func (x *CreateRestoreReq) GetBackupId() uint64 {
	if x != nil {
		return x.BackupId
	}
	return 0
}

func (x *CreateRestoreReq) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *CreateRestoreReq) GetConfig() *cm.ClusterConfig {
	if x != nil {
		return x.Config
	}
	return nil
}

type CreateRestoreResp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            uint64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ClusterId     uint64                 `protobuf:"varint,2,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *CreateRestoreResp) Reset() {
	*x = CreateRestoreResp{}
	mi := &file_openapi_dp_restore_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *CreateRestoreResp) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateRestoreResp) ProtoMessage() {}

func (x *CreateRestoreResp) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_dp_restore_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateRestoreResp.ProtoReflect.Descriptor instead.
func (*CreateRestoreResp) Descriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{1}
}

func (x *CreateRestoreResp) GetId() uint64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *CreateRestoreResp) GetClusterId() uint64 {
	if x != nil {
		return x.ClusterId
	}
	return 0
}

type ListRestoreOfProjectReq struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Page          int32                  `protobuf:"varint,100,opt,name=page,proto3" json:"page,omitempty"`
	PageSize      int32                  `protobuf:"varint,101,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	ProjectId     uint64                 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListRestoreOfProjectReq) Reset() {
	*x = ListRestoreOfProjectReq{}
	mi := &file_openapi_dp_restore_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListRestoreOfProjectReq) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListRestoreOfProjectReq) ProtoMessage() {}

func (x *ListRestoreOfProjectReq) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_dp_restore_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListRestoreOfProjectReq.ProtoReflect.Descriptor instead.
func (*ListRestoreOfProjectReq) Descriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{2}
}

func (x *ListRestoreOfProjectReq) GetPage() int32 {
	if x != nil {
		return x.Page
	}
	return 0
}

func (x *ListRestoreOfProjectReq) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListRestoreOfProjectReq) GetProjectId() uint64 {
	if x != nil {
		return x.ProjectId
	}
	return 0
}

type ListRestoreOfProjectResp struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Items         []*ListRestoreRespItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	Total         uint32                 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ListRestoreOfProjectResp) Reset() {
	*x = ListRestoreOfProjectResp{}
	mi := &file_openapi_dp_restore_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListRestoreOfProjectResp) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListRestoreOfProjectResp) ProtoMessage() {}

func (x *ListRestoreOfProjectResp) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_dp_restore_proto_msgTypes[3]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListRestoreOfProjectResp.ProtoReflect.Descriptor instead.
func (*ListRestoreOfProjectResp) Descriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{3}
}

func (x *ListRestoreOfProjectResp) GetItems() []*ListRestoreRespItem {
	if x != nil {
		return x.Items
	}
	return nil
}

func (x *ListRestoreOfProjectResp) GetTotal() uint32 {
	if x != nil {
		return x.Total
	}
	return 0
}

type ListRestoreRespItem struct {
	state           protoimpl.MessageState         `protogen:"open.v1"`
	Id              uint64                         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreateTimestamp *timestamppb.Timestamp         `protobuf:"bytes,2,opt,name=create_timestamp,json=createTimestamp,proto3" json:"create_timestamp,omitempty"`
	BackupId        uint64                         `protobuf:"varint,3,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	ClusterId       uint64                         `protobuf:"varint,4,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	Status          ListRestoreRespItem_StatusEnum `protobuf:"varint,5,opt,name=status,proto3,enum=openapi.ListRestoreRespItem_StatusEnum" json:"status,omitempty"`
	Cluster         *ClusterInfoOfRestore          `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`
	ErrorMessage    string                         `protobuf:"bytes,7,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

func (x *ListRestoreRespItem) Reset() {
	*x = ListRestoreRespItem{}
	mi := &file_openapi_dp_restore_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ListRestoreRespItem) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListRestoreRespItem) ProtoMessage() {}

func (x *ListRestoreRespItem) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_dp_restore_proto_msgTypes[4]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListRestoreRespItem.ProtoReflect.Descriptor instead.
func (*ListRestoreRespItem) Descriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{4}
}

func (x *ListRestoreRespItem) GetId() uint64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *ListRestoreRespItem) GetCreateTimestamp() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTimestamp
	}
	return nil
}

func (x *ListRestoreRespItem) GetBackupId() uint64 {
	if x != nil {
		return x.BackupId
	}
	return 0
}

func (x *ListRestoreRespItem) GetClusterId() uint64 {
	if x != nil {
		return x.ClusterId
	}
	return 0
}

func (x *ListRestoreRespItem) GetStatus() ListRestoreRespItem_StatusEnum {
	if x != nil {
		return x.Status
	}
	return ListRestoreRespItem_RESTORE_STATUS_UNSPECIFIED
}

func (x *ListRestoreRespItem) GetCluster() *ClusterInfoOfRestore {
	if x != nil {
		return x.Cluster
	}
	return nil
}

func (x *ListRestoreRespItem) GetErrorMessage() string {
	if x != nil {
		return x.ErrorMessage
	}
	return ""
}

type ClusterInfoOfRestore struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            uint64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name          string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Status        string                 `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ClusterInfoOfRestore) Reset() {
	*x = ClusterInfoOfRestore{}
	mi := &file_openapi_dp_restore_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *ClusterInfoOfRestore) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ClusterInfoOfRestore) ProtoMessage() {}

func (x *ClusterInfoOfRestore) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_dp_restore_proto_msgTypes[5]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ClusterInfoOfRestore.ProtoReflect.Descriptor instead.
func (*ClusterInfoOfRestore) Descriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{5}
}

func (x *ClusterInfoOfRestore) GetId() uint64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *ClusterInfoOfRestore) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *ClusterInfoOfRestore) GetStatus() string {
	if x != nil {
		return x.Status
	}
	return ""
}

type GetRestoreReq struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	ProjectId     uint64                 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	RestoreId     uint64                 `protobuf:"varint,2,opt,name=restore_id,json=restoreId,proto3" json:"restore_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *GetRestoreReq) Reset() {
	*x = GetRestoreReq{}
	mi := &file_openapi_dp_restore_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetRestoreReq) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetRestoreReq) ProtoMessage() {}

func (x *GetRestoreReq) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_dp_restore_proto_msgTypes[6]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetRestoreReq.ProtoReflect.Descriptor instead.
func (*GetRestoreReq) Descriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{6}
}

func (x *GetRestoreReq) GetProjectId() uint64 {
	if x != nil {
		return x.ProjectId
	}
	return 0
}

func (x *GetRestoreReq) GetRestoreId() uint64 {
	if x != nil {
		return x.RestoreId
	}
	return 0
}

type GetRestoreResp struct {
	state           protoimpl.MessageState    `protogen:"open.v1"`
	Id              uint64                    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreateTimestamp *timestamppb.Timestamp    `protobuf:"bytes,2,opt,name=create_timestamp,json=createTimestamp,proto3" json:"create_timestamp,omitempty"`
	BackupId        uint64                    `protobuf:"varint,3,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	ClusterId       uint64                    `protobuf:"varint,4,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	Status          GetRestoreResp_StatusEnum `protobuf:"varint,5,opt,name=status,proto3,enum=openapi.GetRestoreResp_StatusEnum" json:"status,omitempty"`
	Cluster         *ClusterInfoOfRestore     `protobuf:"bytes,6,opt,name=cluster,proto3" json:"cluster,omitempty"`
	ErrorMessage    string                    `protobuf:"bytes,7,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

func (x *GetRestoreResp) Reset() {
	*x = GetRestoreResp{}
	mi := &file_openapi_dp_restore_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *GetRestoreResp) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetRestoreResp) ProtoMessage() {}

func (x *GetRestoreResp) ProtoReflect() protoreflect.Message {
	mi := &file_openapi_dp_restore_proto_msgTypes[7]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetRestoreResp.ProtoReflect.Descriptor instead.
func (*GetRestoreResp) Descriptor() ([]byte, []int) {
	return file_openapi_dp_restore_proto_rawDescGZIP(), []int{7}
}

func (x *GetRestoreResp) GetId() uint64 {
	if x != nil {
		return x.Id
	}
	return 0
}

func (x *GetRestoreResp) GetCreateTimestamp() *timestamppb.Timestamp {
	if x != nil {
		return x.CreateTimestamp
	}
	return nil
}

func (x *GetRestoreResp) GetBackupId() uint64 {
	if x != nil {
		return x.BackupId
	}
	return 0
}

func (x *GetRestoreResp) GetClusterId() uint64 {
	if x != nil {
		return x.ClusterId
	}
	return 0
}

func (x *GetRestoreResp) GetStatus() GetRestoreResp_StatusEnum {
	if x != nil {
		return x.Status
	}
	return GetRestoreResp_RESTORE_STATUS_UNSPECIFIED
}

func (x *GetRestoreResp) GetCluster() *ClusterInfoOfRestore {
	if x != nil {
		return x.Cluster
	}
	return nil
}

func (x *GetRestoreResp) GetErrorMessage() string {
	if x != nil {
		return x.ErrorMessage
	}
	return ""
}

var File_openapi_dp_restore_proto protoreflect.FileDescriptor

const file_openapi_dp_restore_proto_rawDesc = "" +
	"\n" +
	"\x18openapi/dp/restore.proto\x12\aopenapi\x1a\x13openapi/cm/cm.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a.protoc-gen-openapiv2/options/annotations.proto\"\x86\a\n" +
	"\x10CreateRestoreReq\x12\xb8\x01\n" +
	"\n" +
	"project_id\x18\x01 \x01(\x04B\x98\x01\x92A\x94\x012\x8c\x01The ID of the project. You can get the project ID from the response of [List all accessible projects.](#tag/Project/operation/ListProjects).J\x03\"1\"R\tprojectId\x12<\n" +
	"\tbackup_id\x18\x02 \x01(\x04B\x1f\x92A\x1c2\x15The ID of the backup.J\x03\"1\"R\bbackupId\x12\x8d\x03\n" +
	"\x04name\x18\x03 \x01(\tB\xf8\x02\x92A\xf4\x022\xb8\x02The name of the restored cluster. The restored cluster is the new cluster your backup data is restored to.\n" +
	"\n" +
	"- The name must be 4-64 characters that only contain numbers, letters, and hyphens. The first and last character must be a letter or number.\n" +
	"- This must be different from the name of the existing cluster.J\n" +
	"\"Cluster0\"\x8a\x01*^[A-Za-z0-9][-A-Za-z0-9]{2,62}[A-Za-z0-9]$R\x04name\x12V\n" +
	"\x06config\x18\x04 \x01(\v2\x16.openapi.ClusterConfigB&\x92A#2!The configuration of the cluster.R\x06config:\x90\x01\x92A\x8c\x01\n" +
	"\x89\x01*\x10CreateRestoreReq2FCreateRestoreReq is the request for restoring backup to a new cluster.\xd2\x01\tbackup_id\xd2\x01\n" +
	"project_id\xd2\x01\x04name\xd2\x01\fcluster_spec\"\xc2\x02\n" +
	"\x11CreateRestoreResp\x125\n" +
	"\x02id\x18\x01 \x01(\x04B%\x92A\"2\x1bThe ID of the restore task.J\x03\"1\"R\x02id\x12\x91\x01\n" +
	"\n" +
	"cluster_id\x18\x02 \x01(\x04Br\x92Ao2hThe ID of the restored cluster. The restored cluster is the new cluster your backup data is restored to.J\x03\"1\"R\tclusterId:b\x92A_\n" +
	"]*\x11CreateRestoreResp2HCreateRestoreResp is the response for restoring backup to a new cluster.\"\x9e\x03\n" +
	"\x17ListRestoreOfProjectReq\x123\n" +
	"\x04page\x18d \x01(\x05B\x1f\x92A\x1c2\x14The number of pages.:\x011J\x011R\x04page\x12O\n" +
	"\tpage_size\x18e \x01(\x05B2\x92A/2\x13The size of a page.:\x0210J\x0210Y\x00\x00\x00\x00\x00\x00Y@i\x00\x00\x00\x00\x00\x00\xf0?R\bpageSize\x12\xb9\x01\n" +
	"\n" +
	"project_id\x18\x01 \x01(\x04B\x99\x01\x92A\x95\x012\x8d\x01The ID of your project. You can get the project ID from the response of [List all accessible projects.](#tag/Project/operation/ListProjects).J\x03\"1\"R\tprojectId:A\x92A>\n" +
	"<*\x0eListRestoreReq2\x1dThe request for list restore.\xd2\x01\n" +
	"project_id\"\xff\x01\n" +
	"\x18ListRestoreOfProjectResp\x12X\n" +
	"\x05items\x18\x01 \x03(\v2\x1c.openapi.ListRestoreRespItemB$\x92A!2\x1fThe items of all restore tasks.R\x05items\x12P\n" +
	"\x05total\x18\x02 \x01(\rB:\x92A721The total number of restore tasks in the project.J\x0210R\x05total:7\x92A4\n" +
	"2*\x0fListRestoreResp2\x1fThis response for list restore.\"\xe3\b\n" +
	"\x13ListRestoreRespItem\x125\n" +
	"\x02id\x18\x01 \x01(\x04B%\x92A\"2\x1bThe ID of the restore task.J\x03\"1\"R\x02id\x12\xde\x02\n" +
	"\x10create_timestamp\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x96\x02\x92A\x92\x022\xf7\x01The creation time of the backup in UTC.\n" +
	"\n" +
	"The time format follows the [ISO8601](http://en.wikipedia.org/wiki/ISO_8601) standard, which is `YYYY-MM-DD` (year-month-day) + T +`HH:MM:SS` (hour-minutes-seconds) + Z. For example, `2020-01-01T00:00:00Z`.J\x16\"2020-01-01T00:00:00Z\"R\x0fcreateTimestamp\x12<\n" +
	"\tbackup_id\x18\x03 \x01(\x04B\x1f\x92A\x1c2\x15The ID of the backup.J\x03\"1\"R\bbackupId\x12F\n" +
	"\n" +
	"cluster_id\x18\x04 \x01(\x04B'\x92A$2\x1dThe cluster ID of the backup.J\x03\"1\"R\tclusterId\x12p\n" +
	"\x06status\x18\x05 \x01(\x0e2'.openapi.ListRestoreRespItem.StatusEnumB/\x92A,2\x1fThe status of the restore task.J\t\"PENDING\"R\x06status\x12\xaf\x01\n" +
	"\acluster\x18\x06 \x01(\v2\x1d.openapi.ClusterInfoOfRestoreBv\x92As2qThe information of the restored cluster. The restored cluster is the new cluster your backup data is restored to.R\acluster\x12l\n" +
	"\rerror_message\x18\a \x01(\tBG\x92AD2'The error message of restore if failed.J\x19\"Please contact support.\"R\ferrorMessage\"_\n" +
	"\n" +
	"StatusEnum\x12\x1e\n" +
	"\x1aRESTORE_STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\v\n" +
	"\aRUNNING\x10\x02\x12\n" +
	"\n" +
	"\x06FAILED\x10\x03\x12\v\n" +
	"\aSUCCESS\x10\x04:;\x92A8\n" +
	"6*\x13ListRestoreRespItem2\x1fThe items of all restore tasks.\"\x9f\x05\n" +
	"\x14ClusterInfoOfRestore\x12\x82\x01\n" +
	"\x02id\x18\x01 \x01(\x04Br\x92Ao2hThe ID of the restored cluster. The restored cluster is the new cluster your backup data is restored to.J\x03\"1\"R\x02id\x12\x90\x01\n" +
	"\x04name\x18\x02 \x01(\tB|\x92Ay2jThe name of the restored cluster. The restored cluster is the new cluster your backup data is restored to.J\v\"cluster-1\"R\x04name\x12\xdb\x01\n" +
	"\x06status\x18\x03 \x01(\tB\xc2\x01\x92A\xbe\x012\xae\x01The status of the restored cluster. Possible values are `\"AVAILABLE\"`, `\"CREATING\"`, `\"MODIFYING\"`, `\"PAUSED\"`, `\"RESUMING\"`, `\"UNAVAILABLE\"`, `\"IMPORTING\"`, and `\"CLEARED\"`.J\v\"AVAILABLE\"R\x06status:\x90\x01\x92A\x8c\x01\n" +
	"\x89\x01*\x14ClusterInfoOfRestore2qThe information of the restored cluster. The restored cluster is the new cluster your backup data is restored to.\"\xd2\x02\n" +
	"\rGetRestoreReq\x12\xb9\x01\n" +
	"\n" +
	"project_id\x18\x01 \x01(\x04B\x99\x01\x92A\x95\x012\x8d\x01The ID of your project. You can get the project ID from the response of [List all accessible projects.](#tag/Project/operation/ListProjects).J\x03\"1\"R\tprojectId\x12D\n" +
	"\n" +
	"restore_id\x18\x02 \x01(\x04B%\x92A\"2\x1bThe ID of the restore task.J\x03\"1\"R\trestoreId:?\x92A<\n" +
	":*\rGetRestoreReq2\x1cThe request for get restore.\xd2\x01\n" +
	"restore_id\"\xd2\b\n" +
	"\x0eGetRestoreResp\x125\n" +
	"\x02id\x18\x01 \x01(\x04B%\x92A\"2\x1bThe ID of the restore task.J\x03\"1\"R\x02id\x12\xde\x02\n" +
	"\x10create_timestamp\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampB\x96\x02\x92A\x92\x022\xf7\x01The creation time of the backup in UTC.\n" +
	"\n" +
	"The time format follows the [ISO8601](http://en.wikipedia.org/wiki/ISO_8601) standard, which is `YYYY-MM-DD` (year-month-day) + T +`HH:MM:SS` (hour-minutes-seconds) + Z. For example, `2020-01-01T00:00:00Z`.J\x16\"2020-01-01T00:00:00Z\"R\x0fcreateTimestamp\x12<\n" +
	"\tbackup_id\x18\x03 \x01(\x04B\x1f\x92A\x1c2\x15The ID of the backup.J\x03\"1\"R\bbackupId\x12F\n" +
	"\n" +
	"cluster_id\x18\x04 \x01(\x04B'\x92A$2\x1dThe cluster ID of the backup.J\x03\"1\"R\tclusterId\x12k\n" +
	"\x06status\x18\x05 \x01(\x0e2\".openapi.GetRestoreResp.StatusEnumB/\x92A,2\x1fThe status of the restore task.J\t\"PENDING\"R\x06status\x12\xaf\x01\n" +
	"\acluster\x18\x06 \x01(\v2\x1d.openapi.ClusterInfoOfRestoreBv\x92As2qThe information of the restored cluster. The restored cluster is the new cluster your backup data is restored to.R\acluster\x12l\n" +
	"\rerror_message\x18\a \x01(\tBG\x92AD2'The error message of restore if failed.J\x19\"Please contact support.\"R\ferrorMessage\"_\n" +
	"\n" +
	"StatusEnum\x12\x1e\n" +
	"\x1aRESTORE_STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\v\n" +
	"\aRUNNING\x10\x02\x12\n" +
	"\n" +
	"\x06FAILED\x10\x03\x12\v\n" +
	"\aSUCCESS\x10\x04:4\x92A1\n" +
	"/*\x0eGetRestoreResp2\x1dThe response for get restore.2\x86\f\n" +
	"\aRestore\x12\xa3\x02\n" +
	"\x14ListRestoreOfProject\x12 .openapi.ListRestoreOfProjectReq\x1a!.openapi.ListRestoreOfProjectResp\"\xc5\x01\x92A\x8f\x01\x12$List the restore tasks in a project.\x1aU\n" +
	"For TiDB Cloud Starter instances, you cannot create or manage restore tasks via API.*\x10ListRestoreTasks\x82\xd3\xe4\x93\x02,\x12*/api/v1beta/projects/{project_id}/restores\x12\xf4\x01\n" +
	"\n" +
	"GetRestore\x12\x16.openapi.GetRestoreReq\x1a\x17.openapi.GetRestoreResp\"\xb4\x01\x92Ar\x12\x13Get a restore task.\x1aK\n" +
	"For TiDB Cloud Starter instances, you cannot manage restore tasks via API.*\x0eGetRestoreTask\x82\xd3\xe4\x93\x029\x127/api/v1beta/projects/{project_id}/restores/{restore_id}\x12\xa5\x05\n" +
	"\rCreateRestore\x12\x19.openapi.CreateRestoreReq\x1a\x1a.openapi.CreateRestoreResp\"\xdc\x04\x92A\xa3\x04\x12\x16Create a restore task.\x1a\xf5\x03You can use this endpoint to restore data from a previously created backup file to a new cluster. In this endpoint, you must specify the configuration of the new cluster you want to restore data to.\n" +
	"\n" +
	"**Limitations:**\n" +
	"\n" +
	"- For TiDB Cloud Dedicated clusters, you can only restore data from a smaller node size to a larger node size.\n" +
	"\n" +
	"- You cannot restore data from a TiDB Cloud Dedicated cluster to a TiDB Cloud Starter instance.\n" +
	"\n" +
	"For TiDB Cloud Starter instances, you cannot create restore tasks via API.*\x11CreateRestoreTask\x82\xd3\xe4\x93\x02/:\x01*\"*/api/v1beta/projects/{project_id}/restores\x1a\xb5\x02\x92A\xb1\x02\x12\xae\x02Get and create restore tasks for TiDB clusters. You can only restore data to a new cluster.\n" +
	"\n" +
	"For more information on restoration on TiDB Cloud, refer to [Restore](https://docs.pingcap.com/tidbcloud/backup-and-restore#restore).\n" +
	"\n" +
	"For TiDB Cloud Starter instances, you cannot manage restore tasks via API.B1Z/github.com/tidbcloud/idl/pbgen/proto/openapi/dpb\x06proto3"

var (
	file_openapi_dp_restore_proto_rawDescOnce sync.Once
	file_openapi_dp_restore_proto_rawDescData []byte
)

func file_openapi_dp_restore_proto_rawDescGZIP() []byte {
	file_openapi_dp_restore_proto_rawDescOnce.Do(func() {
		file_openapi_dp_restore_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_openapi_dp_restore_proto_rawDesc), len(file_openapi_dp_restore_proto_rawDesc)))
	})
	return file_openapi_dp_restore_proto_rawDescData
}

var file_openapi_dp_restore_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_openapi_dp_restore_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_openapi_dp_restore_proto_goTypes = []any{
	(ListRestoreRespItem_StatusEnum)(0), // 0: openapi.ListRestoreRespItem.StatusEnum
	(GetRestoreResp_StatusEnum)(0),      // 1: openapi.GetRestoreResp.StatusEnum
	(*CreateRestoreReq)(nil),            // 2: openapi.CreateRestoreReq
	(*CreateRestoreResp)(nil),           // 3: openapi.CreateRestoreResp
	(*ListRestoreOfProjectReq)(nil),     // 4: openapi.ListRestoreOfProjectReq
	(*ListRestoreOfProjectResp)(nil),    // 5: openapi.ListRestoreOfProjectResp
	(*ListRestoreRespItem)(nil),         // 6: openapi.ListRestoreRespItem
	(*ClusterInfoOfRestore)(nil),        // 7: openapi.ClusterInfoOfRestore
	(*GetRestoreReq)(nil),               // 8: openapi.GetRestoreReq
	(*GetRestoreResp)(nil),              // 9: openapi.GetRestoreResp
	(*cm.ClusterConfig)(nil),            // 10: openapi.ClusterConfig
	(*timestamppb.Timestamp)(nil),       // 11: google.protobuf.Timestamp
}
var file_openapi_dp_restore_proto_depIdxs = []int32{
	10, // 0: openapi.CreateRestoreReq.config:type_name -> openapi.ClusterConfig
	6,  // 1: openapi.ListRestoreOfProjectResp.items:type_name -> openapi.ListRestoreRespItem
	11, // 2: openapi.ListRestoreRespItem.create_timestamp:type_name -> google.protobuf.Timestamp
	0,  // 3: openapi.ListRestoreRespItem.status:type_name -> openapi.ListRestoreRespItem.StatusEnum
	7,  // 4: openapi.ListRestoreRespItem.cluster:type_name -> openapi.ClusterInfoOfRestore
	11, // 5: openapi.GetRestoreResp.create_timestamp:type_name -> google.protobuf.Timestamp
	1,  // 6: openapi.GetRestoreResp.status:type_name -> openapi.GetRestoreResp.StatusEnum
	7,  // 7: openapi.GetRestoreResp.cluster:type_name -> openapi.ClusterInfoOfRestore
	4,  // 8: openapi.Restore.ListRestoreOfProject:input_type -> openapi.ListRestoreOfProjectReq
	8,  // 9: openapi.Restore.GetRestore:input_type -> openapi.GetRestoreReq
	2,  // 10: openapi.Restore.CreateRestore:input_type -> openapi.CreateRestoreReq
	5,  // 11: openapi.Restore.ListRestoreOfProject:output_type -> openapi.ListRestoreOfProjectResp
	9,  // 12: openapi.Restore.GetRestore:output_type -> openapi.GetRestoreResp
	3,  // 13: openapi.Restore.CreateRestore:output_type -> openapi.CreateRestoreResp
	11, // [11:14] is the sub-list for method output_type
	8,  // [8:11] is the sub-list for method input_type
	8,  // [8:8] is the sub-list for extension type_name
	8,  // [8:8] is the sub-list for extension extendee
	0,  // [0:8] is the sub-list for field type_name
}

func init() { file_openapi_dp_restore_proto_init() }
func file_openapi_dp_restore_proto_init() {
	if File_openapi_dp_restore_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_openapi_dp_restore_proto_rawDesc), len(file_openapi_dp_restore_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   8,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_openapi_dp_restore_proto_goTypes,
		DependencyIndexes: file_openapi_dp_restore_proto_depIdxs,
		EnumInfos:         file_openapi_dp_restore_proto_enumTypes,
		MessageInfos:      file_openapi_dp_restore_proto_msgTypes,
	}.Build()
	File_openapi_dp_restore_proto = out.File
	file_openapi_dp_restore_proto_goTypes = nil
	file_openapi_dp_restore_proto_depIdxs = nil
}
