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

package cic

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 PublicConnection_CloudServiceType int32

const (
	PublicConnection_CLOUD_SERVICE_TYPE_UNSPECIFIED PublicConnection_CloudServiceType = 0
	// Deprecated: Marked as deprecated in yandex/cloud/cic/v1/public_connection.proto.
	PublicConnection_CLOUD_SERVICE_YANDEX             PublicConnection_CloudServiceType = 1
	PublicConnection_CLOUD_SERVICE_ALL_PUBLIC         PublicConnection_CloudServiceType = 2
	PublicConnection_CLOUD_SERVICE_S3                 PublicConnection_CloudServiceType = 3
	PublicConnection_CLOUD_SERVICE_ML                 PublicConnection_CloudServiceType = 4
	PublicConnection_CLOUD_SERVICE_APIGW              PublicConnection_CloudServiceType = 5
	PublicConnection_CLOUD_SERVICE_CONTAINER_REGISTRY PublicConnection_CloudServiceType = 6
	PublicConnection_CLOUD_SERVICE_CONSOLE            PublicConnection_CloudServiceType = 7
	PublicConnection_CLOUD_SERVICE_MONITORING         PublicConnection_CloudServiceType = 8
	PublicConnection_CLOUD_SERVICE_YANDEX_GPT         PublicConnection_CloudServiceType = 9
	PublicConnection_CLOUD_SERVICES_ALL_API_ENDPOINT  PublicConnection_CloudServiceType = 10
	PublicConnection_CLOUD_SERVICE_YMQ                PublicConnection_CloudServiceType = 11
)

// Enum value maps for PublicConnection_CloudServiceType.
var (
	PublicConnection_CloudServiceType_name = map[int32]string{
		0:  "CLOUD_SERVICE_TYPE_UNSPECIFIED",
		1:  "CLOUD_SERVICE_YANDEX",
		2:  "CLOUD_SERVICE_ALL_PUBLIC",
		3:  "CLOUD_SERVICE_S3",
		4:  "CLOUD_SERVICE_ML",
		5:  "CLOUD_SERVICE_APIGW",
		6:  "CLOUD_SERVICE_CONTAINER_REGISTRY",
		7:  "CLOUD_SERVICE_CONSOLE",
		8:  "CLOUD_SERVICE_MONITORING",
		9:  "CLOUD_SERVICE_YANDEX_GPT",
		10: "CLOUD_SERVICES_ALL_API_ENDPOINT",
		11: "CLOUD_SERVICE_YMQ",
	}
	PublicConnection_CloudServiceType_value = map[string]int32{
		"CLOUD_SERVICE_TYPE_UNSPECIFIED":   0,
		"CLOUD_SERVICE_YANDEX":             1,
		"CLOUD_SERVICE_ALL_PUBLIC":         2,
		"CLOUD_SERVICE_S3":                 3,
		"CLOUD_SERVICE_ML":                 4,
		"CLOUD_SERVICE_APIGW":              5,
		"CLOUD_SERVICE_CONTAINER_REGISTRY": 6,
		"CLOUD_SERVICE_CONSOLE":            7,
		"CLOUD_SERVICE_MONITORING":         8,
		"CLOUD_SERVICE_YANDEX_GPT":         9,
		"CLOUD_SERVICES_ALL_API_ENDPOINT":  10,
		"CLOUD_SERVICE_YMQ":                11,
	}
)

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

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

func (PublicConnection_CloudServiceType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_cic_v1_public_connection_proto_enumTypes[0].Descriptor()
}

func (PublicConnection_CloudServiceType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_cic_v1_public_connection_proto_enumTypes[0]
}

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

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

type PublicConnection_Status int32

const (
	PublicConnection_STATUS_UNSPECIFIED PublicConnection_Status = 0
	PublicConnection_CREATING           PublicConnection_Status = 1
	PublicConnection_UPDATING           PublicConnection_Status = 2
	PublicConnection_DELETING           PublicConnection_Status = 3
	PublicConnection_ACTIVE             PublicConnection_Status = 4
)

// Enum value maps for PublicConnection_Status.
var (
	PublicConnection_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATING",
		2: "UPDATING",
		3: "DELETING",
		4: "ACTIVE",
	}
	PublicConnection_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATING":           1,
		"UPDATING":           2,
		"DELETING":           3,
		"ACTIVE":             4,
	}
)

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

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

func (PublicConnection_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_cic_v1_public_connection_proto_enumTypes[1].Descriptor()
}

func (PublicConnection_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_cic_v1_public_connection_proto_enumTypes[1]
}

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

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

// A PublicConnection resource.
type PublicConnection struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the publicConnection.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the publicConnection.
	// The name must be 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,2,opt,name=name,proto3" json:"name,omitempty"`
	// Optional description of the publicConnection. 0-256 characters long.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// ID of the folder that the publicConnection belongs to.
	FolderId string `protobuf:"bytes,5,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// ID of the region that the publicConnection belongs to.
	RegionId string `protobuf:"bytes,6,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// ID of the trunk_connection that the publicConnection belongs to.
	TrunkConnectionId string `protobuf:"bytes,7,opt,name=trunk_connection_id,json=trunkConnectionId,proto3" json:"trunk_connection_id,omitempty"`
	// VLAN_ID that the privateConnection uses in multiplexing.
	// Not used in connections over partners-II
	// Value range: [1, 4095]
	VlanId *wrapperspb.Int64Value `protobuf:"bytes,8,opt,name=vlan_id,json=vlanId,proto3" json:"vlan_id,omitempty"`
	// IPv4 peering config of connection
	Ipv4Peering *Peering `protobuf:"bytes,9,opt,name=ipv4_peering,json=ipv4Peering,proto3" json:"ipv4_peering,omitempty"`
	// Cloud services that the publicConnection connects to.
	Ipv4AllowedServiceTypes []PublicConnection_CloudServiceType `protobuf:"varint,11,rep,packed,name=ipv4_allowed_service_types,json=ipv4AllowedServiceTypes,proto3,enum=yandex.cloud.cic.v1.PublicConnection_CloudServiceType" json:"ipv4_allowed_service_types,omitempty"`
	// IPv4 Peer Announced Prefixes
	// It's an list of ip with format ipPrefix/length where address part of ipPrefix is 0
	Ipv4PeerAnnouncedPrefixes []string `protobuf:"bytes,13,rep,name=ipv4_peer_announced_prefixes,json=ipv4PeerAnnouncedPrefixes,proto3" json:"ipv4_peer_announced_prefixes,omitempty"`
	// Resource labels, `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,18,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Status of the publicConnection.
	Status PublicConnection_Status `protobuf:"varint,19,opt,name=status,proto3,enum=yandex.cloud.cic.v1.PublicConnection_Status" json:"status,omitempty"`
	// Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PublicConnection) ProtoMessage() {}

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

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

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

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

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

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

func (x *PublicConnection) GetTrunkConnectionId() string {
	if x != nil {
		return x.TrunkConnectionId
	}
	return ""
}

func (x *PublicConnection) GetVlanId() *wrapperspb.Int64Value {
	if x != nil {
		return x.VlanId
	}
	return nil
}

func (x *PublicConnection) GetIpv4Peering() *Peering {
	if x != nil {
		return x.Ipv4Peering
	}
	return nil
}

func (x *PublicConnection) GetIpv4AllowedServiceTypes() []PublicConnection_CloudServiceType {
	if x != nil {
		return x.Ipv4AllowedServiceTypes
	}
	return nil
}

func (x *PublicConnection) GetIpv4PeerAnnouncedPrefixes() []string {
	if x != nil {
		return x.Ipv4PeerAnnouncedPrefixes
	}
	return nil
}

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

func (x *PublicConnection) GetStatus() PublicConnection_Status {
	if x != nil {
		return x.Status
	}
	return PublicConnection_STATUS_UNSPECIFIED
}

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

var File_yandex_cloud_cic_v1_public_connection_proto protoreflect.FileDescriptor

const file_yandex_cloud_cic_v1_public_connection_proto_rawDesc = "" +
	"\n" +
	"+yandex/cloud/cic/v1/public_connection.proto\x12\x13yandex.cloud.cic.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!yandex/cloud/cic/v1/peering.proto\"\xdf\t\n" +
	"\x10PublicConnection\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
	"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
	"\vdescription\x18\x03 \x01(\tR\vdescription\x12\x1b\n" +
	"\tfolder_id\x18\x05 \x01(\tR\bfolderId\x12\x1b\n" +
	"\tregion_id\x18\x06 \x01(\tR\bregionId\x12.\n" +
	"\x13trunk_connection_id\x18\a \x01(\tR\x11trunkConnectionId\x124\n" +
	"\avlan_id\x18\b \x01(\v2\x1b.google.protobuf.Int64ValueR\x06vlanId\x12?\n" +
	"\fipv4_peering\x18\t \x01(\v2\x1c.yandex.cloud.cic.v1.PeeringR\vipv4Peering\x12s\n" +
	"\x1aipv4_allowed_service_types\x18\v \x03(\x0e26.yandex.cloud.cic.v1.PublicConnection.CloudServiceTypeR\x17ipv4AllowedServiceTypes\x12?\n" +
	"\x1cipv4_peer_announced_prefixes\x18\r \x03(\tR\x19ipv4PeerAnnouncedPrefixes\x12I\n" +
	"\x06labels\x18\x12 \x03(\v21.yandex.cloud.cic.v1.PublicConnection.LabelsEntryR\x06labels\x12D\n" +
	"\x06status\x18\x13 \x01(\x0e2,.yandex.cloud.cic.v1.PublicConnection.StatusR\x06status\x129\n" +
	"\n" +
	"created_at\x18\x15 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x1a9\n" +
	"\vLabelsEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
	"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xf0\x02\n" +
	"\x10CloudServiceType\x12\"\n" +
	"\x1eCLOUD_SERVICE_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n" +
	"\x14CLOUD_SERVICE_YANDEX\x10\x01\x1a\x02\b\x01\x12\x1c\n" +
	"\x18CLOUD_SERVICE_ALL_PUBLIC\x10\x02\x12\x14\n" +
	"\x10CLOUD_SERVICE_S3\x10\x03\x12\x14\n" +
	"\x10CLOUD_SERVICE_ML\x10\x04\x12\x17\n" +
	"\x13CLOUD_SERVICE_APIGW\x10\x05\x12$\n" +
	" CLOUD_SERVICE_CONTAINER_REGISTRY\x10\x06\x12\x19\n" +
	"\x15CLOUD_SERVICE_CONSOLE\x10\a\x12\x1c\n" +
	"\x18CLOUD_SERVICE_MONITORING\x10\b\x12\x1c\n" +
	"\x18CLOUD_SERVICE_YANDEX_GPT\x10\t\x12#\n" +
	"\x1fCLOUD_SERVICES_ALL_API_ENDPOINT\x10\n" +
	"\x12\x15\n" +
	"\x11CLOUD_SERVICE_YMQ\x10\v\"V\n" +
	"\x06Status\x12\x16\n" +
	"\x12STATUS_UNSPECIFIED\x10\x00\x12\f\n" +
	"\bCREATING\x10\x01\x12\f\n" +
	"\bUPDATING\x10\x02\x12\f\n" +
	"\bDELETING\x10\x03\x12\n" +
	"\n" +
	"\x06ACTIVE\x10\x04J\x04\b\x04\x10\x05J\x04\b\n" +
	"\x10\vJ\x04\b\f\x10\rJ\x04\b\x0e\x10\x12J\x04\b\x14\x10\x15BV\n" +
	"\x17yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cicb\x06proto3"

var (
	file_yandex_cloud_cic_v1_public_connection_proto_rawDescOnce sync.Once
	file_yandex_cloud_cic_v1_public_connection_proto_rawDescData []byte
)

func file_yandex_cloud_cic_v1_public_connection_proto_rawDescGZIP() []byte {
	file_yandex_cloud_cic_v1_public_connection_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_cic_v1_public_connection_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_cic_v1_public_connection_proto_rawDesc), len(file_yandex_cloud_cic_v1_public_connection_proto_rawDesc)))
	})
	return file_yandex_cloud_cic_v1_public_connection_proto_rawDescData
}

var file_yandex_cloud_cic_v1_public_connection_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_yandex_cloud_cic_v1_public_connection_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_cic_v1_public_connection_proto_goTypes = []any{
	(PublicConnection_CloudServiceType)(0), // 0: yandex.cloud.cic.v1.PublicConnection.CloudServiceType
	(PublicConnection_Status)(0),           // 1: yandex.cloud.cic.v1.PublicConnection.Status
	(*PublicConnection)(nil),               // 2: yandex.cloud.cic.v1.PublicConnection
	nil,                                    // 3: yandex.cloud.cic.v1.PublicConnection.LabelsEntry
	(*wrapperspb.Int64Value)(nil),          // 4: google.protobuf.Int64Value
	(*Peering)(nil),                        // 5: yandex.cloud.cic.v1.Peering
	(*timestamppb.Timestamp)(nil),          // 6: google.protobuf.Timestamp
}
var file_yandex_cloud_cic_v1_public_connection_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.cic.v1.PublicConnection.vlan_id:type_name -> google.protobuf.Int64Value
	5, // 1: yandex.cloud.cic.v1.PublicConnection.ipv4_peering:type_name -> yandex.cloud.cic.v1.Peering
	0, // 2: yandex.cloud.cic.v1.PublicConnection.ipv4_allowed_service_types:type_name -> yandex.cloud.cic.v1.PublicConnection.CloudServiceType
	3, // 3: yandex.cloud.cic.v1.PublicConnection.labels:type_name -> yandex.cloud.cic.v1.PublicConnection.LabelsEntry
	1, // 4: yandex.cloud.cic.v1.PublicConnection.status:type_name -> yandex.cloud.cic.v1.PublicConnection.Status
	6, // 5: yandex.cloud.cic.v1.PublicConnection.created_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_cic_v1_public_connection_proto_init() }
func file_yandex_cloud_cic_v1_public_connection_proto_init() {
	if File_yandex_cloud_cic_v1_public_connection_proto != nil {
		return
	}
	file_yandex_cloud_cic_v1_peering_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_cic_v1_public_connection_proto_rawDesc), len(file_yandex_cloud_cic_v1_public_connection_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_cic_v1_public_connection_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_cic_v1_public_connection_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_cic_v1_public_connection_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_cic_v1_public_connection_proto_msgTypes,
	}.Build()
	File_yandex_cloud_cic_v1_public_connection_proto = out.File
	file_yandex_cloud_cic_v1_public_connection_proto_goTypes = nil
	file_yandex_cloud_cic_v1_public_connection_proto_depIdxs = nil
}
