// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/extensions/bootstrap/reverse_tunnel/downstream_socket_interface/v3/downstream_reverse_connection_socket_interface.proto

package downstream_socket_interfacev3

import (
	_ "github.com/cncf/xds/go/udpa/annotations"
	v3 "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3"
	v31 "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"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	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 the downstream reverse connection socket interface.
// This interface initiates reverse connections to upstream Envoys and provides
// them as socket connections for downstream requests.
// [#next-free-field: 6]
type DownstreamReverseConnectionSocketInterface struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Stat prefix to be used for downstream reverse connection socket interface stats.
	StatPrefix string `protobuf:"bytes,1,opt,name=stat_prefix,json=statPrefix,proto3" json:"stat_prefix,omitempty"`
	// Enable detailed per-host and per-cluster statistics.
	// When enabled, emits hidden statistics for individual hosts and clusters.
	// Defaults to “false“.
	EnableDetailedStats bool `protobuf:"varint,2,opt,name=enable_detailed_stats,json=enableDetailedStats,proto3" json:"enable_detailed_stats,omitempty"`
	// Optional HTTP handshake configuration. When unset, the initiator envoy uses the defaults
	// provided by “HttpHandshakeConfig“.
	HttpHandshake *DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig `protobuf:"bytes,3,opt,name=http_handshake,json=httpHandshake,proto3" json:"http_handshake,omitempty"`
	// Access log configuration for reverse tunnel initiator lifecycle events.
	// Logs are emitted on handshake success, handshake failure, and connection close.
	// Reverse tunnel metadata (“node_id“, “cluster_id“, “tenant_id“, upstream cluster, etc.)
	// is available via “%DYNAMIC_METADATA(envoy.reverse_tunnel.initiator:*)%“ substitutions.
	AccessLog []*v3.AccessLog `protobuf:"bytes,4,rep,name=access_log,json=accessLog,proto3" json:"access_log,omitempty"`
	// Upper bound on the per-host reconnect backoff. The initiator retries a failed handshake on a
	// deterministic exponential schedule (1s, 2s, 4s, ...) with small upward jitter; this value caps
	// that schedule.
	MaxReconnectBackoff *durationpb.Duration `protobuf:"bytes,5,opt,name=max_reconnect_backoff,json=maxReconnectBackoff,proto3" json:"max_reconnect_backoff,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*DownstreamReverseConnectionSocketInterface) ProtoMessage() {}

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

func (x *DownstreamReverseConnectionSocketInterface) GetStatPrefix() string {
	if x != nil {
		return x.StatPrefix
	}
	return ""
}

func (x *DownstreamReverseConnectionSocketInterface) GetEnableDetailedStats() bool {
	if x != nil {
		return x.EnableDetailedStats
	}
	return false
}

func (x *DownstreamReverseConnectionSocketInterface) GetHttpHandshake() *DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig {
	if x != nil {
		return x.HttpHandshake
	}
	return nil
}

func (x *DownstreamReverseConnectionSocketInterface) GetAccessLog() []*v3.AccessLog {
	if x != nil {
		return x.AccessLog
	}
	return nil
}

func (x *DownstreamReverseConnectionSocketInterface) GetMaxReconnectBackoff() *durationpb.Duration {
	if x != nil {
		return x.MaxReconnectBackoff
	}
	return nil
}

// HTTP handshake settings for initiator envoy initiated reverse tunnels.
type DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Request path used when issuing the HTTP reverse-connection handshake. Defaults to
	// "/reverse_connections/request".
	RequestPath string `protobuf:"bytes,1,opt,name=request_path,json=requestPath,proto3" json:"request_path,omitempty"`
	// Additional headers to include in the HTTP handshake request.
	AdditionalHeaders []*v31.HeaderValueOption `protobuf:"bytes,2,rep,name=additional_headers,json=additionalHeaders,proto3" json:"additional_headers,omitempty"`
	// Perform the handshake as an HTTP/1.1 “Upgrade“ exchange (“Upgrade: reverse-tunnel“,
	// success on “101“) so HTTP proxies can route the handshake and splice the tunnel
	// afterward. The responder must set this flag to the same value.
	// Defaults to “false“.
	UseHttpUpgrade bool `protobuf:"varint,3,opt,name=use_http_upgrade,json=useHttpUpgrade,proto3" json:"use_http_upgrade,omitempty"`
	// Formatter extensions usable in “additional_headers“ substitution. See the formatter
	// extensions documentation for details. When set, “additional_headers“ values are evaluated
	// as substitution format strings; when empty, the values are sent literally.
	// [#extension-category: envoy.formatter]
	Formatters    []*v31.TypedExtensionConfig `protobuf:"bytes,4,rep,name=formatters,proto3" json:"formatters,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig) ProtoMessage() {}

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

func (x *DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig) GetRequestPath() string {
	if x != nil {
		return x.RequestPath
	}
	return ""
}

func (x *DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig) GetAdditionalHeaders() []*v31.HeaderValueOption {
	if x != nil {
		return x.AdditionalHeaders
	}
	return nil
}

func (x *DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig) GetUseHttpUpgrade() bool {
	if x != nil {
		return x.UseHttpUpgrade
	}
	return false
}

func (x *DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig) GetFormatters() []*v31.TypedExtensionConfig {
	if x != nil {
		return x.Formatters
	}
	return nil
}

var File_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto protoreflect.FileDescriptor

const file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDesc = "" +
	"\n" +
	"}envoy/extensions/bootstrap/reverse_tunnel/downstream_socket_interface/v3/downstream_reverse_connection_socket_interface.proto\x12Henvoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3\x1a)envoy/config/accesslog/v3/accesslog.proto\x1a\x1fenvoy/config/core/v3/base.proto\x1a$envoy/config/core/v3/extension.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1dudpa/annotations/status.proto\x1a\x17validate/validate.proto\"\xdd\x05\n" +
	"*DownstreamReverseConnectionSocketInterface\x12\x1f\n" +
	"\vstat_prefix\x18\x01 \x01(\tR\n" +
	"statPrefix\x122\n" +
	"\x15enable_detailed_stats\x18\x02 \x01(\bR\x13enableDetailedStats\x12\xb0\x01\n" +
	"\x0ehttp_handshake\x18\x03 \x01(\v2\x88\x01.envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface.HttpHandshakeConfigR\rhttpHandshake\x12C\n" +
	"\n" +
	"access_log\x18\x04 \x03(\v2$.envoy.config.accesslog.v3.AccessLogR\taccessLog\x12Y\n" +
	"\x15max_reconnect_backoff\x18\x05 \x01(\v2\x19.google.protobuf.DurationB\n" +
	"\xfaB\a\xaa\x01\x042\x02\b\x01R\x13maxReconnectBackoff\x1a\x86\x02\n" +
	"\x13HttpHandshakeConfig\x12!\n" +
	"\frequest_path\x18\x01 \x01(\tR\vrequestPath\x12V\n" +
	"\x12additional_headers\x18\x02 \x03(\v2'.envoy.config.core.v3.HeaderValueOptionR\x11additionalHeaders\x12(\n" +
	"\x10use_http_upgrade\x18\x03 \x01(\bR\x0euseHttpUpgrade\x12J\n" +
	"\n" +
	"formatters\x18\x04 \x03(\v2*.envoy.config.core.v3.TypedExtensionConfigR\n" +
	"formattersB\xa3\x02\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"Vio.envoyproxy.envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3B/DownstreamReverseConnectionSocketInterfaceProtoP\x01Z\x8d\x01github.com/envoyproxy/go-control-plane/envoy/extensions/bootstrap/reverse_tunnel/downstream_socket_interface/v3;downstream_socket_interfacev3b\x06proto3"

var (
	file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDescOnce sync.Once
	file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDescData []byte
)

func file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDescGZIP() []byte {
	file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDesc), len(file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDesc)))
	})
	return file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDescData
}

var file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_goTypes = []any{
	(*DownstreamReverseConnectionSocketInterface)(nil),                     // 0: envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface
	(*DownstreamReverseConnectionSocketInterface_HttpHandshakeConfig)(nil), // 1: envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface.HttpHandshakeConfig
	(*v3.AccessLog)(nil),             // 2: envoy.config.accesslog.v3.AccessLog
	(*durationpb.Duration)(nil),      // 3: google.protobuf.Duration
	(*v31.HeaderValueOption)(nil),    // 4: envoy.config.core.v3.HeaderValueOption
	(*v31.TypedExtensionConfig)(nil), // 5: envoy.config.core.v3.TypedExtensionConfig
}
var file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_depIdxs = []int32{
	1, // 0: envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface.http_handshake:type_name -> envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface.HttpHandshakeConfig
	2, // 1: envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface.access_log:type_name -> envoy.config.accesslog.v3.AccessLog
	3, // 2: envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface.max_reconnect_backoff:type_name -> google.protobuf.Duration
	4, // 3: envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface.HttpHandshakeConfig.additional_headers:type_name -> envoy.config.core.v3.HeaderValueOption
	5, // 4: envoy.extensions.bootstrap.reverse_tunnel.downstream_socket_interface.v3.DownstreamReverseConnectionSocketInterface.HttpHandshakeConfig.formatters:type_name -> envoy.config.core.v3.TypedExtensionConfig
	5, // [5:5] is the sub-list for method output_type
	5, // [5:5] is the sub-list for method input_type
	5, // [5:5] is the sub-list for extension type_name
	5, // [5:5] is the sub-list for extension extendee
	0, // [0:5] is the sub-list for field type_name
}

func init() {
	file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_init()
}
func file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_init() {
	if File_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_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_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDesc), len(file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_msgTypes,
	}.Build()
	File_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto = out.File
	file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_goTypes = nil
	file_envoy_extensions_bootstrap_reverse_tunnel_downstream_socket_interface_v3_downstream_reverse_connection_socket_interface_proto_depIdxs = nil
}
