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

package sse_to_metadatav3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	_ "github.com/cncf/xds/go/xds/annotations/v3"
	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"
	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)
)

type SseToMetadata struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Rules for processing SSE response streams.
	ResponseRules *SseToMetadata_ProcessingRules `protobuf:"bytes,1,opt,name=response_rules,json=responseRules,proto3" json:"response_rules,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SseToMetadata) ProtoMessage() {}

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

func (x *SseToMetadata) GetResponseRules() *SseToMetadata_ProcessingRules {
	if x != nil {
		return x.ResponseRules
	}
	return nil
}

// Rules for processing SSE streams and extracting metadata.
//
// The filter parses the SSE protocol (events delimited by blank lines), then delegates
// to a content parser to parse event content and extract metadata. The content parser
// determines which values to extract and how to write them to metadata.
type SseToMetadata_ProcessingRules struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Content parser configuration for parsing event content and extracting metadata.
	//
	// The content parser specifies:
	// - How to parse the event data (e.g., JSON, XML, plaintext)
	// - Which values to extract from the parsed content (e.g., JSON paths like usage.total_tokens)
	// - How to map extracted values to metadata (namespace, key, type conversions)
	// - When to write metadata (on_present, on_missing, on_error actions)
	// [#extension-category: envoy.content_parsers]
	ContentParser *v3.TypedExtensionConfig `protobuf:"bytes,1,opt,name=content_parser,json=contentParser,proto3" json:"content_parser,omitempty"`
	// Maximum size in bytes for a single SSE event before it's considered invalid
	// and discarded. This protects against unbounded memory growth from malicious
	// or malformed streams that never send event delimiters (blank lines).
	//
	// Default is 8192 bytes (8KB), which is sufficient for most legitimate events.
	// Set to 0 to disable the limit (not recommended for production).
	// Maximum allowed value is 10485760 bytes (10MB).
	MaxEventSize  *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=max_event_size,json=maxEventSize,proto3" json:"max_event_size,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*SseToMetadata_ProcessingRules) ProtoMessage() {}

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

func (x *SseToMetadata_ProcessingRules) GetContentParser() *v3.TypedExtensionConfig {
	if x != nil {
		return x.ContentParser
	}
	return nil
}

func (x *SseToMetadata_ProcessingRules) GetMaxEventSize() *wrapperspb.UInt32Value {
	if x != nil {
		return x.MaxEventSize
	}
	return nil
}

var File_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto protoreflect.FileDescriptor

const file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDesc = "" +
	"\n" +
	"Fenvoy/extensions/filters/http/sse_to_metadata/v3/sse_to_metadata.proto\x120envoy.extensions.filters.http.sse_to_metadata.v3\x1a$envoy/config/core/v3/extension.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1fxds/annotations/v3/status.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xd3\x02\n" +
	"\rSseToMetadata\x12\x80\x01\n" +
	"\x0eresponse_rules\x18\x01 \x01(\v2O.envoy.extensions.filters.http.sse_to_metadata.v3.SseToMetadata.ProcessingRulesB\b\xfaB\x05\x8a\x01\x02\x10\x01R\rresponseRules\x1a\xbe\x01\n" +
	"\x0fProcessingRules\x12[\n" +
	"\x0econtent_parser\x18\x01 \x01(\v2*.envoy.config.core.v3.TypedExtensionConfigB\b\xfaB\x05\x8a\x01\x02\x10\x01R\rcontentParser\x12N\n" +
	"\x0emax_event_size\x18\x02 \x01(\v2\x1c.google.protobuf.UInt32ValueB\n" +
	"\xfaB\a*\x05\x18\x80\x80\x80\x05R\fmaxEventSizeB\xd1\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\xd2Ƥ\xe1\x06\x02\b\x01\n" +
	">io.envoyproxy.envoy.extensions.filters.http.sse_to_metadata.v3B\x12SseToMetadataProtoP\x01Zigithub.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/sse_to_metadata/v3;sse_to_metadatav3b\x06proto3"

var (
	file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDescOnce sync.Once
	file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDescData []byte
)

func file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDescGZIP() []byte {
	file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDesc), len(file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDesc)))
	})
	return file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDescData
}

var file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_goTypes = []any{
	(*SseToMetadata)(nil),                 // 0: envoy.extensions.filters.http.sse_to_metadata.v3.SseToMetadata
	(*SseToMetadata_ProcessingRules)(nil), // 1: envoy.extensions.filters.http.sse_to_metadata.v3.SseToMetadata.ProcessingRules
	(*v3.TypedExtensionConfig)(nil),       // 2: envoy.config.core.v3.TypedExtensionConfig
	(*wrapperspb.UInt32Value)(nil),        // 3: google.protobuf.UInt32Value
}
var file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_depIdxs = []int32{
	1, // 0: envoy.extensions.filters.http.sse_to_metadata.v3.SseToMetadata.response_rules:type_name -> envoy.extensions.filters.http.sse_to_metadata.v3.SseToMetadata.ProcessingRules
	2, // 1: envoy.extensions.filters.http.sse_to_metadata.v3.SseToMetadata.ProcessingRules.content_parser:type_name -> envoy.config.core.v3.TypedExtensionConfig
	3, // 2: envoy.extensions.filters.http.sse_to_metadata.v3.SseToMetadata.ProcessingRules.max_event_size:type_name -> google.protobuf.UInt32Value
	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_http_sse_to_metadata_v3_sse_to_metadata_proto_init() }
func file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_init() {
	if File_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_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_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDesc), len(file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_msgTypes,
	}.Build()
	File_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto = out.File
	file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_goTypes = nil
	file_envoy_extensions_filters_http_sse_to_metadata_v3_sse_to_metadata_proto_depIdxs = nil
}
