// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/api/v2/listener/udp_listener_config.proto

package listener

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	anypb "google.golang.org/protobuf/types/known/anypb"
	structpb "google.golang.org/protobuf/types/known/structpb"
	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 UdpListenerConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Used to look up UDP listener factory, matches "raw_udp_listener" or
	// "quic_listener" to create a specific udp listener.
	// If not specified, treat as "raw_udp_listener".
	UdpListenerName string `protobuf:"bytes,1,opt,name=udp_listener_name,json=udpListenerName,proto3" json:"udp_listener_name,omitempty"`
	// Used to create a specific listener factory. To some factory, e.g.
	// "raw_udp_listener", config is not needed.
	//
	// Types that are valid to be assigned to ConfigType:
	//
	//	*UdpListenerConfig_Config
	//	*UdpListenerConfig_TypedConfig
	ConfigType    isUdpListenerConfig_ConfigType `protobuf_oneof:"config_type"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UdpListenerConfig) ProtoMessage() {}

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

func (x *UdpListenerConfig) GetUdpListenerName() string {
	if x != nil {
		return x.UdpListenerName
	}
	return ""
}

func (x *UdpListenerConfig) GetConfigType() isUdpListenerConfig_ConfigType {
	if x != nil {
		return x.ConfigType
	}
	return nil
}

// Deprecated: Marked as deprecated in envoy/api/v2/listener/udp_listener_config.proto.
func (x *UdpListenerConfig) GetConfig() *structpb.Struct {
	if x != nil {
		if x, ok := x.ConfigType.(*UdpListenerConfig_Config); ok {
			return x.Config
		}
	}
	return nil
}

func (x *UdpListenerConfig) GetTypedConfig() *anypb.Any {
	if x != nil {
		if x, ok := x.ConfigType.(*UdpListenerConfig_TypedConfig); ok {
			return x.TypedConfig
		}
	}
	return nil
}

type isUdpListenerConfig_ConfigType interface {
	isUdpListenerConfig_ConfigType()
}

type UdpListenerConfig_Config struct {
	// Deprecated: Marked as deprecated in envoy/api/v2/listener/udp_listener_config.proto.
	Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3,oneof"`
}

type UdpListenerConfig_TypedConfig struct {
	TypedConfig *anypb.Any `protobuf:"bytes,3,opt,name=typed_config,json=typedConfig,proto3,oneof"`
}

func (*UdpListenerConfig_Config) isUdpListenerConfig_ConfigType() {}

func (*UdpListenerConfig_TypedConfig) isUdpListenerConfig_ConfigType() {}

type ActiveRawUdpListenerConfig struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ActiveRawUdpListenerConfig) Reset() {
	*x = ActiveRawUdpListenerConfig{}
	mi := &file_envoy_api_v2_listener_udp_listener_config_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ActiveRawUdpListenerConfig) ProtoMessage() {}

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

var File_envoy_api_v2_listener_udp_listener_config_proto protoreflect.FileDescriptor

const file_envoy_api_v2_listener_udp_listener_config_proto_rawDesc = "" +
	"\n" +
	"/envoy/api/v2/listener/udp_listener_config.proto\x12\x15envoy.api.v2.listener\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1eudpa/annotations/migrate.proto\x1a\x1dudpa/annotations/status.proto\"\xc0\x01\n" +
	"\x11UdpListenerConfig\x12*\n" +
	"\x11udp_listener_name\x18\x01 \x01(\tR\x0fudpListenerName\x125\n" +
	"\x06config\x18\x02 \x01(\v2\x17.google.protobuf.StructB\x02\x18\x01H\x00R\x06config\x129\n" +
	"\ftyped_config\x18\x03 \x01(\v2\x14.google.protobuf.AnyH\x00R\vtypedConfigB\r\n" +
	"\vconfig_type\"\x1c\n" +
	"\x1aActiveRawUdpListenerConfigB\xdc\x01\xf2\x98\xfe\x8f\x05\x1a\x12\x18envoy.config.listener.v3\xba\x80\xc8\xd1\x06\x02\x10\x01\n" +
	"#io.envoyproxy.envoy.api.v2.listenerB\x16UdpListenerConfigProtoP\x01Z<github.com/envoyproxy/go-control-plane/envoy/api/v2/listener\xaa\x02\x17Envoy.Api.V2.ListenerNS\xea\x02\x1aEnvoy::Api::V2::ListenerNSb\x06proto3"

var (
	file_envoy_api_v2_listener_udp_listener_config_proto_rawDescOnce sync.Once
	file_envoy_api_v2_listener_udp_listener_config_proto_rawDescData []byte
)

func file_envoy_api_v2_listener_udp_listener_config_proto_rawDescGZIP() []byte {
	file_envoy_api_v2_listener_udp_listener_config_proto_rawDescOnce.Do(func() {
		file_envoy_api_v2_listener_udp_listener_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_api_v2_listener_udp_listener_config_proto_rawDesc), len(file_envoy_api_v2_listener_udp_listener_config_proto_rawDesc)))
	})
	return file_envoy_api_v2_listener_udp_listener_config_proto_rawDescData
}

var file_envoy_api_v2_listener_udp_listener_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_envoy_api_v2_listener_udp_listener_config_proto_goTypes = []any{
	(*UdpListenerConfig)(nil),          // 0: envoy.api.v2.listener.UdpListenerConfig
	(*ActiveRawUdpListenerConfig)(nil), // 1: envoy.api.v2.listener.ActiveRawUdpListenerConfig
	(*structpb.Struct)(nil),            // 2: google.protobuf.Struct
	(*anypb.Any)(nil),                  // 3: google.protobuf.Any
}
var file_envoy_api_v2_listener_udp_listener_config_proto_depIdxs = []int32{
	2, // 0: envoy.api.v2.listener.UdpListenerConfig.config:type_name -> google.protobuf.Struct
	3, // 1: envoy.api.v2.listener.UdpListenerConfig.typed_config:type_name -> google.protobuf.Any
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_envoy_api_v2_listener_udp_listener_config_proto_init() }
func file_envoy_api_v2_listener_udp_listener_config_proto_init() {
	if File_envoy_api_v2_listener_udp_listener_config_proto != nil {
		return
	}
	file_envoy_api_v2_listener_udp_listener_config_proto_msgTypes[0].OneofWrappers = []any{
		(*UdpListenerConfig_Config)(nil),
		(*UdpListenerConfig_TypedConfig)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_api_v2_listener_udp_listener_config_proto_rawDesc), len(file_envoy_api_v2_listener_udp_listener_config_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_api_v2_listener_udp_listener_config_proto_goTypes,
		DependencyIndexes: file_envoy_api_v2_listener_udp_listener_config_proto_depIdxs,
		MessageInfos:      file_envoy_api_v2_listener_udp_listener_config_proto_msgTypes,
	}.Build()
	File_envoy_api_v2_listener_udp_listener_config_proto = out.File
	file_envoy_api_v2_listener_udp_listener_config_proto_goTypes = nil
	file_envoy_api_v2_listener_udp_listener_config_proto_depIdxs = nil
}
