forked from erda-project/erda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcmp_alert.form.pb.go
71 lines (63 loc) · 2.02 KB
/
cmp_alert.form.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
// Code generated by protoc-gen-go-form. DO NOT EDIT.
// Source: cmp_alert.proto
package pb
import (
url "net/url"
urlenc "github.com/erda-project/erda-infra/pkg/urlenc"
pb "github.com/erda-project/erda-proto-go/core/monitor/alert/pb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the "github.com/erda-project/erda-infra/pkg/urlenc" package it is being compiled against.
var _ urlenc.URLValuesUnmarshaler = (*GetAlertConditionsRequest)(nil)
var _ urlenc.URLValuesUnmarshaler = (*GetAlertConditionsResponse)(nil)
var _ urlenc.URLValuesUnmarshaler = (*GetAlertConditionsValueRequest)(nil)
var _ urlenc.URLValuesUnmarshaler = (*GetAlertConditionsValueResponse)(nil)
// GetAlertConditionsRequest implement urlenc.URLValuesUnmarshaler.
func (m *GetAlertConditionsRequest) UnmarshalURLValues(prefix string, values url.Values) error {
for key, vals := range values {
if len(vals) > 0 {
switch prefix + key {
case "scopeType":
m.ScopeType = vals[0]
}
}
}
return nil
}
// GetAlertConditionsResponse implement urlenc.URLValuesUnmarshaler.
func (m *GetAlertConditionsResponse) UnmarshalURLValues(prefix string, values url.Values) error {
return nil
}
// GetAlertConditionsValueRequest implement urlenc.URLValuesUnmarshaler.
func (m *GetAlertConditionsValueRequest) UnmarshalURLValues(prefix string, values url.Values) error {
for key, vals := range values {
if len(vals) > 0 {
switch prefix + key {
case "condition":
m.Condition = vals[0]
case "index":
m.Index = vals[0]
}
}
}
return nil
}
// GetAlertConditionsValueResponse implement urlenc.URLValuesUnmarshaler.
func (m *GetAlertConditionsValueResponse) UnmarshalURLValues(prefix string, values url.Values) error {
for key, vals := range values {
if len(vals) > 0 {
switch prefix + key {
case "data":
if m.Data == nil {
m.Data = &pb.AlertConditionsValue{}
}
case "data.key":
if m.Data == nil {
m.Data = &pb.AlertConditionsValue{}
}
m.Data.Key = vals[0]
}
}
}
return nil
}