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

package compute

import (
	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 PCITopology int32

const (
	PCITopology_PCI_TOPOLOGY_UNSPECIFIED PCITopology = 0
	PCITopology_PCI_TOPOLOGY_V1          PCITopology = 1
	PCITopology_PCI_TOPOLOGY_V2          PCITopology = 2
)

// Enum value maps for PCITopology.
var (
	PCITopology_name = map[int32]string{
		0: "PCI_TOPOLOGY_UNSPECIFIED",
		1: "PCI_TOPOLOGY_V1",
		2: "PCI_TOPOLOGY_V2",
	}
	PCITopology_value = map[string]int32{
		"PCI_TOPOLOGY_UNSPECIFIED": 0,
		"PCI_TOPOLOGY_V1":          1,
		"PCI_TOPOLOGY_V2":          2,
	}
)

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

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

func (PCITopology) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_hardware_generation_proto_enumTypes[0].Descriptor()
}

func (PCITopology) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_hardware_generation_proto_enumTypes[0]
}

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

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

// A set of features, specific to a particular Compute hardware generation.
// They are not necessary supported by every host OS or distro, thus they are fixed to an image
// and are applied to all instances created with it as their boot disk image.
// These features significantly determine how the instance is created, thus cannot be changed after the fact.
type HardwareGeneration struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Features:
	//
	//	*HardwareGeneration_LegacyFeatures
	//	*HardwareGeneration_Generation2Features
	Features      isHardwareGeneration_Features `protobuf_oneof:"features"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*HardwareGeneration) ProtoMessage() {}

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

func (x *HardwareGeneration) GetFeatures() isHardwareGeneration_Features {
	if x != nil {
		return x.Features
	}
	return nil
}

func (x *HardwareGeneration) GetLegacyFeatures() *LegacyHardwareFeatures {
	if x != nil {
		if x, ok := x.Features.(*HardwareGeneration_LegacyFeatures); ok {
			return x.LegacyFeatures
		}
	}
	return nil
}

func (x *HardwareGeneration) GetGeneration2Features() *Generation2HardwareFeatures {
	if x != nil {
		if x, ok := x.Features.(*HardwareGeneration_Generation2Features); ok {
			return x.Generation2Features
		}
	}
	return nil
}

type isHardwareGeneration_Features interface {
	isHardwareGeneration_Features()
}

type HardwareGeneration_LegacyFeatures struct {
	LegacyFeatures *LegacyHardwareFeatures `protobuf:"bytes,1,opt,name=legacy_features,json=legacyFeatures,proto3,oneof"`
}

type HardwareGeneration_Generation2Features struct {
	Generation2Features *Generation2HardwareFeatures `protobuf:"bytes,2,opt,name=generation2_features,json=generation2Features,proto3,oneof"`
}

func (*HardwareGeneration_LegacyFeatures) isHardwareGeneration_Features() {}

func (*HardwareGeneration_Generation2Features) isHardwareGeneration_Features() {}

// A first hardware generation, by default compatible with all legacy images.
// Allows switching to PCI_TOPOLOGY_V2 and back.
type LegacyHardwareFeatures struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	PciTopology   PCITopology            `protobuf:"varint,1,opt,name=pci_topology,json=pciTopology,proto3,enum=yandex.cloud.compute.v1.PCITopology" json:"pci_topology,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*LegacyHardwareFeatures) ProtoMessage() {}

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

func (x *LegacyHardwareFeatures) GetPciTopology() PCITopology {
	if x != nil {
		return x.PciTopology
	}
	return PCITopology_PCI_TOPOLOGY_UNSPECIFIED
}

// A second hardware generation, which by default assumes PCI_TOPOLOGY_V2
// and UEFI boot (with UEFI related features).
type Generation2HardwareFeatures struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Generation2HardwareFeatures) ProtoMessage() {}

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

var File_yandex_cloud_compute_v1_hardware_generation_proto protoreflect.FileDescriptor

const file_yandex_cloud_compute_v1_hardware_generation_proto_rawDesc = "" +
	"\n" +
	"1yandex/cloud/compute/v1/hardware_generation.proto\x12\x17yandex.cloud.compute.v1\"\xe7\x01\n" +
	"\x12HardwareGeneration\x12Z\n" +
	"\x0flegacy_features\x18\x01 \x01(\v2/.yandex.cloud.compute.v1.LegacyHardwareFeaturesH\x00R\x0elegacyFeatures\x12i\n" +
	"\x14generation2_features\x18\x02 \x01(\v24.yandex.cloud.compute.v1.Generation2HardwareFeaturesH\x00R\x13generation2FeaturesB\n" +
	"\n" +
	"\bfeatures\"a\n" +
	"\x16LegacyHardwareFeatures\x12G\n" +
	"\fpci_topology\x18\x01 \x01(\x0e2$.yandex.cloud.compute.v1.PCITopologyR\vpciTopology\"\x1d\n" +
	"\x1bGeneration2HardwareFeatures*U\n" +
	"\vPCITopology\x12\x1c\n" +
	"\x18PCI_TOPOLOGY_UNSPECIFIED\x10\x00\x12\x13\n" +
	"\x0fPCI_TOPOLOGY_V1\x10\x01\x12\x13\n" +
	"\x0fPCI_TOPOLOGY_V2\x10\x02Bb\n" +
	"\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3"

var (
	file_yandex_cloud_compute_v1_hardware_generation_proto_rawDescOnce sync.Once
	file_yandex_cloud_compute_v1_hardware_generation_proto_rawDescData []byte
)

func file_yandex_cloud_compute_v1_hardware_generation_proto_rawDescGZIP() []byte {
	file_yandex_cloud_compute_v1_hardware_generation_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_compute_v1_hardware_generation_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_hardware_generation_proto_rawDesc), len(file_yandex_cloud_compute_v1_hardware_generation_proto_rawDesc)))
	})
	return file_yandex_cloud_compute_v1_hardware_generation_proto_rawDescData
}

var file_yandex_cloud_compute_v1_hardware_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_hardware_generation_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_hardware_generation_proto_goTypes = []any{
	(PCITopology)(0),                    // 0: yandex.cloud.compute.v1.PCITopology
	(*HardwareGeneration)(nil),          // 1: yandex.cloud.compute.v1.HardwareGeneration
	(*LegacyHardwareFeatures)(nil),      // 2: yandex.cloud.compute.v1.LegacyHardwareFeatures
	(*Generation2HardwareFeatures)(nil), // 3: yandex.cloud.compute.v1.Generation2HardwareFeatures
}
var file_yandex_cloud_compute_v1_hardware_generation_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.compute.v1.HardwareGeneration.legacy_features:type_name -> yandex.cloud.compute.v1.LegacyHardwareFeatures
	3, // 1: yandex.cloud.compute.v1.HardwareGeneration.generation2_features:type_name -> yandex.cloud.compute.v1.Generation2HardwareFeatures
	0, // 2: yandex.cloud.compute.v1.LegacyHardwareFeatures.pci_topology:type_name -> yandex.cloud.compute.v1.PCITopology
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_yandex_cloud_compute_v1_hardware_generation_proto_init() }
func file_yandex_cloud_compute_v1_hardware_generation_proto_init() {
	if File_yandex_cloud_compute_v1_hardware_generation_proto != nil {
		return
	}
	file_yandex_cloud_compute_v1_hardware_generation_proto_msgTypes[0].OneofWrappers = []any{
		(*HardwareGeneration_LegacyFeatures)(nil),
		(*HardwareGeneration_Generation2Features)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_hardware_generation_proto_rawDesc), len(file_yandex_cloud_compute_v1_hardware_generation_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_compute_v1_hardware_generation_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_compute_v1_hardware_generation_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_compute_v1_hardware_generation_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_compute_v1_hardware_generation_proto_msgTypes,
	}.Build()
	File_yandex_cloud_compute_v1_hardware_generation_proto = out.File
	file_yandex_cloud_compute_v1_hardware_generation_proto_goTypes = nil
	file_yandex_cloud_compute_v1_hardware_generation_proto_depIdxs = nil
}
