// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/baremetal/v1alpha/public_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"
	wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
	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 of the public subnet.
type PublicSubnetType int32

const (
	// Unspecified public subnet type.
	PublicSubnetType_PUBLIC_SUBNET_TYPE_UNSPECIFIED PublicSubnetType = 0
	// Dedicated public subnet.
	PublicSubnetType_DEDICATED PublicSubnetType = 1
	// Ephemeral public subnet.
	PublicSubnetType_EPHEMERAL PublicSubnetType = 2
)

// Enum value maps for PublicSubnetType.
var (
	PublicSubnetType_name = map[int32]string{
		0: "PUBLIC_SUBNET_TYPE_UNSPECIFIED",
		1: "DEDICATED",
		2: "EPHEMERAL",
	}
	PublicSubnetType_value = map[string]int32{
		"PUBLIC_SUBNET_TYPE_UNSPECIFIED": 0,
		"DEDICATED":                      1,
		"EPHEMERAL":                      2,
	}
)

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

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

func (PublicSubnetType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_enumTypes[0].Descriptor()
}

func (PublicSubnetType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_enumTypes[0]
}

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

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

// A PublicSubnet resource.
type PublicSubnet struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the public subnet.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the cloud that the public 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 public subnet belongs to.
	FolderId string `protobuf:"bytes,3,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// Name of the public subnet.
	// The name is unique within the folder.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Optional description of the public subnet.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,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"`
	// IDs of the hardware pool that the public subnet belongs to.
	HardwarePoolIds []string `protobuf:"bytes,8,rep,name=hardware_pool_ids,json=hardwarePoolIds,proto3" json:"hardware_pool_ids,omitempty"`
	// Type of the public subnet (static or ephemeral).
	Type PublicSubnetType `protobuf:"varint,9,opt,name=type,proto3,enum=yandex.cloud.baremetal.v1alpha.PublicSubnetType" json:"type,omitempty"`
	// Prefix length of the public subnet CIDR block.
	PrefixLength int64 `protobuf:"varint,10,opt,name=prefix_length,json=prefixLength,proto3" json:"prefix_length,omitempty"`
	// CIDR block for the public subnet.
	Cidr string `protobuf:"bytes,11,opt,name=cidr,proto3" json:"cidr,omitempty"`
	// DHCP options for the public subnet.
	DhcpOptions *DhcpOptions `protobuf:"bytes,12,opt,name=dhcp_options,json=dhcpOptions,proto3" json:"dhcp_options,omitempty"`
	// Gateway IP address for the public subnet.
	GatewayIp string `protobuf:"bytes,13,opt,name=gateway_ip,json=gatewayIp,proto3" json:"gateway_ip,omitempty"`
	// ID of the public prefix pool that the public subnet belongs to.
	PublicPrefixPoolId *wrapperspb.StringValue `protobuf:"bytes,14,opt,name=public_prefix_pool_id,json=publicPrefixPoolId,proto3" json:"public_prefix_pool_id,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"`
	// Timestamp when deletion of the public subnet is allowed.
	DeletionUnlockedAt *timestamppb.Timestamp `protobuf:"bytes,201,opt,name=deletion_unlocked_at,json=deletionUnlockedAt,proto3" json:"deletion_unlocked_at,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

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

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

func (*PublicSubnet) ProtoMessage() {}

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

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

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

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

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

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

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

func (x *PublicSubnet) GetHardwarePoolIds() []string {
	if x != nil {
		return x.HardwarePoolIds
	}
	return nil
}

func (x *PublicSubnet) GetType() PublicSubnetType {
	if x != nil {
		return x.Type
	}
	return PublicSubnetType_PUBLIC_SUBNET_TYPE_UNSPECIFIED
}

func (x *PublicSubnet) GetPrefixLength() int64 {
	if x != nil {
		return x.PrefixLength
	}
	return 0
}

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

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

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

func (x *PublicSubnet) GetPublicPrefixPoolId() *wrapperspb.StringValue {
	if x != nil {
		return x.PublicPrefixPoolId
	}
	return nil
}

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

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

func (x *PublicSubnet) GetDeletionUnlockedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.DeletionUnlockedAt
	}
	return nil
}

var File_yandex_cloud_baremetal_v1alpha_public_subnet_proto protoreflect.FileDescriptor

const file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDesc = "" +
	"\n" +
	"2yandex/cloud/baremetal/v1alpha/public_subnet.proto\x12\x1eyandex.cloud.baremetal.v1alpha\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a)yandex/cloud/baremetal/v1alpha/dhcp.proto\"\xbb\x06\n" +
	"\fPublicSubnet\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\x12\x17\n" +
	"\azone_id\x18\a \x01(\tR\x06zoneId\x12*\n" +
	"\x11hardware_pool_ids\x18\b \x03(\tR\x0fhardwarePoolIds\x12D\n" +
	"\x04type\x18\t \x01(\x0e20.yandex.cloud.baremetal.v1alpha.PublicSubnetTypeR\x04type\x12#\n" +
	"\rprefix_length\x18\n" +
	" \x01(\x03R\fprefixLength\x12\x12\n" +
	"\x04cidr\x18\v \x01(\tR\x04cidr\x12N\n" +
	"\fdhcp_options\x18\f \x01(\v2+.yandex.cloud.baremetal.v1alpha.DhcpOptionsR\vdhcpOptions\x12\x1d\n" +
	"\n" +
	"gateway_ip\x18\r \x01(\tR\tgatewayIp\x12O\n" +
	"\x15public_prefix_pool_id\x18\x0e \x01(\v2\x1c.google.protobuf.StringValueR\x12publicPrefixPoolId\x129\n" +
	"\n" +
	"created_at\x18d \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x12Q\n" +
	"\x06labels\x18\xc8\x01 \x03(\v28.yandex.cloud.baremetal.v1alpha.PublicSubnet.LabelsEntryR\x06labels\x12M\n" +
	"\x14deletion_unlocked_at\x18\xc9\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x12deletionUnlockedAt\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01J\x04\b\x06\x10\aJ\x04\b\x0f\x10dJ\x05\be\x10\xc8\x01*T\n" +
	"\x10PublicSubnetType\x12\"\n" +
	"\x1ePUBLIC_SUBNET_TYPE_UNSPECIFIED\x10\x00\x12\r\n" +
	"\tDEDICATED\x10\x01\x12\r\n" +
	"\tEPHEMERAL\x10\x02Br\n" +
	"\"yandex.cloud.api.baremetal.v1alphaZLgithub.com/yandex-cloud/go-genproto/yandex/cloud/baremetal/v1alpha;baremetalb\x06proto3"

var (
	file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDescOnce sync.Once
	file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDescData []byte
)

func file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDescGZIP() []byte {
	file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDesc), len(file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDesc)))
	})
	return file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDescData
}

var file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_goTypes = []any{
	(PublicSubnetType)(0),          // 0: yandex.cloud.baremetal.v1alpha.PublicSubnetType
	(*PublicSubnet)(nil),           // 1: yandex.cloud.baremetal.v1alpha.PublicSubnet
	nil,                            // 2: yandex.cloud.baremetal.v1alpha.PublicSubnet.LabelsEntry
	(*DhcpOptions)(nil),            // 3: yandex.cloud.baremetal.v1alpha.DhcpOptions
	(*wrapperspb.StringValue)(nil), // 4: google.protobuf.StringValue
	(*timestamppb.Timestamp)(nil),  // 5: google.protobuf.Timestamp
}
var file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.baremetal.v1alpha.PublicSubnet.type:type_name -> yandex.cloud.baremetal.v1alpha.PublicSubnetType
	3, // 1: yandex.cloud.baremetal.v1alpha.PublicSubnet.dhcp_options:type_name -> yandex.cloud.baremetal.v1alpha.DhcpOptions
	4, // 2: yandex.cloud.baremetal.v1alpha.PublicSubnet.public_prefix_pool_id:type_name -> google.protobuf.StringValue
	5, // 3: yandex.cloud.baremetal.v1alpha.PublicSubnet.created_at:type_name -> google.protobuf.Timestamp
	2, // 4: yandex.cloud.baremetal.v1alpha.PublicSubnet.labels:type_name -> yandex.cloud.baremetal.v1alpha.PublicSubnet.LabelsEntry
	5, // 5: yandex.cloud.baremetal.v1alpha.PublicSubnet.deletion_unlocked_at:type_name -> google.protobuf.Timestamp
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_init() }
func file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_init() {
	if File_yandex_cloud_baremetal_v1alpha_public_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_public_subnet_proto_rawDesc), len(file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_msgTypes,
	}.Build()
	File_yandex_cloud_baremetal_v1alpha_public_subnet_proto = out.File
	file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_goTypes = nil
	file_yandex_cloud_baremetal_v1alpha_public_subnet_proto_depIdxs = nil
}
