// 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/quic_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"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	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)
)

// Configuration specific to the QUIC protocol.
// Next id: 4
type QuicProtocolOptions struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Maximum number of streams that the client can negotiate per connection. 100
	// if not specified.
	MaxConcurrentStreams *wrapperspb.UInt32Value `protobuf:"bytes,1,opt,name=max_concurrent_streams,json=maxConcurrentStreams,proto3" json:"max_concurrent_streams,omitempty"`
	// Maximum number of milliseconds that connection will be alive when there is
	// no network activity. 300000ms if not specified.
	IdleTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
	// Connection timeout in milliseconds before the crypto handshake is finished.
	// 20000ms if not specified.
	CryptoHandshakeTimeout *durationpb.Duration `protobuf:"bytes,3,opt,name=crypto_handshake_timeout,json=cryptoHandshakeTimeout,proto3" json:"crypto_handshake_timeout,omitempty"`
	unknownFields          protoimpl.UnknownFields
	sizeCache              protoimpl.SizeCache
}

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

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

func (*QuicProtocolOptions) ProtoMessage() {}

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

func (x *QuicProtocolOptions) GetMaxConcurrentStreams() *wrapperspb.UInt32Value {
	if x != nil {
		return x.MaxConcurrentStreams
	}
	return nil
}

func (x *QuicProtocolOptions) GetIdleTimeout() *durationpb.Duration {
	if x != nil {
		return x.IdleTimeout
	}
	return nil
}

func (x *QuicProtocolOptions) GetCryptoHandshakeTimeout() *durationpb.Duration {
	if x != nil {
		return x.CryptoHandshakeTimeout
	}
	return nil
}

var File_envoy_api_v2_listener_quic_config_proto protoreflect.FileDescriptor

const file_envoy_api_v2_listener_quic_config_proto_rawDesc = "" +
	"\n" +
	"'envoy/api/v2/listener/quic_config.proto\x12\x15envoy.api.v2.listener\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1eudpa/annotations/migrate.proto\x1a\x1dudpa/annotations/status.proto\"\xfc\x01\n" +
	"\x13QuicProtocolOptions\x12R\n" +
	"\x16max_concurrent_streams\x18\x01 \x01(\v2\x1c.google.protobuf.UInt32ValueR\x14maxConcurrentStreams\x12<\n" +
	"\fidle_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\vidleTimeout\x12S\n" +
	"\x18crypto_handshake_timeout\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x16cryptoHandshakeTimeoutB\xd5\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\x0fQuicConfigProtoP\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_quic_config_proto_rawDescOnce sync.Once
	file_envoy_api_v2_listener_quic_config_proto_rawDescData []byte
)

func file_envoy_api_v2_listener_quic_config_proto_rawDescGZIP() []byte {
	file_envoy_api_v2_listener_quic_config_proto_rawDescOnce.Do(func() {
		file_envoy_api_v2_listener_quic_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_api_v2_listener_quic_config_proto_rawDesc), len(file_envoy_api_v2_listener_quic_config_proto_rawDesc)))
	})
	return file_envoy_api_v2_listener_quic_config_proto_rawDescData
}

var file_envoy_api_v2_listener_quic_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_api_v2_listener_quic_config_proto_goTypes = []any{
	(*QuicProtocolOptions)(nil),    // 0: envoy.api.v2.listener.QuicProtocolOptions
	(*wrapperspb.UInt32Value)(nil), // 1: google.protobuf.UInt32Value
	(*durationpb.Duration)(nil),    // 2: google.protobuf.Duration
}
var file_envoy_api_v2_listener_quic_config_proto_depIdxs = []int32{
	1, // 0: envoy.api.v2.listener.QuicProtocolOptions.max_concurrent_streams:type_name -> google.protobuf.UInt32Value
	2, // 1: envoy.api.v2.listener.QuicProtocolOptions.idle_timeout:type_name -> google.protobuf.Duration
	2, // 2: envoy.api.v2.listener.QuicProtocolOptions.crypto_handshake_timeout:type_name -> google.protobuf.Duration
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_envoy_api_v2_listener_quic_config_proto_init() }
func file_envoy_api_v2_listener_quic_config_proto_init() {
	if File_envoy_api_v2_listener_quic_config_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_api_v2_listener_quic_config_proto_rawDesc), len(file_envoy_api_v2_listener_quic_config_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_api_v2_listener_quic_config_proto_goTypes,
		DependencyIndexes: file_envoy_api_v2_listener_quic_config_proto_depIdxs,
		MessageInfos:      file_envoy_api_v2_listener_quic_config_proto_msgTypes,
	}.Build()
	File_envoy_api_v2_listener_quic_config_proto = out.File
	file_envoy_api_v2_listener_quic_config_proto_goTypes = nil
	file_envoy_api_v2_listener_quic_config_proto_depIdxs = nil
}
