// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v6.33.2
// source: envoy/config/core/v3/cel.proto

package corev3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	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)
)

// CEL expression evaluation configuration.
// These options control the behavior of the Common Expression Language runtime for
// individual CEL expressions.
type CelExpressionConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Enable string conversion functions for CEL expressions. When enabled, CEL expressions
	// can convert values to strings using the “string()“ function.
	//
	// .. attention::
	//
	//	This option is disabled by default to avoid unbounded memory allocation.
	//	CEL evaluation cost is typically bounded by the expression size, but converting
	//	arbitrary values (e.g., large messages, lists, or maps) to strings may allocate
	//	memory proportional to input data size, which can be unbounded and lead to
	//	memory exhaustion.
	EnableStringConversion bool `protobuf:"varint,1,opt,name=enable_string_conversion,json=enableStringConversion,proto3" json:"enable_string_conversion,omitempty"`
	// Enable string concatenation for CEL expressions. When enabled, CEL expressions
	// can concatenate strings using the “+“ operator.
	//
	// .. attention::
	//
	//	This option is disabled by default to avoid unbounded memory allocation.
	//	While CEL normally bounds evaluation by expression size, enabling string
	//	concatenation allows building outputs whose size depends on input data,
	//	potentially causing large intermediate allocations and memory exhaustion.
	EnableStringConcat bool `protobuf:"varint,2,opt,name=enable_string_concat,json=enableStringConcat,proto3" json:"enable_string_concat,omitempty"`
	// Enable string manipulation functions for CEL expressions. When enabled, CEL
	// expressions can use additional string functions:
	//
	// * “replace(old, new)“ - Replaces all occurrences of “old“ with “new“.
	// * “split(separator)“ - Splits a string into a list of substrings.
	// * “lowerAscii()“ - Converts ASCII characters to lowercase.
	// * “upperAscii()“ - Converts ASCII characters to uppercase.
	//
	// .. note::
	//
	//	Standard CEL string functions like ``contains()``, ``startsWith()``, and
	//	``endsWith()`` are always available regardless of this setting.
	//
	// .. attention::
	//
	//	This option is disabled by default to avoid unbounded memory allocation.
	//	Although CEL generally bounds evaluation by expression size, functions such as
	//	``replace``, ``split``, ``lowerAscii()``, and ``upperAscii()`` can allocate memory
	//	proportional to input data size. Under adversarial inputs this can lead to
	//	unbounded allocations and memory exhaustion.
	EnableStringFunctions bool `protobuf:"varint,3,opt,name=enable_string_functions,json=enableStringFunctions,proto3" json:"enable_string_functions,omitempty"`
	unknownFields         protoimpl.UnknownFields
	sizeCache             protoimpl.SizeCache
}

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

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

func (*CelExpressionConfig) ProtoMessage() {}

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

func (x *CelExpressionConfig) GetEnableStringConversion() bool {
	if x != nil {
		return x.EnableStringConversion
	}
	return false
}

func (x *CelExpressionConfig) GetEnableStringConcat() bool {
	if x != nil {
		return x.EnableStringConcat
	}
	return false
}

func (x *CelExpressionConfig) GetEnableStringFunctions() bool {
	if x != nil {
		return x.EnableStringFunctions
	}
	return false
}

var File_envoy_config_core_v3_cel_proto protoreflect.FileDescriptor

const file_envoy_config_core_v3_cel_proto_rawDesc = "" +
	"\n" +
	"\x1eenvoy/config/core/v3/cel.proto\x12\x14envoy.config.core.v3\x1a\x1dudpa/annotations/status.proto\"\xb9\x01\n" +
	"\x13CelExpressionConfig\x128\n" +
	"\x18enable_string_conversion\x18\x01 \x01(\bR\x16enableStringConversion\x120\n" +
	"\x14enable_string_concat\x18\x02 \x01(\bR\x12enableStringConcat\x126\n" +
	"\x17enable_string_functions\x18\x03 \x01(\bR\x15enableStringFunctionsB|\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"\"io.envoyproxy.envoy.config.core.v3B\bCelProtoP\x01ZBgithub.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3b\x06proto3"

var (
	file_envoy_config_core_v3_cel_proto_rawDescOnce sync.Once
	file_envoy_config_core_v3_cel_proto_rawDescData []byte
)

func file_envoy_config_core_v3_cel_proto_rawDescGZIP() []byte {
	file_envoy_config_core_v3_cel_proto_rawDescOnce.Do(func() {
		file_envoy_config_core_v3_cel_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_config_core_v3_cel_proto_rawDesc), len(file_envoy_config_core_v3_cel_proto_rawDesc)))
	})
	return file_envoy_config_core_v3_cel_proto_rawDescData
}

var file_envoy_config_core_v3_cel_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_config_core_v3_cel_proto_goTypes = []any{
	(*CelExpressionConfig)(nil), // 0: envoy.config.core.v3.CelExpressionConfig
}
var file_envoy_config_core_v3_cel_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_envoy_config_core_v3_cel_proto_init() }
func file_envoy_config_core_v3_cel_proto_init() {
	if File_envoy_config_core_v3_cel_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_config_core_v3_cel_proto_rawDesc), len(file_envoy_config_core_v3_cel_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_config_core_v3_cel_proto_goTypes,
		DependencyIndexes: file_envoy_config_core_v3_cel_proto_depIdxs,
		MessageInfos:      file_envoy_config_core_v3_cel_proto_msgTypes,
	}.Build()
	File_envoy_config_core_v3_cel_proto = out.File
	file_envoy_config_core_v3_cel_proto_goTypes = nil
	file_envoy_config_core_v3_cel_proto_depIdxs = nil
}
