// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/vpc/v1/privatelink/private_endpoint.proto

package privatelink

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

// Status of the private endpoint.
type PrivateEndpoint_Status int32

const (
	PrivateEndpoint_STATUS_UNSPECIFIED PrivateEndpoint_Status = 0
	// Private endpoint is still creating / updating.
	PrivateEndpoint_PENDING PrivateEndpoint_Status = 1
	// Private endpoint is available.
	PrivateEndpoint_AVAILABLE PrivateEndpoint_Status = 2
	// Private endpoint is deleting.
	PrivateEndpoint_DELETING PrivateEndpoint_Status = 3
)

// Enum value maps for PrivateEndpoint_Status.
var (
	PrivateEndpoint_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "PENDING",
		2: "AVAILABLE",
		3: "DELETING",
	}
	PrivateEndpoint_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"PENDING":            1,
		"AVAILABLE":          2,
		"DELETING":           3,
	}
)

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

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

func (PrivateEndpoint_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_enumTypes[0].Descriptor()
}

func (PrivateEndpoint_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_enumTypes[0]
}

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

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

type PrivateEndpoint struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the private endpoint. Generated at creation time.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the folder that the private endpoint 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 private endpoint.
	// The name is unique within the folder.
	// Value must match the regular expression
	// “\|[a-zA-Z]([-_a-zA-Z0-9]{0,61}[a-zA-Z0-9])?“.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Description of the private endpoint. 0-256 characters long.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// Private endpoint labels as `key:value` pairs.
	// No more than 64 per resource.
	// The maximum string length in characters for each value is 63.
	// Each value must match the regular expression `[-_0-9a-z]*`.
	// The string length in characters for each key must be 1-63.
	// Each key must match the regular expression `[a-z][-_0-9a-z]*`.
	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 network that the private endpoint belongs to.
	NetworkId string `protobuf:"bytes,7,opt,name=network_id,json=networkId,proto3" json:"network_id,omitempty"`
	// Status of the private endpoint.
	Status PrivateEndpoint_Status `protobuf:"varint,8,opt,name=status,proto3,enum=yandex.cloud.vpc.v1.privatelink.PrivateEndpoint_Status" json:"status,omitempty"`
	// Private endpoint ip address details.
	Address *PrivateEndpoint_EndpointAddress `protobuf:"bytes,9,opt,name=address,proto3" json:"address,omitempty"`
	// Private endpoint dns options.
	DnsOptions *PrivateEndpoint_DnsOptions `protobuf:"bytes,10,opt,name=dns_options,json=dnsOptions,proto3" json:"dns_options,omitempty"`
	// Service to connect with via private endpoint.
	//
	// Types that are valid to be assigned to Service:
	//
	//	*PrivateEndpoint_ObjectStorage_
	Service       isPrivateEndpoint_Service `protobuf_oneof:"service"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PrivateEndpoint) ProtoMessage() {}

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

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

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

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

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

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

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

func (x *PrivateEndpoint) GetNetworkId() string {
	if x != nil {
		return x.NetworkId
	}
	return ""
}

func (x *PrivateEndpoint) GetStatus() PrivateEndpoint_Status {
	if x != nil {
		return x.Status
	}
	return PrivateEndpoint_STATUS_UNSPECIFIED
}

func (x *PrivateEndpoint) GetAddress() *PrivateEndpoint_EndpointAddress {
	if x != nil {
		return x.Address
	}
	return nil
}

func (x *PrivateEndpoint) GetDnsOptions() *PrivateEndpoint_DnsOptions {
	if x != nil {
		return x.DnsOptions
	}
	return nil
}

func (x *PrivateEndpoint) GetService() isPrivateEndpoint_Service {
	if x != nil {
		return x.Service
	}
	return nil
}

func (x *PrivateEndpoint) GetObjectStorage() *PrivateEndpoint_ObjectStorage {
	if x != nil {
		if x, ok := x.Service.(*PrivateEndpoint_ObjectStorage_); ok {
			return x.ObjectStorage
		}
	}
	return nil
}

type isPrivateEndpoint_Service interface {
	isPrivateEndpoint_Service()
}

type PrivateEndpoint_ObjectStorage_ struct {
	// Yandex Cloud Object Storage.
	ObjectStorage *PrivateEndpoint_ObjectStorage `protobuf:"bytes,11,opt,name=object_storage,json=objectStorage,proto3,oneof"`
}

func (*PrivateEndpoint_ObjectStorage_) isPrivateEndpoint_Service() {}

// Yandex Cloud Object Storage.
type PrivateEndpoint_ObjectStorage struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PrivateEndpoint_ObjectStorage) ProtoMessage() {}

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

type PrivateEndpoint_DnsOptions struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// If enabled - vpc will create private dns records for specified service.
	PrivateDnsRecordsEnabled bool `protobuf:"varint,1,opt,name=private_dns_records_enabled,json=privateDnsRecordsEnabled,proto3" json:"private_dns_records_enabled,omitempty"`
	unknownFields            protoimpl.UnknownFields
	sizeCache                protoimpl.SizeCache
}

func (x *PrivateEndpoint_DnsOptions) Reset() {
	*x = PrivateEndpoint_DnsOptions{}
	mi := &file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PrivateEndpoint_DnsOptions) ProtoMessage() {}

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

func (x *PrivateEndpoint_DnsOptions) GetPrivateDnsRecordsEnabled() bool {
	if x != nil {
		return x.PrivateDnsRecordsEnabled
	}
	return false
}

// Private endpoint ip address details.
type PrivateEndpoint_EndpointAddress struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the subnet that the private endpoint address belongs to.
	SubnetId string `protobuf:"bytes,1,opt,name=subnet_id,json=subnetId,proto3" json:"subnet_id,omitempty"`
	// IP address of the private endpoint.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// ID of the private endpoint address.
	AddressId     string `protobuf:"bytes,3,opt,name=address_id,json=addressId,proto3" json:"address_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *PrivateEndpoint_EndpointAddress) Reset() {
	*x = PrivateEndpoint_EndpointAddress{}
	mi := &file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*PrivateEndpoint_EndpointAddress) ProtoMessage() {}

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

func (x *PrivateEndpoint_EndpointAddress) GetSubnetId() string {
	if x != nil {
		return x.SubnetId
	}
	return ""
}

func (x *PrivateEndpoint_EndpointAddress) GetAddress() string {
	if x != nil {
		return x.Address
	}
	return ""
}

func (x *PrivateEndpoint_EndpointAddress) GetAddressId() string {
	if x != nil {
		return x.AddressId
	}
	return ""
}

var File_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto protoreflect.FileDescriptor

const file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDesc = "" +
	"\n" +
	"6yandex/cloud/vpc/v1/privatelink/private_endpoint.proto\x12\x1fyandex.cloud.vpc.v1.privatelink\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\a\n" +
	"\x0fPrivateEndpoint\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\x12T\n" +
	"\x06labels\x18\x06 \x03(\v2<.yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.LabelsEntryR\x06labels\x12\x1d\n" +
	"\n" +
	"network_id\x18\a \x01(\tR\tnetworkId\x12O\n" +
	"\x06status\x18\b \x01(\x0e27.yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.StatusR\x06status\x12Z\n" +
	"\aaddress\x18\t \x01(\v2@.yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.EndpointAddressR\aaddress\x12\\\n" +
	"\vdns_options\x18\n" +
	" \x01(\v2;.yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.DnsOptionsR\n" +
	"dnsOptions\x12g\n" +
	"\x0eobject_storage\x18\v \x01(\v2>.yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.ObjectStorageH\x00R\robjectStorage\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a\x0f\n" +
	"\rObjectStorage\x1aK\n" +
	"\n" +
	"DnsOptions\x12=\n" +
	"\x1bprivate_dns_records_enabled\x18\x01 \x01(\bR\x18privateDnsRecordsEnabled\x1ag\n" +
	"\x0fEndpointAddress\x12\x1b\n" +
	"\tsubnet_id\x18\x01 \x01(\tR\bsubnetId\x12\x18\n" +
	"\aaddress\x18\x02 \x01(\tR\aaddress\x12\x1d\n" +
	"\n" +
	"address_id\x18\x03 \x01(\tR\taddressId\"J\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aPENDING\x10\x01\x12\r\n" +
	"\tAVAILABLE\x10\x02\x12\f\n" +
	"\bDELETING\x10\x03B\t\n" +
	"\aserviceBv\n" +
	"#yandex.cloud.api.vpc.v1.privatelinkZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/vpc/v1/privatelink;privatelinkb\x06proto3"

var (
	file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDescOnce sync.Once
	file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDescData []byte
)

func file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDescGZIP() []byte {
	file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDesc), len(file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDesc)))
	})
	return file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDescData
}

var file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_goTypes = []any{
	(PrivateEndpoint_Status)(0),             // 0: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.Status
	(*PrivateEndpoint)(nil),                 // 1: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint
	nil,                                     // 2: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.LabelsEntry
	(*PrivateEndpoint_ObjectStorage)(nil),   // 3: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.ObjectStorage
	(*PrivateEndpoint_DnsOptions)(nil),      // 4: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.DnsOptions
	(*PrivateEndpoint_EndpointAddress)(nil), // 5: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.EndpointAddress
	(*timestamppb.Timestamp)(nil),           // 6: google.protobuf.Timestamp
}
var file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_depIdxs = []int32{
	6, // 0: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.created_at:type_name -> google.protobuf.Timestamp
	2, // 1: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.labels:type_name -> yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.LabelsEntry
	0, // 2: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.status:type_name -> yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.Status
	5, // 3: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.address:type_name -> yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.EndpointAddress
	4, // 4: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.dns_options:type_name -> yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.DnsOptions
	3, // 5: yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.object_storage:type_name -> yandex.cloud.vpc.v1.privatelink.PrivateEndpoint.ObjectStorage
	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_vpc_v1_privatelink_private_endpoint_proto_init() }
func file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_init() {
	if File_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto != nil {
		return
	}
	file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_msgTypes[0].OneofWrappers = []any{
		(*PrivateEndpoint_ObjectStorage_)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDesc), len(file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_msgTypes,
	}.Build()
	File_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto = out.File
	file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_goTypes = nil
	file_yandex_cloud_vpc_v1_privatelink_private_endpoint_proto_depIdxs = nil
}
