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

package compute

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

const (
	Image_STATUS_UNSPECIFIED Image_Status = 0
	// Image is being created.
	Image_CREATING Image_Status = 1
	// Image is ready to use.
	Image_READY Image_Status = 2
	// Image encountered a problem and cannot operate.
	Image_ERROR Image_Status = 3
	// Image is being deleted.
	Image_DELETING Image_Status = 4
)

// Enum value maps for Image_Status.
var (
	Image_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "READY",
		3: "ERROR",
		4: "DELETING",
	}
	Image_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"READY":              2,
		"ERROR":              3,
		"DELETING":           4,
	}
)

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

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

func (Image_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_image_proto_enumTypes[0].Descriptor()
}

func (Image_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_image_proto_enumTypes[0]
}

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

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

type Os_Type int32

const (
	Os_TYPE_UNSPECIFIED Os_Type = 0
	// Linux operating system.
	Os_LINUX Os_Type = 1
	// Windows operating system.
	Os_WINDOWS Os_Type = 2
)

// Enum value maps for Os_Type.
var (
	Os_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "LINUX",
		2: "WINDOWS",
	}
	Os_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"LINUX":            1,
		"WINDOWS":          2,
	}
)

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

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

func (Os_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_image_proto_enumTypes[1].Descriptor()
}

func (Os_Type) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_image_proto_enumTypes[1]
}

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

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

// An Image resource.
type Image struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the image.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the image belongs to.
	FolderId  string                 `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the image. 1-63 characters long.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the image. 0-256 characters long.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Resource labels as `key:value` pairs. Maximum of 64 per resource.
	Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// The name of the image family to which this image belongs.
	//
	// You can get the most recent image from a family by using
	// the [yandex.cloud.compute.v1.ImageService.GetLatestByFamily] request
	// and create the disk from this image.
	Family string `protobuf:"bytes,7,opt,name=family,proto3" json:"family,omitempty"`
	// The size of the image, specified in bytes.
	StorageSize int64 `protobuf:"varint,8,opt,name=storage_size,json=storageSize,proto3" json:"storage_size,omitempty"`
	// Minimum size of the disk which will be created from this image.
	MinDiskSize int64 `protobuf:"varint,9,opt,name=min_disk_size,json=minDiskSize,proto3" json:"min_disk_size,omitempty"`
	// License IDs that indicate which licenses are attached to this resource.
	// License IDs are used to calculate additional charges for the use of the virtual machine.
	//
	// The correct license ID is generated by the platform. IDs are inherited by new resources created from this resource.
	//
	// If you know the license IDs, specify them when you create the image.
	// For example, if you create a disk image using a third-party utility and load it into Object Storage, the license IDs will be lost.
	// You can specify them in the [yandex.cloud.compute.v1.ImageService.Create] request.
	ProductIds []string `protobuf:"bytes,10,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"`
	// Current status of the image.
	Status Image_Status `protobuf:"varint,11,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Image_Status" json:"status,omitempty"`
	// Operating system that is contained in the image.
	Os *Os `protobuf:"bytes,12,opt,name=os,proto3" json:"os,omitempty"`
	// When true, indicates there is an image pool for fast creation disks from the image.
	Pooled bool `protobuf:"varint,13,opt,name=pooled,proto3" json:"pooled,omitempty"`
	// If specified, forces the same HardwareGeneration features to be applied to the instance
	// created using this image as a source for the boot disk. Otherwise the current default will be used.
	HardwareGeneration *HardwareGeneration `protobuf:"bytes,14,opt,name=hardware_generation,json=hardwareGeneration,proto3" json:"hardware_generation,omitempty"`
	// Key encryption key info.
	KmsKey        *KMSKey `protobuf:"bytes,15,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Image) ProtoMessage() {}

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

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

func (x *Image) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

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

func (x *Image) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

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

func (x *Image) GetLabels() map[string]string {
	if x != nil {
		return x.Labels
	}
	return nil
}

func (x *Image) GetFamily() string {
	if x != nil {
		return x.Family
	}
	return ""
}

func (x *Image) GetStorageSize() int64 {
	if x != nil {
		return x.StorageSize
	}
	return 0
}

func (x *Image) GetMinDiskSize() int64 {
	if x != nil {
		return x.MinDiskSize
	}
	return 0
}

func (x *Image) GetProductIds() []string {
	if x != nil {
		return x.ProductIds
	}
	return nil
}

func (x *Image) GetStatus() Image_Status {
	if x != nil {
		return x.Status
	}
	return Image_STATUS_UNSPECIFIED
}

func (x *Image) GetOs() *Os {
	if x != nil {
		return x.Os
	}
	return nil
}

func (x *Image) GetPooled() bool {
	if x != nil {
		return x.Pooled
	}
	return false
}

func (x *Image) GetHardwareGeneration() *HardwareGeneration {
	if x != nil {
		return x.HardwareGeneration
	}
	return nil
}

func (x *Image) GetKmsKey() *KMSKey {
	if x != nil {
		return x.KmsKey
	}
	return nil
}

type Os struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Operating system type. The default is `LINUX`.
	//
	// This field is used to correctly emulate a vCPU and calculate the cost of using an instance.
	Type          Os_Type `protobuf:"varint,1,opt,name=type,proto3,enum=yandex.cloud.compute.v1.Os_Type" json:"type,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Os) ProtoMessage() {}

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

func (x *Os) GetType() Os_Type {
	if x != nil {
		return x.Type
	}
	return Os_TYPE_UNSPECIFIED
}

var File_yandex_cloud_compute_v1_image_proto protoreflect.FileDescriptor

const file_yandex_cloud_compute_v1_image_proto_rawDesc = "" +
	"\n" +
	"#yandex/cloud/compute/v1/image.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!yandex/cloud/compute/v1/kek.proto\x1a1yandex/cloud/compute/v1/hardware_generation.proto\"\x94\x06\n" +
	"\x05Image\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tfolder_id\x18\x02 \x01(\tR\bfolderId\x129\n" +
	"\n" +
	"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x12\n" +
	"\x04name\x18\x04 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x05 \x01(\tR\vdescription\x12B\n" +
	"\x06labels\x18\x06 \x03(\v2*.yandex.cloud.compute.v1.Image.LabelsEntryR\x06labels\x12\x16\n" +
	"\x06family\x18\a \x01(\tR\x06family\x12!\n" +
	"\fstorage_size\x18\b \x01(\x03R\vstorageSize\x12\"\n" +
	"\rmin_disk_size\x18\t \x01(\x03R\vminDiskSize\x12\x1f\n" +
	"\vproduct_ids\x18\n" +
	" \x03(\tR\n" +
	"productIds\x12=\n" +
	"\x06status\x18\v \x01(\x0e2%.yandex.cloud.compute.v1.Image.StatusR\x06status\x12+\n" +
	"\x02os\x18\f \x01(\v2\x1b.yandex.cloud.compute.v1.OsR\x02os\x12\x16\n" +
	"\x06pooled\x18\r \x01(\bR\x06pooled\x12\\\n" +
	"\x13hardware_generation\x18\x0e \x01(\v2+.yandex.cloud.compute.v1.HardwareGenerationR\x12hardwareGeneration\x128\n" +
	"\akms_key\x18\x0f \x01(\v2\x1f.yandex.cloud.compute.v1.KMSKeyR\x06kmsKey\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"R\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\t\n" +
	"\x05READY\x10\x02\x12\t\n" +
	"\x05ERROR\x10\x03\x12\f\n" +
	"\bDELETING\x10\x04\"p\n" +
	"\x02Os\x124\n" +
	"\x04type\x18\x01 \x01(\x0e2 .yandex.cloud.compute.v1.Os.TypeR\x04type\"4\n" +
	"\x04Type\x12\x14\n" +
	"\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n" +
	"\x05LINUX\x10\x01\x12\v\n" +
	"\aWINDOWS\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_image_proto_rawDescOnce sync.Once
	file_yandex_cloud_compute_v1_image_proto_rawDescData []byte
)

func file_yandex_cloud_compute_v1_image_proto_rawDescGZIP() []byte {
	file_yandex_cloud_compute_v1_image_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_compute_v1_image_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_image_proto_rawDesc), len(file_yandex_cloud_compute_v1_image_proto_rawDesc)))
	})
	return file_yandex_cloud_compute_v1_image_proto_rawDescData
}

var file_yandex_cloud_compute_v1_image_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_compute_v1_image_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_compute_v1_image_proto_goTypes = []any{
	(Image_Status)(0),             // 0: yandex.cloud.compute.v1.Image.Status
	(Os_Type)(0),                  // 1: yandex.cloud.compute.v1.Os.Type
	(*Image)(nil),                 // 2: yandex.cloud.compute.v1.Image
	(*Os)(nil),                    // 3: yandex.cloud.compute.v1.Os
	nil,                           // 4: yandex.cloud.compute.v1.Image.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
	(*HardwareGeneration)(nil),    // 6: yandex.cloud.compute.v1.HardwareGeneration
	(*KMSKey)(nil),                // 7: yandex.cloud.compute.v1.KMSKey
}
var file_yandex_cloud_compute_v1_image_proto_depIdxs = []int32{
	5, // 0: yandex.cloud.compute.v1.Image.created_at:type_name -> google.protobuf.Timestamp
	4, // 1: yandex.cloud.compute.v1.Image.labels:type_name -> yandex.cloud.compute.v1.Image.LabelsEntry
	0, // 2: yandex.cloud.compute.v1.Image.status:type_name -> yandex.cloud.compute.v1.Image.Status
	3, // 3: yandex.cloud.compute.v1.Image.os:type_name -> yandex.cloud.compute.v1.Os
	6, // 4: yandex.cloud.compute.v1.Image.hardware_generation:type_name -> yandex.cloud.compute.v1.HardwareGeneration
	7, // 5: yandex.cloud.compute.v1.Image.kms_key:type_name -> yandex.cloud.compute.v1.KMSKey
	1, // 6: yandex.cloud.compute.v1.Os.type:type_name -> yandex.cloud.compute.v1.Os.Type
	7, // [7:7] is the sub-list for method output_type
	7, // [7:7] is the sub-list for method input_type
	7, // [7:7] is the sub-list for extension type_name
	7, // [7:7] is the sub-list for extension extendee
	0, // [0:7] is the sub-list for field type_name
}

func init() { file_yandex_cloud_compute_v1_image_proto_init() }
func file_yandex_cloud_compute_v1_image_proto_init() {
	if File_yandex_cloud_compute_v1_image_proto != nil {
		return
	}
	file_yandex_cloud_compute_v1_kek_proto_init()
	file_yandex_cloud_compute_v1_hardware_generation_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_image_proto_rawDesc), len(file_yandex_cloud_compute_v1_image_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_compute_v1_image_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_compute_v1_image_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_compute_v1_image_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_compute_v1_image_proto_msgTypes,
	}.Build()
	File_yandex_cloud_compute_v1_image_proto = out.File
	file_yandex_cloud_compute_v1_image_proto_goTypes = nil
	file_yandex_cloud_compute_v1_image_proto_depIdxs = nil
}
