// 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/zone.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 Zone_Status int32

const (
	Zone_STATUS_UNSPECIFIED Zone_Status = 0
	// Zone is available. You can access the resources allocated in this zone.
	Zone_UP Zone_Status = 1
	// Zone is not available.
	Zone_DOWN Zone_Status = 2
)

// Enum value maps for Zone_Status.
var (
	Zone_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "UP",
		2: "DOWN",
	}
	Zone_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"UP":                 1,
		"DOWN":               2,
	}
)

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

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

func (Zone_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_compute_v1_zone_proto_enumTypes[0].Descriptor()
}

func (Zone_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_compute_v1_zone_proto_enumTypes[0]
}

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

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

// Availability zone. For more information, see [Availability zones](/docs/overview/concepts/geo-scope).
type Zone struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the zone.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the region.
	RegionId string `protobuf:"bytes,2,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// Status of the zone.
	Status        Zone_Status `protobuf:"varint,3,opt,name=status,proto3,enum=yandex.cloud.compute.v1.Zone_Status" json:"status,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Zone) ProtoMessage() {}

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

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

func (x *Zone) GetRegionId() string {
	if x != nil {
		return x.RegionId
	}
	return ""
}

func (x *Zone) GetStatus() Zone_Status {
	if x != nil {
		return x.Status
	}
	return Zone_STATUS_UNSPECIFIED
}

var File_yandex_cloud_compute_v1_zone_proto protoreflect.FileDescriptor

const file_yandex_cloud_compute_v1_zone_proto_rawDesc = "" +
	"\n" +
	"\"yandex/cloud/compute/v1/zone.proto\x12\x17yandex.cloud.compute.v1\"\xa5\x01\n" +
	"\x04Zone\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
	"\tregion_id\x18\x02 \x01(\tR\bregionId\x12<\n" +
	"\x06status\x18\x03 \x01(\x0e2$.yandex.cloud.compute.v1.Zone.StatusR\x06status\"2\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\x06\n" +
	"\x02UP\x10\x01\x12\b\n" +
	"\x04DOWN\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_zone_proto_rawDescOnce sync.Once
	file_yandex_cloud_compute_v1_zone_proto_rawDescData []byte
)

func file_yandex_cloud_compute_v1_zone_proto_rawDescGZIP() []byte {
	file_yandex_cloud_compute_v1_zone_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_compute_v1_zone_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_compute_v1_zone_proto_rawDesc), len(file_yandex_cloud_compute_v1_zone_proto_rawDesc)))
	})
	return file_yandex_cloud_compute_v1_zone_proto_rawDescData
}

var file_yandex_cloud_compute_v1_zone_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_compute_v1_zone_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_yandex_cloud_compute_v1_zone_proto_goTypes = []any{
	(Zone_Status)(0), // 0: yandex.cloud.compute.v1.Zone.Status
	(*Zone)(nil),     // 1: yandex.cloud.compute.v1.Zone
}
var file_yandex_cloud_compute_v1_zone_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.compute.v1.Zone.status:type_name -> yandex.cloud.compute.v1.Zone.Status
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_yandex_cloud_compute_v1_zone_proto_init() }
func file_yandex_cloud_compute_v1_zone_proto_init() {
	if File_yandex_cloud_compute_v1_zone_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_zone_proto_rawDesc), len(file_yandex_cloud_compute_v1_zone_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_compute_v1_zone_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_compute_v1_zone_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_compute_v1_zone_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_compute_v1_zone_proto_msgTypes,
	}.Build()
	File_yandex_cloud_compute_v1_zone_proto = out.File
	file_yandex_cloud_compute_v1_zone_proto_goTypes = nil
	file_yandex_cloud_compute_v1_zone_proto_depIdxs = nil
}
