github.com/google/cloudprober@v0.11.3/probes/udp/proto/config.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.26.0
     4  // 	protoc        v3.17.3
     5  // source: github.com/google/cloudprober/probes/udp/proto/config.proto
     6  
     7  package proto
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type ProbeConf struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	// Port to send UDP Ping to (UDP Echo).  If running with the UDP server that
    29  	// comes with cloudprober, it should be same as
    30  	// ProberConfig.udp_echo_server_port.
    31  	Port *int32 `protobuf:"varint,3,opt,name=port,def=31122" json:"port,omitempty"`
    32  	// Number of sending side ports to use.
    33  	NumTxPorts *int32 `protobuf:"varint,4,opt,name=num_tx_ports,json=numTxPorts,def=16" json:"num_tx_ports,omitempty"`
    34  	// message max to account for MTU.
    35  	MaxLength *int32 `protobuf:"varint,5,opt,name=max_length,json=maxLength,def=1300" json:"max_length,omitempty"`
    36  	// Payload size
    37  	PayloadSize *int32 `protobuf:"varint,6,opt,name=payload_size,json=payloadSize" json:"payload_size,omitempty"`
    38  	// Changes the exported monitoring streams to be per port:
    39  	// 1. Changes the streams names to total-per-port, success-per-port etc.
    40  	// 2. Adds src_port and dst_port as stream labels.
    41  	// Note that the field name is experimental and may change in the future.
    42  	ExportMetricsByPort *bool `protobuf:"varint,7,opt,name=export_metrics_by_port,json=exportMetricsByPort,def=0" json:"export_metrics_by_port,omitempty"`
    43  	// Whether to use all transmit ports per probe, per target.
    44  	// Default is to probe each target once per probe and round-robin through the
    45  	// source ports.
    46  	// Setting this field to true changes the behavior to send traffic from all
    47  	// ports to all targets in each probe.
    48  	// For example, if num_tx_ports is set to 16, in every probe cycle, we'll send
    49  	// 16 packets to every target (1 per tx port).
    50  	// Note that setting this field to true will increase the probe traffic.
    51  	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"`
    52  }
    53  
    54  // Default values for ProbeConf fields.
    55  const (
    56  	Default_ProbeConf_Port                  = int32(31122)
    57  	Default_ProbeConf_NumTxPorts            = int32(16)
    58  	Default_ProbeConf_MaxLength             = int32(1300)
    59  	Default_ProbeConf_ExportMetricsByPort   = bool(false)
    60  	Default_ProbeConf_UseAllTxPortsPerProbe = bool(false)
    61  )
    62  
    63  func (x *ProbeConf) Reset() {
    64  	*x = ProbeConf{}
    65  	if protoimpl.UnsafeEnabled {
    66  		mi := &file_github_com_google_cloudprober_probes_udp_proto_config_proto_msgTypes[0]
    67  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    68  		ms.StoreMessageInfo(mi)
    69  	}
    70  }
    71  
    72  func (x *ProbeConf) String() string {
    73  	return protoimpl.X.MessageStringOf(x)
    74  }
    75  
    76  func (*ProbeConf) ProtoMessage() {}
    77  
    78  func (x *ProbeConf) ProtoReflect() protoreflect.Message {
    79  	mi := &file_github_com_google_cloudprober_probes_udp_proto_config_proto_msgTypes[0]
    80  	if protoimpl.UnsafeEnabled && x != nil {
    81  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    82  		if ms.LoadMessageInfo() == nil {
    83  			ms.StoreMessageInfo(mi)
    84  		}
    85  		return ms
    86  	}
    87  	return mi.MessageOf(x)
    88  }
    89  
    90  // Deprecated: Use ProbeConf.ProtoReflect.Descriptor instead.
    91  func (*ProbeConf) Descriptor() ([]byte, []int) {
    92  	return file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDescGZIP(), []int{0}
    93  }
    94  
    95  func (x *ProbeConf) GetPort() int32 {
    96  	if x != nil && x.Port != nil {
    97  		return *x.Port
    98  	}
    99  	return Default_ProbeConf_Port
   100  }
   101  
   102  func (x *ProbeConf) GetNumTxPorts() int32 {
   103  	if x != nil && x.NumTxPorts != nil {
   104  		return *x.NumTxPorts
   105  	}
   106  	return Default_ProbeConf_NumTxPorts
   107  }
   108  
   109  func (x *ProbeConf) GetMaxLength() int32 {
   110  	if x != nil && x.MaxLength != nil {
   111  		return *x.MaxLength
   112  	}
   113  	return Default_ProbeConf_MaxLength
   114  }
   115  
   116  func (x *ProbeConf) GetPayloadSize() int32 {
   117  	if x != nil && x.PayloadSize != nil {
   118  		return *x.PayloadSize
   119  	}
   120  	return 0
   121  }
   122  
   123  func (x *ProbeConf) GetExportMetricsByPort() bool {
   124  	if x != nil && x.ExportMetricsByPort != nil {
   125  		return *x.ExportMetricsByPort
   126  	}
   127  	return Default_ProbeConf_ExportMetricsByPort
   128  }
   129  
   130  func (x *ProbeConf) GetUseAllTxPortsPerProbe() bool {
   131  	if x != nil && x.UseAllTxPortsPerProbe != nil {
   132  		return *x.UseAllTxPortsPerProbe
   133  	}
   134  	return Default_ProbeConf_UseAllTxPortsPerProbe
   135  }
   136  
   137  var File_github_com_google_cloudprober_probes_udp_proto_config_proto protoreflect.FileDescriptor
   138  
   139  var file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDesc = []byte{
   140  	0x0a, 0x3b, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f,
   141  	0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f,
   142  	0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x2f, 0x75, 0x64, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   143  	0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x63,
   144  	0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x62, 0x65,
   145  	0x73, 0x2e, 0x75, 0x64, 0x70, 0x22, 0x92, 0x02, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x43,
   146  	0x6f, 0x6e, 0x66, 0x12, 0x19, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
   147  	0x05, 0x3a, 0x05, 0x33, 0x31, 0x31, 0x32, 0x32, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x24,
   148  	0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x78, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x04,
   149  	0x20, 0x01, 0x28, 0x05, 0x3a, 0x02, 0x31, 0x36, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x54, 0x78, 0x50,
   150  	0x6f, 0x72, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x67,
   151  	0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x3a, 0x04, 0x31, 0x33, 0x30, 0x30, 0x52, 0x09,
   152  	0x6d, 0x61, 0x78, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79,
   153  	0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52,
   154  	0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x3a, 0x0a, 0x16,
   155  	0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x5f, 0x62,
   156  	0x79, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61,
   157  	0x6c, 0x73, 0x65, 0x52, 0x13, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4d, 0x65, 0x74, 0x72, 0x69,
   158  	0x63, 0x73, 0x42, 0x79, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x40, 0x0a, 0x1a, 0x75, 0x73, 0x65, 0x5f,
   159  	0x61, 0x6c, 0x6c, 0x5f, 0x74, 0x78, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x5f, 0x70, 0x65, 0x72,
   160  	0x5f, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61,
   161  	0x6c, 0x73, 0x65, 0x52, 0x15, 0x75, 0x73, 0x65, 0x41, 0x6c, 0x6c, 0x54, 0x78, 0x50, 0x6f, 0x72,
   162  	0x74, 0x73, 0x50, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69,
   163  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
   164  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f, 0x62,
   165  	0x65, 0x73, 0x2f, 0x75, 0x64, 0x70, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   166  }
   167  
   168  var (
   169  	file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDescOnce sync.Once
   170  	file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDescData = file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDesc
   171  )
   172  
   173  func file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDescGZIP() []byte {
   174  	file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDescOnce.Do(func() {
   175  		file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDescData)
   176  	})
   177  	return file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDescData
   178  }
   179  
   180  var file_github_com_google_cloudprober_probes_udp_proto_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   181  var file_github_com_google_cloudprober_probes_udp_proto_config_proto_goTypes = []interface{}{
   182  	(*ProbeConf)(nil), // 0: cloudprober.probes.udp.ProbeConf
   183  }
   184  var file_github_com_google_cloudprober_probes_udp_proto_config_proto_depIdxs = []int32{
   185  	0, // [0:0] is the sub-list for method output_type
   186  	0, // [0:0] is the sub-list for method input_type
   187  	0, // [0:0] is the sub-list for extension type_name
   188  	0, // [0:0] is the sub-list for extension extendee
   189  	0, // [0:0] is the sub-list for field type_name
   190  }
   191  
   192  func init() { file_github_com_google_cloudprober_probes_udp_proto_config_proto_init() }
   193  func file_github_com_google_cloudprober_probes_udp_proto_config_proto_init() {
   194  	if File_github_com_google_cloudprober_probes_udp_proto_config_proto != nil {
   195  		return
   196  	}
   197  	if !protoimpl.UnsafeEnabled {
   198  		file_github_com_google_cloudprober_probes_udp_proto_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   199  			switch v := v.(*ProbeConf); i {
   200  			case 0:
   201  				return &v.state
   202  			case 1:
   203  				return &v.sizeCache
   204  			case 2:
   205  				return &v.unknownFields
   206  			default:
   207  				return nil
   208  			}
   209  		}
   210  	}
   211  	type x struct{}
   212  	out := protoimpl.TypeBuilder{
   213  		File: protoimpl.DescBuilder{
   214  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   215  			RawDescriptor: file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDesc,
   216  			NumEnums:      0,
   217  			NumMessages:   1,
   218  			NumExtensions: 0,
   219  			NumServices:   0,
   220  		},
   221  		GoTypes:           file_github_com_google_cloudprober_probes_udp_proto_config_proto_goTypes,
   222  		DependencyIndexes: file_github_com_google_cloudprober_probes_udp_proto_config_proto_depIdxs,
   223  		MessageInfos:      file_github_com_google_cloudprober_probes_udp_proto_config_proto_msgTypes,
   224  	}.Build()
   225  	File_github_com_google_cloudprober_probes_udp_proto_config_proto = out.File
   226  	file_github_com_google_cloudprober_probes_udp_proto_config_proto_rawDesc = nil
   227  	file_github_com_google_cloudprober_probes_udp_proto_config_proto_goTypes = nil
   228  	file_github_com_google_cloudprober_probes_udp_proto_config_proto_depIdxs = nil
   229  }