1
2
3
4
5
17 package common
18
19 import proto "github.com/golang/protobuf/proto"
20 import fmt "fmt"
21 import math "math"
22 import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor"
23
24
25 var _ = proto.Marshal
26 var _ = fmt.Errorf
27 var _ = math.Inf
28
29
30
31
32
33 const _ = proto.ProtoPackageIsVersion2
34
35 type ProgrammingLanguage int32
36
37 const (
38 ProgrammingLanguage_INVALID ProgrammingLanguage = 0
39 ProgrammingLanguage_GO ProgrammingLanguage = 1
40 ProgrammingLanguage_Java ProgrammingLanguage = 2
41 )
42
43 var ProgrammingLanguage_name = map[int32]string{
44 0: "INVALID",
45 1: "GO",
46 2: "Java",
47 }
48 var ProgrammingLanguage_value = map[string]int32{
49 "INVALID": 0,
50 "GO": 1,
51 "Java": 2,
52 }
53
54 func (x ProgrammingLanguage) String() string {
55 return proto.EnumName(ProgrammingLanguage_name, int32(x))
56 }
57 func (ProgrammingLanguage) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
58
59 type Language int32
60
61 const (
62 Language_UNKNOWN Language = 0
63 Language_ENGLISH_UK Language = 1
64 Language_GERMAN Language = 2
65 )
66
67 var Language_name = map[int32]string{
68 0: "UNKNOWN",
69 1: "ENGLISH_UK",
70 2: "GERMAN",
71 }
72 var Language_value = map[string]int32{
73 "UNKNOWN": 0,
74 "ENGLISH_UK": 1,
75 "GERMAN": 2,
76 }
77
78 func (x Language) String() string {
79 return proto.EnumName(Language_name, int32(x))
80 }
81 func (Language) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
82
83 type Currency int32
84
85 const (
86 Currency_UNKNOWN_CURRENCY Currency = 0
87 Currency_GBP Currency = 1
88 Currency_EUR Currency = 2
89 Currency_USD Currency = 3
90 )
91
92 var Currency_name = map[int32]string{
93 0: "UNKNOWN_CURRENCY",
94 1: "GBP",
95 2: "EUR",
96 3: "USD",
97 }
98 var Currency_value = map[string]int32{
99 "UNKNOWN_CURRENCY": 0,
100 "GBP": 1,
101 "EUR": 2,
102 "USD": 3,
103 }
104
105 func (x Currency) String() string {
106 return proto.EnumName(Currency_name, int32(x))
107 }
108 func (Currency) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
109
110 type Health int32
111
112 const (
113 Health_UNKNOWN_HEALTH Health = 0
114 Health_STARTING Health = 1
115 Health_READY Health = 2
116 Health_STOPPING Health = 3
117 )
118
119 var Health_name = map[int32]string{
120 0: "UNKNOWN_HEALTH",
121 1: "STARTING",
122 2: "READY",
123 3: "STOPPING",
124 }
125 var Health_value = map[string]int32{
126 "UNKNOWN_HEALTH": 0,
127 "STARTING": 1,
128 "READY": 2,
129 "STOPPING": 3,
130 }
131
132 func (x Health) String() string {
133 return proto.EnumName(Health_name, int32(x))
134 }
135 func (Health) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
136
137
138 type Void struct {
139 }
140
141 func (m *Void) Reset() { *m = Void{} }
142 func (m *Void) String() string { return proto.CompactTextString(m) }
143 func (*Void) ProtoMessage() {}
144 func (*Void) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
145
146
147
148
149
150
151
152
153
154
155
156 type CPULoad struct {
157 Avg1 float64 `protobuf:"fixed64,1,opt,name=Avg1" json:"Avg1,omitempty"`
158 Avg5 float64 `protobuf:"fixed64,2,opt,name=Avg5" json:"Avg5,omitempty"`
159 Avg15 float64 `protobuf:"fixed64,3,opt,name=Avg15" json:"Avg15,omitempty"`
160 CPUCount uint32 `protobuf:"varint,4,opt,name=CPUCount" json:"CPUCount,omitempty"`
161 PerCPU float64 `protobuf:"fixed64,5,opt,name=PerCPU" json:"PerCPU,omitempty"`
162 User uint64 `protobuf:"varint,6,opt,name=User" json:"User,omitempty"`
163 Nice uint64 `protobuf:"varint,7,opt,name=Nice" json:"Nice,omitempty"`
164 System uint64 `protobuf:"varint,8,opt,name=System" json:"System,omitempty"`
165 Idle uint64 `protobuf:"varint,9,opt,name=Idle" json:"Idle,omitempty"`
166 IOWait uint64 `protobuf:"varint,10,opt,name=IOWait" json:"IOWait,omitempty"`
167 IRQ uint64 `protobuf:"varint,11,opt,name=IRQ" json:"IRQ,omitempty"`
168 SoftIRQ uint64 `protobuf:"varint,12,opt,name=SoftIRQ" json:"SoftIRQ,omitempty"`
169 Sum uint64 `protobuf:"varint,13,opt,name=Sum" json:"Sum,omitempty"`
170 RawSum uint64 `protobuf:"varint,14,opt,name=RawSum" json:"RawSum,omitempty"`
171 IdleTime float64 `protobuf:"fixed64,15,opt,name=IdleTime" json:"IdleTime,omitempty"`
172 }
173
174 func (m *CPULoad) Reset() { *m = CPULoad{} }
175 func (m *CPULoad) String() string { return proto.CompactTextString(m) }
176 func (*CPULoad) ProtoMessage() {}
177 func (*CPULoad) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
178
179 func (m *CPULoad) GetAvg1() float64 {
180 if m != nil {
181 return m.Avg1
182 }
183 return 0
184 }
185
186 func (m *CPULoad) GetAvg5() float64 {
187 if m != nil {
188 return m.Avg5
189 }
190 return 0
191 }
192
193 func (m *CPULoad) GetAvg15() float64 {
194 if m != nil {
195 return m.Avg15
196 }
197 return 0
198 }
199
200 func (m *CPULoad) GetCPUCount() uint32 {
201 if m != nil {
202 return m.CPUCount
203 }
204 return 0
205 }
206
207 func (m *CPULoad) GetPerCPU() float64 {
208 if m != nil {
209 return m.PerCPU
210 }
211 return 0
212 }
213
214 func (m *CPULoad) GetUser() uint64 {
215 if m != nil {
216 return m.User
217 }
218 return 0
219 }
220
221 func (m *CPULoad) GetNice() uint64 {
222 if m != nil {
223 return m.Nice
224 }
225 return 0
226 }
227
228 func (m *CPULoad) GetSystem() uint64 {
229 if m != nil {
230 return m.System
231 }
232 return 0
233 }
234
235 func (m *CPULoad) GetIdle() uint64 {
236 if m != nil {
237 return m.Idle
238 }
239 return 0
240 }
241
242 func (m *CPULoad) GetIOWait() uint64 {
243 if m != nil {
244 return m.IOWait
245 }
246 return 0
247 }
248
249 func (m *CPULoad) GetIRQ() uint64 {
250 if m != nil {
251 return m.IRQ
252 }
253 return 0
254 }
255
256 func (m *CPULoad) GetSoftIRQ() uint64 {
257 if m != nil {
258 return m.SoftIRQ
259 }
260 return 0
261 }
262
263 func (m *CPULoad) GetSum() uint64 {
264 if m != nil {
265 return m.Sum
266 }
267 return 0
268 }
269
270 func (m *CPULoad) GetRawSum() uint64 {
271 if m != nil {
272 return m.RawSum
273 }
274 return 0
275 }
276
277 func (m *CPULoad) GetIdleTime() float64 {
278 if m != nil {
279 return m.IdleTime
280 }
281 return 0
282 }
283
284
285
286 type Status struct {
287
288
289
290
291 Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
292
293
294
295 ErrorCode int32 `protobuf:"varint,2,opt,name=ErrorCode" json:"ErrorCode,omitempty"`
296
297
298
299 ErrorDescription string `protobuf:"bytes,3,opt,name=ErrorDescription" json:"ErrorDescription,omitempty"`
300 }
301
302 func (m *Status) Reset() { *m = Status{} }
303 func (m *Status) String() string { return proto.CompactTextString(m) }
304 func (*Status) ProtoMessage() {}
305 func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
306
307 func (m *Status) GetSuccess() bool {
308 if m != nil {
309 return m.Success
310 }
311 return false
312 }
313
314 func (m *Status) GetErrorCode() int32 {
315 if m != nil {
316 return m.ErrorCode
317 }
318 return 0
319 }
320
321 func (m *Status) GetErrorDescription() string {
322 if m != nil {
323 return m.ErrorDescription
324 }
325 return ""
326 }
327
328 type Date struct {
329 Day uint32 `protobuf:"varint,1,opt,name=Day" json:"Day,omitempty"`
330 Month uint32 `protobuf:"varint,2,opt,name=Month" json:"Month,omitempty"`
331 Year uint32 `protobuf:"varint,3,opt,name=Year" json:"Year,omitempty"`
332 }
333
334 func (m *Date) Reset() { *m = Date{} }
335 func (m *Date) String() string { return proto.CompactTextString(m) }
336 func (*Date) ProtoMessage() {}
337 func (*Date) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
338
339 func (m *Date) GetDay() uint32 {
340 if m != nil {
341 return m.Day
342 }
343 return 0
344 }
345
346 func (m *Date) GetMonth() uint32 {
347 if m != nil {
348 return m.Month
349 }
350 return 0
351 }
352
353 func (m *Date) GetYear() uint32 {
354 if m != nil {
355 return m.Year
356 }
357 return 0
358 }
359
360 var E_SqlType = &proto.ExtensionDesc{
361 ExtendedType: (*google_protobuf.FieldOptions)(nil),
362 ExtensionType: (*string)(nil),
363 Field: 51235,
364 Name: "common.sql_type",
365 Tag: "bytes,51235,opt,name=sql_type,json=sqlType",
366 Filename: "golang.conradwood.net/apis/common/common.proto",
367 }
368
369 var E_SqlReference = &proto.ExtensionDesc{
370 ExtendedType: (*google_protobuf.FieldOptions)(nil),
371 ExtensionType: (*string)(nil),
372 Field: 51236,
373 Name: "common.sql_reference",
374 Tag: "bytes,51236,opt,name=sql_reference,json=sqlReference",
375 Filename: "golang.conradwood.net/apis/common/common.proto",
376 }
377
378 var E_SqlUnique = &proto.ExtensionDesc{
379 ExtendedType: (*google_protobuf.FieldOptions)(nil),
380 ExtensionType: (*string)(nil),
381 Field: 51237,
382 Name: "common.sql_unique",
383 Tag: "bytes,51237,opt,name=sql_unique,json=sqlUnique",
384 Filename: "golang.conradwood.net/apis/common/common.proto",
385 }
386
387 var E_SqlIgnore = &proto.ExtensionDesc{
388 ExtendedType: (*google_protobuf.FieldOptions)(nil),
389 ExtensionType: (*string)(nil),
390 Field: 51238,
391 Name: "common.sql_ignore",
392 Tag: "bytes,51238,opt,name=sql_ignore,json=sqlIgnore",
393 Filename: "golang.conradwood.net/apis/common/common.proto",
394 }
395
396 var E_SqlName = &proto.ExtensionDesc{
397 ExtendedType: (*google_protobuf.FieldOptions)(nil),
398 ExtensionType: (*string)(nil),
399 Field: 51239,
400 Name: "common.sql_name",
401 Tag: "bytes,51239,opt,name=sql_name,json=sqlName",
402 Filename: "golang.conradwood.net/apis/common/common.proto",
403 }
404
405 var E_SqlNullreference = &proto.ExtensionDesc{
406 ExtendedType: (*google_protobuf.FieldOptions)(nil),
407 ExtensionType: (*string)(nil),
408 Field: 51240,
409 Name: "common.sql_nullreference",
410 Tag: "bytes,51240,opt,name=sql_nullreference,json=sqlNullreference",
411 Filename: "golang.conradwood.net/apis/common/common.proto",
412 }
413
414 func init() {
415 proto.RegisterType((*Void)(nil), "common.Void")
416 proto.RegisterType((*CPULoad)(nil), "common.CPULoad")
417 proto.RegisterType((*Status)(nil), "common.Status")
418 proto.RegisterType((*Date)(nil), "common.Date")
419 proto.RegisterEnum("common.ProgrammingLanguage", ProgrammingLanguage_name, ProgrammingLanguage_value)
420 proto.RegisterEnum("common.Language", Language_name, Language_value)
421 proto.RegisterEnum("common.Currency", Currency_name, Currency_value)
422 proto.RegisterEnum("common.Health", Health_name, Health_value)
423 proto.RegisterExtension(E_SqlType)
424 proto.RegisterExtension(E_SqlReference)
425 proto.RegisterExtension(E_SqlUnique)
426 proto.RegisterExtension(E_SqlIgnore)
427 proto.RegisterExtension(E_SqlName)
428 proto.RegisterExtension(E_SqlNullreference)
429 }
430
431 func init() { proto.RegisterFile("golang.conradwood.net/apis/common/common.proto", fileDescriptor0) }
432
433 var fileDescriptor0 = []byte{
434
435 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x6e, 0xa3, 0x46,
436 0x18, 0x35, 0xfe, 0xc1, 0xf8, 0xdb, 0x38, 0x9d, 0x4e, 0xab, 0x0a, 0xad, 0x5a, 0xc9, 0xeb, 0xab,
437 0xc8, 0x17, 0x58, 0xd5, 0x36, 0x37, 0xae, 0x54, 0xc9, 0xc1, 0x5e, 0x9b, 0xae, 0x17, 0xd3, 0xc1,
438 0x6c, 0x94, 0xde, 0x44, 0x13, 0x33, 0xa1, 0x48, 0xc0, 0xd8, 0x03, 0x24, 0xf2, 0x5b, 0xf4, 0x1d,
439 0xfa, 0xfb, 0x4a, 0x7d, 0x9b, 0x6a, 0x06, 0x9c, 0x5a, 0xea, 0x85, 0xf7, 0x8a, 0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0x47, 0xd3, 0xe4, 0x07, 0x00, 0x99, 0x52, 0x66, 0xf1, 0xbe,
474 0x3c, 0x1b, 0xf1, 0x47, 0x1d, 0xd1, 0xcb, 0xf7, 0x49, 0xa0, 0x1c, 0x47, 0x7f, 0x1c, 0x65, 0x5c,
475 0x9c, 0xf5, 0xff, 0x79, 0xe2, 0x77, 0x94, 0xe3, 0xd8, 0x40, 0x46, 0xd3, 0xb3, 0xee, 0xbf, 0x4e,
476 0x1a, 0x70, 0x69, 0xca, 0x26, 0x2b, 0xf8, 0x5c, 0x79, 0xcb, 0x24, 0xf9, 0xe4, 0x16, 0xfe, 0xae,
477 0x43, 0x90, 0x0c, 0x39, 0x35, 0xde, 0xbc, 0x83, 0x37, 0x19, 0x2b, 0x4e, 0xef, 0xb9, 0xfa, 0xe6,
478 0x93, 0x57, 0x9d, 0x55, 0xdd, 0x6a, 0x3f, 0xbf, 0x39, 0x7b, 0x1b, 0x3e, 0xe8, 0x6a, 0xe3, 0xb7,
479 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x8d, 0x30, 0x32, 0xdf, 0x39, 0x05, 0x00, 0x00,
480 }
481
View as plain text