1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: envoy/type/matcher/v3/value.proto
3
4package envoy_type_matcher_v3
5
6import (
7	fmt "fmt"
8	_ "github.com/cncf/udpa/go/udpa/annotations"
9	_ "github.com/envoyproxy/protoc-gen-validate/validate"
10	proto "github.com/golang/protobuf/proto"
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 ValueMatcher struct {
26	// Types that are valid to be assigned to MatchPattern:
27	//	*ValueMatcher_NullMatch_
28	//	*ValueMatcher_DoubleMatch
29	//	*ValueMatcher_StringMatch
30	//	*ValueMatcher_BoolMatch
31	//	*ValueMatcher_PresentMatch
32	//	*ValueMatcher_ListMatch
33	MatchPattern         isValueMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
34	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
35	XXX_unrecognized     []byte                      `json:"-"`
36	XXX_sizecache        int32                       `json:"-"`
37}
38
39func (m *ValueMatcher) Reset()         { *m = ValueMatcher{} }
40func (m *ValueMatcher) String() string { return proto.CompactTextString(m) }
41func (*ValueMatcher) ProtoMessage()    {}
42func (*ValueMatcher) Descriptor() ([]byte, []int) {
43	return fileDescriptor_bd6368dfc3b13d42, []int{0}
44}
45
46func (m *ValueMatcher) XXX_Unmarshal(b []byte) error {
47	return xxx_messageInfo_ValueMatcher.Unmarshal(m, b)
48}
49func (m *ValueMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
50	return xxx_messageInfo_ValueMatcher.Marshal(b, m, deterministic)
51}
52func (m *ValueMatcher) XXX_Merge(src proto.Message) {
53	xxx_messageInfo_ValueMatcher.Merge(m, src)
54}
55func (m *ValueMatcher) XXX_Size() int {
56	return xxx_messageInfo_ValueMatcher.Size(m)
57}
58func (m *ValueMatcher) XXX_DiscardUnknown() {
59	xxx_messageInfo_ValueMatcher.DiscardUnknown(m)
60}
61
62var xxx_messageInfo_ValueMatcher proto.InternalMessageInfo
63
64type isValueMatcher_MatchPattern interface {
65	isValueMatcher_MatchPattern()
66}
67
68type ValueMatcher_NullMatch_ struct {
69	NullMatch *ValueMatcher_NullMatch `protobuf:"bytes,1,opt,name=null_match,json=nullMatch,proto3,oneof"`
70}
71
72type ValueMatcher_DoubleMatch struct {
73	DoubleMatch *DoubleMatcher `protobuf:"bytes,2,opt,name=double_match,json=doubleMatch,proto3,oneof"`
74}
75
76type ValueMatcher_StringMatch struct {
77	StringMatch *StringMatcher `protobuf:"bytes,3,opt,name=string_match,json=stringMatch,proto3,oneof"`
78}
79
80type ValueMatcher_BoolMatch struct {
81	BoolMatch bool `protobuf:"varint,4,opt,name=bool_match,json=boolMatch,proto3,oneof"`
82}
83
84type ValueMatcher_PresentMatch struct {
85	PresentMatch bool `protobuf:"varint,5,opt,name=present_match,json=presentMatch,proto3,oneof"`
86}
87
88type ValueMatcher_ListMatch struct {
89	ListMatch *ListMatcher `protobuf:"bytes,6,opt,name=list_match,json=listMatch,proto3,oneof"`
90}
91
92func (*ValueMatcher_NullMatch_) isValueMatcher_MatchPattern() {}
93
94func (*ValueMatcher_DoubleMatch) isValueMatcher_MatchPattern() {}
95
96func (*ValueMatcher_StringMatch) isValueMatcher_MatchPattern() {}
97
98func (*ValueMatcher_BoolMatch) isValueMatcher_MatchPattern() {}
99
100func (*ValueMatcher_PresentMatch) isValueMatcher_MatchPattern() {}
101
102func (*ValueMatcher_ListMatch) isValueMatcher_MatchPattern() {}
103
104func (m *ValueMatcher) GetMatchPattern() isValueMatcher_MatchPattern {
105	if m != nil {
106		return m.MatchPattern
107	}
108	return nil
109}
110
111func (m *ValueMatcher) GetNullMatch() *ValueMatcher_NullMatch {
112	if x, ok := m.GetMatchPattern().(*ValueMatcher_NullMatch_); ok {
113		return x.NullMatch
114	}
115	return nil
116}
117
118func (m *ValueMatcher) GetDoubleMatch() *DoubleMatcher {
119	if x, ok := m.GetMatchPattern().(*ValueMatcher_DoubleMatch); ok {
120		return x.DoubleMatch
121	}
122	return nil
123}
124
125func (m *ValueMatcher) GetStringMatch() *StringMatcher {
126	if x, ok := m.GetMatchPattern().(*ValueMatcher_StringMatch); ok {
127		return x.StringMatch
128	}
129	return nil
130}
131
132func (m *ValueMatcher) GetBoolMatch() bool {
133	if x, ok := m.GetMatchPattern().(*ValueMatcher_BoolMatch); ok {
134		return x.BoolMatch
135	}
136	return false
137}
138
139func (m *ValueMatcher) GetPresentMatch() bool {
140	if x, ok := m.GetMatchPattern().(*ValueMatcher_PresentMatch); ok {
141		return x.PresentMatch
142	}
143	return false
144}
145
146func (m *ValueMatcher) GetListMatch() *ListMatcher {
147	if x, ok := m.GetMatchPattern().(*ValueMatcher_ListMatch); ok {
148		return x.ListMatch
149	}
150	return nil
151}
152
153// XXX_OneofWrappers is for the internal use of the proto package.
154func (*ValueMatcher) XXX_OneofWrappers() []interface{} {
155	return []interface{}{
156		(*ValueMatcher_NullMatch_)(nil),
157		(*ValueMatcher_DoubleMatch)(nil),
158		(*ValueMatcher_StringMatch)(nil),
159		(*ValueMatcher_BoolMatch)(nil),
160		(*ValueMatcher_PresentMatch)(nil),
161		(*ValueMatcher_ListMatch)(nil),
162	}
163}
164
165type ValueMatcher_NullMatch struct {
166	XXX_NoUnkeyedLiteral struct{} `json:"-"`
167	XXX_unrecognized     []byte   `json:"-"`
168	XXX_sizecache        int32    `json:"-"`
169}
170
171func (m *ValueMatcher_NullMatch) Reset()         { *m = ValueMatcher_NullMatch{} }
172func (m *ValueMatcher_NullMatch) String() string { return proto.CompactTextString(m) }
173func (*ValueMatcher_NullMatch) ProtoMessage()    {}
174func (*ValueMatcher_NullMatch) Descriptor() ([]byte, []int) {
175	return fileDescriptor_bd6368dfc3b13d42, []int{0, 0}
176}
177
178func (m *ValueMatcher_NullMatch) XXX_Unmarshal(b []byte) error {
179	return xxx_messageInfo_ValueMatcher_NullMatch.Unmarshal(m, b)
180}
181func (m *ValueMatcher_NullMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
182	return xxx_messageInfo_ValueMatcher_NullMatch.Marshal(b, m, deterministic)
183}
184func (m *ValueMatcher_NullMatch) XXX_Merge(src proto.Message) {
185	xxx_messageInfo_ValueMatcher_NullMatch.Merge(m, src)
186}
187func (m *ValueMatcher_NullMatch) XXX_Size() int {
188	return xxx_messageInfo_ValueMatcher_NullMatch.Size(m)
189}
190func (m *ValueMatcher_NullMatch) XXX_DiscardUnknown() {
191	xxx_messageInfo_ValueMatcher_NullMatch.DiscardUnknown(m)
192}
193
194var xxx_messageInfo_ValueMatcher_NullMatch proto.InternalMessageInfo
195
196type ListMatcher struct {
197	// Types that are valid to be assigned to MatchPattern:
198	//	*ListMatcher_OneOf
199	MatchPattern         isListMatcher_MatchPattern `protobuf_oneof:"match_pattern"`
200	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
201	XXX_unrecognized     []byte                     `json:"-"`
202	XXX_sizecache        int32                      `json:"-"`
203}
204
205func (m *ListMatcher) Reset()         { *m = ListMatcher{} }
206func (m *ListMatcher) String() string { return proto.CompactTextString(m) }
207func (*ListMatcher) ProtoMessage()    {}
208func (*ListMatcher) Descriptor() ([]byte, []int) {
209	return fileDescriptor_bd6368dfc3b13d42, []int{1}
210}
211
212func (m *ListMatcher) XXX_Unmarshal(b []byte) error {
213	return xxx_messageInfo_ListMatcher.Unmarshal(m, b)
214}
215func (m *ListMatcher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
216	return xxx_messageInfo_ListMatcher.Marshal(b, m, deterministic)
217}
218func (m *ListMatcher) XXX_Merge(src proto.Message) {
219	xxx_messageInfo_ListMatcher.Merge(m, src)
220}
221func (m *ListMatcher) XXX_Size() int {
222	return xxx_messageInfo_ListMatcher.Size(m)
223}
224func (m *ListMatcher) XXX_DiscardUnknown() {
225	xxx_messageInfo_ListMatcher.DiscardUnknown(m)
226}
227
228var xxx_messageInfo_ListMatcher proto.InternalMessageInfo
229
230type isListMatcher_MatchPattern interface {
231	isListMatcher_MatchPattern()
232}
233
234type ListMatcher_OneOf struct {
235	OneOf *ValueMatcher `protobuf:"bytes,1,opt,name=one_of,json=oneOf,proto3,oneof"`
236}
237
238func (*ListMatcher_OneOf) isListMatcher_MatchPattern() {}
239
240func (m *ListMatcher) GetMatchPattern() isListMatcher_MatchPattern {
241	if m != nil {
242		return m.MatchPattern
243	}
244	return nil
245}
246
247func (m *ListMatcher) GetOneOf() *ValueMatcher {
248	if x, ok := m.GetMatchPattern().(*ListMatcher_OneOf); ok {
249		return x.OneOf
250	}
251	return nil
252}
253
254// XXX_OneofWrappers is for the internal use of the proto package.
255func (*ListMatcher) XXX_OneofWrappers() []interface{} {
256	return []interface{}{
257		(*ListMatcher_OneOf)(nil),
258	}
259}
260
261func init() {
262	proto.RegisterType((*ValueMatcher)(nil), "envoy.type.matcher.v3.ValueMatcher")
263	proto.RegisterType((*ValueMatcher_NullMatch)(nil), "envoy.type.matcher.v3.ValueMatcher.NullMatch")
264	proto.RegisterType((*ListMatcher)(nil), "envoy.type.matcher.v3.ListMatcher")
265}
266
267func init() { proto.RegisterFile("envoy/type/matcher/v3/value.proto", fileDescriptor_bd6368dfc3b13d42) }
268
269var fileDescriptor_bd6368dfc3b13d42 = []byte{
270	// 431 bytes of a gzipped FileDescriptorProto
271	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0xcb, 0xd3, 0x30,
272	0x18, 0xc7, 0xd7, 0xcd, 0x15, 0xf7, 0x6c, 0x03, 0x29, 0x8a, 0x32, 0x70, 0x3f, 0x3a, 0x27, 0x13,
273	0xb1, 0x15, 0x77, 0x9b, 0x7a, 0xa9, 0x1e, 0x26, 0xe8, 0x1c, 0x13, 0xbc, 0x8e, 0xd4, 0x66, 0x5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