// 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/filesystem.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 Filesystem_Status int32

const (
	Filesystem_STATUS_UNSPECIFIED Filesystem_Status = 0
	// The filesystem is being created.
	Filesystem_CREATING Filesystem_Status = 1
	// The filesystem is ready to use.
	Filesystem_READY Filesystem_Status = 2
	// The filesystem encountered a problem and cannot operate.
	Filesystem_ERROR Filesystem_Status = 3
	// The filesystem is being deleted.
	Filesystem_DELETING Filesystem_Status = 4
)

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

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

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

func (Filesystem_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_filesystem_proto_enumTypes[0].Descriptor()
}

func (Filesystem_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_filesystem_proto_enumTypes[0]
}

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

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

// A filesystem resource.
// For details about the concept, see [documentation](/docs/compute/concepts/filesystem).
type Filesystem struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the filesystem. Generated at creation time.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the filesystem belongs to.
	FolderId string `protobuf:"bytes,2,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Name of the filesystem. The name is unique within the folder.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the filesystem.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Filesystem labels as `key:value` pairs.
	// For details about the concept, see [documentation](/docs/overview/concepts/services#labels).
	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"`
	// ID of the filesystem type.
	//
	// To get a list of available filesystem types, make a [yandex.cloud.compute.v1.DiskTypeService.List] request.
	TypeId string `protobuf:"bytes,7,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	// ID of the availability zone where the filesystem resides.
	//
	// A filesystem can be attached only to instances residing in the same availability zone.
	ZoneId string `protobuf:"bytes,8,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// Size of the filesystem, specified in bytes.
	Size int64 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"`
	// Block size used for the filesystem, specified in bytes.
	BlockSize int64 `protobuf:"varint,10,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
	// Current status of the filesystem.
	Status        Filesystem_Status `protobuf:"varint,11,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Filesystem_Status" json:"status,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Filesystem) ProtoMessage() {}

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

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

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

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

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

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

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

func (x *Filesystem) GetTypeId() string {
	if x != nil {
		return x.TypeId
	}
	return ""
}

func (x *Filesystem) GetZoneId() string {
	if x != nil {
		return x.ZoneId
	}
	return ""
}

func (x *Filesystem) GetSize() int64 {
	if x != nil {
		return x.Size
	}
	return 0
}

func (x *Filesystem) GetBlockSize() int64 {
	if x != nil {
		return x.BlockSize
	}
	return 0
}

func (x *Filesystem) GetStatus() Filesystem_Status {
	if x != nil {
		return x.Status
	}
	return Filesystem_STATUS_UNSPECIFIED
}

var File_yandex_cloud_compute_v1_filesystem_proto protoreflect.FileDescriptor

const file_yandex_cloud_compute_v1_filesystem_proto_rawDesc = "" +
	"\n" +
	"(yandex/cloud/compute/v1/filesystem.proto\x12\x17yandex.cloud.compute.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x04\n" +
	"\n" +
	"Filesystem\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\x12G\n" +
	"\x06labels\x18\x06 \x03(\v2/.yandex.cloud.compute.v1.Filesystem.LabelsEntryR\x06labels\x12\x17\n" +
	"\atype_id\x18\a \x01(\tR\x06typeId\x12\x17\n" +
	"\azone_id\x18\b \x01(\tR\x06zoneId\x12\x12\n" +
	"\x04size\x18\t \x01(\x03R\x04size\x12\x1d\n" +
	"\n" +
	"block_size\x18\n" +
	" \x01(\x03R\tblockSize\x12B\n" +
	"\x06status\x18\v \x01(\x0e2*.yandex.cloud.compute.v1.Filesystem.StatusR\x06status\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_filesystem_proto_rawDescOnce sync.Once
	file_yandex_cloud_compute_v1_filesystem_proto_rawDescData []byte
)

func file_yandex_cloud_compute_v1_filesystem_proto_rawDescGZIP() []byte {
	file_yandex_cloud_compute_v1_filesystem_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_compute_v1_filesystem_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_filesystem_proto_rawDesc), len(file_yandex_cloud_compute_v1_filesystem_proto_rawDesc)))
	})
	return file_yandex_cloud_compute_v1_filesystem_proto_rawDescData
}

var file_yandex_cloud_compute_v1_filesystem_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_filesystem_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_compute_v1_filesystem_proto_goTypes = []any{
	(Filesystem_Status)(0),        // 0: yandex.cloud.compute.v1.Filesystem.Status
	(*Filesystem)(nil),            // 1: yandex.cloud.compute.v1.Filesystem
	nil,                           // 2: yandex.cloud.compute.v1.Filesystem.LabelsEntry
	(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
}
var file_yandex_cloud_compute_v1_filesystem_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.compute.v1.Filesystem.created_at:type_name -> google.protobuf.Timestamp
	2, // 1: yandex.cloud.compute.v1.Filesystem.labels:type_name -> yandex.cloud.compute.v1.Filesystem.LabelsEntry
	0, // 2: yandex.cloud.compute.v1.Filesystem.status:type_name -> yandex.cloud.compute.v1.Filesystem.Status
	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_filesystem_proto_init() }
func file_yandex_cloud_compute_v1_filesystem_proto_init() {
	if File_yandex_cloud_compute_v1_filesystem_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_filesystem_proto_rawDesc), len(file_yandex_cloud_compute_v1_filesystem_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_compute_v1_filesystem_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_compute_v1_filesystem_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_compute_v1_filesystem_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_compute_v1_filesystem_proto_msgTypes,
	}.Build()
	File_yandex_cloud_compute_v1_filesystem_proto = out.File
	file_yandex_cloud_compute_v1_filesystem_proto_goTypes = nil
	file_yandex_cloud_compute_v1_filesystem_proto_depIdxs = nil
}
