// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/extensions/filters/network/tcp_bandwidth_limit/v3/tcp_bandwidth_limit.proto

package tcp_bandwidth_limitv3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	v3 "github.com/envoyproxy/go-control-plane/envoy/config/core/v3"
	_ "github.com/envoyproxy/protoc-gen-validate/validate"
	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)
)

// [#next-free-field: 6]
type TcpBandwidthLimit struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The human readable prefix to use when emitting stats.
	StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// The limit for read (onData) bandwidth in KiB/s.
	// If not set, no limit is applied (unlimited bandwidth).
	// If set to 0, all reads are blocked.
	ReadLimitKbps *wrapperspb.UInt64Value `protobuf:"bytes,2,opt,name=read_limit_kbps,json=readLimitKbps,proto3" json:"read_limit_kbps,omitempty"`
	// The limit for write (onWrite) bandwidth in KiB/s.
	// If not set, no limit is applied (unlimited bandwidth).
	// If set to 0, all writes are is blocked.
	WriteLimitKbps *wrapperspb.UInt64Value `protobuf:"bytes,3,opt,name=write_limit_kbps,json=writeLimitKbps,proto3" json:"write_limit_kbps,omitempty"`
	// The interval at which to process buffered data and check for available bandwidth.
	// Defaults to 50ms. It must be at least 20ms to avoid too frequent processing.
	FillInterval *durationpb.Duration `protobuf:"bytes,4,opt,name=fill_interval,json=fillInterval,proto3" json:"fill_interval,omitempty"`
	// Runtime flag that controls whether the filter is enabled or not. If not specified, defaults
	// to enabled.
	RuntimeEnabled *v3.RuntimeFeatureFlag `protobuf:"bytes,5,opt,name=runtime_enabled,json=runtimeEnabled,proto3" json:"runtime_enabled,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*TcpBandwidthLimit) ProtoMessage() {}

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

func (x *TcpBandwidthLimit) GetStatPrefix() string {
	if x != nil {
		return x.StatPrefix
	}
	return ""
}

func (x *TcpBandwidthLimit) GetReadLimitKbps() *wrapperspb.UInt64Value {
	if x != nil {
		return x.ReadLimitKbps
	}
	return nil
}

func (x *TcpBandwidthLimit) GetWriteLimitKbps() *wrapperspb.UInt64Value {
	if x != nil {
		return x.WriteLimitKbps
	}
	return nil
}

func (x *TcpBandwidthLimit) GetFillInterval() *durationpb.Duration {
	if x != nil {
		return x.FillInterval
	}
	return nil
}

func (x *TcpBandwidthLimit) GetRuntimeEnabled() *v3.RuntimeFeatureFlag {
	if x != nil {
		return x.RuntimeEnabled
	}
	return nil
}

var File_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto protoreflect.FileDescriptor

const file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDesc = "" +
	"\n" +
	"Qenvoy/extensions/filters/network/tcp_bandwidth_limit/v3/tcp_bandwidth_limit.proto\x127envoy.extensions.filters.network.tcp_bandwidth_limit.v3\x1a\x1fenvoy/config/core/v3/base.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xf1\x02\n" +
	"\x11TcpBandwidthLimit\x12(\n" +
	"\vstat_prefix\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\n" +
	"statPrefix\x12D\n" +
	"\x0fread_limit_kbps\x18\x02 \x01(\v2\x1c.google.protobuf.UInt64ValueR\rreadLimitKbps\x12F\n" +
	"\x10write_limit_kbps\x18\x03 \x01(\v2\x1c.google.protobuf.UInt64ValueR\x0ewriteLimitKbps\x12Q\n" +
	"\rfill_interval\x18\x04 \x01(\v2\x19.google.protobuf.DurationB\x11\xfaB\x0e\xaa\x01\v\"\x02\b\x012\x05\x10\x80\xda\xc4\tR\ffillInterval\x12Q\n" +
	"\x0fruntime_enabled\x18\x05 \x01(\v2(.envoy.config.core.v3.RuntimeFeatureFlagR\x0eruntimeEnabledB\xdf\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"Eio.envoyproxy.envoy.extensions.filters.network.tcp_bandwidth_limit.v3B\x16TcpBandwidthLimitProtoP\x01Ztgithub.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/tcp_bandwidth_limit/v3;tcp_bandwidth_limitv3b\x06proto3"

var (
	file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDescOnce sync.Once
	file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDescData []byte
)

func file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDescGZIP() []byte {
	file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDesc), len(file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDesc)))
	})
	return file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDescData
}

var file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_goTypes = []any{
	(*TcpBandwidthLimit)(nil),      // 0: envoy.extensions.filters.network.tcp_bandwidth_limit.v3.TcpBandwidthLimit
	(*wrapperspb.UInt64Value)(nil), // 1: google.protobuf.UInt64Value
	(*durationpb.Duration)(nil),    // 2: google.protobuf.Duration
	(*v3.RuntimeFeatureFlag)(nil),  // 3: envoy.config.core.v3.RuntimeFeatureFlag
}
var file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_depIdxs = []int32{
	1, // 0: envoy.extensions.filters.network.tcp_bandwidth_limit.v3.TcpBandwidthLimit.read_limit_kbps:type_name -> google.protobuf.UInt64Value
	1, // 1: envoy.extensions.filters.network.tcp_bandwidth_limit.v3.TcpBandwidthLimit.write_limit_kbps:type_name -> google.protobuf.UInt64Value
	2, // 2: envoy.extensions.filters.network.tcp_bandwidth_limit.v3.TcpBandwidthLimit.fill_interval:type_name -> google.protobuf.Duration
	3, // 3: envoy.extensions.filters.network.tcp_bandwidth_limit.v3.TcpBandwidthLimit.runtime_enabled:type_name -> envoy.config.core.v3.RuntimeFeatureFlag
	4, // [4:4] is the sub-list for method output_type
	4, // [4:4] is the sub-list for method input_type
	4, // [4:4] is the sub-list for extension type_name
	4, // [4:4] is the sub-list for extension extendee
	0, // [0:4] is the sub-list for field type_name
}

func init() {
	file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_init()
}
func file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_init() {
	if File_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDesc), len(file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_msgTypes,
	}.Build()
	File_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto = out.File
	file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_goTypes = nil
	file_envoy_extensions_filters_network_tcp_bandwidth_limit_v3_tcp_bandwidth_limit_proto_depIdxs = nil
}
