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

package maintenance

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 Maintenance_Status int32

const (
	// Not set.
	Maintenance_STATUS_UNSPECIFIED Maintenance_Status = 0
	// Maintenance is scheduled for a future time.
	Maintenance_SCHEDULED Maintenance_Status = 1
	// Maintenance is currently running.
	Maintenance_RUNNING Maintenance_Status = 2
	// Maintenance completed successfully.
	Maintenance_SUCCEEDED Maintenance_Status = 3
	// Maintenance is cancelled and will not run.
	Maintenance_CANCELLED Maintenance_Status = 4
)

// Enum value maps for Maintenance_Status.
var (
	Maintenance_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "SCHEDULED",
		2: "RUNNING",
		3: "SUCCEEDED",
		4: "CANCELLED",
	}
	Maintenance_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"SCHEDULED":          1,
		"RUNNING":            2,
		"SUCCEEDED":          3,
		"CANCELLED":          4,
	}
)

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

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

func (Maintenance_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_maintenance_v2_common_proto_enumTypes[0].Descriptor()
}

func (Maintenance_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_maintenance_v2_common_proto_enumTypes[0]
}

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

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

type RescheduleMaintenanceRequest_Type int32

const (
	// Not set.
	RescheduleMaintenanceRequest_TYPE_UNSPECIFIED RescheduleMaintenanceRequest_Type = 0
	// If the user wants to reschedule the maintenance to happen now.
	RescheduleMaintenanceRequest_IMMEDIATE RescheduleMaintenanceRequest_Type = 1
	// If the user wants to reschedule the maintenance for the next maintenance window.
	RescheduleMaintenanceRequest_NEXT_AVAILABLE_WINDOW RescheduleMaintenanceRequest_Type = 2
	// If the user wants to reschedule the maintenance to a specific time.
	RescheduleMaintenanceRequest_SPECIFIC_TIME RescheduleMaintenanceRequest_Type = 3
)

// Enum value maps for RescheduleMaintenanceRequest_Type.
var (
	RescheduleMaintenanceRequest_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "IMMEDIATE",
		2: "NEXT_AVAILABLE_WINDOW",
		3: "SPECIFIC_TIME",
	}
	RescheduleMaintenanceRequest_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":      0,
		"IMMEDIATE":             1,
		"NEXT_AVAILABLE_WINDOW": 2,
		"SPECIFIC_TIME":         3,
	}
)

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

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

func (RescheduleMaintenanceRequest_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_maintenance_v2_common_proto_enumTypes[1].Descriptor()
}

func (RescheduleMaintenanceRequest_Type) Type() protoreflect.EnumType {
	return &file_yandex_cloud_maintenance_v2_common_proto_enumTypes[1]
}

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

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

type Maintenance struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the maintenance.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Full path to the resource affected by maintenance,
	// represented as a hierarchy from specific resource to top-level container.
	// Example for a Compute instance with ID "I" in folder "F" and cloud "C":
	// resource_path = [
	// { "compute.instance", "I" },
	// { "resource-manager.folder", "F" },
	// { "resource-manager.cloud", "C" }
	// ]
	ResourcePath []*Maintenance_Resource `protobuf:"bytes,2,rep,name=resource_path,json=resourcePath,proto3" json:"resource_path,omitempty"`
	// Describes action to be performed.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Service-specific details.
	Details []*Maintenance_Detail `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"`
	// Status of the maintenance.
	Status Maintenance_Status `protobuf:"varint,5,opt,name=status,proto3,enum=yandex.cloud.maintenance.v2.Maintenance_Status" json:"status,omitempty"`
	// The creation time of the maintenance.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// The time when the maintenance was scheduled to start.
	StartScheduledAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_scheduled_at,json=startScheduledAt,proto3" json:"start_scheduled_at,omitempty"`
	// The time when the maintenance is estimated to complete. Optional.
	CompletionScheduledAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=completion_scheduled_at,json=completionScheduledAt,proto3" json:"completion_scheduled_at,omitempty"`
	// Latest time the maintenance can be postponed to.
	MaxStartScheduledAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=max_start_scheduled_at,json=maxStartScheduledAt,proto3" json:"max_start_scheduled_at,omitempty"`
	// The time time when the maintenance has actually started.
	StartedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
	// The time time when the maintenance has actually completed successfully.
	SucceededAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=succeeded_at,json=succeededAt,proto3" json:"succeeded_at,omitempty"`
	// The time time when the maintenance has actually been cancelled.
	CancelledAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=cancelled_at,json=cancelledAt,proto3" json:"cancelled_at,omitempty"`
	// Indicates whether the user can control (reschedule) the maintenance.
	UserControllable bool `protobuf:"varint,13,opt,name=user_controllable,json=userControllable,proto3" json:"user_controllable,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*Maintenance) ProtoMessage() {}

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

func (x *Maintenance) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *Maintenance) GetResourcePath() []*Maintenance_Resource {
	if x != nil {
		return x.ResourcePath
	}
	return nil
}

func (x *Maintenance) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}

func (x *Maintenance) GetDetails() []*Maintenance_Detail {
	if x != nil {
		return x.Details
	}
	return nil
}

func (x *Maintenance) GetStatus() Maintenance_Status {
	if x != nil {
		return x.Status
	}
	return Maintenance_STATUS_UNSPECIFIED
}

func (x *Maintenance) GetCreatedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CreatedAt
	}
	return nil
}

func (x *Maintenance) GetStartScheduledAt() *timestamppb.Timestamp {
	if x != nil {
		return x.StartScheduledAt
	}
	return nil
}

func (x *Maintenance) GetCompletionScheduledAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CompletionScheduledAt
	}
	return nil
}

func (x *Maintenance) GetMaxStartScheduledAt() *timestamppb.Timestamp {
	if x != nil {
		return x.MaxStartScheduledAt
	}
	return nil
}

func (x *Maintenance) GetStartedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.StartedAt
	}
	return nil
}

func (x *Maintenance) GetSucceededAt() *timestamppb.Timestamp {
	if x != nil {
		return x.SucceededAt
	}
	return nil
}

func (x *Maintenance) GetCancelledAt() *timestamppb.Timestamp {
	if x != nil {
		return x.CancelledAt
	}
	return nil
}

func (x *Maintenance) GetUserControllable() bool {
	if x != nil {
		return x.UserControllable
	}
	return false
}

// ListMaintenancesRequest allows listing maintenances by cloud ID, folder ID, resource type or resource ID.
type ListMaintenancesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Container specifies the resources for which to list maintenances. (Required)
	//
	// Types that are valid to be assigned to Container:
	//
	//	*ListMaintenancesRequest_CloudId
	//	*ListMaintenancesRequest_FolderId
	//	*ListMaintenancesRequest_ResourceId
	Container isListMaintenancesRequest_Container `protobuf_oneof:"container"`
	// The maximum number of maintenances to return per response.
	PageSize int64 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Token to retrieve the next page of results. Omitted on the first request.
	PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// By which field the listing should be ordered and in which direction,
	// format is "created_at desc". The default sorting order is ascending.
	// Supported fields: ["created_at", "start_scheduled_at", "started_at"].
	OrderBy string `protobuf:"bytes,6,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// Filter list by various fields.
	// Supported fields: ["status", "resource_type", "resource_id"]
	Filter        string `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListMaintenancesRequest) ProtoMessage() {}

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

func (x *ListMaintenancesRequest) GetContainer() isListMaintenancesRequest_Container {
	if x != nil {
		return x.Container
	}
	return nil
}

func (x *ListMaintenancesRequest) GetCloudId() string {
	if x != nil {
		if x, ok := x.Container.(*ListMaintenancesRequest_CloudId); ok {
			return x.CloudId
		}
	}
	return ""
}

func (x *ListMaintenancesRequest) GetFolderId() string {
	if x != nil {
		if x, ok := x.Container.(*ListMaintenancesRequest_FolderId); ok {
			return x.FolderId
		}
	}
	return ""
}

func (x *ListMaintenancesRequest) GetResourceId() string {
	if x != nil {
		if x, ok := x.Container.(*ListMaintenancesRequest_ResourceId); ok {
			return x.ResourceId
		}
	}
	return ""
}

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

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

func (x *ListMaintenancesRequest) GetOrderBy() string {
	if x != nil {
		return x.OrderBy
	}
	return ""
}

func (x *ListMaintenancesRequest) GetFilter() string {
	if x != nil {
		return x.Filter
	}
	return ""
}

type isListMaintenancesRequest_Container interface {
	isListMaintenancesRequest_Container()
}

type ListMaintenancesRequest_CloudId struct {
	// Cloud ID for the resources.
	CloudId string `protobuf:"bytes,1,opt,name=cloud_id,json=cloudId,proto3,oneof"`
}

type ListMaintenancesRequest_FolderId struct {
	// Folder ID for the resources.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3,oneof"`
}

type ListMaintenancesRequest_ResourceId struct {
	// Resource ID of the target resource.
	ResourceId string `protobuf:"bytes,3,opt,name=resource_id,json=resourceId,proto3,oneof"`
}

func (*ListMaintenancesRequest_CloudId) isListMaintenancesRequest_Container() {}

func (*ListMaintenancesRequest_FolderId) isListMaintenancesRequest_Container() {}

func (*ListMaintenancesRequest_ResourceId) isListMaintenancesRequest_Container() {}

type ListMaintenancesResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of maintenances.
	Maintenances []*Maintenance `protobuf:"bytes,1,rep,name=maintenances,proto3" json:"maintenances,omitempty"`
	// Token to retrieve the next page of 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 *ListMaintenancesResponse) Reset() {
	*x = ListMaintenancesResponse{}
	mi := &file_yandex_cloud_maintenance_v2_common_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListMaintenancesResponse) ProtoMessage() {}

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

func (x *ListMaintenancesResponse) GetMaintenances() []*Maintenance {
	if x != nil {
		return x.Maintenances
	}
	return nil
}

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

// GetMaintenanceRequest allows getting Maintenance by ID.
type GetMaintenanceRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	MaintenanceId string                 `protobuf:"bytes,1,opt,name=maintenance_id,json=maintenanceId,proto3" json:"maintenance_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetMaintenanceRequest) ProtoMessage() {}

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

func (x *GetMaintenanceRequest) GetMaintenanceId() string {
	if x != nil {
		return x.MaintenanceId
	}
	return ""
}

// RescheduleMaintenanceRequest allows to reschedule maintenance to another date and time.
type RescheduleMaintenanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. ID of the maintenance.
	MaintenanceId string `protobuf:"bytes,1,opt,name=maintenance_id,json=maintenanceId,proto3" json:"maintenance_id,omitempty"`
	// Required. If `reschedule_type` is "SPECIFIC_TIME",
	// must set up `schedule_time` as well.
	RescheduleType RescheduleMaintenanceRequest_Type `protobuf:"varint,2,opt,name=reschedule_type,json=rescheduleType,proto3,enum=yandex.cloud.maintenance.v2.RescheduleMaintenanceRequest_Type" json:"reschedule_type,omitempty"`
	// Optional. Timestamp the maintenance shall be rescheduled to,
	// if `reschedule_type` = "SPECIFIC_TIME".
	// Must be in RFC 3339 format (e.g. "2025-11-15T16:19:00.094Z").
	ScheduledAt   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*RescheduleMaintenanceRequest) ProtoMessage() {}

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

func (x *RescheduleMaintenanceRequest) GetMaintenanceId() string {
	if x != nil {
		return x.MaintenanceId
	}
	return ""
}

func (x *RescheduleMaintenanceRequest) GetRescheduleType() RescheduleMaintenanceRequest_Type {
	if x != nil {
		return x.RescheduleType
	}
	return RescheduleMaintenanceRequest_TYPE_UNSPECIFIED
}

func (x *RescheduleMaintenanceRequest) GetScheduledAt() *timestamppb.Timestamp {
	if x != nil {
		return x.ScheduledAt
	}
	return nil
}

type Maintenance_Resource struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the resource
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The type of the resource, e.g. resource-manager.cloud, resource-manager.folder, compute.instance, etc.
	Type          string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Maintenance_Resource) ProtoMessage() {}

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

func (x *Maintenance_Resource) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *Maintenance_Resource) GetType() string {
	if x != nil {
		return x.Type
	}
	return ""
}

type Maintenance_Detail struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Unique key (service-specific).
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Description (service-specific).
	Value         string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Maintenance_Detail) ProtoMessage() {}

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

func (x *Maintenance_Detail) GetKey() string {
	if x != nil {
		return x.Key
	}
	return ""
}

func (x *Maintenance_Detail) GetValue() string {
	if x != nil {
		return x.Value
	}
	return ""
}

var File_yandex_cloud_maintenance_v2_common_proto protoreflect.FileDescriptor

const file_yandex_cloud_maintenance_v2_common_proto_rawDesc = "" +
	"\n" +
	"(yandex/cloud/maintenance/v2/common.proto\x12\x1byandex.cloud.maintenance.v2\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xf9\a\n" +
	"\vMaintenance\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12V\n" +
	"\rresource_path\x18\x02 \x03(\v21.yandex.cloud.maintenance.v2.Maintenance.ResourceR\fresourcePath\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12I\n" +
	"\adetails\x18\x04 \x03(\v2/.yandex.cloud.maintenance.v2.Maintenance.DetailR\adetails\x12G\n" +
	"\x06status\x18\x05 \x01(\x0e2/.yandex.cloud.maintenance.v2.Maintenance.StatusR\x06status\x129\n" +
	"\n" +
	"created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12H\n" +
	"\x12start_scheduled_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\x10startScheduledAt\x12R\n" +
	"\x17completion_scheduled_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\x15completionScheduledAt\x12O\n" +
	"\x16max_start_scheduled_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\x13maxStartScheduledAt\x129\n" +
	"\n" +
	"started_at\x18\n" +
	" \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x12=\n" +
	"\fsucceeded_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\vsucceededAt\x12=\n" +
	"\fcancelled_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\vcancelledAt\x12+\n" +
	"\x11user_controllable\x18\r \x01(\bR\x10userControllable\x1a.\n" +
	"\bResource\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04type\x18\x02 \x01(\tR\x04type\x1a0\n" +
	"\x06Detail\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value\"Z\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\r\n" +
	"\tSCHEDULED\x10\x01\x12\v\n" +
	"\aRUNNING\x10\x02\x12\r\n" +
	"\tSUCCEEDED\x10\x03\x12\r\n" +
	"\tCANCELLED\x10\x04\"\xbf\x02\n" +
	"\x17ListMaintenancesRequest\x12%\n" +
	"\bcloud_id\x18\x01 \x01(\tB\b\x8a\xc81\x04<=50H\x00R\acloudId\x12'\n" +
	"\tfolder_id\x18\x02 \x01(\tB\b\x8a\xc81\x04<=50H\x00R\bfolderId\x12+\n" +
	"\vresource_id\x18\x03 \x01(\tB\b\x8a\xc81\x04<=50H\x00R\n" +
	"resourceId\x12'\n" +
	"\tpage_size\x18\x04 \x01(\x03B\n" +
	"\xfa\xc71\x06<=1000R\bpageSize\x12(\n" +
	"\n" +
	"page_token\x18\x05 \x01(\tB\t\x8a\xc81\x05<=500R\tpageToken\x12$\n" +
	"\border_by\x18\x06 \x01(\tB\t\x8a\xc81\x05<=100R\aorderBy\x12!\n" +
	"\x06filter\x18\a \x01(\tB\t\x8a\xc81\x05<=300R\x06filterB\v\n" +
	"\tcontainer\"\x90\x01\n" +
	"\x18ListMaintenancesResponse\x12L\n" +
	"\fmaintenances\x18\x01 \x03(\v2(.yandex.cloud.maintenance.v2.MaintenanceR\fmaintenances\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"L\n" +
	"\x15GetMaintenanceRequest\x123\n" +
	"\x0emaintenance_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\rmaintenanceId\"\xd6\x02\n" +
	"\x1cRescheduleMaintenanceRequest\x123\n" +
	"\x0emaintenance_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\rmaintenanceId\x12g\n" +
	"\x0freschedule_type\x18\x02 \x01(\x0e2>.yandex.cloud.maintenance.v2.RescheduleMaintenanceRequest.TypeR\x0erescheduleType\x12=\n" +
	"\fscheduled_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\vscheduledAt\"Y\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\r\n" +
	"\tIMMEDIATE\x10\x01\x12\x19\n" +
	"\x15NEXT_AVAILABLE_WINDOW\x10\x02\x12\x11\n" +
	"\rSPECIFIC_TIME\x10\x03Bn\n" +
	"\x1fyandex.cloud.api.maintenance.v2ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/maintenance/v2;maintenanceb\x06proto3"

var (
	file_yandex_cloud_maintenance_v2_common_proto_rawDescOnce sync.Once
	file_yandex_cloud_maintenance_v2_common_proto_rawDescData []byte
)

func file_yandex_cloud_maintenance_v2_common_proto_rawDescGZIP() []byte {
	file_yandex_cloud_maintenance_v2_common_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_maintenance_v2_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_maintenance_v2_common_proto_rawDesc), len(file_yandex_cloud_maintenance_v2_common_proto_rawDesc)))
	})
	return file_yandex_cloud_maintenance_v2_common_proto_rawDescData
}

var file_yandex_cloud_maintenance_v2_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_maintenance_v2_common_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_yandex_cloud_maintenance_v2_common_proto_goTypes = []any{
	(Maintenance_Status)(0),                // 0: yandex.cloud.maintenance.v2.Maintenance.Status
	(RescheduleMaintenanceRequest_Type)(0), // 1: yandex.cloud.maintenance.v2.RescheduleMaintenanceRequest.Type
	(*Maintenance)(nil),                    // 2: yandex.cloud.maintenance.v2.Maintenance
	(*ListMaintenancesRequest)(nil),        // 3: yandex.cloud.maintenance.v2.ListMaintenancesRequest
	(*ListMaintenancesResponse)(nil),       // 4: yandex.cloud.maintenance.v2.ListMaintenancesResponse
	(*GetMaintenanceRequest)(nil),          // 5: yandex.cloud.maintenance.v2.GetMaintenanceRequest
	(*RescheduleMaintenanceRequest)(nil),   // 6: yandex.cloud.maintenance.v2.RescheduleMaintenanceRequest
	(*Maintenance_Resource)(nil),           // 7: yandex.cloud.maintenance.v2.Maintenance.Resource
	(*Maintenance_Detail)(nil),             // 8: yandex.cloud.maintenance.v2.Maintenance.Detail
	(*timestamppb.Timestamp)(nil),          // 9: google.protobuf.Timestamp
}
var file_yandex_cloud_maintenance_v2_common_proto_depIdxs = []int32{
	7,  // 0: yandex.cloud.maintenance.v2.Maintenance.resource_path:type_name -> yandex.cloud.maintenance.v2.Maintenance.Resource
	8,  // 1: yandex.cloud.maintenance.v2.Maintenance.details:type_name -> yandex.cloud.maintenance.v2.Maintenance.Detail
	0,  // 2: yandex.cloud.maintenance.v2.Maintenance.status:type_name -> yandex.cloud.maintenance.v2.Maintenance.Status
	9,  // 3: yandex.cloud.maintenance.v2.Maintenance.created_at:type_name -> google.protobuf.Timestamp
	9,  // 4: yandex.cloud.maintenance.v2.Maintenance.start_scheduled_at:type_name -> google.protobuf.Timestamp
	9,  // 5: yandex.cloud.maintenance.v2.Maintenance.completion_scheduled_at:type_name -> google.protobuf.Timestamp
	9,  // 6: yandex.cloud.maintenance.v2.Maintenance.max_start_scheduled_at:type_name -> google.protobuf.Timestamp
	9,  // 7: yandex.cloud.maintenance.v2.Maintenance.started_at:type_name -> google.protobuf.Timestamp
	9,  // 8: yandex.cloud.maintenance.v2.Maintenance.succeeded_at:type_name -> google.protobuf.Timestamp
	9,  // 9: yandex.cloud.maintenance.v2.Maintenance.cancelled_at:type_name -> google.protobuf.Timestamp
	2,  // 10: yandex.cloud.maintenance.v2.ListMaintenancesResponse.maintenances:type_name -> yandex.cloud.maintenance.v2.Maintenance
	1,  // 11: yandex.cloud.maintenance.v2.RescheduleMaintenanceRequest.reschedule_type:type_name -> yandex.cloud.maintenance.v2.RescheduleMaintenanceRequest.Type
	9,  // 12: yandex.cloud.maintenance.v2.RescheduleMaintenanceRequest.scheduled_at:type_name -> google.protobuf.Timestamp
	13, // [13:13] is the sub-list for method output_type
	13, // [13:13] is the sub-list for method input_type
	13, // [13:13] is the sub-list for extension type_name
	13, // [13:13] is the sub-list for extension extendee
	0,  // [0:13] is the sub-list for field type_name
}

func init() { file_yandex_cloud_maintenance_v2_common_proto_init() }
func file_yandex_cloud_maintenance_v2_common_proto_init() {
	if File_yandex_cloud_maintenance_v2_common_proto != nil {
		return
	}
	file_yandex_cloud_maintenance_v2_common_proto_msgTypes[1].OneofWrappers = []any{
		(*ListMaintenancesRequest_CloudId)(nil),
		(*ListMaintenancesRequest_FolderId)(nil),
		(*ListMaintenancesRequest_ResourceId)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_maintenance_v2_common_proto_rawDesc), len(file_yandex_cloud_maintenance_v2_common_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   7,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_maintenance_v2_common_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_maintenance_v2_common_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_maintenance_v2_common_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_maintenance_v2_common_proto_msgTypes,
	}.Build()
	File_yandex_cloud_maintenance_v2_common_proto = out.File
	file_yandex_cloud_maintenance_v2_common_proto_goTypes = nil
	file_yandex_cloud_maintenance_v2_common_proto_depIdxs = nil
}
