// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.10
// 	protoc        v7.35.1
// source: envoy/extensions/health_checkers/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 the Dynamic Modules Health Checker. This health checker allows loading shared
// object files via “dlopen“ to implement custom active health checking behavior.
//
// A module can be loaded by multiple health checkers; the module is loaded only once and shared
// across multiple health checker instances.
//
// Envoy drives the standard per-host interval and timeout timers and applies the common
// “interval“, “timeout“, “healthy_threshold“ and “unhealthy_threshold“ settings. On each
// interval the module is asked to check the host; it may perform the work on its own thread and
// reports the host's health status back to Envoy.
type DynamicModuleHealthCheck struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Specifies the shared-object level configuration. This field is required.
	DynamicModuleConfig *v3.DynamicModuleConfig `protobuf:"bytes,1,opt,name=dynamic_module_config,json=dynamicModuleConfig,proto3" json:"dynamic_module_config,omitempty"`
	// The name for this health checker configuration.
	//
	// This can be used to distinguish between different health checker implementations inside a
	// dynamic module. For example, a module can have completely different health checker
	// implementations (e.g., a ping checker, an external-service checker). When Envoy receives this
	// configuration, it passes the “health_checker_name“ to the dynamic module's health checker
	// config init function together with the “health_checker_config“. That way a module can decide
	// which in-module health checker implementation to use based on the name at load time.
	HealthCheckerName string `protobuf:"bytes,2,opt,name=health_checker_name,json=healthCheckerName,proto3" json:"health_checker_name,omitempty"`
	// The configuration for the health checker chosen by “health_checker_name“. If not specified,
	// an empty configuration is passed to the module.
	//
	// This is passed to the module's health checker initialization function. Together with the
	// “health_checker_name“, the module can decide which in-module health checker implementation to
	// use and fine-tune the behavior of the health checker.
	//
	// “google.protobuf.Struct“ is serialized as JSON before passing it to the module.
	// “google.protobuf.BytesValue“ and “google.protobuf.StringValue“ are passed directly
	// without the wrapper.
	//
	// .. code-block:: yaml
	//
	//	# Passing a JSON struct configuration
	//	health_checker_config:
	//	  "@type": "type.googleapis.com/google.protobuf.Struct"
	//	  value:
	//	    path: "/healthz"
	//	    degraded_on_slow_response: true
	//
	//	# Passing a simple string configuration
	//	health_checker_config:
	//	  "@type": "type.googleapis.com/google.protobuf.StringValue"
	//	  value: "/healthz"
	HealthCheckerConfig *anypb.Any `protobuf:"bytes,3,opt,name=health_checker_config,json=healthCheckerConfig,proto3" json:"health_checker_config,omitempty"`
	unknownFields       protoimpl.UnknownFields
	sizeCache           protoimpl.SizeCache
}

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

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

func (*DynamicModuleHealthCheck) ProtoMessage() {}

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

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

func (x *DynamicModuleHealthCheck) GetHealthCheckerName() string {
	if x != nil {
		return x.HealthCheckerName
	}
	return ""
}

func (x *DynamicModuleHealthCheck) GetHealthCheckerConfig() *anypb.Any {
	if x != nil {
		return x.HealthCheckerConfig
	}
	return nil
}

var File_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto protoreflect.FileDescriptor

const file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDesc = "" +
	"\n" +
	"Ienvoy/extensions/health_checkers/dynamic_modules/v3/dynamic_modules.proto\x123envoy.extensions.health_checkers.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\"\x95\x02\n" +
	"\x18DynamicModuleHealthCheck\x12v\n" +
	"\x15dynamic_module_config\x18\x01 \x01(\v28.envoy.extensions.dynamic_modules.v3.DynamicModuleConfigB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x13dynamicModuleConfig\x127\n" +
	"\x13health_checker_name\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x11healthCheckerName\x12H\n" +
	"\x15health_checker_config\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\x13healthCheckerConfigB\xd0\x01\xba\x80\xc8\xd1\x06\x02\x10\x02\n" +
	"Aio.envoyproxy.envoy.extensions.health_checkers.dynamic_modules.v3B\x13DynamicModulesProtoP\x01Zlgithub.com/envoyproxy/go-control-plane/envoy/extensions/health_checkers/dynamic_modules/v3;dynamic_modulesv3b\x06proto3"

var (
	file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDescOnce sync.Once
	file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDescData []byte
)

func file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDescGZIP() []byte {
	file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDescOnce.Do(func() {
		file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDesc), len(file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDesc)))
	})
	return file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDescData
}

var file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_goTypes = []any{
	(*DynamicModuleHealthCheck)(nil), // 0: envoy.extensions.health_checkers.dynamic_modules.v3.DynamicModuleHealthCheck
	(*v3.DynamicModuleConfig)(nil),   // 1: envoy.extensions.dynamic_modules.v3.DynamicModuleConfig
	(*anypb.Any)(nil),                // 2: google.protobuf.Any
}
var file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_depIdxs = []int32{
	1, // 0: envoy.extensions.health_checkers.dynamic_modules.v3.DynamicModuleHealthCheck.dynamic_module_config:type_name -> envoy.extensions.dynamic_modules.v3.DynamicModuleConfig
	2, // 1: envoy.extensions.health_checkers.dynamic_modules.v3.DynamicModuleHealthCheck.health_checker_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_health_checkers_dynamic_modules_v3_dynamic_modules_proto_init() }
func file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_init() {
	if File_envoy_extensions_health_checkers_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_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDesc), len(file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_goTypes,
		DependencyIndexes: file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_depIdxs,
		MessageInfos:      file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_msgTypes,
	}.Build()
	File_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto = out.File
	file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_goTypes = nil
	file_envoy_extensions_health_checkers_dynamic_modules_v3_dynamic_modules_proto_depIdxs = nil
}
