1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: envoy/type/matcher/regex.proto 3 4package envoy_type_matcher 5 6import ( 7 fmt "fmt" 8 _ "github.com/envoyproxy/protoc-gen-validate/validate" 9 proto "github.com/golang/protobuf/proto" 10 wrappers "github.com/golang/protobuf/ptypes/wrappers" 11 math "math" 12) 13 14// Reference imports to suppress errors if they are not otherwise used. 15var _ = proto.Marshal 16var _ = fmt.Errorf 17var _ = math.Inf 18 19// This is a compile-time assertion to ensure that this generated file 20// is compatible with the proto package it is being compiled against. 21// A compilation error at this line likely means your copy of the 22// proto package needs to be updated. 23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25type RegexMatcher struct { 26 // Types that are valid to be assigned to EngineType: 27 // *RegexMatcher_GoogleRe2 28 EngineType isRegexMatcher_EngineType `protobuf_oneof:"engine_type"` 29 Regex string `protobuf:"bytes,2,opt,name=regex,proto3" json:"regex,omitempty"` 30 XXX_NoUnkeyedLiteral struct{} `json:"-"` 31 XXX_unrecognized []byte `json:"-"` 32 XXX_sizecache int32 `json:"-"` 33} 34 35func (m *RegexMatcher) Reset() { *m = RegexMatcher{} } 36func (m *RegexMatcher) String() string { return proto.CompactTextString(m) } 37func (*RegexMatcher) ProtoMessage() {} 38func (*RegexMatcher) Descriptor() ([]byte, []int) { 39 return fileDescriptor_0ba289439e2572f3, []int{0} 40} 41 42func (m *RegexMatcher) XXX_Unmarshal(b []byte) error { 43 return xxx_messageInfo_RegexMatcher.Unmarshal(m, b) 44} 45func (m *RegexMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 return xxx_messageInfo_RegexMatcher.Marshal(b, m, deterministic) 47} 48func (m *RegexMatcher) XXX_Merge(src proto.Message) { 49 xxx_messageInfo_RegexMatcher.Merge(m, src) 50} 51func (m *RegexMatcher) XXX_Size() int { 52 return xxx_messageInfo_RegexMatcher.Size(m) 53} 54func (m *RegexMatcher) XXX_DiscardUnknown() { 55 xxx_messageInfo_RegexMatcher.DiscardUnknown(m) 56} 57 58var xxx_messageInfo_RegexMatcher proto.InternalMessageInfo 59 60type isRegexMatcher_EngineType interface { 61 isRegexMatcher_EngineType() 62} 63 64type RegexMatcher_GoogleRe2 struct { 65 GoogleRe2 *RegexMatcher_GoogleRE2 `protobuf:"bytes,1,opt,name=google_re2,json=googleRe2,proto3,oneof"` 66} 67 68func (*RegexMatcher_GoogleRe2) isRegexMatcher_EngineType() {} 69 70func (m *RegexMatcher) GetEngineType() isRegexMatcher_EngineType { 71 if m != nil { 72 return m.EngineType 73 } 74 return nil 75} 76 77func (m *RegexMatcher) GetGoogleRe2() *RegexMatcher_GoogleRE2 { 78 if x, ok := m.GetEngineType().(*RegexMatcher_GoogleRe2); ok { 79 return x.GoogleRe2 80 } 81 return nil 82} 83 84func (m *RegexMatcher) GetRegex() string { 85 if m != nil { 86 return m.Regex 87 } 88 return "" 89} 90 91// XXX_OneofWrappers is for the internal use of the proto package. 92func (*RegexMatcher) XXX_OneofWrappers() []interface{} { 93 return []interface{}{ 94 (*RegexMatcher_GoogleRe2)(nil), 95 } 96} 97 98type RegexMatcher_GoogleRE2 struct { 99 MaxProgramSize *wrappers.UInt32Value `protobuf:"bytes,1,opt,name=max_program_size,json=maxProgramSize,proto3" json:"max_program_size,omitempty"` 100 XXX_NoUnkeyedLiteral struct{} `json:"-"` 101 XXX_unrecognized []byte `json:"-"` 102 XXX_sizecache int32 `json:"-"` 103} 104 105func (m *RegexMatcher_GoogleRE2) Reset() { *m = RegexMatcher_GoogleRE2{} } 106func (m *RegexMatcher_GoogleRE2) String() string { return proto.CompactTextString(m) } 107func (*RegexMatcher_GoogleRE2) ProtoMessage() {} 108func (*RegexMatcher_GoogleRE2) Descriptor() ([]byte, []int) { 109 return fileDescriptor_0ba289439e2572f3, []int{0, 0} 110} 111 112func (m *RegexMatcher_GoogleRE2) XXX_Unmarshal(b []byte) error { 113 return xxx_messageInfo_RegexMatcher_GoogleRE2.Unmarshal(m, b) 114} 115func (m *RegexMatcher_GoogleRE2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 116 return xxx_messageInfo_RegexMatcher_GoogleRE2.Marshal(b, m, deterministic) 117} 118func (m *RegexMatcher_GoogleRE2) XXX_Merge(src proto.Message) { 119 xxx_messageInfo_RegexMatcher_GoogleRE2.Merge(m, src) 120} 121func (m *RegexMatcher_GoogleRE2) XXX_Size() int { 122 return xxx_messageInfo_RegexMatcher_GoogleRE2.Size(m) 123} 124func (m *RegexMatcher_GoogleRE2) XXX_DiscardUnknown() { 125 xxx_messageInfo_RegexMatcher_GoogleRE2.DiscardUnknown(m) 126} 127 128var xxx_messageInfo_RegexMatcher_GoogleRE2 proto.InternalMessageInfo 129 130func (m *RegexMatcher_GoogleRE2) GetMaxProgramSize() *wrappers.UInt32Value { 131 if m != nil { 132 return m.MaxProgramSize 133 } 134 return nil 135} 136 137func init() { 138 proto.RegisterType((*RegexMatcher)(nil), "envoy.type.matcher.RegexMatcher") 139 proto.RegisterType((*RegexMatcher_GoogleRE2)(nil), "envoy.type.matcher.RegexMatcher.GoogleRE2") 140} 141 142func init() { proto.RegisterFile("envoy/type/matcher/regex.proto", fileDescriptor_0ba289439e2572f3) } 143 144var fileDescriptor_0ba289439e2572f3 = []byte{ 145 // 288 bytes of a gzipped FileDescriptorProto 146 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x8f, 0x4f, 0x4b, 0xc3, 0x30, 147 0x18, 0xc6, 0x4d, 0x75, 0x6a, 0x33, 0x91, 0x91, 0x8b, 0xa3, 0xe8, 0x28, 0x9e, 0x86, 0x87, 0x44, 148 0xba, 0x6f, 0x10, 0xf0, 0xdf, 0x41, 0x28, 0x19, 0xf3, 0x5a, 0x32, 0x7d, 0xad, 0x85, 0xb6, 0x09, 149 0x59, 0x36, 0xdb, 0x7d, 0x04, 0xbf, 0xab, 0x77, 0xd9, 0x49, 0x9a, 0x6c, 0x22, 0xe8, 0xad, 0xf4, 150 0xc9, 0xf3, 0x7b, 0xde, 0x1f, 0x1e, 0x41, 0xbd, 0x52, 0x2d, 0xb3, 0xad, 0x06, 0x56, 0x49, 0xfb, 151 0xfc, 0x06, 0x86, 0x19, 0xc8, 0xa1, 0xa1, 0xda, 0x28, 0xab, 0x08, 0x71, 0x39, 0xed, 0x72, 0xba, 152 0xcd, 0xa3, 0x51, 0xae, 0x54, 0x5e, 0x02, 0x73, 0x2f, 0xe6, 0xcb, 0x57, 0xf6, 0x6e, 0xa4, 0xd6, 153 0x60, 0x16, 0xbe, 0x13, 0x9d, 0xad, 0x64, 0x59, 0xbc, 0x48, 0x0b, 0x6c, 0xf7, 0xe1, 0x83, 0xcb, 154 0x4f, 0x84, 0x4f, 0x44, 0x07, 0x7f, 0xf4, 0x24, 0x32, 0xc3, 0xd8, 0xb3, 0x32, 0x03, 0xc9, 0x10, 155 0xc5, 0x68, 0xdc, 0x4f, 0xae, 0xe8, 0xdf, 0x49, 0xfa, 0xbb, 0x45, 0xef, 0x5c, 0x45, 0xdc, 0x24, 156 0xfc, 0x78, 0xc3, 0x7b, 0x1f, 0x28, 0x18, 0xa0, 0xfb, 0x3d, 0x11, 0x7a, 0x92, 0x80, 0x84, 0x5c, 157 0xe0, 0x9e, 0x73, 0x18, 0x06, 0x31, 0x1a, 0x87, 0xfc, 0x68, 0xc3, 0x0f, 0x4c, 0x10, 0x23, 0xe1, 158 0xff, 0x46, 0x53, 0x1c, 0xfe, 0x20, 0xc8, 0x2d, 0x1e, 0x54, 0xb2, 0xc9, 0xb4, 0x51, 0xb9, 0x91, 159 0x55, 0xb6, 0x28, 0xd6, 0xb0, 0x3d, 0xe4, 0x9c, 0x7a, 0x22, 0xdd, 0x79, 0xd2, 0xd9, 0x43, 0x6d, 160 0x27, 0xc9, 0x93, 0x2c, 0x97, 0x20, 0x4e, 0x2b, 0xd9, 0xa4, 0xbe, 0x34, 0x2d, 0xd6, 0xc0, 0x09, 161 0xee, 0x43, 0x9d, 0x17, 0x35, 0x64, 0xdd, 0xe1, 0x64, 0xff, 0x8b, 0x23, 0x7e, 0x8d, 0xe3, 0x42, 162 0x79, 0x1d, 0x6d, 0x54, 0xd3, 0xfe, 0x63, 0xc6, 0xb1, 0x53, 0x4b, 0xbb, 0x89, 0x14, 0xcd, 0x0f, 163 0xdd, 0xd6, 0xe4, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x94, 0xab, 0x1e, 0x0d, 0x97, 0x01, 0x00, 0x00, 164} 165