forked from google/cloudprober
/
config.pb.go
133 lines (114 loc) · 5 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/probes/udplistener/config.proto
/*
Package udplistener is a generated protocol buffer package.
It is generated from these files:
github.com/google/cloudprober/probes/udplistener/config.proto
It has these top-level messages:
ProbeConf
*/
package udplistener
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
// 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
)
var ProbeConf_Type_name = map[int32]string{
0: "INVALID",
1: "ECHO",
2: "DISCARD",
}
var 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 proto.EnumName(ProbeConf_Type_name, int32(x))
}
func (x *ProbeConf_Type) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(ProbeConf_Type_value, data, "ProbeConf_Type")
if err != nil {
return err
}
*x = ProbeConf_Type(value)
return nil
}
func (ProbeConf_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
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 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"`
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 = 32212
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) GetType() ProbeConf_Type {
if m != nil && m.Type != nil {
return *m.Type
}
return ProbeConf_INVALID
}
func init() {
proto.RegisterType((*ProbeConf)(nil), "cloudprober.probes.udplistener.ProbeConf")
proto.RegisterEnum("cloudprober.probes.udplistener.ProbeConf_Type", ProbeConf_Type_name, ProbeConf_Type_value)
}
func init() {
proto.RegisterFile("github.com/google/cloudprober/probes/udplistener/config.proto", fileDescriptor0)
}
var fileDescriptor0 = []byte{
// 249 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0xce, 0x4f,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