// 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/snapshot.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 Snapshot_Status int32

const (
	Snapshot_STATUS_UNSPECIFIED Snapshot_Status = 0
	// Snapshot is being created.
	Snapshot_CREATING Snapshot_Status = 1
	// Snapshot is ready to use.
	Snapshot_READY Snapshot_Status = 2
	// Snapshot encountered a problem and cannot operate.
	Snapshot_ERROR Snapshot_Status = 3
	// Snapshot is being deleted.
	Snapshot_DELETING Snapshot_Status = 4
)

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

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

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

func (Snapshot_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_snapshot_proto_enumTypes[0].Descriptor()
}

func (Snapshot_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_snapshot_proto_enumTypes[0]
}

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

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

// A Snapshot resource. For more information, see [Snapshots](/docs/compute/concepts/snapshot).
type Snapshot struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the snapshot.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the snapshot 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 snapshot. 1-63 characters long.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the snapshot. 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"`
	// Size of the snapshot, specified in bytes.
	StorageSize int64 `protobuf:"varint,7,opt,name=storage_size,json=storageSize,proto3" json:"storage_size,omitempty"` // delta from prev snapshot from same disk
	// Size of the disk when the snapshot was created, specified in bytes.
	DiskSize int64 `protobuf:"varint,8,opt,name=disk_size,json=diskSize,proto3" json:"disk_size,omitempty"` // at snapshot moment
	// 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,9,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"`
	// Current status of the snapshot.
	Status Snapshot_Status `protobuf:"varint,10,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Snapshot_Status" json:"status,omitempty"`
	// ID of the source disk used to create this snapshot.
	SourceDiskId string `protobuf:"bytes,11,opt,name=source_disk_id,json=sourceDiskId,proto3" json:"source_disk_id,omitempty"`
	// If specified, forces the same HardwareGeneration features to be applied to the instance
	// created using this snapshot as source for the boot disk. Otherwise the current default will be used.
	HardwareGeneration *HardwareGeneration `protobuf:"bytes,12,opt,name=hardware_generation,json=hardwareGeneration,proto3" json:"hardware_generation,omitempty"`
	// Key encryption key info.
	KmsKey        *KMSKey `protobuf:"bytes,13,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Snapshot) ProtoMessage() {}

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

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

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

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

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

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

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

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

func (x *Snapshot) GetDiskSize() int64 {
	if x != nil {
		return x.DiskSize
	}
	return 0
}

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

func (x *Snapshot) GetStatus() Snapshot_Status {
	if x != nil {
		return x.Status
	}
	return Snapshot_STATUS_UNSPECIFIED
}

func (x *Snapshot) GetSourceDiskId() string {
	if x != nil {
		return x.SourceDiskId
	}
	return ""
}

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

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

var File_yandex_cloud_compute_v1_snapshot_proto protoreflect.FileDescriptor

const file_yandex_cloud_compute_v1_snapshot_proto_rawDesc = "" +
	"\n" +
	"&yandex/cloud/compute/v1/snapshot.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\"\xdf\x05\n" +
	"\bSnapshot\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\x12E\n" +
	"\x06labels\x18\x06 \x03(\v2-.yandex.cloud.compute.v1.Snapshot.LabelsEntryR\x06labels\x12!\n" +
	"\fstorage_size\x18\a \x01(\x03R\vstorageSize\x12\x1b\n" +
	"\tdisk_size\x18\b \x01(\x03R\bdiskSize\x12\x1f\n" +
	"\vproduct_ids\x18\t \x03(\tR\n" +
	"productIds\x12@\n" +
	"\x06status\x18\n" +
	" \x01(\x0e2(.yandex.cloud.compute.v1.Snapshot.StatusR\x06status\x12$\n" +
	"\x0esource_disk_id\x18\v \x01(\tR\fsourceDiskId\x12\\\n" +
	"\x13hardware_generation\x18\f \x01(\v2+.yandex.cloud.compute.v1.HardwareGenerationR\x12hardwareGeneration\x128\n" +
	"\akms_key\x18\r \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\x04Bb\n" +
	"\x1byandex.cloud.api.compute.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;computeb\x06proto3"

var (
	file_yandex_cloud_compute_v1_snapshot_proto_rawDescOnce sync.Once
	file_yandex_cloud_compute_v1_snapshot_proto_rawDescData []byte
)

func file_yandex_cloud_compute_v1_snapshot_proto_rawDescGZIP() []byte {
	file_yandex_cloud_compute_v1_snapshot_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_compute_v1_snapshot_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_snapshot_proto_rawDesc), len(file_yandex_cloud_compute_v1_snapshot_proto_rawDesc)))
	})
	return file_yandex_cloud_compute_v1_snapshot_proto_rawDescData
}

var file_yandex_cloud_compute_v1_snapshot_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_snapshot_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_compute_v1_snapshot_proto_goTypes = []any{
	(Snapshot_Status)(0),          // 0: yandex.cloud.compute.v1.Snapshot.Status
	(*Snapshot)(nil),              // 1: yandex.cloud.compute.v1.Snapshot
	nil,                           // 2: yandex.cloud.compute.v1.Snapshot.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
	(*HardwareGeneration)(nil),    // 4: yandex.cloud.compute.v1.HardwareGeneration
	(*KMSKey)(nil),                // 5: yandex.cloud.compute.v1.KMSKey
}
var file_yandex_cloud_compute_v1_snapshot_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.compute.v1.Snapshot.created_at:type_name -> google.protobuf.Timestamp
	2, // 1: yandex.cloud.compute.v1.Snapshot.labels:type_name -> yandex.cloud.compute.v1.Snapshot.LabelsEntry
	0, // 2: yandex.cloud.compute.v1.Snapshot.status:type_name -> yandex.cloud.compute.v1.Snapshot.Status
	4, // 3: yandex.cloud.compute.v1.Snapshot.hardware_generation:type_name -> yandex.cloud.compute.v1.HardwareGeneration
	5, // 4: yandex.cloud.compute.v1.Snapshot.kms_key:type_name -> yandex.cloud.compute.v1.KMSKey
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() { file_yandex_cloud_compute_v1_snapshot_proto_init() }
func file_yandex_cloud_compute_v1_snapshot_proto_init() {
	if File_yandex_cloud_compute_v1_snapshot_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_snapshot_proto_rawDesc), len(file_yandex_cloud_compute_v1_snapshot_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_compute_v1_snapshot_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_compute_v1_snapshot_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_compute_v1_snapshot_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_compute_v1_snapshot_proto_msgTypes,
	}.Build()
	File_yandex_cloud_compute_v1_snapshot_proto = out.File
	file_yandex_cloud_compute_v1_snapshot_proto_goTypes = nil
	file_yandex_cloud_compute_v1_snapshot_proto_depIdxs = nil
}
