// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.7
// 	protoc        v5.27.5
// source: github.com/cloudprober/cloudprober/probes/udplistener/proto/config.proto

package proto

import (
	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)
)

// Probe response to an incoming packet: echo back or discard.
type ProbeConf_Type int32

const (
	ProbeConf_INVALID ProbeConf_Type = 0
	ProbeConf_ECHO    ProbeConf_Type = 1
	ProbeConf_DISCARD ProbeConf_Type = 2
)

// Enum value maps for ProbeConf_Type.
var (
	ProbeConf_Type_name = map[int32]string{
		0: "INVALID",
		1: "ECHO",
		2: "DISCARD",
	}
	ProbeConf_Type_value = map[string]int32{
		"INVALID": 0,
		"ECHO":    1,
		"DISCARD": 2,
	}
)

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

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

func (ProbeConf_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_enumTypes[0].Descriptor()
}

func (ProbeConf_Type) Type() protoreflect.EnumType {
	return &file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_enumTypes[0]
}

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

// Deprecated: Do not use.
func (x *ProbeConf_Type) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = ProbeConf_Type(num)
	return nil
}

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

type ProbeConf struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Port to listen.
	Port *int32          `protobuf:"varint,3,opt,name=port,def=32212" json:"port,omitempty"`
	Type *ProbeConf_Type `protobuf:"varint,4,opt,name=type,enum=cloudprober.probes.udplistener.ProbeConf_Type" json:"type,omitempty"`
	// Number of packets sent in a single probe.
	PacketsPerProbe *int32 `protobuf:"varint,5,opt,name=packets_per_probe,json=packetsPerProbe,def=1" json:"packets_per_probe,omitempty"`
	unknownFields   protoimpl.UnknownFields
	sizeCache       protoimpl.SizeCache
}

// Default values for ProbeConf fields.
const (
	Default_ProbeConf_Port            = int32(32212)
	Default_ProbeConf_PacketsPerProbe = int32(1)
)

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

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

func (*ProbeConf) ProtoMessage() {}

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

func (x *ProbeConf) GetPort() int32 {
	if x != nil && x.Port != nil {
		return *x.Port
	}
	return Default_ProbeConf_Port
}

func (x *ProbeConf) GetType() ProbeConf_Type {
	if x != nil && x.Type != nil {
		return *x.Type
	}
	return ProbeConf_INVALID
}

func (x *ProbeConf) GetPacketsPerProbe() int32 {
	if x != nil && x.PacketsPerProbe != nil {
		return *x.PacketsPerProbe
	}
	return Default_ProbeConf_PacketsPerProbe
}

var File_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto protoreflect.FileDescriptor

const file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDesc = "" +
	"\n" +
	"Hgithub.com/cloudprober/cloudprober/probes/udplistener/proto/config.proto\x12\x1ecloudprober.probes.udplistener\"\xc5\x01\n" +
	"\tProbeConf\x12\x19\n" +
	"\x04port\x18\x03 \x01(\x05:\x0532212R\x04port\x12B\n" +
	"\x04type\x18\x04 \x01(\x0e2..cloudprober.probes.udplistener.ProbeConf.TypeR\x04type\x12-\n" +
	"\x11packets_per_probe\x18\x05 \x01(\x05:\x011R\x0fpacketsPerProbe\"*\n" +
	"\x04Type\x12\v\n" +
	"\aINVALID\x10\x00\x12\b\n" +
	"\x04ECHO\x10\x01\x12\v\n" +
	"\aDISCARD\x10\x02B=Z;github.com/cloudprober/cloudprober/probes/udplistener/proto"

var (
	file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescOnce sync.Once
	file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescData []byte
)

func file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescGZIP() []byte {
	file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescOnce.Do(func() {
		file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDesc)))
	})
	return file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDescData
}

var file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_goTypes = []any{
	(ProbeConf_Type)(0), // 0: cloudprober.probes.udplistener.ProbeConf.Type
	(*ProbeConf)(nil),   // 1: cloudprober.probes.udplistener.ProbeConf
}
var file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_depIdxs = []int32{
	0, // 0: cloudprober.probes.udplistener.ProbeConf.type:type_name -> cloudprober.probes.udplistener.ProbeConf.Type
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_init() }
func file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_init() {
	if File_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_goTypes,
		DependencyIndexes: file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_depIdxs,
		EnumInfos:         file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_enumTypes,
		MessageInfos:      file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_msgTypes,
	}.Build()
	File_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto = out.File
	file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_goTypes = nil
	file_github_com_cloudprober_cloudprober_probes_udplistener_proto_config_proto_depIdxs = nil
}
