// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/mdb/redis/v1/backup_service.proto

package redis

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud/api"
	operation "github.com/yandex-cloud/go-genproto/yandex/cloud/operation"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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 GetBackupRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the Redis backup to return.
	// To get the backup ID, use a [ClusterService.ListBackups] request.
	BackupId      string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetBackupRequest) ProtoMessage() {}

func (x *GetBackupRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_redis_v1_backup_service_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 GetBackupRequest.ProtoReflect.Descriptor instead.
func (*GetBackupRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescGZIP(), []int{0}
}

func (x *GetBackupRequest) GetBackupId() string {
	if x != nil {
		return x.BackupId
	}
	return ""
}

type ListBackupsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the folder to list backups in.
	// To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size], the service returns a [ListBackupsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set [page_token] to the [ListBackupsResponse.next_page_token]
	// returned by the previous list request.
	PageToken     string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListBackupsRequest) ProtoMessage() {}

func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_redis_v1_backup_service_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 ListBackupsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupsRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescGZIP(), []int{1}
}

func (x *ListBackupsRequest) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

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

func (x *ListBackupsRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

type ListBackupsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Requested list of backups.
	Backups []*Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListBackupsRequest.page_size], use the [next_page_token] as the value
	// for the [ListBackupsRequest.page_token] parameter in the next list request. Each subsequent
	// list request will have its own [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListBackupsResponse) ProtoMessage() {}

func (x *ListBackupsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_redis_v1_backup_service_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 ListBackupsResponse.ProtoReflect.Descriptor instead.
func (*ListBackupsResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescGZIP(), []int{2}
}

func (x *ListBackupsResponse) GetBackups() []*Backup {
	if x != nil {
		return x.Backups
	}
	return nil
}

func (x *ListBackupsResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

type DeleteBackupRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. ID of the backup to delete.
	BackupId      string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteBackupRequest) ProtoMessage() {}

func (x *DeleteBackupRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_redis_v1_backup_service_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 DeleteBackupRequest.ProtoReflect.Descriptor instead.
func (*DeleteBackupRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescGZIP(), []int{3}
}

func (x *DeleteBackupRequest) GetBackupId() string {
	if x != nil {
		return x.BackupId
	}
	return ""
}

type DeleteBackupMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. ID of the deleting Redis backup.
	BackupId      string `protobuf:"bytes,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DeleteBackupMetadata) ProtoMessage() {}

func (x *DeleteBackupMetadata) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_redis_v1_backup_service_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 DeleteBackupMetadata.ProtoReflect.Descriptor instead.
func (*DeleteBackupMetadata) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescGZIP(), []int{4}
}

func (x *DeleteBackupMetadata) GetBackupId() string {
	if x != nil {
		return x.BackupId
	}
	return ""
}

var File_yandex_cloud_mdb_redis_v1_backup_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDesc = "" +
	"\n" +
	".yandex/cloud/mdb/redis/v1/backup_service.proto\x12\x19yandex.cloud.mdb.redis.v1\x1a\x1cgoogle/api/annotations.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a&yandex/cloud/mdb/redis/v1/backup.proto\"5\n" +
	"\x10GetBackupRequest\x12!\n" +
	"\tbackup_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\bbackupId\"\x92\x01\n" +
	"\x12ListBackupsRequest\x12)\n" +
	"\tfolder_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\bfolderId\x12'\n" +
	"\tpage_size\x18\x02 \x01(\x03B\n" +
	"\xfa\xc71\x060-1000R\bpageSize\x12(\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\t\x8a\xc81\x05<=100R\tpageToken\"z\n" +
	"\x13ListBackupsResponse\x12;\n" +
	"\abackups\x18\x01 \x03(\v2!.yandex.cloud.mdb.redis.v1.BackupR\abackups\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"8\n" +
	"\x13DeleteBackupRequest\x12!\n" +
	"\tbackup_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\bbackupId\"3\n" +
	"\x14DeleteBackupMetadata\x12\x1b\n" +
	"\tbackup_id\x18\x01 \x01(\tR\bbackupId2\xdf\x03\n" +
	"\rBackupService\x12\x84\x01\n" +
	"\x03Get\x12+.yandex.cloud.mdb.redis.v1.GetBackupRequest\x1a!.yandex.cloud.mdb.redis.v1.Backup\"-\x82\xd3\xe4\x93\x02'\x12%/managed-redis/v1/backups/{backup_id}\x12\x88\x01\n" +
	"\x04List\x12-.yandex.cloud.mdb.redis.v1.ListBackupsRequest\x1a..yandex.cloud.mdb.redis.v1.ListBackupsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/managed-redis/v1/backups\x12\xbb\x01\n" +
	"\x06Delete\x12..yandex.cloud.mdb.redis.v1.DeleteBackupRequest\x1a!.yandex.cloud.operation.Operation\"^\xb2\xd2*-\n" +
	"\x14DeleteBackupMetadata\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02'*%/managed-redis/v1/backups/{backup_id}Bd\n" +
	"\x1dyandex.cloud.api.mdb.redis.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1;redisb\x06proto3"

var (
	file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDesc), len(file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDescData
}

var file_yandex_cloud_mdb_redis_v1_backup_service_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_mdb_redis_v1_backup_service_proto_goTypes = []any{
	(*GetBackupRequest)(nil),     // 0: yandex.cloud.mdb.redis.v1.GetBackupRequest
	(*ListBackupsRequest)(nil),   // 1: yandex.cloud.mdb.redis.v1.ListBackupsRequest
	(*ListBackupsResponse)(nil),  // 2: yandex.cloud.mdb.redis.v1.ListBackupsResponse
	(*DeleteBackupRequest)(nil),  // 3: yandex.cloud.mdb.redis.v1.DeleteBackupRequest
	(*DeleteBackupMetadata)(nil), // 4: yandex.cloud.mdb.redis.v1.DeleteBackupMetadata
	(*Backup)(nil),               // 5: yandex.cloud.mdb.redis.v1.Backup
	(*operation.Operation)(nil),  // 6: yandex.cloud.operation.Operation
}
var file_yandex_cloud_mdb_redis_v1_backup_service_proto_depIdxs = []int32{
	5, // 0: yandex.cloud.mdb.redis.v1.ListBackupsResponse.backups:type_name -> yandex.cloud.mdb.redis.v1.Backup
	0, // 1: yandex.cloud.mdb.redis.v1.BackupService.Get:input_type -> yandex.cloud.mdb.redis.v1.GetBackupRequest
	1, // 2: yandex.cloud.mdb.redis.v1.BackupService.List:input_type -> yandex.cloud.mdb.redis.v1.ListBackupsRequest
	3, // 3: yandex.cloud.mdb.redis.v1.BackupService.Delete:input_type -> yandex.cloud.mdb.redis.v1.DeleteBackupRequest
	5, // 4: yandex.cloud.mdb.redis.v1.BackupService.Get:output_type -> yandex.cloud.mdb.redis.v1.Backup
	2, // 5: yandex.cloud.mdb.redis.v1.BackupService.List:output_type -> yandex.cloud.mdb.redis.v1.ListBackupsResponse
	6, // 6: yandex.cloud.mdb.redis.v1.BackupService.Delete:output_type -> yandex.cloud.operation.Operation
	4, // [4:7] is the sub-list for method output_type
	1, // [1:4] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_yandex_cloud_mdb_redis_v1_backup_service_proto_init() }
func file_yandex_cloud_mdb_redis_v1_backup_service_proto_init() {
	if File_yandex_cloud_mdb_redis_v1_backup_service_proto != nil {
		return
	}
	file_yandex_cloud_mdb_redis_v1_backup_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDesc), len(file_yandex_cloud_mdb_redis_v1_backup_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_mdb_redis_v1_backup_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_redis_v1_backup_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_mdb_redis_v1_backup_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_mdb_redis_v1_backup_service_proto = out.File
	file_yandex_cloud_mdb_redis_v1_backup_service_proto_goTypes = nil
	file_yandex_cloud_mdb_redis_v1_backup_service_proto_depIdxs = nil
}
