// Code generated by protoc-gen-goext. DO NOT EDIT.

package ydb

import (
	dayofweek "google.golang.org/genproto/googleapis/type/dayofweek"
	timeofday "google.golang.org/genproto/googleapis/type/timeofday"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

type BackupSchedule_Policy = isBackupSchedule_Policy

func (m *BackupSchedule) SetPolicy(v BackupSchedule_Policy) {
	m.Policy = v
}

func (m *BackupSchedule) SetDailyBackupSchedule(v *DailyBackupSchedule) {
	m.Policy = &BackupSchedule_DailyBackupSchedule{
		DailyBackupSchedule: v,
	}
}

func (m *BackupSchedule) SetWeeklyBackupSchedule(v *WeeklyBackupSchedule) {
	m.Policy = &BackupSchedule_WeeklyBackupSchedule{
		WeeklyBackupSchedule: v,
	}
}

func (m *BackupSchedule) SetRecurringBackupSchedule(v *RecurringBackupSchedule) {
	m.Policy = &BackupSchedule_RecurringBackupSchedule{
		RecurringBackupSchedule: v,
	}
}

func (m *BackupSchedule) SetNextExecuteTime(v *timestamppb.Timestamp) {
	m.NextExecuteTime = v
}

func (m *RecurringBackupSchedule) SetStartTime(v *timestamppb.Timestamp) {
	m.StartTime = v
}

func (m *RecurringBackupSchedule) SetRecurrence(v string) {
	m.Recurrence = v
}

func (m *DaysOfWeekBackupSchedule) SetDays(v []dayofweek.DayOfWeek) {
	m.Days = v
}

func (m *DaysOfWeekBackupSchedule) SetExecuteTime(v *timeofday.TimeOfDay) {
	m.ExecuteTime = v
}

func (m *WeeklyBackupSchedule) SetDaysOfWeek(v []*DaysOfWeekBackupSchedule) {
	m.DaysOfWeek = v
}

func (m *DailyBackupSchedule) SetExecuteTime(v *timeofday.TimeOfDay) {
	m.ExecuteTime = v
}

func (m *BackupSettings) SetName(v string) {
	m.Name = v
}

func (m *BackupSettings) SetDescription(v string) {
	m.Description = v
}

func (m *BackupSettings) SetBackupSchedule(v *BackupSchedule) {
	m.BackupSchedule = v
}

func (m *BackupSettings) SetBackupTimeToLive(v *durationpb.Duration) {
	m.BackupTimeToLive = v
}

func (m *BackupSettings) SetSourcePaths(v []string) {
	m.SourcePaths = v
}

func (m *BackupSettings) SetSourcePathsToExclude(v []string) {
	m.SourcePathsToExclude = v
}

func (m *BackupSettings) SetType(v BackupSettings_Type) {
	m.Type = v
}

func (m *BackupSettings) SetStorageClass(v BackupSettings_StorageClass) {
	m.StorageClass = v
}

func (m *BackupConfig) SetBackupSettings(v []*BackupSettings) {
	m.BackupSettings = v
}

func (m *Backup) SetId(v string) {
	m.Id = v
}

func (m *Backup) SetName(v string) {
	m.Name = v
}

func (m *Backup) SetFolderId(v string) {
	m.FolderId = v
}

func (m *Backup) SetDatabaseId(v string) {
	m.DatabaseId = v
}

func (m *Backup) SetDescription(v string) {
	m.Description = v
}

func (m *Backup) SetCreatedAt(v *timestamppb.Timestamp) {
	m.CreatedAt = v
}

func (m *Backup) SetStartedAt(v *timestamppb.Timestamp) {
	m.StartedAt = v
}

func (m *Backup) SetCompletedAt(v *timestamppb.Timestamp) {
	m.CompletedAt = v
}

func (m *Backup) SetStatus(v Backup_Status) {
	m.Status = v
}

func (m *Backup) SetBackupSettings(v *BackupSettings) {
	m.BackupSettings = v
}

func (m *Backup) SetType(v Backup_Type) {
	m.Type = v
}

func (m *Backup) SetSize(v int64) {
	m.Size = v
}
