// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/extensions/transport_sockets/dynamic_modules/v3/dynamic_modules.proto

package dynamic_modulesv3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	v3 "github.com/envoyproxy/go-control-plane/envoy/extensions/dynamic_modules/v3"
	_ "github.com/envoyproxy/protoc-gen-validate/validate"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	anypb "google.golang.org/protobuf/types/known/anypb"
	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 a transport socket implemented by a dynamic module. The transport socket
// performs the raw I/O for a connection and may transform the bytes that flow over it, for example
// to implement a custom encryption scheme.
//
// Example:
//
// .. code-block:: yaml
//
//	transport_socket:
//	  name: envoy.transport_sockets.dynamic_modules
//	  typed_config:
//	    "@type": type.googleapis.com/envoy.extensions.transport_sockets.dynamic_modules.v3.DynamicModuleTransportSocket
//	    dynamic_module_config:
//	      name: my_module
//	    transport_socket_name: my_transport_socket
type DynamicModuleTransportSocket struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Dynamic module configuration. See :ref:`dynamic module configuration
	// <envoy_v3_api_msg_extensions.dynamic_modules.v3.DynamicModuleConfig>` for details.
	DynamicModuleConfig *v3.DynamicModuleConfig `protobuf:"bytes,1,opt,name=dynamic_module_config,json=dynamicModuleConfig,proto3" json:"dynamic_module_config,omitempty"`
	// The name of the transport socket implementation in the dynamic module. This is passed to the
	// module's “envoy_dynamic_module_on_transport_socket_factory_config_new“ function.
	TransportSocketName string `protobuf:"bytes,2,opt,name=transport_socket_name,json=transportSocketName,proto3" json:"transport_socket_name,omitempty"`
	// Optional configuration for the transport socket. This is passed as bytes to the dynamic module.
	// If not specified, no configuration bytes are passed to the module.
	TransportSocketConfig *anypb.Any `protobuf:"bytes,3,opt,name=transport_socket_config,json=transportSocketConfig,proto3" json:"transport_socket_config,omitempty"`
	// Whether the transport socket implements secure transport. Set this to true for modules that
	// provide encryption so that Envoy treats connections using this transport socket as secure. If
	// not specified, defaults to false.
	ImplementsSecureTransport bool `protobuf:"varint,4,opt,name=implements_secure_transport,json=implementsSecureTransport,proto3" json:"implements_secure_transport,omitempty"`
	unknownFields             protoimpl.UnknownFields
	sizeCache                 protoimpl.SizeCache
}

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

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

func (*DynamicModuleTransportSocket) ProtoMessage() {}

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

func (x *DynamicModuleTransportSocket) GetDynamicModuleConfig() *v3.DynamicModuleConfig {
	if x != nil {
		return x.DynamicModuleConfig
	}
	return nil
}

func (x *DynamicModuleTransportSocket) GetTransportSocketName() string {
	if x != nil {
		return x.TransportSocketName
	}
	return ""
}

func (x *DynamicModuleTransportSocket) GetTransportSocketConfig() *anypb.Any {
	if x != nil {
		return x.TransportSocketConfig
	}
	return nil
}

func (x *DynamicModuleTransportSocket) GetImplementsSecureTransport() bool {
	if x != nil {
		return x.ImplementsSecureTransport
	}
	return false
}

var File_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto protoreflect.FileDescriptor

const file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDesc = "" +
	"\n" +
	"Kenvoy/extensions/transport_sockets/dynamic_modules/v3/dynamic_modules.proto\x125envoy.extensions.transport_sockets.dynamic_modules.v3\x1a9envoy/extensions/dynamic_modules/v3/dynamic_modules.proto\x1a\x19google/protobuf/any.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xe1\x02\n" +
	"\x1cDynamicModuleTransportSocket\x12v\n" +
	"\x15dynamic_module_config\x18\x01 \x01(\v28.envoy.extensions.dynamic_modules.v3.DynamicModuleConfigB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x13dynamicModuleConfig\x12;\n" +
	"\x15transport_socket_name\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x13transportSocketName\x12L\n" +
	"\x17transport_socket_config\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\x15transportSocketConfig\x12>\n" +
	"\x1bimplements_secure_transport\x18\x04 \x01(\bR\x19implementsSecureTransportB\xd4\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"Cio.envoyproxy.envoy.extensions.transport_sockets.dynamic_modules.v3B\x13DynamicModulesProtoP\x01Zngithub.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/dynamic_modules/v3;dynamic_modulesv3b\x06proto3"

var (
	file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDescOnce sync.Once
	file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDescData []byte
)

func file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDescGZIP() []byte {
	file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDesc), len(file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDesc)))
	})
	return file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDescData
}

var file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_goTypes = []any{
	(*DynamicModuleTransportSocket)(nil), // 0: envoy.extensions.transport_sockets.dynamic_modules.v3.DynamicModuleTransportSocket
	(*v3.DynamicModuleConfig)(nil),       // 1: envoy.extensions.dynamic_modules.v3.DynamicModuleConfig
	(*anypb.Any)(nil),                    // 2: google.protobuf.Any
}
var file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_depIdxs = []int32{
	1, // 0: envoy.extensions.transport_sockets.dynamic_modules.v3.DynamicModuleTransportSocket.dynamic_module_config:type_name -> envoy.extensions.dynamic_modules.v3.DynamicModuleConfig
	2, // 1: envoy.extensions.transport_sockets.dynamic_modules.v3.DynamicModuleTransportSocket.transport_socket_config:type_name -> google.protobuf.Any
	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_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_init() }
func file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_init() {
	if File_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_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_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDesc), len(file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_msgTypes,
	}.Build()
	File_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto = out.File
	file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_goTypes = nil
	file_envoy_extensions_transport_sockets_dynamic_modules_v3_dynamic_modules_proto_depIdxs = nil
}
