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

package spark

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	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 WeeklyMaintenanceWindow_WeekDay int32

const (
	WeeklyMaintenanceWindow_WEEK_DAY_UNSPECIFIED WeeklyMaintenanceWindow_WeekDay = 0
	WeeklyMaintenanceWindow_MON                  WeeklyMaintenanceWindow_WeekDay = 1
	WeeklyMaintenanceWindow_TUE                  WeeklyMaintenanceWindow_WeekDay = 2
	WeeklyMaintenanceWindow_WED                  WeeklyMaintenanceWindow_WeekDay = 3
	WeeklyMaintenanceWindow_THU                  WeeklyMaintenanceWindow_WeekDay = 4
	WeeklyMaintenanceWindow_FRI                  WeeklyMaintenanceWindow_WeekDay = 5
	WeeklyMaintenanceWindow_SAT                  WeeklyMaintenanceWindow_WeekDay = 6
	WeeklyMaintenanceWindow_SUN                  WeeklyMaintenanceWindow_WeekDay = 7
)

// Enum value maps for WeeklyMaintenanceWindow_WeekDay.
var (
	WeeklyMaintenanceWindow_WeekDay_name = map[int32]string{
		0: "WEEK_DAY_UNSPECIFIED",
		1: "MON",
		2: "TUE",
		3: "WED",
		4: "THU",
		5: "FRI",
		6: "SAT",
		7: "SUN",
	}
	WeeklyMaintenanceWindow_WeekDay_value = map[string]int32{
		"WEEK_DAY_UNSPECIFIED": 0,
		"MON":                  1,
		"TUE":                  2,
		"WED":                  3,
		"THU":                  4,
		"FRI":                  5,
		"SAT":                  6,
		"SUN":                  7,
	}
)

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

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

func (WeeklyMaintenanceWindow_WeekDay) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_spark_v1_maintenance_proto_enumTypes[0].Descriptor()
}

func (WeeklyMaintenanceWindow_WeekDay) Type() protoreflect.EnumType {
	return &file_yandex_cloud_spark_v1_maintenance_proto_enumTypes[0]
}

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

// Deprecated: Use WeeklyMaintenanceWindow_WeekDay.Descriptor instead.
func (WeeklyMaintenanceWindow_WeekDay) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_spark_v1_maintenance_proto_rawDescGZIP(), []int{2, 0}
}

type MaintenanceWindow struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Policy:
	//
	//	*MaintenanceWindow_Anytime
	//	*MaintenanceWindow_WeeklyMaintenanceWindow
	Policy        isMaintenanceWindow_Policy `protobuf_oneof:"policy"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MaintenanceWindow) ProtoMessage() {}

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

func (x *MaintenanceWindow) GetPolicy() isMaintenanceWindow_Policy {
	if x != nil {
		return x.Policy
	}
	return nil
}

func (x *MaintenanceWindow) GetAnytime() *AnytimeMaintenanceWindow {
	if x != nil {
		if x, ok := x.Policy.(*MaintenanceWindow_Anytime); ok {
			return x.Anytime
		}
	}
	return nil
}

func (x *MaintenanceWindow) GetWeeklyMaintenanceWindow() *WeeklyMaintenanceWindow {
	if x != nil {
		if x, ok := x.Policy.(*MaintenanceWindow_WeeklyMaintenanceWindow); ok {
			return x.WeeklyMaintenanceWindow
		}
	}
	return nil
}

type isMaintenanceWindow_Policy interface {
	isMaintenanceWindow_Policy()
}

type MaintenanceWindow_Anytime struct {
	Anytime *AnytimeMaintenanceWindow `protobuf:"bytes,1,opt,name=anytime,proto3,oneof"`
}

type MaintenanceWindow_WeeklyMaintenanceWindow struct {
	WeeklyMaintenanceWindow *WeeklyMaintenanceWindow `protobuf:"bytes,2,opt,name=weekly_maintenance_window,json=weeklyMaintenanceWindow,proto3,oneof"`
}

func (*MaintenanceWindow_Anytime) isMaintenanceWindow_Policy() {}

func (*MaintenanceWindow_WeeklyMaintenanceWindow) isMaintenanceWindow_Policy() {}

type AnytimeMaintenanceWindow struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*AnytimeMaintenanceWindow) ProtoMessage() {}

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

type WeeklyMaintenanceWindow struct {
	state protoimpl.MessageState          `protogen:"open.v1"`
	Day   WeeklyMaintenanceWindow_WeekDay `protobuf:"varint,1,opt,name=day,proto3,enum=yandex.cloud.spark.v1.WeeklyMaintenanceWindow_WeekDay" json:"day,omitempty"`
	// Hour of the day in UTC.
	Hour          int64 `protobuf:"varint,2,opt,name=hour,proto3" json:"hour,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*WeeklyMaintenanceWindow) ProtoMessage() {}

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

func (x *WeeklyMaintenanceWindow) GetDay() WeeklyMaintenanceWindow_WeekDay {
	if x != nil {
		return x.Day
	}
	return WeeklyMaintenanceWindow_WEEK_DAY_UNSPECIFIED
}

func (x *WeeklyMaintenanceWindow) GetHour() int64 {
	if x != nil {
		return x.Hour
	}
	return 0
}

type MaintenanceOperation struct {
	state                     protoimpl.MessageState `protogen:"open.v1"`
	Info                      string                 `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	DelayedUntil              *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=delayed_until,json=delayedUntil,proto3" json:"delayed_until,omitempty"`
	LatestMaintenanceTime     *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=latest_maintenance_time,json=latestMaintenanceTime,proto3" json:"latest_maintenance_time,omitempty"`
	NextMaintenanceWindowTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=next_maintenance_window_time,json=nextMaintenanceWindowTime,proto3" json:"next_maintenance_window_time,omitempty"`
	unknownFields             protoimpl.UnknownFields
	sizeCache                 protoimpl.SizeCache
}

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

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

func (*MaintenanceOperation) ProtoMessage() {}

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

func (x *MaintenanceOperation) GetInfo() string {
	if x != nil {
		return x.Info
	}
	return ""
}

func (x *MaintenanceOperation) GetDelayedUntil() *timestamppb.Timestamp {
	if x != nil {
		return x.DelayedUntil
	}
	return nil
}

func (x *MaintenanceOperation) GetLatestMaintenanceTime() *timestamppb.Timestamp {
	if x != nil {
		return x.LatestMaintenanceTime
	}
	return nil
}

func (x *MaintenanceOperation) GetNextMaintenanceWindowTime() *timestamppb.Timestamp {
	if x != nil {
		return x.NextMaintenanceWindowTime
	}
	return nil
}

var File_yandex_cloud_spark_v1_maintenance_proto protoreflect.FileDescriptor

const file_yandex_cloud_spark_v1_maintenance_proto_rawDesc = "" +
	"\n" +
	"'yandex/cloud/spark/v1/maintenance.proto\x12\x15yandex.cloud.spark.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xde\x01\n" +
	"\x11MaintenanceWindow\x12K\n" +
	"\aanytime\x18\x01 \x01(\v2/.yandex.cloud.spark.v1.AnytimeMaintenanceWindowH\x00R\aanytime\x12l\n" +
	"\x19weekly_maintenance_window\x18\x02 \x01(\v2..yandex.cloud.spark.v1.WeeklyMaintenanceWindowH\x00R\x17weeklyMaintenanceWindowB\x0e\n" +
	"\x06policy\x12\x04\xc0\xc11\x01\"\x1a\n" +
	"\x18AnytimeMaintenanceWindow\"\xe5\x01\n" +
	"\x17WeeklyMaintenanceWindow\x12H\n" +
	"\x03day\x18\x01 \x01(\x0e26.yandex.cloud.spark.v1.WeeklyMaintenanceWindow.WeekDayR\x03day\x12\x1c\n" +
	"\x04hour\x18\x02 \x01(\x03B\b\xfa\xc71\x041-24R\x04hour\"b\n" +
	"\aWeekDay\x12\x18\n" +
	"\x14WEEK_DAY_UNSPECIFIED\x10\x00\x12\a\n" +
	"\x03MON\x10\x01\x12\a\n" +
	"\x03TUE\x10\x02\x12\a\n" +
	"\x03WED\x10\x03\x12\a\n" +
	"\x03THU\x10\x04\x12\a\n" +
	"\x03FRI\x10\x05\x12\a\n" +
	"\x03SAT\x10\x06\x12\a\n" +
	"\x03SUN\x10\a\"\xa7\x02\n" +
	"\x14MaintenanceOperation\x12\x1d\n" +
	"\x04info\x18\x01 \x01(\tB\t\x8a\xc81\x05<=256R\x04info\x12?\n" +
	"\rdelayed_until\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\fdelayedUntil\x12R\n" +
	"\x17latest_maintenance_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x15latestMaintenanceTime\x12[\n" +
	"\x1cnext_maintenance_window_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x19nextMaintenanceWindowTimeB\\\n" +
	"\x19yandex.cloud.api.spark.v1Z?github.com/yandex-cloud/go-genproto/yandex/cloud/spark/v1;sparkb\x06proto3"

var (
	file_yandex_cloud_spark_v1_maintenance_proto_rawDescOnce sync.Once
	file_yandex_cloud_spark_v1_maintenance_proto_rawDescData []byte
)

func file_yandex_cloud_spark_v1_maintenance_proto_rawDescGZIP() []byte {
	file_yandex_cloud_spark_v1_maintenance_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_spark_v1_maintenance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_spark_v1_maintenance_proto_rawDesc), len(file_yandex_cloud_spark_v1_maintenance_proto_rawDesc)))
	})
	return file_yandex_cloud_spark_v1_maintenance_proto_rawDescData
}

var file_yandex_cloud_spark_v1_maintenance_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_spark_v1_maintenance_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_spark_v1_maintenance_proto_goTypes = []any{
	(WeeklyMaintenanceWindow_WeekDay)(0), // 0: yandex.cloud.spark.v1.WeeklyMaintenanceWindow.WeekDay
	(*MaintenanceWindow)(nil),            // 1: yandex.cloud.spark.v1.MaintenanceWindow
	(*AnytimeMaintenanceWindow)(nil),     // 2: yandex.cloud.spark.v1.AnytimeMaintenanceWindow
	(*WeeklyMaintenanceWindow)(nil),      // 3: yandex.cloud.spark.v1.WeeklyMaintenanceWindow
	(*MaintenanceOperation)(nil),         // 4: yandex.cloud.spark.v1.MaintenanceOperation
	(*timestamppb.Timestamp)(nil),        // 5: google.protobuf.Timestamp
}
var file_yandex_cloud_spark_v1_maintenance_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.spark.v1.MaintenanceWindow.anytime:type_name -> yandex.cloud.spark.v1.AnytimeMaintenanceWindow
	3, // 1: yandex.cloud.spark.v1.MaintenanceWindow.weekly_maintenance_window:type_name -> yandex.cloud.spark.v1.WeeklyMaintenanceWindow
	0, // 2: yandex.cloud.spark.v1.WeeklyMaintenanceWindow.day:type_name -> yandex.cloud.spark.v1.WeeklyMaintenanceWindow.WeekDay
	5, // 3: yandex.cloud.spark.v1.MaintenanceOperation.delayed_until:type_name -> google.protobuf.Timestamp
	5, // 4: yandex.cloud.spark.v1.MaintenanceOperation.latest_maintenance_time:type_name -> google.protobuf.Timestamp
	5, // 5: yandex.cloud.spark.v1.MaintenanceOperation.next_maintenance_window_time:type_name -> google.protobuf.Timestamp
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_spark_v1_maintenance_proto_init() }
func file_yandex_cloud_spark_v1_maintenance_proto_init() {
	if File_yandex_cloud_spark_v1_maintenance_proto != nil {
		return
	}
	file_yandex_cloud_spark_v1_maintenance_proto_msgTypes[0].OneofWrappers = []any{
		(*MaintenanceWindow_Anytime)(nil),
		(*MaintenanceWindow_WeeklyMaintenanceWindow)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_spark_v1_maintenance_proto_rawDesc), len(file_yandex_cloud_spark_v1_maintenance_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_spark_v1_maintenance_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_spark_v1_maintenance_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_spark_v1_maintenance_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_spark_v1_maintenance_proto_msgTypes,
	}.Build()
	File_yandex_cloud_spark_v1_maintenance_proto = out.File
	file_yandex_cloud_spark_v1_maintenance_proto_goTypes = nil
	file_yandex_cloud_spark_v1_maintenance_proto_depIdxs = nil
}
