// 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/private_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 PrivateConnection_Status int32

const (
	PrivateConnection_STATUS_UNSPECIFIED PrivateConnection_Status = 0
	PrivateConnection_CREATING           PrivateConnection_Status = 1
	PrivateConnection_UPDATING           PrivateConnection_Status = 2
	PrivateConnection_DELETING           PrivateConnection_Status = 3
	PrivateConnection_ACTIVE             PrivateConnection_Status = 4
)

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

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

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

func (PrivateConnection_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_cic_v1_private_connection_proto_enumTypes[0].Descriptor()
}

func (PrivateConnection_Status) Type() protoreflect.EnumType {
	return &file_yandex_cloud_cic_v1_private_connection_proto_enumTypes[0]
}

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

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

// A PrivateConnection resource.
type PrivateConnection struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the privateConnection.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Name of the privateConnection.
	// 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 privateConnection. 0-256 characters long.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// ID of the folder that the privateConnection belongs to.
	FolderId string `protobuf:"bytes,5,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// ID of the region that the privateConnection 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 privateConnection 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"`
	// IPv4 StaticRoute config of connection
	Ipv4StaticRoutes []*PrivateConnection_StaticRoute `protobuf:"bytes,18,rep,name=ipv4_static_routes,json=ipv4StaticRoutes,proto3" json:"ipv4_static_routes,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,24,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	// Status of the privateConnection.
	Status PrivateConnection_Status `protobuf:"varint,25,opt,name=status,proto3,enum=yandex.cloud.cic.v1.PrivateConnection_Status" json:"status,omitempty"`
	// Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,27,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PrivateConnection) ProtoMessage() {}

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

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

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

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

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

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

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

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

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

func (x *PrivateConnection) GetIpv4StaticRoutes() []*PrivateConnection_StaticRoute {
	if x != nil {
		return x.Ipv4StaticRoutes
	}
	return nil
}

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

func (x *PrivateConnection) GetStatus() PrivateConnection_Status {
	if x != nil {
		return x.Status
	}
	return PrivateConnection_STATUS_UNSPECIFIED
}

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

type PrivateConnection_StaticRoute struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Prefix.
	// It's an ip with format ipPrefix/length where address part of ipPrefix is 0.
	Prefix        string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*PrivateConnection_StaticRoute) ProtoMessage() {}

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

func (x *PrivateConnection_StaticRoute) GetPrefix() string {
	if x != nil {
		return x.Prefix
	}
	return ""
}

var File_yandex_cloud_cic_v1_private_connection_proto protoreflect.FileDescriptor

const file_yandex_cloud_cic_v1_private_connection_proto_rawDesc = "" +
	"\n" +
	",yandex/cloud/cic/v1/private_connection.proto\x12\x13yandex.cloud.cic.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!yandex/cloud/cic/v1/peering.proto\"\xbc\x06\n" +
	"\x11PrivateConnection\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\x12`\n" +
	"\x12ipv4_static_routes\x18\x12 \x03(\v22.yandex.cloud.cic.v1.PrivateConnection.StaticRouteR\x10ipv4StaticRoutes\x12J\n" +
	"\x06labels\x18\x18 \x03(\v22.yandex.cloud.cic.v1.PrivateConnection.LabelsEntryR\x06labels\x12E\n" +
	"\x06status\x18\x19 \x01(\x0e2-.yandex.cloud.cic.v1.PrivateConnection.StatusR\x06status\x129\n" +
	"\n" +
	"created_at\x18\x1b \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\x1a%\n" +
	"\vStaticRoute\x12\x16\n" +
	"\x06prefix\x18\x01 \x01(\tR\x06prefix\"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\x12J\x04\b\x13\x10\x18J\x04\b\x1a\x10\x1bBV\n" +
	"\x17yandex.cloud.api.cic.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/cic/v1;cicb\x06proto3"

var (
	file_yandex_cloud_cic_v1_private_connection_proto_rawDescOnce sync.Once
	file_yandex_cloud_cic_v1_private_connection_proto_rawDescData []byte
)

func file_yandex_cloud_cic_v1_private_connection_proto_rawDescGZIP() []byte {
	file_yandex_cloud_cic_v1_private_connection_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_cic_v1_private_connection_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_cic_v1_private_connection_proto_rawDesc), len(file_yandex_cloud_cic_v1_private_connection_proto_rawDesc)))
	})
	return file_yandex_cloud_cic_v1_private_connection_proto_rawDescData
}

var file_yandex_cloud_cic_v1_private_connection_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_cic_v1_private_connection_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_cic_v1_private_connection_proto_goTypes = []any{
	(PrivateConnection_Status)(0),         // 0: yandex.cloud.cic.v1.PrivateConnection.Status
	(*PrivateConnection)(nil),             // 1: yandex.cloud.cic.v1.PrivateConnection
	nil,                                   // 2: yandex.cloud.cic.v1.PrivateConnection.LabelsEntry
	(*PrivateConnection_StaticRoute)(nil), // 3: yandex.cloud.cic.v1.PrivateConnection.StaticRoute
	(*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_private_connection_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.cic.v1.PrivateConnection.vlan_id:type_name -> google.protobuf.Int64Value
	5, // 1: yandex.cloud.cic.v1.PrivateConnection.ipv4_peering:type_name -> yandex.cloud.cic.v1.Peering
	3, // 2: yandex.cloud.cic.v1.PrivateConnection.ipv4_static_routes:type_name -> yandex.cloud.cic.v1.PrivateConnection.StaticRoute
	2, // 3: yandex.cloud.cic.v1.PrivateConnection.labels:type_name -> yandex.cloud.cic.v1.PrivateConnection.LabelsEntry
	0, // 4: yandex.cloud.cic.v1.PrivateConnection.status:type_name -> yandex.cloud.cic.v1.PrivateConnection.Status
	6, // 5: yandex.cloud.cic.v1.PrivateConnection.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_private_connection_proto_init() }
func file_yandex_cloud_cic_v1_private_connection_proto_init() {
	if File_yandex_cloud_cic_v1_private_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_private_connection_proto_rawDesc), len(file_yandex_cloud_cic_v1_private_connection_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_cic_v1_private_connection_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_cic_v1_private_connection_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_cic_v1_private_connection_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_cic_v1_private_connection_proto_msgTypes,
	}.Build()
	File_yandex_cloud_cic_v1_private_connection_proto = out.File
	file_yandex_cloud_cic_v1_private_connection_proto_goTypes = nil
	file_yandex_cloud_cic_v1_private_connection_proto_depIdxs = nil
}
