forked from google/cloudprober
/
config.pb.go
118 lines (101 loc) · 4.83 KB
/
config.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/probes/udp/config.proto
/*
Package udp is a generated protocol buffer package.
It is generated from these files:
github.com/google/cloudprober/probes/udp/config.proto
It has these top-level messages:
ProbeConf
*/
package udp
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ProbeConf struct {
// Export stats after these many milliseconds
StatsExportIntervalMsec *int32 `protobuf:"varint,2,opt,name=stats_export_interval_msec,json=statsExportIntervalMsec,def=10000" json:"stats_export_interval_msec,omitempty"`
// Port to send UDP Ping to (UDP Echo). Should be same as
// ProberConfig.udp_echo_server_port.
// TODO: Can we just read this from ProberConfig?
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"`
// IP proto: v4|v6. Temporary workaround till we add support in base probe proto.
IpVersion *int32 `protobuf:"varint,6,opt,name=ip_version,json=ipVersion,def=4" json:"ip_version,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *ProbeConf) Reset() { *m = ProbeConf{} }
func (m *ProbeConf) String() string { return proto.CompactTextString(m) }
func (*ProbeConf) ProtoMessage() {}
func (*ProbeConf) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
const Default_ProbeConf_StatsExportIntervalMsec int32 = 10000
const Default_ProbeConf_Port int32 = 31122
const Default_ProbeConf_NumTxPorts int32 = 16
const Default_ProbeConf_MaxLength int32 = 1300
const Default_ProbeConf_IpVersion int32 = 4
func (m *ProbeConf) GetStatsExportIntervalMsec() int32 {
if m != nil && m.StatsExportIntervalMsec != nil {
return *m.StatsExportIntervalMsec
}
return Default_ProbeConf_StatsExportIntervalMsec
}
func (m *ProbeConf) GetPort() int32 {
if m != nil && m.Port != nil {
return *m.Port
}
return Default_ProbeConf_Port
}
func (m *ProbeConf) GetNumTxPorts() int32 {
if m != nil && m.NumTxPorts != nil {
return *m.NumTxPorts
}
return Default_ProbeConf_NumTxPorts
}
func (m *ProbeConf) GetMaxLength() int32 {
if m != nil && m.MaxLength != nil {
return *m.MaxLength
}
return Default_ProbeConf_MaxLength
}
func (m *ProbeConf) GetIpVersion() int32 {
if m != nil && m.IpVersion != nil {
return *m.IpVersion
}
return Default_ProbeConf_IpVersion
}
func init() {
proto.RegisterType((*ProbeConf)(nil), "cloudprober.probes.udp.ProbeConf")
}
func init() {
proto.RegisterFile("github.com/google/cloudprober/probes/udp/config.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 247 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0xca, 0x3f, 0x4b, 0xfc, 0x30,
0x1c, 0xc7, 0x71, 0x7a, 0xbf, 0xf6, 0x07, 0xfd, 0xe2, 0x94, 0x41, 0xab, 0xd3, 0xa1, 0x0e, 0x4e,
0x6d, 0x7a, 0xa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