// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.33.2
// source: envoy/extensions/filters/network/ratelimit/v3/rate_limit.proto

package ratelimitv3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	v31 "github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3"
	v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/common/ratelimit/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"
	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: 7]
type RateLimit struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The prefix to use when emitting :ref:`statistics <config_network_filters_rate_limit_stats>`.
	StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// The rate limit domain to use in the rate limit service request.
	Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
	// The rate limit descriptor list to use in the rate limit service request.
	Descriptors []*v3.RateLimitDescriptor `protobuf:"bytes,3,rep,name=descriptors,proto3" json:"descriptors,omitempty"`
	// The timeout in milliseconds for the rate limit service RPC. If not
	// set, this defaults to 20ms.
	Timeout *durationpb.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// The filter's behaviour in case the rate limiting service does
	// not respond back. When it is set to true, Envoy will not allow traffic in case of
	// communication failure between rate limiting service and the proxy.
	// Defaults to false.
	FailureModeDeny bool `protobuf:"varint,5,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"`
	// Configuration for an external rate limit service provider. If not
	// specified, any calls to the rate limit service will immediately return
	// success.
	RateLimitService *v31.RateLimitServiceConfig `protobuf:"bytes,6,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*RateLimit) ProtoMessage() {}

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

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

func (x *RateLimit) GetDomain() string {
	if x != nil {
		return x.Domain
	}
	return ""
}

func (x *RateLimit) GetDescriptors() []*v3.RateLimitDescriptor {
	if x != nil {
		return x.Descriptors
	}
	return nil
}

func (x *RateLimit) GetTimeout() *durationpb.Duration {
	if x != nil {
		return x.Timeout
	}
	return nil
}

func (x *RateLimit) GetFailureModeDeny() bool {
	if x != nil {
		return x.FailureModeDeny
	}
	return false
}

func (x *RateLimit) GetRateLimitService() *v31.RateLimitServiceConfig {
	if x != nil {
		return x.RateLimitService
	}
	return nil
}

var File_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto protoreflect.FileDescriptor

const file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDesc = "" +
	"\n" +
	">envoy/extensions/filters/network/ratelimit/v3/rate_limit.proto\x12-envoy.extensions.filters.network.ratelimit.v3\x1a#envoy/config/ratelimit/v3/rls.proto\x1a4envoy/extensions/common/ratelimit/v3/ratelimit.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1dudpa/annotations/status.proto\x1a!udpa/annotations/versioning.proto\x1a\x17validate/validate.proto\"\xc5\x03\n" +
	"\tRateLimit\x12(\n" +
	"\vstat_prefix\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\n" +
	"statPrefix\x12\x1f\n" +
	"\x06domain\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x06domain\x12e\n" +
	"\vdescriptors\x18\x03 \x03(\v29.envoy.extensions.common.ratelimit.v3.RateLimitDescriptorB\b\xfaB\x05\x92\x01\x02\b\x01R\vdescriptors\x123\n" +
	"\atimeout\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\atimeout\x12*\n" +
	"\x11failure_mode_deny\x18\x05 \x01(\bR\x0ffailureModeDeny\x12i\n" +
	"\x12rate_limit_service\x18\x06 \x01(\v21.envoy.config.ratelimit.v3.RateLimitServiceConfigB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x10rateLimitService::\x9aň\x1e5\n" +
	"3envoy.config.filter.network.rate_limit.v2.RateLimitB\xb9\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	";io.envoyproxy.envoy.extensions.filters.network.ratelimit.v3B\x0eRateLimitProtoP\x01Z`github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/ratelimit/v3;ratelimitv3b\x06proto3"

var (
	file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDescOnce sync.Once
	file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDescData []byte
)

func file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDescGZIP() []byte {
	file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDesc), len(file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDesc)))
	})
	return file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDescData
}

var file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_goTypes = []any{
	(*RateLimit)(nil),                  // 0: envoy.extensions.filters.network.ratelimit.v3.RateLimit
	(*v3.RateLimitDescriptor)(nil),     // 1: envoy.extensions.common.ratelimit.v3.RateLimitDescriptor
	(*durationpb.Duration)(nil),        // 2: google.protobuf.Duration
	(*v31.RateLimitServiceConfig)(nil), // 3: envoy.config.ratelimit.v3.RateLimitServiceConfig
}
var file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_depIdxs = []int32{
	1, // 0: envoy.extensions.filters.network.ratelimit.v3.RateLimit.descriptors:type_name -> envoy.extensions.common.ratelimit.v3.RateLimitDescriptor
	2, // 1: envoy.extensions.filters.network.ratelimit.v3.RateLimit.timeout:type_name -> google.protobuf.Duration
	3, // 2: envoy.extensions.filters.network.ratelimit.v3.RateLimit.rate_limit_service:type_name -> envoy.config.ratelimit.v3.RateLimitServiceConfig
	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_extensions_filters_network_ratelimit_v3_rate_limit_proto_init() }
func file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_init() {
	if File_envoy_extensions_filters_network_ratelimit_v3_rate_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_ratelimit_v3_rate_limit_proto_rawDesc), len(file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_msgTypes,
	}.Build()
	File_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto = out.File
	file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_goTypes = nil
	file_envoy_extensions_filters_network_ratelimit_v3_rate_limit_proto_depIdxs = nil
}
