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

package v2alpha

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

// Configuration for tap transport socket. This wraps another transport socket, providing the
// ability to interpose and record in plain text any traffic that is surfaced to Envoy.
type Tap struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Common configuration for the tap transport socket.
	CommonConfig *v2alpha.CommonExtensionConfig `protobuf:"bytes,1,opt,name=common_config,json=commonConfig,proto3" json:"common_config,omitempty"`
	// The underlying transport socket being wrapped.
	TransportSocket *core.TransportSocket `protobuf:"bytes,2,opt,name=transport_socket,json=transportSocket,proto3" json:"transport_socket,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

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

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

func (*Tap) ProtoMessage() {}

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

func (x *Tap) GetCommonConfig() *v2alpha.CommonExtensionConfig {
	if x != nil {
		return x.CommonConfig
	}
	return nil
}

func (x *Tap) GetTransportSocket() *core.TransportSocket {
	if x != nil {
		return x.TransportSocket
	}
	return nil
}

var File_envoy_config_transport_socket_tap_v2alpha_tap_proto protoreflect.FileDescriptor

const file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDesc = "" +
	"\n" +
	"3envoy/config/transport_socket/tap/v2alpha/tap.proto\x12)envoy.config.transport_socket.tap.v2alpha\x1a\x1cenvoy/api/v2/core/base.proto\x1a,envoy/config/common/tap/v2alpha/common.proto\x1a\x1eudpa/annotations/migrate.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xc5\x01\n" +
	"\x03Tap\x12e\n" +
	"\rcommon_config\x18\x01 \x01(\v26.envoy.config.common.tap.v2alpha.CommonExtensionConfigB\b\xfaB\x05\x8a\x01\x02\x10\x01R\fcommonConfig\x12W\n" +
	"\x10transport_socket\x18\x02 \x01(\v2\".envoy.api.v2.core.TransportSocketB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x0ftransportSocketB\xd2\x01\xf2\x98\xfe\x8f\x05+\x12)envoy.extensions.transport_sockets.tap.v3\xba\x80\xc8\xd1\x06\x04\b\x01\x10\x01\n" +
	"7io.envoyproxy.envoy.config.transport_socket.tap.v2alphaB\bTapProtoP\x01ZPgithub.com/envoyproxy/go-control-plane/envoy/config/transport_socket/tap/v2alphab\x06proto3"

var (
	file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDescOnce sync.Once
	file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDescData []byte
)

func file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDescGZIP() []byte {
	file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDescOnce.Do(func() {
		file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDesc), len(file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDesc)))
	})
	return file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDescData
}

var file_envoy_config_transport_socket_tap_v2alpha_tap_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_config_transport_socket_tap_v2alpha_tap_proto_goTypes = []any{
	(*Tap)(nil),                           // 0: envoy.config.transport_socket.tap.v2alpha.Tap
	(*v2alpha.CommonExtensionConfig)(nil), // 1: envoy.config.common.tap.v2alpha.CommonExtensionConfig
	(*core.TransportSocket)(nil),          // 2: envoy.api.v2.core.TransportSocket
}
var file_envoy_config_transport_socket_tap_v2alpha_tap_proto_depIdxs = []int32{
	1, // 0: envoy.config.transport_socket.tap.v2alpha.Tap.common_config:type_name -> envoy.config.common.tap.v2alpha.CommonExtensionConfig
	2, // 1: envoy.config.transport_socket.tap.v2alpha.Tap.transport_socket:type_name -> envoy.api.v2.core.TransportSocket
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_envoy_config_transport_socket_tap_v2alpha_tap_proto_init() }
func file_envoy_config_transport_socket_tap_v2alpha_tap_proto_init() {
	if File_envoy_config_transport_socket_tap_v2alpha_tap_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_transport_socket_tap_v2alpha_tap_proto_rawDesc), len(file_envoy_config_transport_socket_tap_v2alpha_tap_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_config_transport_socket_tap_v2alpha_tap_proto_goTypes,
		DependencyIndexes: file_envoy_config_transport_socket_tap_v2alpha_tap_proto_depIdxs,
		MessageInfos:      file_envoy_config_transport_socket_tap_v2alpha_tap_proto_msgTypes,
	}.Build()
	File_envoy_config_transport_socket_tap_v2alpha_tap_proto = out.File
	file_envoy_config_transport_socket_tap_v2alpha_tap_proto_goTypes = nil
	file_envoy_config_transport_socket_tap_v2alpha_tap_proto_depIdxs = nil
}
