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

package baremetal

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)
)

// Private subnet status.
type PrivateSubnet_Status int32

const (
	// Unspecified private subnet status.
	PrivateSubnet_STATUS_UNSPECIFIED PrivateSubnet_Status = 0
	// Private subnet is being created.
	PrivateSubnet_CREATING PrivateSubnet_Status = 1
	// Private subnet is ready to use.
	PrivateSubnet_READY PrivateSubnet_Status = 2
	// Private subnet is being updated.
	PrivateSubnet_UPDATING PrivateSubnet_Status = 3
	// Private subnet is being deleted.
	PrivateSubnet_DELETING PrivateSubnet_Status = 4
	// Private subnet encountered a problem and cannot operate.
	PrivateSubnet_ERROR PrivateSubnet_Status = 5
)

// Enum value maps for PrivateSubnet_Status.
var (
	PrivateSubnet_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "READY",
		3: "UPDATING",
		4: "DELETING",
		5: "ERROR",
	}
	PrivateSubnet_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"READY":              2,
		"UPDATING":           3,
		"DELETING":           4,
		"ERROR":              5,
	}
)

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

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

func (PrivateSubnet_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_enumTypes[0].Descriptor()
}

func (PrivateSubnet_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_enumTypes[0]
}

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

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

// A PrivateSubnet resource.
type PrivateSubnet struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the private subnet.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the cloud that the private subnet belongs to.
	CloudId string `protobuf:"bytes,2,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
	// ID of the folder that the private subnet belongs to.
	FolderId string `protobuf:"bytes,3,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Name of the private subnet.
	// The name is unique within the folder.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Optional description of the private subnet.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Status of the private subnet.
	Status PrivateSubnet_Status `protobuf:"varint,6,opt,name=status,proto3,enum=yandex.cloud.baremetal.v1alpha.PrivateSubnet_Status" json:"status,omitempty"`
	// ID of the availability zone where the server resides.
	ZoneId string `protobuf:"bytes,7,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"`
	// ID of the hardware pool that the private subnet belongs to.
	HardwarePoolId string `protobuf:"bytes,8,opt,name=hardware_pool_id,json=hardwarePoolId,proto3" json:"hardware_pool_id,omitempty"`
	// Optional VRF options for the private subnet. If missing, the private subnet will be unrouted,
	// i.e. it will lack a DHCP server and routing capabilities between this subnet and other private
	// subnets.
	VrfOptions *PrivateSubnet_VrfOptions `protobuf:"bytes,9,opt,name=vrf_options,json=vrfOptions,proto3" json:"vrf_options,omitempty"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// Resource labels as `key:value` pairs.
	Labels        map[string]string `protobuf:"bytes,200,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PrivateSubnet) ProtoMessage() {}

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

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

func (x *PrivateSubnet) GetCloudId() string {
	if x != nil {
		return x.CloudId
	}
	return ""
}

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

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

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

func (x *PrivateSubnet) GetStatus() PrivateSubnet_Status {
	if x != nil {
		return x.Status
	}
	return PrivateSubnet_STATUS_UNSPECIFIED
}

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

func (x *PrivateSubnet) GetHardwarePoolId() string {
	if x != nil {
		return x.HardwarePoolId
	}
	return ""
}

func (x *PrivateSubnet) GetVrfOptions() *PrivateSubnet_VrfOptions {
	if x != nil {
		return x.VrfOptions
	}
	return nil
}

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

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

// VRF options for the private subnet.
type PrivateSubnet_VrfOptions struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the VRF.
	VrfId string `protobuf:"bytes,1,opt,name=vrf_id,json=vrfId,proto3" json:"vrf_id,omitempty"`
	// CIDR block for the subnet.
	Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
	// DHCP options for the subnet.
	DhcpOptions *DhcpOptions `protobuf:"bytes,3,opt,name=dhcp_options,json=dhcpOptions,proto3" json:"dhcp_options,omitempty"`
	// Gateway IP address for the subnet.
	GatewayIp     string `protobuf:"bytes,4,opt,name=gateway_ip,json=gatewayIp,proto3" json:"gateway_ip,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PrivateSubnet_VrfOptions) ProtoMessage() {}

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

func (x *PrivateSubnet_VrfOptions) GetVrfId() string {
	if x != nil {
		return x.VrfId
	}
	return ""
}

func (x *PrivateSubnet_VrfOptions) GetCidr() string {
	if x != nil {
		return x.Cidr
	}
	return ""
}

func (x *PrivateSubnet_VrfOptions) GetDhcpOptions() *DhcpOptions {
	if x != nil {
		return x.DhcpOptions
	}
	return nil
}

func (x *PrivateSubnet_VrfOptions) GetGatewayIp() string {
	if x != nil {
		return x.GatewayIp
	}
	return ""
}

var File_yandex_cloud_baremetal_v1alpha_private_subnet_proto protoreflect.FileDescriptor

const file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDesc = "" +
	"\n" +
	"3yandex/cloud/baremetal/v1alpha/private_subnet.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\x1a)yandex/cloud/baremetal/v1alpha/dhcp.proto\"\xdb\x06\n" +
	"\rPrivateSubnet\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
	"\bcloud_id\x18\x02 \x01(\tR\acloudId\x12\x1b\n" +
	"\tfolder_id\x18\x03 \x01(\tR\bfolderId\x12\x12\n" +
	"\x04name\x18\x04 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x05 \x01(\tR\vdescription\x12L\n" +
	"\x06status\x18\x06 \x01(\x0e24.yandex.cloud.baremetal.v1alpha.PrivateSubnet.StatusR\x06status\x12\x17\n" +
	"\azone_id\x18\a \x01(\tR\x06zoneId\x12(\n" +
	"\x10hardware_pool_id\x18\b \x01(\tR\x0ehardwarePoolId\x12Y\n" +
	"\vvrf_options\x18\t \x01(\v28.yandex.cloud.baremetal.v1alpha.PrivateSubnet.VrfOptionsR\n" +
	"vrfOptions\x129\n" +
	"\n" +
	"created_at\x18d \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12R\n" +
	"\x06labels\x18\xc8\x01 \x03(\v29.yandex.cloud.baremetal.v1alpha.PrivateSubnet.LabelsEntryR\x06labels\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\xa6\x01\n" +
	"\n" +
	"VrfOptions\x12\x15\n" +
	"\x06vrf_id\x18\x01 \x01(\tR\x05vrfId\x12\x12\n" +
	"\x04cidr\x18\x02 \x01(\tR\x04cidr\x12N\n" +
	"\fdhcp_options\x18\x03 \x01(\v2+.yandex.cloud.baremetal.v1alpha.DhcpOptionsR\vdhcpOptions\x12\x1d\n" +
	"\n" +
	"gateway_ip\x18\x04 \x01(\tR\tgatewayIp\"`\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\t\n" +
	"\x05READY\x10\x02\x12\f\n" +
	"\bUPDATING\x10\x03\x12\f\n" +
	"\bDELETING\x10\x04\x12\t\n" +
	"\x05ERROR\x10\x05J\x04\b\n" +
	"\x10dJ\x05\be\x10\xc8\x01Br\n" +
	"\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3"

var (
	file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDescOnce sync.Once
	file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDescData []byte
)

func file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDescGZIP() []byte {
	file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDesc), len(file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDesc)))
	})
	return file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDescData
}

var file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_goTypes = []any{
	(PrivateSubnet_Status)(0),        // 0: yandex.cloud.baremetal.v1alpha.PrivateSubnet.Status
	(*PrivateSubnet)(nil),            // 1: yandex.cloud.baremetal.v1alpha.PrivateSubnet
	nil,                              // 2: yandex.cloud.baremetal.v1alpha.PrivateSubnet.LabelsEntry
	(*PrivateSubnet_VrfOptions)(nil), // 3: yandex.cloud.baremetal.v1alpha.PrivateSubnet.VrfOptions
	(*timestamppb.Timestamp)(nil),    // 4: google.protobuf.Timestamp
	(*DhcpOptions)(nil),              // 5: yandex.cloud.baremetal.v1alpha.DhcpOptions
}
var file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.baremetal.v1alpha.PrivateSubnet.status:type_name -> yandex.cloud.baremetal.v1alpha.PrivateSubnet.Status
	3, // 1: yandex.cloud.baremetal.v1alpha.PrivateSubnet.vrf_options:type_name -> yandex.cloud.baremetal.v1alpha.PrivateSubnet.VrfOptions
	4, // 2: yandex.cloud.baremetal.v1alpha.PrivateSubnet.created_at:type_name -> google.protobuf.Timestamp
	2, // 3: yandex.cloud.baremetal.v1alpha.PrivateSubnet.labels:type_name -> yandex.cloud.baremetal.v1alpha.PrivateSubnet.LabelsEntry
	5, // 4: yandex.cloud.baremetal.v1alpha.PrivateSubnet.VrfOptions.dhcp_options:type_name -> yandex.cloud.baremetal.v1alpha.DhcpOptions
	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_baremetal_v1alpha_private_subnet_proto_init() }
func file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_init() {
	if File_yandex_cloud_baremetal_v1alpha_private_subnet_proto != nil {
		return
	}
	file_yandex_cloud_baremetal_v1alpha_dhcp_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDesc), len(file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_msgTypes,
	}.Build()
	File_yandex_cloud_baremetal_v1alpha_private_subnet_proto = out.File
	file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_goTypes = nil
	file_yandex_cloud_baremetal_v1alpha_private_subnet_proto_depIdxs = nil
}
