// 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/udp/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)
)

type ProbeConf struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Port to send UDP Ping to (UDP Echo).  If running with the UDP server that
	// comes with cloudprober, it should be same as
	// ProberConfig.udp_echo_server_port.
	Port *int32 `protobuf:"varint,3,opt,name=port,def=31122" json:"port,omitempty"`
	// Number of sending side ports to use.
	NumTxPorts *int32 `protobuf:"varint,4,opt,name=num_tx_ports,json=numTxPorts,def=16" json:"num_tx_ports,omitempty"`
	// message max to account for MTU.
	MaxLength *int32 `protobuf:"varint,5,opt,name=max_length,json=maxLength,def=1300" json:"max_length,omitempty"`
	// Payload size
	PayloadSize *int32 `protobuf:"varint,6,opt,name=payload_size,json=payloadSize" json:"payload_size,omitempty"`
	// Changes the exported monitoring streams to be per port:
	// 1. Changes the streams names to total-per-port, success-per-port etc.
	// 2. Adds src_port and dst_port as stream labels.
	// Note that the field name is experimental and may change in the future.
	ExportMetricsByPort *bool `protobuf:"varint,7,opt,name=export_metrics_by_port,json=exportMetricsByPort,def=0" json:"export_metrics_by_port,omitempty"`
	// Whether to use all transmit ports per probe, per target.
	// Default is to probe each target once per probe and round-robin through the
	// source ports.
	// Setting this field to true changes the behavior to send traffic from all
	// ports to all targets in each probe.
	// For example, if num_tx_ports is set to 16, in every probe cycle, we'll send
	// 16 packets to every target (1 per tx port).
	// Note that setting this field to true will increase the probe traffic.
	UseAllTxPortsPerProbe *bool `protobuf:"varint,8,opt,name=use_all_tx_ports_per_probe,json=useAllTxPortsPerProbe,def=0" json:"use_all_tx_ports_per_probe,omitempty"`
	// maxTargets is the maximum number of targets supported by this probe type.
	// If there are more targets, they are pruned from the list to bring targets
	// list under maxTargets.  A large number of targets has impact on resource
	// consumption.
	MaxTargets    *int32 `protobuf:"varint,9,opt,name=max_targets,json=maxTargets,def=500" json:"max_targets,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

// Default values for ProbeConf fields.
const (
	Default_ProbeConf_Port                  = int32(31122)
	Default_ProbeConf_NumTxPorts            = int32(16)
	Default_ProbeConf_MaxLength             = int32(1300)
	Default_ProbeConf_ExportMetricsByPort   = bool(false)
	Default_ProbeConf_UseAllTxPortsPerProbe = bool(false)
	Default_ProbeConf_MaxTargets            = int32(500)
)

func (x *ProbeConf) Reset() {
	*x = ProbeConf{}
	mi := &file_github_com_cloudprober_cloudprober_probes_udp_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_udp_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_udp_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) GetNumTxPorts() int32 {
	if x != nil && x.NumTxPorts != nil {
		return *x.NumTxPorts
	}
	return Default_ProbeConf_NumTxPorts
}

func (x *ProbeConf) GetMaxLength() int32 {
	if x != nil && x.MaxLength != nil {
		return *x.MaxLength
	}
	return Default_ProbeConf_MaxLength
}

func (x *ProbeConf) GetPayloadSize() int32 {
	if x != nil && x.PayloadSize != nil {
		return *x.PayloadSize
	}
	return 0
}

func (x *ProbeConf) GetExportMetricsByPort() bool {
	if x != nil && x.ExportMetricsByPort != nil {
		return *x.ExportMetricsByPort
	}
	return Default_ProbeConf_ExportMetricsByPort
}

func (x *ProbeConf) GetUseAllTxPortsPerProbe() bool {
	if x != nil && x.UseAllTxPortsPerProbe != nil {
		return *x.UseAllTxPortsPerProbe
	}
	return Default_ProbeConf_UseAllTxPortsPerProbe
}

func (x *ProbeConf) GetMaxTargets() int32 {
	if x != nil && x.MaxTargets != nil {
		return *x.MaxTargets
	}
	return Default_ProbeConf_MaxTargets
}

var File_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto protoreflect.FileDescriptor

const file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDesc = "" +
	"\n" +
	"@github.com/cloudprober/cloudprober/probes/udp/proto/config.proto\x12\x16cloudprober.probes.udp\"\xb8\x02\n" +
	"\tProbeConf\x12\x19\n" +
	"\x04port\x18\x03 \x01(\x05:\x0531122R\x04port\x12$\n" +
	"\fnum_tx_ports\x18\x04 \x01(\x05:\x0216R\n" +
	"numTxPorts\x12#\n" +
	"\n" +
	"max_length\x18\x05 \x01(\x05:\x041300R\tmaxLength\x12!\n" +
	"\fpayload_size\x18\x06 \x01(\x05R\vpayloadSize\x12:\n" +
	"\x16export_metrics_by_port\x18\a \x01(\b:\x05falseR\x13exportMetricsByPort\x12@\n" +
	"\x1ause_all_tx_ports_per_probe\x18\b \x01(\b:\x05falseR\x15useAllTxPortsPerProbe\x12$\n" +
	"\vmax_targets\x18\t \x01(\x05:\x03500R\n" +
	"maxTargetsB5Z3github.com/cloudprober/cloudprober/probes/udp/proto"

var (
	file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDescOnce sync.Once
	file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDescData []byte
)

func file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDescGZIP() []byte {
	file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDescOnce.Do(func() {
		file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDesc)))
	})
	return file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDescData
}

var file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_goTypes = []any{
	(*ProbeConf)(nil), // 0: cloudprober.probes.udp.ProbeConf
}
var file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_init() }
func file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_init() {
	if File_github_com_cloudprober_cloudprober_probes_udp_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_udp_proto_config_proto_rawDesc), len(file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_goTypes,
		DependencyIndexes: file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_depIdxs,
		MessageInfos:      file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_msgTypes,
	}.Build()
	File_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto = out.File
	file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_goTypes = nil
	file_github_com_cloudprober_cloudprober_probes_udp_proto_config_proto_depIdxs = nil
}
