// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/service/tap/v2alpha/common.proto

package v2alpha

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	core "github.com/envoyproxy/go-control-plane/envoy/api/v2/core"
	route "github.com/envoyproxy/go-control-plane/envoy/api/v2/route"
	_ "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)
)

// Output format. All output is in the form of one or more :ref:`TraceWrapper
// <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. This enumeration indicates
// how those messages are written. Note that not all sinks support all output formats. See
// individual sink documentation for more information.
type OutputSink_Format int32

const (
	// Each message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v2alpha.Body>`
	// data will be present in the :ref:`as_bytes
	// <envoy_api_field_data.tap.v2alpha.Body.as_bytes>` field. This means that body data will be
	// base64 encoded as per the `proto3 JSON mappings
	// <https://developers.google.com/protocol-buffers/docs/proto3#json>`_.
	OutputSink_JSON_BODY_AS_BYTES OutputSink_Format = 0
	// Each message will be written as JSON. Any :ref:`body <envoy_api_msg_data.tap.v2alpha.Body>`
	// data will be present in the :ref:`as_string
	// <envoy_api_field_data.tap.v2alpha.Body.as_string>` field. This means that body data will be
	// string encoded as per the `proto3 JSON mappings
	// <https://developers.google.com/protocol-buffers/docs/proto3#json>`_. This format type is
	// useful when it is known that that body is human readable (e.g., JSON over HTTP) and the
	// user wishes to view it directly without being forced to base64 decode the body.
	OutputSink_JSON_BODY_AS_STRING OutputSink_Format = 1
	// Binary proto format. Note that binary proto is not self-delimiting. If a sink writes
	// multiple binary messages without any length information the data stream will not be
	// useful. However, for certain sinks that are self-delimiting (e.g., one message per file)
	// this output format makes consumption simpler.
	OutputSink_PROTO_BINARY OutputSink_Format = 2
	// Messages are written as a sequence tuples, where each tuple is the message length encoded
	// as a `protobuf 32-bit varint
	// <https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream>`_
	// followed by the binary message. The messages can be read back using the language specific
	// protobuf coded stream implementation to obtain the message length and the message.
	OutputSink_PROTO_BINARY_LENGTH_DELIMITED OutputSink_Format = 3
	// Text proto format.
	OutputSink_PROTO_TEXT OutputSink_Format = 4
)

// Enum value maps for OutputSink_Format.
var (
	OutputSink_Format_name = map[int32]string{
		0: "JSON_BODY_AS_BYTES",
		1: "JSON_BODY_AS_STRING",
		2: "PROTO_BINARY",
		3: "PROTO_BINARY_LENGTH_DELIMITED",
		4: "PROTO_TEXT",
	}
	OutputSink_Format_value = map[string]int32{
		"JSON_BODY_AS_BYTES":            0,
		"JSON_BODY_AS_STRING":           1,
		"PROTO_BINARY":                  2,
		"PROTO_BINARY_LENGTH_DELIMITED": 3,
		"PROTO_TEXT":                    4,
	}
)

func (x OutputSink_Format) Enum() *OutputSink_Format {
	p := new(OutputSink_Format)
	*p = x
	return p
}

func (x OutputSink_Format) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (OutputSink_Format) Descriptor() protoreflect.EnumDescriptor {
	return file_envoy_service_tap_v2alpha_common_proto_enumTypes[0].Descriptor()
}

func (OutputSink_Format) Type() protoreflect.EnumType {
	return &file_envoy_service_tap_v2alpha_common_proto_enumTypes[0]
}

func (x OutputSink_Format) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use OutputSink_Format.Descriptor instead.
func (OutputSink_Format) EnumDescriptor() ([]byte, []int) {
	return file_envoy_service_tap_v2alpha_common_proto_rawDescGZIP(), []int{4, 0}
}

// Tap configuration.
type TapConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The match configuration. If the configuration matches the data source being tapped, a tap will
	// occur, with the result written to the configured output.
	MatchConfig *MatchPredicate `protobuf:"bytes,1,opt,name=match_config,json=matchConfig,proto3" json:"match_config,omitempty"`
	// The tap output configuration. If a match configuration matches a data source being tapped,
	// a tap will occur and the data will be written to the configured output.
	OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// [#not-implemented-hide:] Specify if Tap matching is enabled. The % of requests\connections for
	// which the tap matching is enabled. When not enabled, the request\connection will not be
	// recorded.
	//
	// .. note::
	//
	//	This field defaults to 100/:ref:`HUNDRED
	//	<envoy_api_enum_type.FractionalPercent.DenominatorType>`.
	TapEnabled    *core.RuntimeFractionalPercent `protobuf:"bytes,3,opt,name=tap_enabled,json=tapEnabled,proto3" json:"tap_enabled,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*TapConfig) ProtoMessage() {}

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

func (x *TapConfig) GetMatchConfig() *MatchPredicate {
	if x != nil {
		return x.MatchConfig
	}
	return nil
}

func (x *TapConfig) GetOutputConfig() *OutputConfig {
	if x != nil {
		return x.OutputConfig
	}
	return nil
}

func (x *TapConfig) GetTapEnabled() *core.RuntimeFractionalPercent {
	if x != nil {
		return x.TapEnabled
	}
	return nil
}

// Tap match configuration. This is a recursive structure which allows complex nested match
// configurations to be built using various logical operators.
// [#next-free-field: 9]
type MatchPredicate struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Rule:
	//
	//	*MatchPredicate_OrMatch
	//	*MatchPredicate_AndMatch
	//	*MatchPredicate_NotMatch
	//	*MatchPredicate_AnyMatch
	//	*MatchPredicate_HttpRequestHeadersMatch
	//	*MatchPredicate_HttpRequestTrailersMatch
	//	*MatchPredicate_HttpResponseHeadersMatch
	//	*MatchPredicate_HttpResponseTrailersMatch
	Rule          isMatchPredicate_Rule `protobuf_oneof:"rule"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MatchPredicate) ProtoMessage() {}

func (x *MatchPredicate) ProtoReflect() protoreflect.Message {
	mi := &file_envoy_service_tap_v2alpha_common_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 MatchPredicate.ProtoReflect.Descriptor instead.
func (*MatchPredicate) Descriptor() ([]byte, []int) {
	return file_envoy_service_tap_v2alpha_common_proto_rawDescGZIP(), []int{1}
}

func (x *MatchPredicate) GetRule() isMatchPredicate_Rule {
	if x != nil {
		return x.Rule
	}
	return nil
}

func (x *MatchPredicate) GetOrMatch() *MatchPredicate_MatchSet {
	if x != nil {
		if x, ok := x.Rule.(*MatchPredicate_OrMatch); ok {
			return x.OrMatch
		}
	}
	return nil
}

func (x *MatchPredicate) GetAndMatch() *MatchPredicate_MatchSet {
	if x != nil {
		if x, ok := x.Rule.(*MatchPredicate_AndMatch); ok {
			return x.AndMatch
		}
	}
	return nil
}

func (x *MatchPredicate) GetNotMatch() *MatchPredicate {
	if x != nil {
		if x, ok := x.Rule.(*MatchPredicate_NotMatch); ok {
			return x.NotMatch
		}
	}
	return nil
}

func (x *MatchPredicate) GetAnyMatch() bool {
	if x != nil {
		if x, ok := x.Rule.(*MatchPredicate_AnyMatch); ok {
			return x.AnyMatch
		}
	}
	return false
}

func (x *MatchPredicate) GetHttpRequestHeadersMatch() *HttpHeadersMatch {
	if x != nil {
		if x, ok := x.Rule.(*MatchPredicate_HttpRequestHeadersMatch); ok {
			return x.HttpRequestHeadersMatch
		}
	}
	return nil
}

func (x *MatchPredicate) GetHttpRequestTrailersMatch() *HttpHeadersMatch {
	if x != nil {
		if x, ok := x.Rule.(*MatchPredicate_HttpRequestTrailersMatch); ok {
			return x.HttpRequestTrailersMatch
		}
	}
	return nil
}

func (x *MatchPredicate) GetHttpResponseHeadersMatch() *HttpHeadersMatch {
	if x != nil {
		if x, ok := x.Rule.(*MatchPredicate_HttpResponseHeadersMatch); ok {
			return x.HttpResponseHeadersMatch
		}
	}
	return nil
}

func (x *MatchPredicate) GetHttpResponseTrailersMatch() *HttpHeadersMatch {
	if x != nil {
		if x, ok := x.Rule.(*MatchPredicate_HttpResponseTrailersMatch); ok {
			return x.HttpResponseTrailersMatch
		}
	}
	return nil
}

type isMatchPredicate_Rule interface {
	isMatchPredicate_Rule()
}

type MatchPredicate_OrMatch struct {
	// A set that describes a logical OR. If any member of the set matches, the match configuration
	// matches.
	OrMatch *MatchPredicate_MatchSet `protobuf:"bytes,1,opt,name=or_match,json=orMatch,proto3,oneof"`
}

type MatchPredicate_AndMatch struct {
	// A set that describes a logical AND. If all members of the set match, the match configuration
	// matches.
	AndMatch *MatchPredicate_MatchSet `protobuf:"bytes,2,opt,name=and_match,json=andMatch,proto3,oneof"`
}

type MatchPredicate_NotMatch struct {
	// A negation match. The match configuration will match if the negated match condition matches.
	NotMatch *MatchPredicate `protobuf:"bytes,3,opt,name=not_match,json=notMatch,proto3,oneof"`
}

type MatchPredicate_AnyMatch struct {
	// The match configuration will always match.
	AnyMatch bool `protobuf:"varint,4,opt,name=any_match,json=anyMatch,proto3,oneof"`
}

type MatchPredicate_HttpRequestHeadersMatch struct {
	// HTTP request headers match configuration.
	HttpRequestHeadersMatch *HttpHeadersMatch `protobuf:"bytes,5,opt,name=http_request_headers_match,json=httpRequestHeadersMatch,proto3,oneof"`
}

type MatchPredicate_HttpRequestTrailersMatch struct {
	// HTTP request trailers match configuration.
	HttpRequestTrailersMatch *HttpHeadersMatch `protobuf:"bytes,6,opt,name=http_request_trailers_match,json=httpRequestTrailersMatch,proto3,oneof"`
}

type MatchPredicate_HttpResponseHeadersMatch struct {
	// HTTP response headers match configuration.
	HttpResponseHeadersMatch *HttpHeadersMatch `protobuf:"bytes,7,opt,name=http_response_headers_match,json=httpResponseHeadersMatch,proto3,oneof"`
}

type MatchPredicate_HttpResponseTrailersMatch struct {
	// HTTP response trailers match configuration.
	HttpResponseTrailersMatch *HttpHeadersMatch `protobuf:"bytes,8,opt,name=http_response_trailers_match,json=httpResponseTrailersMatch,proto3,oneof"`
}

func (*MatchPredicate_OrMatch) isMatchPredicate_Rule() {}

func (*MatchPredicate_AndMatch) isMatchPredicate_Rule() {}

func (*MatchPredicate_NotMatch) isMatchPredicate_Rule() {}

func (*MatchPredicate_AnyMatch) isMatchPredicate_Rule() {}

func (*MatchPredicate_HttpRequestHeadersMatch) isMatchPredicate_Rule() {}

func (*MatchPredicate_HttpRequestTrailersMatch) isMatchPredicate_Rule() {}

func (*MatchPredicate_HttpResponseHeadersMatch) isMatchPredicate_Rule() {}

func (*MatchPredicate_HttpResponseTrailersMatch) isMatchPredicate_Rule() {}

// HTTP headers match configuration.
type HttpHeadersMatch struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// HTTP headers to match.
	Headers       []*route.HeaderMatcher `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *HttpHeadersMatch) Reset() {
	*x = HttpHeadersMatch{}
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*HttpHeadersMatch) ProtoMessage() {}

func (x *HttpHeadersMatch) ProtoReflect() protoreflect.Message {
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[2]
	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 HttpHeadersMatch.ProtoReflect.Descriptor instead.
func (*HttpHeadersMatch) Descriptor() ([]byte, []int) {
	return file_envoy_service_tap_v2alpha_common_proto_rawDescGZIP(), []int{2}
}

func (x *HttpHeadersMatch) GetHeaders() []*route.HeaderMatcher {
	if x != nil {
		return x.Headers
	}
	return nil
}

// Tap output configuration.
type OutputConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Output sinks for tap data. Currently a single sink is allowed in the list. Once multiple
	// sink types are supported this constraint will be relaxed.
	Sinks []*OutputSink `protobuf:"bytes,1,rep,name=sinks,proto3" json:"sinks,omitempty"`
	// For buffered tapping, the maximum amount of received body that will be buffered prior to
	// truncation. If truncation occurs, the :ref:`truncated
	// <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
	// default is 1KiB.
	MaxBufferedRxBytes *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=max_buffered_rx_bytes,json=maxBufferedRxBytes,proto3" json:"max_buffered_rx_bytes,omitempty"`
	// For buffered tapping, the maximum amount of transmitted body that will be buffered prior to
	// truncation. If truncation occurs, the :ref:`truncated
	// <envoy_api_field_data.tap.v2alpha.Body.truncated>` field will be set. If not specified, the
	// default is 1KiB.
	MaxBufferedTxBytes *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=max_buffered_tx_bytes,json=maxBufferedTxBytes,proto3" json:"max_buffered_tx_bytes,omitempty"`
	// Indicates whether taps produce a single buffered message per tap, or multiple streamed
	// messages per tap in the emitted :ref:`TraceWrapper
	// <envoy_api_msg_data.tap.v2alpha.TraceWrapper>` messages. Note that streamed tapping does not
	// mean that no buffering takes place. Buffering may be required if data is processed before a
	// match can be determined. See the HTTP tap filter :ref:`streaming
	// <config_http_filters_tap_streaming>` documentation for more information.
	Streaming     bool `protobuf:"varint,4,opt,name=streaming,proto3" json:"streaming,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *OutputConfig) Reset() {
	*x = OutputConfig{}
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*OutputConfig) ProtoMessage() {}

func (x *OutputConfig) ProtoReflect() protoreflect.Message {
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[3]
	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 OutputConfig.ProtoReflect.Descriptor instead.
func (*OutputConfig) Descriptor() ([]byte, []int) {
	return file_envoy_service_tap_v2alpha_common_proto_rawDescGZIP(), []int{3}
}

func (x *OutputConfig) GetSinks() []*OutputSink {
	if x != nil {
		return x.Sinks
	}
	return nil
}

func (x *OutputConfig) GetMaxBufferedRxBytes() *wrapperspb.UInt32Value {
	if x != nil {
		return x.MaxBufferedRxBytes
	}
	return nil
}

func (x *OutputConfig) GetMaxBufferedTxBytes() *wrapperspb.UInt32Value {
	if x != nil {
		return x.MaxBufferedTxBytes
	}
	return nil
}

func (x *OutputConfig) GetStreaming() bool {
	if x != nil {
		return x.Streaming
	}
	return false
}

// Tap output sink configuration.
type OutputSink struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Sink output format.
	Format OutputSink_Format `protobuf:"varint,1,opt,name=format,proto3,enum=envoy.service.tap.v2alpha.OutputSink_Format" json:"format,omitempty"`
	// Types that are valid to be assigned to OutputSinkType:
	//
	//	*OutputSink_StreamingAdmin
	//	*OutputSink_FilePerTap
	//	*OutputSink_StreamingGrpc
	OutputSinkType isOutputSink_OutputSinkType `protobuf_oneof:"output_sink_type"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

func (x *OutputSink) Reset() {
	*x = OutputSink{}
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[4]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*OutputSink) ProtoMessage() {}

func (x *OutputSink) ProtoReflect() protoreflect.Message {
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[4]
	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 OutputSink.ProtoReflect.Descriptor instead.
func (*OutputSink) Descriptor() ([]byte, []int) {
	return file_envoy_service_tap_v2alpha_common_proto_rawDescGZIP(), []int{4}
}

func (x *OutputSink) GetFormat() OutputSink_Format {
	if x != nil {
		return x.Format
	}
	return OutputSink_JSON_BODY_AS_BYTES
}

func (x *OutputSink) GetOutputSinkType() isOutputSink_OutputSinkType {
	if x != nil {
		return x.OutputSinkType
	}
	return nil
}

func (x *OutputSink) GetStreamingAdmin() *StreamingAdminSink {
	if x != nil {
		if x, ok := x.OutputSinkType.(*OutputSink_StreamingAdmin); ok {
			return x.StreamingAdmin
		}
	}
	return nil
}

func (x *OutputSink) GetFilePerTap() *FilePerTapSink {
	if x != nil {
		if x, ok := x.OutputSinkType.(*OutputSink_FilePerTap); ok {
			return x.FilePerTap
		}
	}
	return nil
}

func (x *OutputSink) GetStreamingGrpc() *StreamingGrpcSink {
	if x != nil {
		if x, ok := x.OutputSinkType.(*OutputSink_StreamingGrpc); ok {
			return x.StreamingGrpc
		}
	}
	return nil
}

type isOutputSink_OutputSinkType interface {
	isOutputSink_OutputSinkType()
}

type OutputSink_StreamingAdmin struct {
	// Tap output will be streamed out the :http:post:`/tap` admin endpoint.
	//
	// .. attention::
	//
	//	It is only allowed to specify the streaming admin output sink if the tap is being
	//	configured from the :http:post:`/tap` admin endpoint. Thus, if an extension has
	//	been configured to receive tap configuration from some other source (e.g., static
	//	file, XDS, etc.) configuring the streaming admin output type will fail.
	StreamingAdmin *StreamingAdminSink `protobuf:"bytes,2,opt,name=streaming_admin,json=streamingAdmin,proto3,oneof"`
}

type OutputSink_FilePerTap struct {
	// Tap output will be written to a file per tap sink.
	FilePerTap *FilePerTapSink `protobuf:"bytes,3,opt,name=file_per_tap,json=filePerTap,proto3,oneof"`
}

type OutputSink_StreamingGrpc struct {
	// [#not-implemented-hide:]
	// GrpcService to stream data to. The format argument must be PROTO_BINARY.
	StreamingGrpc *StreamingGrpcSink `protobuf:"bytes,4,opt,name=streaming_grpc,json=streamingGrpc,proto3,oneof"`
}

func (*OutputSink_StreamingAdmin) isOutputSink_OutputSinkType() {}

func (*OutputSink_FilePerTap) isOutputSink_OutputSinkType() {}

func (*OutputSink_StreamingGrpc) isOutputSink_OutputSinkType() {}

// Streaming admin sink configuration.
type StreamingAdminSink struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *StreamingAdminSink) Reset() {
	*x = StreamingAdminSink{}
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[5]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*StreamingAdminSink) ProtoMessage() {}

func (x *StreamingAdminSink) ProtoReflect() protoreflect.Message {
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[5]
	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 StreamingAdminSink.ProtoReflect.Descriptor instead.
func (*StreamingAdminSink) Descriptor() ([]byte, []int) {
	return file_envoy_service_tap_v2alpha_common_proto_rawDescGZIP(), []int{5}
}

// The file per tap sink outputs a discrete file for every tapped stream.
type FilePerTapSink struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Path prefix. The output file will be of the form <path_prefix>_<id>.pb, where <id> is an
	// identifier distinguishing the recorded trace for stream instances (the Envoy
	// connection ID, HTTP stream ID, etc.).
	PathPrefix    string `protobuf:"bytes,1,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *FilePerTapSink) Reset() {
	*x = FilePerTapSink{}
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[6]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*FilePerTapSink) ProtoMessage() {}

func (x *FilePerTapSink) ProtoReflect() protoreflect.Message {
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[6]
	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 FilePerTapSink.ProtoReflect.Descriptor instead.
func (*FilePerTapSink) Descriptor() ([]byte, []int) {
	return file_envoy_service_tap_v2alpha_common_proto_rawDescGZIP(), []int{6}
}

func (x *FilePerTapSink) GetPathPrefix() string {
	if x != nil {
		return x.PathPrefix
	}
	return ""
}

// [#not-implemented-hide:] Streaming gRPC sink configuration sends the taps to an external gRPC
// server.
type StreamingGrpcSink struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Opaque identifier, that will be sent back to the streaming grpc server.
	TapId string `protobuf:"bytes,1,opt,name=tap_id,json=tapId,proto3" json:"tap_id,omitempty"`
	// The gRPC server that hosts the Tap Sink Service.
	GrpcService   *core.GrpcService `protobuf:"bytes,2,opt,name=grpc_service,json=grpcService,proto3" json:"grpc_service,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *StreamingGrpcSink) Reset() {
	*x = StreamingGrpcSink{}
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[7]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*StreamingGrpcSink) ProtoMessage() {}

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

func (x *StreamingGrpcSink) GetTapId() string {
	if x != nil {
		return x.TapId
	}
	return ""
}

func (x *StreamingGrpcSink) GetGrpcService() *core.GrpcService {
	if x != nil {
		return x.GrpcService
	}
	return nil
}

// A set of match configurations used for logical operations.
type MatchPredicate_MatchSet struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The list of rules that make up the set.
	Rules         []*MatchPredicate `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *MatchPredicate_MatchSet) Reset() {
	*x = MatchPredicate_MatchSet{}
	mi := &file_envoy_service_tap_v2alpha_common_proto_msgTypes[8]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*MatchPredicate_MatchSet) ProtoMessage() {}

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

func (x *MatchPredicate_MatchSet) GetRules() []*MatchPredicate {
	if x != nil {
		return x.Rules
	}
	return nil
}

var File_envoy_service_tap_v2alpha_common_proto protoreflect.FileDescriptor

const file_envoy_service_tap_v2alpha_common_proto_rawDesc = "" +
	"\n" +
	"&envoy/service/tap/v2alpha/common.proto\x12\x19envoy.service.tap.v2alpha\x1a\x1cenvoy/api/v2/core/base.proto\x1a$envoy/api/v2/core/grpc_service.proto\x1a)envoy/api/v2/route/route_components.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1eudpa/annotations/migrate.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\x89\x02\n" +
	"\tTapConfig\x12V\n" +
	"\fmatch_config\x18\x01 \x01(\v2).envoy.service.tap.v2alpha.MatchPredicateB\b\xfaB\x05\x8a\x01\x02\x10\x01R\vmatchConfig\x12V\n" +
	"\routput_config\x18\x02 \x01(\v2'.envoy.service.tap.v2alpha.OutputConfigB\b\xfaB\x05\x8a\x01\x02\x10\x01R\foutputConfig\x12L\n" +
	"\vtap_enabled\x18\x03 \x01(\v2+.envoy.api.v2.core.RuntimeFractionalPercentR\n" +
	"tapEnabled\"\xc2\x06\n" +
	"\x0eMatchPredicate\x12O\n" +
	"\bor_match\x18\x01 \x01(\v22.envoy.service.tap.v2alpha.MatchPredicate.MatchSetH\x00R\aorMatch\x12Q\n" +
	"\tand_match\x18\x02 \x01(\v22.envoy.service.tap.v2alpha.MatchPredicate.MatchSetH\x00R\bandMatch\x12H\n" +
	"\tnot_match\x18\x03 \x01(\v2).envoy.service.tap.v2alpha.MatchPredicateH\x00R\bnotMatch\x12&\n" +
	"\tany_match\x18\x04 \x01(\bB\a\xfaB\x04j\x02\b\x01H\x00R\banyMatch\x12j\n" +
	"\x1ahttp_request_headers_match\x18\x05 \x01(\v2+.envoy.service.tap.v2alpha.HttpHeadersMatchH\x00R\x17httpRequestHeadersMatch\x12l\n" +
	"\x1bhttp_request_trailers_match\x18\x06 \x01(\v2+.envoy.service.tap.v2alpha.HttpHeadersMatchH\x00R\x18httpRequestTrailersMatch\x12l\n" +
	"\x1bhttp_response_headers_match\x18\a \x01(\v2+.envoy.service.tap.v2alpha.HttpHeadersMatchH\x00R\x18httpResponseHeadersMatch\x12n\n" +
	"\x1chttp_response_trailers_match\x18\b \x01(\v2+.envoy.service.tap.v2alpha.HttpHeadersMatchH\x00R\x19httpResponseTrailersMatch\x1aU\n" +
	"\bMatchSet\x12I\n" +
	"\x05rules\x18\x01 \x03(\v2).envoy.service.tap.v2alpha.MatchPredicateB\b\xfaB\x05\x92\x01\x02\b\x02R\x05rulesB\v\n" +
	"\x04rule\x12\x03\xf8B\x01\"O\n" +
	"\x10HttpHeadersMatch\x12;\n" +
	"\aheaders\x18\x01 \x03(\v2!.envoy.api.v2.route.HeaderMatcherR\aheaders\"\x97\x02\n" +
	"\fOutputConfig\x12G\n" +
	"\x05sinks\x18\x01 \x03(\v2%.envoy.service.tap.v2alpha.OutputSinkB\n" +
	"\xfaB\a\x92\x01\x04\b\x01\x10\x01R\x05sinks\x12O\n" +
	"\x15max_buffered_rx_bytes\x18\x02 \x01(\v2\x1c.google.protobuf.UInt32ValueR\x12maxBufferedRxBytes\x12O\n" +
	"\x15max_buffered_tx_bytes\x18\x03 \x01(\v2\x1c.google.protobuf.UInt32ValueR\x12maxBufferedTxBytes\x12\x1c\n" +
	"\tstreaming\x18\x04 \x01(\bR\tstreaming\"\xf5\x03\n" +
	"\n" +
	"OutputSink\x12N\n" +
	"\x06format\x18\x01 \x01(\x0e2,.envoy.service.tap.v2alpha.OutputSink.FormatB\b\xfaB\x05\x82\x01\x02\x10\x01R\x06format\x12X\n" +
	"\x0fstreaming_admin\x18\x02 \x01(\v2-.envoy.service.tap.v2alpha.StreamingAdminSinkH\x00R\x0estreamingAdmin\x12M\n" +
	"\ffile_per_tap\x18\x03 \x01(\v2).envoy.service.tap.v2alpha.FilePerTapSinkH\x00R\n" +
	"filePerTap\x12U\n" +
	"\x0estreaming_grpc\x18\x04 \x01(\v2,.envoy.service.tap.v2alpha.StreamingGrpcSinkH\x00R\rstreamingGrpc\"~\n" +
	"\x06Format\x12\x16\n" +
	"\x12JSON_BODY_AS_BYTES\x10\x00\x12\x17\n" +
	"\x13JSON_BODY_AS_STRING\x10\x01\x12\x10\n" +
	"\fPROTO_BINARY\x10\x02\x12!\n" +
	"\x1dPROTO_BINARY_LENGTH_DELIMITED\x10\x03\x12\x0e\n" +
	"\n" +
	"PROTO_TEXT\x10\x04B\x17\n" +
	"\x10output_sink_type\x12\x03\xf8B\x01\"\x14\n" +
	"\x12StreamingAdminSink\":\n" +
	"\x0eFilePerTapSink\x12(\n" +
	"\vpath_prefix\x18\x01 \x01(\tB\a\xfaB\x04r\x02 \x01R\n" +
	"pathPrefix\"w\n" +
	"\x11StreamingGrpcSink\x12\x15\n" +
	"\x06tap_id\x18\x01 \x01(\tR\x05tapId\x12K\n" +
	"\fgrpc_service\x18\x02 \x01(\v2\x1e.envoy.api.v2.core.GrpcServiceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\vgrpcServiceB\x9d\x01\xf2\x98\xfe\x8f\x05\x15\x12\x13envoy.config.tap.v3\xba\x80\xc8\xd1\x06\x02\x10\x01\n" +
	"'io.envoyproxy.envoy.service.tap.v2alphaB\vCommonProtoP\x01Z@github.com/envoyproxy/go-control-plane/envoy/service/tap/v2alphab\x06proto3"

var (
	file_envoy_service_tap_v2alpha_common_proto_rawDescOnce sync.Once
	file_envoy_service_tap_v2alpha_common_proto_rawDescData []byte
)

func file_envoy_service_tap_v2alpha_common_proto_rawDescGZIP() []byte {
	file_envoy_service_tap_v2alpha_common_proto_rawDescOnce.Do(func() {
		file_envoy_service_tap_v2alpha_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_service_tap_v2alpha_common_proto_rawDesc), len(file_envoy_service_tap_v2alpha_common_proto_rawDesc)))
	})
	return file_envoy_service_tap_v2alpha_common_proto_rawDescData
}

var file_envoy_service_tap_v2alpha_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_envoy_service_tap_v2alpha_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_envoy_service_tap_v2alpha_common_proto_goTypes = []any{
	(OutputSink_Format)(0),                // 0: envoy.service.tap.v2alpha.OutputSink.Format
	(*TapConfig)(nil),                     // 1: envoy.service.tap.v2alpha.TapConfig
	(*MatchPredicate)(nil),                // 2: envoy.service.tap.v2alpha.MatchPredicate
	(*HttpHeadersMatch)(nil),              // 3: envoy.service.tap.v2alpha.HttpHeadersMatch
	(*OutputConfig)(nil),                  // 4: envoy.service.tap.v2alpha.OutputConfig
	(*OutputSink)(nil),                    // 5: envoy.service.tap.v2alpha.OutputSink
	(*StreamingAdminSink)(nil),            // 6: envoy.service.tap.v2alpha.StreamingAdminSink
	(*FilePerTapSink)(nil),                // 7: envoy.service.tap.v2alpha.FilePerTapSink
	(*StreamingGrpcSink)(nil),             // 8: envoy.service.tap.v2alpha.StreamingGrpcSink
	(*MatchPredicate_MatchSet)(nil),       // 9: envoy.service.tap.v2alpha.MatchPredicate.MatchSet
	(*core.RuntimeFractionalPercent)(nil), // 10: envoy.api.v2.core.RuntimeFractionalPercent
	(*route.HeaderMatcher)(nil),           // 11: envoy.api.v2.route.HeaderMatcher
	(*wrapperspb.UInt32Value)(nil),        // 12: google.protobuf.UInt32Value
	(*core.GrpcService)(nil),              // 13: envoy.api.v2.core.GrpcService
}
var file_envoy_service_tap_v2alpha_common_proto_depIdxs = []int32{
	2,  // 0: envoy.service.tap.v2alpha.TapConfig.match_config:type_name -> envoy.service.tap.v2alpha.MatchPredicate
	4,  // 1: envoy.service.tap.v2alpha.TapConfig.output_config:type_name -> envoy.service.tap.v2alpha.OutputConfig
	10, // 2: envoy.service.tap.v2alpha.TapConfig.tap_enabled:type_name -> envoy.api.v2.core.RuntimeFractionalPercent
	9,  // 3: envoy.service.tap.v2alpha.MatchPredicate.or_match:type_name -> envoy.service.tap.v2alpha.MatchPredicate.MatchSet
	9,  // 4: envoy.service.tap.v2alpha.MatchPredicate.and_match:type_name -> envoy.service.tap.v2alpha.MatchPredicate.MatchSet
	2,  // 5: envoy.service.tap.v2alpha.MatchPredicate.not_match:type_name -> envoy.service.tap.v2alpha.MatchPredicate
	3,  // 6: envoy.service.tap.v2alpha.MatchPredicate.http_request_headers_match:type_name -> envoy.service.tap.v2alpha.HttpHeadersMatch
	3,  // 7: envoy.service.tap.v2alpha.MatchPredicate.http_request_trailers_match:type_name -> envoy.service.tap.v2alpha.HttpHeadersMatch
	3,  // 8: envoy.service.tap.v2alpha.MatchPredicate.http_response_headers_match:type_name -> envoy.service.tap.v2alpha.HttpHeadersMatch
	3,  // 9: envoy.service.tap.v2alpha.MatchPredicate.http_response_trailers_match:type_name -> envoy.service.tap.v2alpha.HttpHeadersMatch
	11, // 10: envoy.service.tap.v2alpha.HttpHeadersMatch.headers:type_name -> envoy.api.v2.route.HeaderMatcher
	5,  // 11: envoy.service.tap.v2alpha.OutputConfig.sinks:type_name -> envoy.service.tap.v2alpha.OutputSink
	12, // 12: envoy.service.tap.v2alpha.OutputConfig.max_buffered_rx_bytes:type_name -> google.protobuf.UInt32Value
	12, // 13: envoy.service.tap.v2alpha.OutputConfig.max_buffered_tx_bytes:type_name -> google.protobuf.UInt32Value
	0,  // 14: envoy.service.tap.v2alpha.OutputSink.format:type_name -> envoy.service.tap.v2alpha.OutputSink.Format
	6,  // 15: envoy.service.tap.v2alpha.OutputSink.streaming_admin:type_name -> envoy.service.tap.v2alpha.StreamingAdminSink
	7,  // 16: envoy.service.tap.v2alpha.OutputSink.file_per_tap:type_name -> envoy.service.tap.v2alpha.FilePerTapSink
	8,  // 17: envoy.service.tap.v2alpha.OutputSink.streaming_grpc:type_name -> envoy.service.tap.v2alpha.StreamingGrpcSink
	13, // 18: envoy.service.tap.v2alpha.StreamingGrpcSink.grpc_service:type_name -> envoy.api.v2.core.GrpcService
	2,  // 19: envoy.service.tap.v2alpha.MatchPredicate.MatchSet.rules:type_name -> envoy.service.tap.v2alpha.MatchPredicate
	20, // [20:20] is the sub-list for method output_type
	20, // [20:20] is the sub-list for method input_type
	20, // [20:20] is the sub-list for extension type_name
	20, // [20:20] is the sub-list for extension extendee
	0,  // [0:20] is the sub-list for field type_name
}

func init() { file_envoy_service_tap_v2alpha_common_proto_init() }
func file_envoy_service_tap_v2alpha_common_proto_init() {
	if File_envoy_service_tap_v2alpha_common_proto != nil {
		return
	}
	file_envoy_service_tap_v2alpha_common_proto_msgTypes[1].OneofWrappers = []any{
		(*MatchPredicate_OrMatch)(nil),
		(*MatchPredicate_AndMatch)(nil),
		(*MatchPredicate_NotMatch)(nil),
		(*MatchPredicate_AnyMatch)(nil),
		(*MatchPredicate_HttpRequestHeadersMatch)(nil),
		(*MatchPredicate_HttpRequestTrailersMatch)(nil),
		(*MatchPredicate_HttpResponseHeadersMatch)(nil),
		(*MatchPredicate_HttpResponseTrailersMatch)(nil),
	}
	file_envoy_service_tap_v2alpha_common_proto_msgTypes[4].OneofWrappers = []any{
		(*OutputSink_StreamingAdmin)(nil),
		(*OutputSink_FilePerTap)(nil),
		(*OutputSink_StreamingGrpc)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_envoy_service_tap_v2alpha_common_proto_rawDesc), len(file_envoy_service_tap_v2alpha_common_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   9,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_service_tap_v2alpha_common_proto_goTypes,
		DependencyIndexes: file_envoy_service_tap_v2alpha_common_proto_depIdxs,
		EnumInfos:         file_envoy_service_tap_v2alpha_common_proto_enumTypes,
		MessageInfos:      file_envoy_service_tap_v2alpha_common_proto_msgTypes,
	}.Build()
	File_envoy_service_tap_v2alpha_common_proto = out.File
	file_envoy_service_tap_v2alpha_common_proto_goTypes = nil
	file_envoy_service_tap_v2alpha_common_proto_depIdxs = nil
}
