@ -22,6 +22,7 @@ import (
math "math"
math_bits "math/bits"
reflect "reflect"
strconv "strconv"
strings "strings"
time "time"
)
@ -38,7 +39,35 @@ var _ = time.Kitchen
// proto package needs to be updated.
const _ = proto . GoGoProtoPackageIsVersion3 // please upgrade the proto package
type RulesRequest_RuleType int32
const (
AnyRule RulesRequest_RuleType = 0
AlertingRule RulesRequest_RuleType = 1
RecordingRule RulesRequest_RuleType = 2
)
var RulesRequest_RuleType_name = map [ int32 ] string {
0 : "AnyRule" ,
1 : "AlertingRule" ,
2 : "RecordingRule" ,
}
var RulesRequest_RuleType_value = map [ string ] int32 {
"AnyRule" : 0 ,
"AlertingRule" : 1 ,
"RecordingRule" : 2 ,
}
func ( RulesRequest_RuleType ) EnumDescriptor ( ) ( [ ] byte , [ ] int ) {
return fileDescriptor_ca810a0fd7057a73 , [ ] int { 0 , 0 }
}
type RulesRequest struct {
Filter RulesRequest_RuleType ` protobuf:"varint,1,opt,name=filter,proto3,enum=base.RulesRequest_RuleType" json:"filter,omitempty" `
RuleName [ ] string ` protobuf:"bytes,2,rep,name=rule_name,json=ruleName,proto3" json:"rule_name,omitempty" `
RuleGroup [ ] string ` protobuf:"bytes,3,rep,name=rule_group,json=ruleGroup,proto3" json:"rule_group,omitempty" `
File [ ] string ` protobuf:"bytes,4,rep,name=file,proto3" json:"file,omitempty" `
}
func ( m * RulesRequest ) Reset ( ) { * m = RulesRequest { } }
@ -73,6 +102,34 @@ func (m *RulesRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_RulesRequest proto . InternalMessageInfo
func ( m * RulesRequest ) GetFilter ( ) RulesRequest_RuleType {
if m != nil {
return m . Filter
}
return AnyRule
}
func ( m * RulesRequest ) GetRuleName ( ) [ ] string {
if m != nil {
return m . RuleName
}
return nil
}
func ( m * RulesRequest ) GetRuleGroup ( ) [ ] string {
if m != nil {
return m . RuleGroup
}
return nil
}
func ( m * RulesRequest ) GetFile ( ) [ ] string {
if m != nil {
return m . File
}
return nil
}
type RulesResponse struct {
Groups [ ] * GroupStateDesc ` protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty" `
}
@ -370,6 +427,7 @@ func (m *AlertStateDesc) GetValidUntil() time.Time {
}
func init ( ) {
proto . RegisterEnum ( "base.RulesRequest_RuleType" , RulesRequest_RuleType_name , RulesRequest_RuleType_value )
proto . RegisterType ( ( * RulesRequest ) ( nil ) , "base.RulesRequest" )
proto . RegisterType ( ( * RulesResponse ) ( nil ) , "base.RulesResponse" )
proto . RegisterType ( ( * GroupStateDesc ) ( nil ) , "base.GroupStateDesc" )
@ -380,52 +438,66 @@ func init() {
func init ( ) { proto . RegisterFile ( "pkg/ruler/base/ruler.proto" , fileDescriptor_ca810a0fd7057a73 ) }
var fileDescriptor_ca810a0fd7057a73 = [ ] byte {
// 682 bytes of a gzipped FileDescriptorProto
0x1f , 0x8b , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0xff , 0xb4 , 0x54 , 0x41 , 0x6f , 0xd3 , 0x30 ,
0x14 , 0x8e , 0xbb , 0xb6 , 0x6b , 0xdd , 0x31 , 0x24 , 0x6f , 0x42 , 0x59 , 0x01 , 0x77 , 0x2a , 0x97 , 0x09 ,
0xa1 , 0x44 , 0x0c , 0x84 , 0x84 , 0x10 , 0x42 , 0x9d , 0x36 , 0xb8 , 0xec , 0x80 , 0x32 , 0xe0 , 0x3a , 0xb9 ,
0xad , 0x97 , 0x45 , 0xf3 , 0xe2 , 0x60 , 0x3b , 0x95 , 0xb8 , 0xf1 , 0x13 , 0x76 , 0xe4 , 0xca , 0x8d , 0x9f ,
0xb2 , 0xe3 , 0x8e , 0x13 , 0x48 , 0x83 , 0x65 , 0x17 , 0x8e , 0xfb , 0x01 , 0x1c , 0x90 , 0xed , 0x64 , 0xc9 ,
0x60 , 0x1c , 0x2a , 0xb4 , 0x4b , 0x6b , 0xbf , 0xf7 , 0xbe , 0xef , 0x7b , 0xef , 0xb3 , 0x1d , 0xd8 , 0x4d ,
0xf6 , 0x42 , 0x5f , 0xa4 , 0x8c , 0x0a , 0x7f , 0x48 , 0x24 , 0xb5 , 0x4b , 0x2f , 0x11 , 0x5c , 0x71 , 0x54 ,
0xd7 , 0x91 , 0xee , 0x62 , 0xc8 , 0x43 , 0x6e , 0x02 , 0xbe , 0x5e , 0xd9 , 0x5c , 0x17 , 0x87 , 0x9c , 0x87 ,
0x8c , 0xfa , 0x66 , 0x37 , 0x4c , 0x77 , 0xfc , 0x71 , 0x2a , 0x88 , 0x8a , 0x78 , 0x9c , 0xe7 , 0x7b , 0x7f ,
0xe6 , 0x55 , 0xb4 , 0x4f , 0xa5 , 0x22 , 0xfb , 0x49 , 0x5e , 0x70 , 0x5b , 0x0b , 0x33 , 0x1e , 0x5a , 0xe6 ,
0x62 , 0x91 , 0x27 , 0xef , 0x96 , 0x5d , 0xe9 , 0x5f , 0x99 , 0x0c , 0xed , 0xbf , 0x4d , 0xf7 , 0xe7 , 0xe1 ,
0x5c , 0xa0 , 0xb7 , 0x01 , 0x7d , 0x9f , 0x52 , 0xa9 , 0xfa , 0xcf , 0xe1 , 0x8d , 0x7c , 0x2f , 0x13 , 0x1e ,
0x4b , 0x8a , 0x1e , 0xc0 , 0x66 , 0x28 , 0x78 , 0x9a , 0x48 , 0x17 , 0x2c , 0xcf , 0xac , 0x74 , 0x56 , 0x17 ,
0x3d , 0x3d , 0x8a , 0xf7 , 0x4a , 0xc7 , 0xb6 , 0x14 , 0x51 , 0x74 , 0x9d , 0xca , 0x51 , 0x90 , 0xd7 , 0xf4 ,
0x3f , 0xd7 , 0xe0 , 0xfc , 0xe5 , 0x14 , 0xba , 0x0f , 0x1b , 0x26 , 0xe9 , 0x82 , 0x65 , 0x60 , 0xf0 , 0x56 ,
0x5e , 0xab , 0x98 , 0x4a , 0x83 , 0xb7 , 0x25 , 0xe8 , 0x09 , 0x9c , 0x23 , 0x23 , 0x15 , 0x4d , 0xe8 , 0xb6 ,
0x29 , 0x72 , 0x6b , 0x46 , 0x72 , 0xc1 , 0x4a , 0x6a , 0x44 , 0xa9 , 0xd8 , 0xb1 , 0x85 , 0xa6 , 0x59 , 0xf4 ,
0x0e , 0x2e , 0xd0 , 0x09 , 0x61 , 0xa9 , 0xb1 , 0xed , 0x4d , 0x61 , 0x8f , 0x3b , 0x63 , 0x14 , 0xbb , 0x9e ,
0x35 , 0xd0 , 0x2b , 0x0c , 0xf4 , 0x2e , 0x2a , 0xd6 , 0x5a , 0x87 , 0x27 , 0x3d , 0xe7 , 0xe0 , 0x7b , 0x0f ,
0x04 , 0x57 , 0x11 , 0xa0 , 0x2d , 0x88 , 0xca , 0xf0 , 0x7a , 0x7e , 0x2c , 0x6e , 0xdd , 0xd0 , 0x2e , 0xfd ,
0x45 , 0x5b , 0x14 , 0x58 , 0xd6 , 0x4f , 0x9a , 0xf5 , 0x0a , 0x78 , 0xff , 0x5b , 0xcd , 0x7a , 0x5c , 0x5a ,
0x74 , 0x0f , 0xd6 , 0xf5 , 0xbc , 0xb9 , 0x43 , 0x37 , 0x2b , 0x0e , 0x99 , 0x51 , 0x4d , 0x12 , 0x2d , 0xc2 ,
0x86 , 0xd4 , 0x08 , 0xb7 , 0xb6 , 0x0c , 0x56 , 0xda , 0x81 , 0xdd , 0xa0 , 0x5b , 0xb0 , 0xb9 , 0x4b , 0x09 ,
0x53 , 0xbb , 0x66 , 0xd8 , 0x76 , 0x90 , 0xef , 0xd0 , 0x1d , 0xd8 , 0x66 , 0x44 , 0xaa , 0x0d , 0x21 , 0xb8 ,
0x30 , 0x0d , 0xb7 , 0x83 , 0x32 , 0xa0 , 0x0f , 0x95 , 0x30 , 0x2a , 0x94 , 0x74 , 0x1b , 0xd5 , 0x43 , 0x1d ,
0xe8 , 0x58 , 0xe5 , 0x50 , 0x6d , 0xcd , 0xbf , 0xdc , 0x6d , 0x5e , 0x8f , 0xbb , 0xb3 , 0xff , 0xe7 , 0xee ,
0xaf , 0x3a , 0x9c , 0xbf , 0x3c , 0x47 , 0xe9 , 0x1c , 0xa8 , 0x3a , 0xc7 , 0x60 , 0x93 , 0x91 , 0x21 , 0x65 ,
0xc5 , 0x2d , 0x5b , 0xf2 , 0x2e , 0x5e , 0xce , 0x26 , 0x0d , 0xc9 , 0xe8 , 0xc3 , 0xa6 , 0xce , 0xbe , 0x26 ,
0x91 , 0x58 , 0x7b , 0xaa , 0x15 , 0xbf , 0x9e , 0xf4 , 0x1e , 0x86 , 0x91 , 0xda , 0x4d , 0x87 , 0xde , 0x88 ,
0xef , 0xfb , 0xa1 , 0x20 , 0x3b , 0x24 , 0x26 , 0x3e , 0xe3 , 0x7b , 0x91 , 0x5f , 0x7d , 0x80 , 0x9e , 0xc1 ,
0x0d , 0xc6 , 0x24 , 0x51 , 0x54 , 0x04 , 0xb9 , 0x06 , 0x9a , 0xc0 , 0x0e , 0x89 , 0x63 , 0xae , 0x4c , 0x93 ,
0xd2 , 0x9d , 0xb9 , 0x46 , 0xc9 , 0xaa , 0x90 , 0x9e , 0x5d , 0x7b , 0x44 , 0xcd , 0x1d , 0x00 , 0x81 , 0xdd ,
0xa0 , 0x01 , 0x6c , 0xe7 , 0xef , 0x8c , 0x28 , 0xb7 , 0x31 , 0xc5 , 0x39 , 0xb6 , 0x2c , 0x6c , 0xa0 , 0xd0 ,
0x0b , 0xd8 , 0xda , 0x89 , 0x04 , 0x1d , 0x6b , 0x86 , 0x69 , 0x6e , 0xc2 , 0xac , 0x41 , 0x0d , 0x14 , 0xda ,
0x80 , 0x1d , 0x41 , 0x25 , 0x67 , 0x13 , 0xcb , 0x31 , 0x3b , 0x05 , 0x07 , 0x2c , 0x80 , 0x03 , 0x85 , 0x5e ,
0xc2 , 0x39 , 0x7d , 0xaf , 0xb7 , 0x25 , 0x8d , 0x95 , 0xe6 , 0x69 , 0x4d , 0xc3 , 0xa3 , 0x91 , 0x5b , 0x34 ,
0x56 , 0xb6 , 0x9d , 0x09 , 0x61 , 0xd1 , 0x78 , 0x3b , 0x8d , 0x55 , 0xc4 , 0xdc , 0xf6 , 0x34 , 0x34 , 0x06 ,
0xf8 , 0x56 , 0xe3 , 0x56 , 0x9f , 0xc1 , 0x86 , 0x7e , 0xb7 , 0x02 , 0xad , 0xda , 0x85 , 0x44 , 0xa8 , 0xfc ,
0x7a , 0x15 , 0x5f , 0xd9 , 0xee , 0xc2 , 0xa5 , 0x98 , 0xfd , 0xd2 , 0xf6 , 0x9d , 0xb5 , 0xc7 , 0x47 , 0xa7 ,
0xd8 , 0x39 , 0x3e , 0xc5 , 0xce , 0xf9 , 0x29 , 0x06 , 0x1f , 0x33 , 0x0c , 0xbe , 0x64 , 0x18 , 0x1c , 0x66 ,
0x18 , 0x1c , 0x65 , 0x18 , 0xfc , 0xc8 , 0x30 , 0xf8 , 0x99 , 0x61 , 0xe7 , 0x3c , 0xc3 , 0xe0 , 0xe0 , 0x0c ,
0x3b , 0x47 , 0x67 , 0xd8 , 0x39 , 0x3e , 0xc3 , 0xce , 0xb0 , 0x69 , 0x9a , 0x7b , 0xf4 , 0x3b , 0x00 , 0x00 ,
0xff , 0xff , 0x35 , 0xb6 , 0x62 , 0xce , 0x80 , 0x06 , 0x00 , 0x00 ,
// 791 bytes of a gzipped FileDescriptorProto
0x1f , 0x8b , 0x08 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x02 , 0xff , 0xb4 , 0x55 , 0x4f , 0x4f , 0xdb , 0x48 ,
0x14 , 0xf7 , 0xe4 , 0xbf , 0x27 , 0x81 , 0x65 , 0x07 , 0xb4 , 0x32 , 0x61 , 0x71 , 0xa2 , 0xec , 0x25 , 0x5a ,
0xad , 0x6c , 0x6d , 0x58 , 0xad , 0xb4 , 0xda , 0x5d , 0x55 , 0x41 , 0xd0 , 0x5e , 0x50 , 0x55 , 0x19 , 0xda ,
0x6b , 0x34 , 0x49 , 0x26 , 0xc6 , 0x62 , 0xe2 , 0x71 , 0xc7 , 0xe3 , 0x48 , 0xdc , 0xfa , 0x11 , 0x38 , 0xf6 ,
0xda , 0x5b , 0x3f , 0x0a , 0x47 , 0x7a , 0x43 , 0xad , 0x44 , 0x4b , 0xb8 , 0xf4 , 0xc8 , 0x07 , 0xe8 , 0xa1 ,
0x9a , 0x19 , 0x9b , 0x84 , 0x42 , 0x0f , 0x51 , 0xc5 , 0x05 , 0xe6 , 0xfd , 0xf9 , 0xfd , 0xde , 0x7b , 0xbf ,
0x79 , 0xe3 , 0xc0 , 0x7a , 0x74 , 0xe4 , 0xbb , 0x3c , 0xa1 , 0x84 , 0xbb , 0x7d , 0x1c , 0x13 , 0x7d , 0x74 ,
0x22 , 0xce , 0x04 , 0x43 , 0x05 , 0xe9 , 0xa9 , 0xaf , 0xf9 , 0xcc , 0x67 , 0xca , 0xe1 , 0xca , 0x93 , 0x8e ,
0xd5 , 0x6d , 0x9f , 0x31 , 0x9f , 0x12 , 0x57 , 0x59 , 0xfd , 0x64 , 0xe4 , 0x0e , 0x13 , 0x8e , 0x45 , 0xc0 ,
0xc2 , 0x34 , 0xde , 0xf8 , 0x36 , 0x2e , 0x82 , 0x31 , 0x89 , 0x05 , 0x1e , 0x47 , 0x69 , 0xc2 , 0x86 , 0x2c ,
0x4c , 0x99 , 0xaf , 0x99 , 0xb3 , 0x43 , 0x1a , 0xdc , 0x9c , 0x75 , 0x25 , 0xff , 0xc6 , 0x51 , 0x5f , 0xff ,
0xd7 , 0xe1 , 0xd6 , 0x3b , 0x00 , 0x6b , 0x9e , 0xb4 , 0x3d , 0xf2 , 0x32 , 0x21 , 0xb1 , 0x40 , 0x5b , 0xb0 ,
0x34 , 0x0a , 0xa8 , 0x20 , 0xdc , 0x02 , 0x4d , 0xd0 , 0x5e , 0xee , 0x6c , 0x38 , 0xb2 , 0x75 , 0x67 , 0x3e ,
0x47 , 0x19 , 0x07 , 0xc7 , 0x11 , 0xf1 , 0xd2 , 0x54 , 0xb4 , 0x01 , 0x4d , 0x49 , 0xda , 0x0b , 0xf1 , 0x98 ,
0x58 , 0xb9 , 0x66 , 0xbe , 0x6d , 0x7a , 0x15 , 0xe9 , 0x78 , 0x8a , 0xc7 , 0x04 , 0x6d , 0x42 , 0xa8 , 0x82 ,
0x3e , 0x67 , 0x49 , 0x64 , 0xe5 , 0x55 , 0x54 , 0xa5 , 0x3f , 0x91 , 0x0e , 0x84 , 0x60 , 0x61 , 0x14 , 0x50 ,
0x62 , 0x15 , 0x54 , 0x40 , 0x9d , 0x5b , 0xff , 0xc1 , 0x4a , 0x56 , 0x03 , 0x55 , 0x61 , 0xb9 , 0x1b , 0x1e ,
0x4b , 0x73 , 0xc5 , 0x40 , 0x2b , 0xb0 , 0xd6 , 0xa5 , 0x84 , 0x8b , 0x20 , 0xf4 , 0x95 , 0x07 , 0xa0 , 0x9f ,
0xe1 , 0x92 , 0x47 , 0x06 , 0x8c , 0x0f , 0x33 , 0x57 , 0xae , 0xf5 , 0x3f , 0x5c , 0x4a , 0xdb , 0x8d , 0x23 ,
0x16 , 0xc6 , 0x04 , 0xfd , 0x01 , 0x4b , 0xaa , 0x78 , 0x6c , 0x81 , 0x66 , 0xbe , 0x5d , 0xed , 0xac , 0xe9 ,
0x99 , 0x54 , 0xfd , 0x7d , 0x81 , 0x05 , 0xd9 , 0x21 , 0xf1 , 0xc0 , 0x4b , 0x73 , 0x5a , 0x6f , 0x72 , 0x70 ,
0xf9 , 0x76 , 0x08 , 0xfd , 0x0e , 0x8b , 0xba , 0x7b , 0xa9 , 0x89 , 0xc4 , 0x6b , 0x09 , 0xbd , 0x6c , 0x08 ,
0x85 , 0xd7 , 0x29 , 0xe8 , 0x6f , 0x58 , 0xc3 , 0x03 , 0x11 , 0x4c , 0x48 , 0x4f , 0x25 , 0x29 , 0x39 , 0xaa ,
0x9d , 0xd5 , 0x99 , 0x8c , 0xb3 , 0x8a , 0x55 , 0x9d , 0xa8 , 0x9a , 0x45 , 0x2f , 0xe0 , 0x2a , 0x99 , 0x60 ,
0x9a , 0xa8 , 0xab , 0x3f , 0xc8 , 0xae , 0xd8 , 0xca , 0xab , 0x8a , 0x75 , 0x47 , 0x2f , 0x81 , 0x93 , 0x2d ,
0x81 , 0x73 , 0x93 , 0xb1 , 0x5d , 0x39 , 0xbd , 0x68 , 0x18 , 0x27 , 0x1f , 0x1b , 0xc0 , 0xbb , 0x8f , 0x00 ,
0xed , 0x43 , 0x34 , 0x73 , 0xef , 0xa4 , 0xab , 0x65 , 0x15 , 0x14 , 0xed , 0xfa , 0x1d , 0xda , 0x2c , 0x41 ,
0xb3 , 0xbe , 0x96 , 0xac , 0xf7 , 0xc0 , 0x5b , 0x1f , 0x72 , 0x5a , 0xe3 , 0x99 , 0x44 , 0xbf , 0xc1 , 0x82 ,
0x9c , 0x37 , 0x55 , 0xe8 , 0xa7 , 0x39 , 0x85 , 0xd4 , 0xa8 , 0x2a , 0x88 , 0xd6 , 0x60 , 0x31 , 0x96 , 0x08 ,
0x2b , 0xd7 , 0x04 , 0x6d , 0xd3 , 0xd3 , 0x06 , 0xfa , 0x05 , 0x96 , 0x0e , 0x09 , 0xa6 , 0xe2 , 0x50 , 0x0d ,
0x6b , 0x7a , 0xa9 , 0x85 , 0x7e , 0x85 , 0x26 , 0xc5 , 0xb1 , 0xd8 , 0xe5 , 0x9c , 0x71 , 0xd5 , 0xb0 , 0xe9 ,
0xcd , 0x1c , 0xf2 , 0x52 , 0xb1 , 0x5c , 0x85 , 0xd8 , 0x2a , 0xce , 0x5f , 0xaa , 0x5a , 0x8f , 0xb9 , 0x4b ,
0xd5 , 0x39 , 0xdf , 0x53 , 0xb7 , 0xf4 , 0x30 , 0xea , 0x96 , 0x7f , 0x4c , 0xdd , 0x2f , 0x05 , 0xb8 , 0x7c ,
0x7b , 0x8e , 0x99 , 0x72 , 0x60 , 0x5e , 0x39 , 0x0a , 0x4b , 0x14 , 0xf7 , 0x09 , 0xcd , 0xb6 , 0x6c , 0xdd ,
0xb9 , 0x79 , 0xfd , 0x7b , 0xc4 , 0xc7 , 0x83 , 0xe3 , 0x3d , 0x19 , 0x7d , 0x86 , 0x03 , 0xbe , 0xfd , 0x8f ,
0xac , 0xf8 , 0xfe , 0xa2 , 0xf1 , 0xa7 , 0x1f , 0x88 , 0xc3 , 0xa4 , 0xef , 0x0c , 0xd8 , 0xd8 , 0xf5 , 0x39 ,
0x1e , 0xe1 , 0x10 , 0xbb , 0x94 , 0x1d , 0x05 , 0xee , 0xfc , 0x47 , 0xc4 , 0x51 , 0xb8 , 0xee , 0x10 , 0x47 ,
0x82 , 0x70 , 0x2f , 0xad , 0x81 , 0x26 , 0xb0 , 0x8a , 0xc3 , 0x90 , 0x09 , 0xd5 , 0x64 , 0xac , 0x5e , 0xf2 ,
0x43 , 0x95 , 0x9c , 0x2f , 0x24 , 0x67 , 0x97 , 0x1a , 0x11 , 0xb5 , 0x03 , 0xc0 , 0xd3 , 0x06 , 0xea , 0x42 ,
0x33 , 0x7d , 0x67 , 0x58 , 0x58 , 0xc5 , 0x05 , 0xee , 0xb1 , 0xa2 , 0x61 , 0x5d , 0x81 , 0x1e , 0xc1 , 0xca ,
0x28 , 0xe0 , 0x64 , 0x28 , 0x19 , 0x16 , 0xd9 , 0x84 , 0xb2 , 0x42 , 0x75 , 0x05 , 0xda , 0x85 , 0x55 , 0x4e ,
0x62 , 0x46 , 0x27 , 0x9a , 0xa3 , 0xbc , 0x00 , 0x07 , 0xcc , 0x80 , 0x5d , 0x81 , 0x1e , 0xc3 , 0x9a , 0xdc ,
0xeb , 0x5e , 0x4c , 0x42 , 0x21 , 0x79 , 0x2a , 0x8b , 0xf0 , 0x48 , 0xe4 , 0x3e , 0x09 , 0x85 , 0x6e , 0x67 ,
0x82 , 0x69 , 0x30 , 0xec , 0x25 , 0xa1 , 0x08 , 0xa8 , 0x65 , 0x2e , 0x42 , 0xa3 , 0x80 , 0xcf , 0x25 , 0xae ,
0xf3 , 0x2f , 0x2c , 0xca , 0x77 , 0xcb , 0x51 , 0x47 , 0x1f , 0x62 , 0x84 , 0xee , 0xfe , 0x08 , 0xd4 , 0x57 ,
0x6f , 0xf9 , 0xf4 , 0x97 , 0xb6 , 0x65 , 0x6c , 0xff , 0x75 , 0x76 , 0x69 , 0x1b , 0xe7 , 0x97 , 0xb6 , 0x71 ,
0x7d , 0x69 , 0x83 , 0x57 , 0x53 , 0x1b , 0xbc , 0x9d , 0xda , 0xe0 , 0x74 , 0x6a , 0x83 , 0xb3 , 0xa9 , 0x0d ,
0x3e , 0x4d , 0x6d , 0xf0 , 0x79 , 0x6a , 0x1b , 0xd7 , 0x53 , 0x1b , 0x9c , 0x5c , 0xd9 , 0xc6 , 0xd9 , 0x95 ,
0x6d , 0x9c , 0x5f , 0xd9 , 0x46 , 0xbf , 0xa4 , 0x9a , 0xdb , 0xfa , 0x1a , 0x00 , 0x00 , 0xff , 0xff , 0xf0 ,
0x4e , 0x48 , 0x39 , 0x44 , 0x07 , 0x00 , 0x00 ,
}
func ( x RulesRequest_RuleType ) String ( ) string {
s , ok := RulesRequest_RuleType_name [ int32 ( x ) ]
if ok {
return s
}
return strconv . Itoa ( int ( x ) )
}
func ( this * RulesRequest ) Equal ( that interface { } ) bool {
if that == nil {
return this == nil
@ -445,6 +517,33 @@ func (this *RulesRequest) Equal(that interface{}) bool {
} else if this == nil {
return false
}
if this . Filter != that1 . Filter {
return false
}
if len ( this . RuleName ) != len ( that1 . RuleName ) {
return false
}
for i := range this . RuleName {
if this . RuleName [ i ] != that1 . RuleName [ i ] {
return false
}
}
if len ( this . RuleGroup ) != len ( that1 . RuleGroup ) {
return false
}
for i := range this . RuleGroup {
if this . RuleGroup [ i ] != that1 . RuleGroup [ i ] {
return false
}
}
if len ( this . File ) != len ( that1 . File ) {
return false
}
for i := range this . File {
if this . File [ i ] != that1 . File [ i ] {
return false
}
}
return true
}
func ( this * RulesResponse ) Equal ( that interface { } ) bool {
@ -623,8 +722,12 @@ func (this *RulesRequest) GoString() string {
if this == nil {
return "nil"
}
s := make ( [ ] string , 0 , 4 )
s := make ( [ ] string , 0 , 8 )
s = append ( s , "&base.RulesRequest{" )
s = append ( s , "Filter: " + fmt . Sprintf ( "%#v" , this . Filter ) + ",\n" )
s = append ( s , "RuleName: " + fmt . Sprintf ( "%#v" , this . RuleName ) + ",\n" )
s = append ( s , "RuleGroup: " + fmt . Sprintf ( "%#v" , this . RuleGroup ) + ",\n" )
s = append ( s , "File: " + fmt . Sprintf ( "%#v" , this . File ) + ",\n" )
s = append ( s , "}" )
return strings . Join ( s , "" )
}
@ -804,6 +907,38 @@ func (m *RulesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if len ( m . File ) > 0 {
for iNdEx := len ( m . File ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( m . File [ iNdEx ] )
copy ( dAtA [ i : ] , m . File [ iNdEx ] )
i = encodeVarintRuler ( dAtA , i , uint64 ( len ( m . File [ iNdEx ] ) ) )
i --
dAtA [ i ] = 0x22
}
}
if len ( m . RuleGroup ) > 0 {
for iNdEx := len ( m . RuleGroup ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( m . RuleGroup [ iNdEx ] )
copy ( dAtA [ i : ] , m . RuleGroup [ iNdEx ] )
i = encodeVarintRuler ( dAtA , i , uint64 ( len ( m . RuleGroup [ iNdEx ] ) ) )
i --
dAtA [ i ] = 0x1a
}
}
if len ( m . RuleName ) > 0 {
for iNdEx := len ( m . RuleName ) - 1 ; iNdEx >= 0 ; iNdEx -- {
i -= len ( m . RuleName [ iNdEx ] )
copy ( dAtA [ i : ] , m . RuleName [ iNdEx ] )
i = encodeVarintRuler ( dAtA , i , uint64 ( len ( m . RuleName [ iNdEx ] ) ) )
i --
dAtA [ i ] = 0x12
}
}
if m . Filter != 0 {
i = encodeVarintRuler ( dAtA , i , uint64 ( m . Filter ) )
i --
dAtA [ i ] = 0x8
}
return len ( dAtA ) - i , nil
}
@ -1116,6 +1251,27 @@ func (m *RulesRequest) Size() (n int) {
}
var l int
_ = l
if m . Filter != 0 {
n += 1 + sovRuler ( uint64 ( m . Filter ) )
}
if len ( m . RuleName ) > 0 {
for _ , s := range m . RuleName {
l = len ( s )
n += 1 + l + sovRuler ( uint64 ( l ) )
}
}
if len ( m . RuleGroup ) > 0 {
for _ , s := range m . RuleGroup {
l = len ( s )
n += 1 + l + sovRuler ( uint64 ( l ) )
}
}
if len ( m . File ) > 0 {
for _ , s := range m . File {
l = len ( s )
n += 1 + l + sovRuler ( uint64 ( l ) )
}
}
return n
}
@ -1241,6 +1397,10 @@ func (this *RulesRequest) String() string {
return "nil"
}
s := strings . Join ( [ ] string { ` &RulesRequest { ` ,
` Filter: ` + fmt . Sprintf ( "%v" , this . Filter ) + ` , ` ,
` RuleName: ` + fmt . Sprintf ( "%v" , this . RuleName ) + ` , ` ,
` RuleGroup: ` + fmt . Sprintf ( "%v" , this . RuleGroup ) + ` , ` ,
` File: ` + fmt . Sprintf ( "%v" , this . File ) + ` , ` ,
` } ` ,
} , "" )
return s
@ -1354,6 +1514,121 @@ func (m *RulesRequest) Unmarshal(dAtA []byte) error {
return fmt . Errorf ( "proto: RulesRequest: illegal tag %d (wire type %d)" , fieldNum , wire )
}
switch fieldNum {
case 1 :
if wireType != 0 {
return fmt . Errorf ( "proto: wrong wireType = %d for field Filter" , wireType )
}
m . Filter = 0
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowRuler
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
m . Filter |= RulesRequest_RuleType ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
case 2 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field RuleName" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowRuler
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthRuler
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthRuler
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . RuleName = append ( m . RuleName , string ( dAtA [ iNdEx : postIndex ] ) )
iNdEx = postIndex
case 3 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field RuleGroup" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowRuler
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthRuler
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthRuler
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . RuleGroup = append ( m . RuleGroup , string ( dAtA [ iNdEx : postIndex ] ) )
iNdEx = postIndex
case 4 :
if wireType != 2 {
return fmt . Errorf ( "proto: wrong wireType = %d for field File" , wireType )
}
var stringLen uint64
for shift := uint ( 0 ) ; ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowRuler
}
if iNdEx >= l {
return io . ErrUnexpectedEOF
}
b := dAtA [ iNdEx ]
iNdEx ++
stringLen |= uint64 ( b & 0x7F ) << shift
if b < 0x80 {
break
}
}
intStringLen := int ( stringLen )
if intStringLen < 0 {
return ErrInvalidLengthRuler
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthRuler
}
if postIndex > l {
return io . ErrUnexpectedEOF
}
m . File = append ( m . File , string ( dAtA [ iNdEx : postIndex ] ) )
iNdEx = postIndex
default :
iNdEx = preIndex
skippy , err := skipRuler ( dAtA [ iNdEx : ] )