/
reason.pb.go
128 lines (109 loc) · 4.35 KB
/
reason.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: proto/feature/reason.proto
package feature
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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.ProtoPackageIsVersion3 // please upgrade the proto package
type Reason_Type int32
const (
Reason_TARGET Reason_Type = 0
Reason_RULE Reason_Type = 1
Reason_DEFAULT Reason_Type = 3
Reason_CLIENT Reason_Type = 4
Reason_OFF_VARIATION Reason_Type = 5
)
var Reason_Type_name = map[int32]string{
0: "TARGET",
1: "RULE",
3: "DEFAULT",
4: "CLIENT",
5: "OFF_VARIATION",
}
var Reason_Type_value = map[string]int32{
"TARGET": 0,
"RULE": 1,
"DEFAULT": 3,
"CLIENT": 4,
"OFF_VARIATION": 5,
}
func (x Reason_Type) String() string {
return proto.EnumName(Reason_Type_name, int32(x))
}
func (Reason_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_ba0b6765d89ba99e, []int{0, 0}
}
type Reason struct {
Type Reason_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bucketeer.feature.Reason_Type" json:"type,omitempty"`
RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Reason) Reset() { *m = Reason{} }
func (m *Reason) String() string { return proto.CompactTextString(m) }
func (*Reason) ProtoMessage() {}
func (*Reason) Descriptor() ([]byte, []int) {
return fileDescriptor_ba0b6765d89ba99e, []int{0}
}
func (m *Reason) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Reason.Unmarshal(m, b)
}
func (m *Reason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Reason.Marshal(b, m, deterministic)
}
func (m *Reason) XXX_Merge(src proto.Message) {
xxx_messageInfo_Reason.Merge(m, src)
}
func (m *Reason) XXX_Size() int {
return xxx_messageInfo_Reason.Size(m)
}
func (m *Reason) XXX_DiscardUnknown() {
xxx_messageInfo_Reason.DiscardUnknown(m)
}
var xxx_messageInfo_Reason proto.InternalMessageInfo
func (m *Reason) GetType() Reason_Type {
if m != nil {
return m.Type
}
return Reason_TARGET
}
func (m *Reason) GetRuleId() string {
if m != nil {
return m.RuleId
}
return ""
}
func init() {
proto.RegisterEnum("bucketeer.feature.Reason_Type", Reason_Type_name, Reason_Type_value)
proto.RegisterType((*Reason)(nil), "bucketeer.feature.Reason")
}
func init() { proto.RegisterFile("proto/feature/reason.proto", fileDescriptor_ba0b6765d89ba99e) }
var fileDescriptor_ba0b6765d89ba99e = []byte{
// 225 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x28, 0xca, 0x2f,
0xc9, 0xd7, 0x4f, 0x4b, 0x4d, 0x2c, 0x29, 0x2d, 0x4a, 0xd5, 0x2f, 0x4a, 0x4d, 0x2c, 0xce, 0xcf,
0xd3, 0x03, 0x0b, 0x0a, 0x09, 0x26, 0x95, 0x26, 0x67, 0xa7, 0x96, 0xa4, 0xa6, 0x16, 0xe9, 0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