// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/k8s/v1/version.proto

package k8s

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	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 VersionInfo struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Current Kubernetes version, format: major.minor (e.g. 1.15).
	CurrentVersion string `protobuf:"bytes,1,opt,name=current_version,json=currentVersion,proto3" json:"current_version,omitempty"`
	// Newer revisions may include Kubernetes patches (e.g 1.15.1 -> 1.15.2) as well
	// as some internal component updates - new features or bug fixes in platform specific
	// components either on the master or nodes.
	NewRevisionAvailable bool `protobuf:"varint,2,opt,name=new_revision_available,json=newRevisionAvailable,proto3" json:"new_revision_available,omitempty"`
	// Description of the changes to be applied when updating to the latest
	// revision. Empty if new_revision_available is false.
	NewRevisionSummary string `protobuf:"bytes,3,opt,name=new_revision_summary,json=newRevisionSummary,proto3" json:"new_revision_summary,omitempty"`
	// The current version is on the deprecation schedule, component (master or node group)
	// should be upgraded.
	VersionDeprecated bool `protobuf:"varint,4,opt,name=version_deprecated,json=versionDeprecated,proto3" json:"version_deprecated,omitempty"`
	unknownFields     protoimpl.UnknownFields
	sizeCache         protoimpl.SizeCache
}

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

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

func (*VersionInfo) ProtoMessage() {}

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

func (x *VersionInfo) GetCurrentVersion() string {
	if x != nil {
		return x.CurrentVersion
	}
	return ""
}

func (x *VersionInfo) GetNewRevisionAvailable() bool {
	if x != nil {
		return x.NewRevisionAvailable
	}
	return false
}

func (x *VersionInfo) GetNewRevisionSummary() string {
	if x != nil {
		return x.NewRevisionSummary
	}
	return ""
}

func (x *VersionInfo) GetVersionDeprecated() bool {
	if x != nil {
		return x.VersionDeprecated
	}
	return false
}

type UpdateVersionSpec struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Specifier:
	//
	//	*UpdateVersionSpec_Version
	//	*UpdateVersionSpec_LatestRevision
	Specifier     isUpdateVersionSpec_Specifier `protobuf_oneof:"specifier"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateVersionSpec) ProtoMessage() {}

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

func (x *UpdateVersionSpec) GetSpecifier() isUpdateVersionSpec_Specifier {
	if x != nil {
		return x.Specifier
	}
	return nil
}

func (x *UpdateVersionSpec) GetVersion() string {
	if x != nil {
		if x, ok := x.Specifier.(*UpdateVersionSpec_Version); ok {
			return x.Version
		}
	}
	return ""
}

func (x *UpdateVersionSpec) GetLatestRevision() bool {
	if x != nil {
		if x, ok := x.Specifier.(*UpdateVersionSpec_LatestRevision); ok {
			return x.LatestRevision
		}
	}
	return false
}

type isUpdateVersionSpec_Specifier interface {
	isUpdateVersionSpec_Specifier()
}

type UpdateVersionSpec_Version struct {
	// Request update to a newer version of Kubernetes (1.x -> 1.y).
	Version string `protobuf:"bytes,1,opt,name=version,proto3,oneof"`
}

type UpdateVersionSpec_LatestRevision struct {
	// Request update to the latest revision for the current version.
	LatestRevision bool `protobuf:"varint,2,opt,name=latest_revision,json=latestRevision,proto3,oneof"`
}

func (*UpdateVersionSpec_Version) isUpdateVersionSpec_Specifier() {}

func (*UpdateVersionSpec_LatestRevision) isUpdateVersionSpec_Specifier() {}

var File_yandex_cloud_k8s_v1_version_proto protoreflect.FileDescriptor

const file_yandex_cloud_k8s_v1_version_proto_rawDesc = "" +
	"\n" +
	"!yandex/cloud/k8s/v1/version.proto\x12\x13yandex.cloud.k8s.v1\x1a\x1dyandex/cloud/validation.proto\"\xcd\x01\n" +
	"\vVersionInfo\x12'\n" +
	"\x0fcurrent_version\x18\x01 \x01(\tR\x0ecurrentVersion\x124\n" +
	"\x16new_revision_available\x18\x02 \x01(\bR\x14newRevisionAvailable\x120\n" +
	"\x14new_revision_summary\x18\x03 \x01(\tR\x12newRevisionSummary\x12-\n" +
	"\x12version_deprecated\x18\x04 \x01(\bR\x11versionDeprecated\"m\n" +
	"\x11UpdateVersionSpec\x12\x1a\n" +
	"\aversion\x18\x01 \x01(\tH\x00R\aversion\x12)\n" +
	"\x0flatest_revision\x18\x02 \x01(\bH\x00R\x0elatestRevisionB\x11\n" +
	"\tspecifier\x12\x04\xc0\xc11\x01BV\n" +
	"\x17yandex.cloud.api.k8s.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/k8s/v1;k8sb\x06proto3"

var (
	file_yandex_cloud_k8s_v1_version_proto_rawDescOnce sync.Once
	file_yandex_cloud_k8s_v1_version_proto_rawDescData []byte
)

func file_yandex_cloud_k8s_v1_version_proto_rawDescGZIP() []byte {
	file_yandex_cloud_k8s_v1_version_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_k8s_v1_version_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_k8s_v1_version_proto_rawDesc), len(file_yandex_cloud_k8s_v1_version_proto_rawDesc)))
	})
	return file_yandex_cloud_k8s_v1_version_proto_rawDescData
}

var file_yandex_cloud_k8s_v1_version_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_k8s_v1_version_proto_goTypes = []any{
	(*VersionInfo)(nil),       // 0: yandex.cloud.k8s.v1.VersionInfo
	(*UpdateVersionSpec)(nil), // 1: yandex.cloud.k8s.v1.UpdateVersionSpec
}
var file_yandex_cloud_k8s_v1_version_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_yandex_cloud_k8s_v1_version_proto_init() }
func file_yandex_cloud_k8s_v1_version_proto_init() {
	if File_yandex_cloud_k8s_v1_version_proto != nil {
		return
	}
	file_yandex_cloud_k8s_v1_version_proto_msgTypes[1].OneofWrappers = []any{
		(*UpdateVersionSpec_Version)(nil),
		(*UpdateVersionSpec_LatestRevision)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_k8s_v1_version_proto_rawDesc), len(file_yandex_cloud_k8s_v1_version_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_k8s_v1_version_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_k8s_v1_version_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_k8s_v1_version_proto_msgTypes,
	}.Build()
	File_yandex_cloud_k8s_v1_version_proto = out.File
	file_yandex_cloud_k8s_v1_version_proto_goTypes = nil
	file_yandex_cloud_k8s_v1_version_proto_depIdxs = nil
}
