1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/expr/v1beta1/value.proto
3
4package expr
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	any "github.com/golang/protobuf/ptypes/any"
12	_struct "github.com/golang/protobuf/ptypes/struct"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = math.Inf
19
20// This is a compile-time assertion to ensure that this generated file
21// is compatible with the proto package it is being compiled against.
22// A compilation error at this line likely means your copy of the
23// proto package needs to be updated.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26// Represents a CEL value.
27//
28// This is similar to `google.protobuf.Value`, but can represent CEL's full
29// range of values.
30type Value struct {
31	// Required. The valid kinds of values.
32	//
33	// Types that are valid to be assigned to Kind:
34	//	*Value_NullValue
35	//	*Value_BoolValue
36	//	*Value_Int64Value
37	//	*Value_Uint64Value
38	//	*Value_DoubleValue
39	//	*Value_StringValue
40	//	*Value_BytesValue
41	//	*Value_EnumValue
42	//	*Value_ObjectValue
43	//	*Value_MapValue
44	//	*Value_ListValue
45	//	*Value_TypeValue
46	Kind                 isValue_Kind `protobuf_oneof:"kind"`
47	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
48	XXX_unrecognized     []byte       `json:"-"`
49	XXX_sizecache        int32        `json:"-"`
50}
51
52func (m *Value) Reset()         { *m = Value{} }
53func (m *Value) String() string { return proto.CompactTextString(m) }
54func (*Value) ProtoMessage()    {}
55func (*Value) Descriptor() ([]byte, []int) {
56	return fileDescriptor_6677b81498dbb8ef, []int{0}
57}
58
59func (m *Value) XXX_Unmarshal(b []byte) error {
60	return xxx_messageInfo_Value.Unmarshal(m, b)
61}
62func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
63	return xxx_messageInfo_Value.Marshal(b, m, deterministic)
64}
65func (m *Value) XXX_Merge(src proto.Message) {
66	xxx_messageInfo_Value.Merge(m, src)
67}
68func (m *Value) XXX_Size() int {
69	return xxx_messageInfo_Value.Size(m)
70}
71func (m *Value) XXX_DiscardUnknown() {
72	xxx_messageInfo_Value.DiscardUnknown(m)
73}
74
75var xxx_messageInfo_Value proto.InternalMessageInfo
76
77type isValue_Kind interface {
78	isValue_Kind()
79}
80
81type Value_NullValue struct {
82	NullValue _struct.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue,oneof"`
83}
84
85type Value_BoolValue struct {
86	BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
87}
88
89type Value_Int64Value struct {
90	Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
91}
92
93type Value_Uint64Value struct {
94	Uint64Value uint64 `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3,oneof"`
95}
96
97type Value_DoubleValue struct {
98	DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
99}
100
101type Value_StringValue struct {
102	StringValue string `protobuf:"bytes,6,opt,name=string_value,json=stringValue,proto3,oneof"`
103}
104
105type Value_BytesValue struct {
106	BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
107}
108
109type Value_EnumValue struct {
110	EnumValue *EnumValue `protobuf:"bytes,9,opt,name=enum_value,json=enumValue,proto3,oneof"`
111}
112
113type Value_ObjectValue struct {
114	ObjectValue *any.Any `protobuf:"bytes,10,opt,name=object_value,json=objectValue,proto3,oneof"`
115}
116
117type Value_MapValue struct {
118	MapValue *MapValue `protobuf:"bytes,11,opt,name=map_value,json=mapValue,proto3,oneof"`
119}
120
121type Value_ListValue struct {
122	ListValue *ListValue `protobuf:"bytes,12,opt,name=list_value,json=listValue,proto3,oneof"`
123}
124
125type Value_TypeValue struct {
126	TypeValue string `protobuf:"bytes,15,opt,name=type_value,json=typeValue,proto3,oneof"`
127}
128
129func (*Value_NullValue) isValue_Kind() {}
130
131func (*Value_BoolValue) isValue_Kind() {}
132
133func (*Value_Int64Value) isValue_Kind() {}
134
135func (*Value_Uint64Value) isValue_Kind() {}
136
137func (*Value_DoubleValue) isValue_Kind() {}
138
139func (*Value_StringValue) isValue_Kind() {}
140
141func (*Value_BytesValue) isValue_Kind() {}
142
143func (*Value_EnumValue) isValue_Kind() {}
144
145func (*Value_ObjectValue) isValue_Kind() {}
146
147func (*Value_MapValue) isValue_Kind() {}
148
149func (*Value_ListValue) isValue_Kind() {}
150
151func (*Value_TypeValue) isValue_Kind() {}
152
153func (m *Value) GetKind() isValue_Kind {
154	if m != nil {
155		return m.Kind
156	}
157	return nil
158}
159
160func (m *Value) GetNullValue() _struct.NullValue {
161	if x, ok := m.GetKind().(*Value_NullValue); ok {
162		return x.NullValue
163	}
164	return _struct.NullValue_NULL_VALUE
165}
166
167func (m *Value) GetBoolValue() bool {
168	if x, ok := m.GetKind().(*Value_BoolValue); ok {
169		return x.BoolValue
170	}
171	return false
172}
173
174func (m *Value) GetInt64Value() int64 {
175	if x, ok := m.GetKind().(*Value_Int64Value); ok {
176		return x.Int64Value
177	}
178	return 0
179}
180
181func (m *Value) GetUint64Value() uint64 {
182	if x, ok := m.GetKind().(*Value_Uint64Value); ok {
183		return x.Uint64Value
184	}
185	return 0
186}
187
188func (m *Value) GetDoubleValue() float64 {
189	if x, ok := m.GetKind().(*Value_DoubleValue); ok {
190		return x.DoubleValue
191	}
192	return 0
193}
194
195func (m *Value) GetStringValue() string {
196	if x, ok := m.GetKind().(*Value_StringValue); ok {
197		return x.StringValue
198	}
199	return ""
200}
201
202func (m *Value) GetBytesValue() []byte {
203	if x, ok := m.GetKind().(*Value_BytesValue); ok {
204		return x.BytesValue
205	}
206	return nil
207}
208
209func (m *Value) GetEnumValue() *EnumValue {
210	if x, ok := m.GetKind().(*Value_EnumValue); ok {
211		return x.EnumValue
212	}
213	return nil
214}
215
216func (m *Value) GetObjectValue() *any.Any {
217	if x, ok := m.GetKind().(*Value_ObjectValue); ok {
218		return x.ObjectValue
219	}
220	return nil
221}
222
223func (m *Value) GetMapValue() *MapValue {
224	if x, ok := m.GetKind().(*Value_MapValue); ok {
225		return x.MapValue
226	}
227	return nil
228}
229
230func (m *Value) GetListValue() *ListValue {
231	if x, ok := m.GetKind().(*Value_ListValue); ok {
232		return x.ListValue
233	}
234	return nil
235}
236
237func (m *Value) GetTypeValue() string {
238	if x, ok := m.GetKind().(*Value_TypeValue); ok {
239		return x.TypeValue
240	}
241	return ""
242}
243
244// XXX_OneofWrappers is for the internal use of the proto package.
245func (*Value) XXX_OneofWrappers() []interface{} {
246	return []interface{}{
247		(*Value_NullValue)(nil),
248		(*Value_BoolValue)(nil),
249		(*Value_Int64Value)(nil),
250		(*Value_Uint64Value)(nil),
251		(*Value_DoubleValue)(nil),
252		(*Value_StringValue)(nil),
253		(*Value_BytesValue)(nil),
254		(*Value_EnumValue)(nil),
255		(*Value_ObjectValue)(nil),
256		(*Value_MapValue)(nil),
257		(*Value_ListValue)(nil),
258		(*Value_TypeValue)(nil),
259	}
260}
261
262// An enum value.
263type EnumValue struct {
264	// The fully qualified name of the enum type.
265	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
266	// The value of the enum.
267	Value                int32    `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
268	XXX_NoUnkeyedLiteral struct{} `json:"-"`
269	XXX_unrecognized     []byte   `json:"-"`
270	XXX_sizecache        int32    `json:"-"`
271}
272
273func (m *EnumValue) Reset()         { *m = EnumValue{} }
274func (m *EnumValue) String() string { return proto.CompactTextString(m) }
275func (*EnumValue) ProtoMessage()    {}
276func (*EnumValue) Descriptor() ([]byte, []int) {
277	return fileDescriptor_6677b81498dbb8ef, []int{1}
278}
279
280func (m *EnumValue) XXX_Unmarshal(b []byte) error {
281	return xxx_messageInfo_EnumValue.Unmarshal(m, b)
282}
283func (m *EnumValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
284	return xxx_messageInfo_EnumValue.Marshal(b, m, deterministic)
285}
286func (m *EnumValue) XXX_Merge(src proto.Message) {
287	xxx_messageInfo_EnumValue.Merge(m, src)
288}
289func (m *EnumValue) XXX_Size() int {
290	return xxx_messageInfo_EnumValue.Size(m)
291}
292func (m *EnumValue) XXX_DiscardUnknown() {
293	xxx_messageInfo_EnumValue.DiscardUnknown(m)
294}
295
296var xxx_messageInfo_EnumValue proto.InternalMessageInfo
297
298func (m *EnumValue) GetType() string {
299	if m != nil {
300		return m.Type
301	}
302	return ""
303}
304
305func (m *EnumValue) GetValue() int32 {
306	if m != nil {
307		return m.Value
308	}
309	return 0
310}
311
312// A list.
313//
314// Wrapped in a message so 'not set' and empty can be differentiated, which is
315// required for use in a 'oneof'.
316type ListValue struct {
317	// The ordered values in the list.
318	Values               []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
319	XXX_NoUnkeyedLiteral struct{} `json:"-"`
320	XXX_unrecognized     []byte   `json:"-"`
321	XXX_sizecache        int32    `json:"-"`
322}
323
324func (m *ListValue) Reset()         { *m = ListValue{} }
325func (m *ListValue) String() string { return proto.CompactTextString(m) }
326func (*ListValue) ProtoMessage()    {}
327func (*ListValue) Descriptor() ([]byte, []int) {
328	return fileDescriptor_6677b81498dbb8ef, []int{2}
329}
330
331func (m *ListValue) XXX_Unmarshal(b []byte) error {
332	return xxx_messageInfo_ListValue.Unmarshal(m, b)
333}
334func (m *ListValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
335	return xxx_messageInfo_ListValue.Marshal(b, m, deterministic)
336}
337func (m *ListValue) XXX_Merge(src proto.Message) {
338	xxx_messageInfo_ListValue.Merge(m, src)
339}
340func (m *ListValue) XXX_Size() int {
341	return xxx_messageInfo_ListValue.Size(m)
342}
343func (m *ListValue) XXX_DiscardUnknown() {
344	xxx_messageInfo_ListValue.DiscardUnknown(m)
345}
346
347var xxx_messageInfo_ListValue proto.InternalMessageInfo
348
349func (m *ListValue) GetValues() []*Value {
350	if m != nil {
351		return m.Values
352	}
353	return nil
354}
355
356// A map.
357//
358// Wrapped in a message so 'not set' and empty can be differentiated, which is
359// required for use in a 'oneof'.
360type MapValue struct {
361	// The set of map entries.
362	//
363	// CEL has fewer restrictions on keys, so a protobuf map represenation
364	// cannot be used.
365	Entries              []*MapValue_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
366	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
367	XXX_unrecognized     []byte            `json:"-"`
368	XXX_sizecache        int32             `json:"-"`
369}
370
371func (m *MapValue) Reset()         { *m = MapValue{} }
372func (m *MapValue) String() string { return proto.CompactTextString(m) }
373func (*MapValue) ProtoMessage()    {}
374func (*MapValue) Descriptor() ([]byte, []int) {
375	return fileDescriptor_6677b81498dbb8ef, []int{3}
376}
377
378func (m *MapValue) XXX_Unmarshal(b []byte) error {
379	return xxx_messageInfo_MapValue.Unmarshal(m, b)
380}
381func (m *MapValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
382	return xxx_messageInfo_MapValue.Marshal(b, m, deterministic)
383}
384func (m *MapValue) XXX_Merge(src proto.Message) {
385	xxx_messageInfo_MapValue.Merge(m, src)
386}
387func (m *MapValue) XXX_Size() int {
388	return xxx_messageInfo_MapValue.Size(m)
389}
390func (m *MapValue) XXX_DiscardUnknown() {
391	xxx_messageInfo_MapValue.DiscardUnknown(m)
392}
393
394var xxx_messageInfo_MapValue proto.InternalMessageInfo
395
396func (m *MapValue) GetEntries() []*MapValue_Entry {
397	if m != nil {
398		return m.Entries
399	}
400	return nil
401}
402
403// An entry in the map.
404type MapValue_Entry struct {
405	// The key.
406	//
407	// Must be unique with in the map.
408	// Currently only boolean, int, uint, and string values can be keys.
409	Key *Value `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
410	// The value.
411	Value                *Value   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
412	XXX_NoUnkeyedLiteral struct{} `json:"-"`
413	XXX_unrecognized     []byte   `json:"-"`
414	XXX_sizecache        int32    `json:"-"`
415}
416
417func (m *MapValue_Entry) Reset()         { *m = MapValue_Entry{} }
418func (m *MapValue_Entry) String() string { return proto.CompactTextString(m) }
419func (*MapValue_Entry) ProtoMessage()    {}
420func (*MapValue_Entry) Descriptor() ([]byte, []int) {
421	return fileDescriptor_6677b81498dbb8ef, []int{3, 0}
422}
423
424func (m *MapValue_Entry) XXX_Unmarshal(b []byte) error {
425	return xxx_messageInfo_MapValue_Entry.Unmarshal(m, b)
426}
427func (m *MapValue_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
428	return xxx_messageInfo_MapValue_Entry.Marshal(b, m, deterministic)
429}
430func (m *MapValue_Entry) XXX_Merge(src proto.Message) {
431	xxx_messageInfo_MapValue_Entry.Merge(m, src)
432}
433func (m *MapValue_Entry) XXX_Size() int {
434	return xxx_messageInfo_MapValue_Entry.Size(m)
435}
436func (m *MapValue_Entry) XXX_DiscardUnknown() {
437	xxx_messageInfo_MapValue_Entry.DiscardUnknown(m)
438}
439
440var xxx_messageInfo_MapValue_Entry proto.InternalMessageInfo
441
442func (m *MapValue_Entry) GetKey() *Value {
443	if m != nil {
444		return m.Key
445	}
446	return nil
447}
448
449func (m *MapValue_Entry) GetValue() *Value {
450	if m != nil {
451		return m.Value
452	}
453	return nil
454}
455
456func init() {
457	proto.RegisterType((*Value)(nil), "google.api.expr.v1beta1.Value")
458	proto.RegisterType((*EnumValue)(nil), "google.api.expr.v1beta1.EnumValue")
459	proto.RegisterType((*ListValue)(nil), "google.api.expr.v1beta1.ListValue")
460	proto.RegisterType((*MapValue)(nil), "google.api.expr.v1beta1.MapValue")
461	proto.RegisterType((*MapValue_Entry)(nil), "google.api.expr.v1beta1.MapValue.Entry")
462}
463
464func init() {
465	proto.RegisterFile("google/api/expr/v1beta1/value.proto", fileDescriptor_6677b81498dbb8ef)
466}
467
468var fileDescriptor_6677b81498dbb8ef = []byte{
469	// 516 bytes of a gzipped FileDescriptorProto
470	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x4d, 0x6f, 0xd3, 0x30,
471	0x18, 0xc7, 0x6b, 0xfa, 0xb2, 0xe6, 0x69, 0x05, 0x92, 0x35, 0x89, 0x51, 0x10, 0x64, 0xdd, 0x81,
472	0x9c, 0x1c, 0x56, 0xc6, 0x24, 0xd4, 0x0b, 0xeb, 0x34, 0xa9, 0x07, 0x40, 0x53, 0x0e, 0x1c, 0xb8,
473	0xa0, 0xa4, 0x33, 0x51, 0xa8, 0x63, 0x47, 0x89, 0x3d, 0x91, 0x2f, 0xc7, 0x07, 0xe0, 0x13, 0x71,
474	0x44, 0x7e, 0x0b, 0x63, 0x53, 0xd5, 0x5b, 0x9e, 0xbf, 0x7f, 0x7f, 0x3f, 0x2f, 0x7e, 0x14, 0x38,
475	0xc9, 0x85, 0xc8, 0x19, 0x8d, 0xd3, 0xaa, 0x88, 0xe9, 0xcf, 0xaa, 0x8e, 0x6f, 0x4f, 0x33, 0x2a,
476	0xd3, 0xd3, 0xf8, 0x36, 0x65, 0x8a, 0x92, 0xaa, 0x16, 0x52, 0xe0, 0xa7, 0x16, 0x22, 0x69, 0x55,
477	0x10, 0x0d, 0x11, 0x07, 0xcd, 0x9e, 0x39, 0xb7, 0xc1, 0x32, 0xf5, 0x3d, 0x4e, 0x79, 0x6b, 0x3d,
478	0xb3, 0x17, 0xf7, 0x8f, 0x1a, 0x59, 0xab, 0x8d, 0xb4, 0xa7, 0xf3, 0xdf, 0x03, 0x18, 0x7e, 0xd1,
479	0x19, 0xf0, 0x12, 0x80, 0x2b, 0xc6, 0xbe, 0x99, 0x7c, 0x47, 0x28, 0x44, 0xd1, 0xe3, 0xc5, 0x8c,
480	0xb8, 0x84, 0xde, 0x4c, 0x3e, 0x2b, 0xc6, 0x0c, 0xbf, 0xee, 0x25, 0x01, 0xf7, 0x01, 0x7e, 0x05,
481	0x90, 0x09, 0xe1, 0xcd, 0x8f, 0x42, 0x14, 0x8d, 0x35, 0xa0, 0x35, 0x0b, 0x1c, 0xc3, 0xa4, 0xe0,
482	0xf2, 0xfc, 0xcc, 0x11, 0xfd, 0x10, 0x45, 0xfd, 0x75, 0x2f, 0x01, 0x23, 0x5a, 0xe4, 0x04, 0xa6,
483	0xea, 0x2e, 0x33, 0x08, 0x51, 0x34, 0x58, 0xf7, 0x92, 0x89, 0xfa, 0x1f, 0xba, 0x11, 0x2a, 0x63,
484	0xd4, 0x41, 0xc3, 0x10, 0x45, 0x48, 0x43, 0x56, 0xed, 0xa0, 0x46, 0xd6, 0x05, 0xcf, 0x1d, 0x34,
485	0x0a, 0x51, 0x14, 0x68, 0xc8, 0xaa, 0x5d, 0x45, 0x59, 0x2b, 0x69, 0xe3, 0x98, 0x83, 0x10, 0x45,
486	0x53, 0x5d, 0x91, 0x11, 0x2d, 0x72, 0x09, 0x40, 0xb9, 0x2a, 0x1d, 0x11, 0x84, 0x28, 0x9a, 0x2c,
487	0xe6, 0x64, 0xc7, 0x1b, 0x90, 0x2b, 0xae, 0xca, 0x6e, 0x34, 0xd4, 0x07, 0xf8, 0x3d, 0x4c, 0x45,
488	0xf6, 0x83, 0x6e, 0xa4, 0xbb, 0x06, 0xcc, 0x35, 0x87, 0x0f, 0x26, 0x7b, 0xc1, 0x5b, 0x5d, 0xa2,
489	0x65, 0xad, 0xf5, 0x03, 0x04, 0x65, 0x5a, 0x39, 0xdf, 0xc4, 0xf8, 0x8e, 0x77, 0xa6, 0xff, 0x94,
490	0x56, 0x3e, 0xfb, 0xb8, 0x74, 0xdf, 0xba, 0x03, 0x56, 0x34, 0x3e, 0xf5, 0x74, 0x4f, 0x07, 0x1f,
491	0x8b, 0x46, 0x76, 0x1d, 0x30, 0x1f, 0xe8, 0xc7, 0x95, 0x6d, 0xe5, 0x27, 0xfe, 0xc4, 0x0d, 0x33,
492	0xd0, 0x9a, 0x01, 0x56, 0x23, 0x18, 0x6c, 0x0b, 0x7e, 0x33, 0x7f, 0x07, 0x41, 0x37, 0x04, 0x8c,
493	0x61, 0xa0, 0x09, 0xb3, 0x49, 0x41, 0x62, 0xbe, 0xf1, 0x21, 0x0c, 0xff, 0x6d, 0xc8, 0x30, 0xb1,
494	0xc1, 0xfc, 0x12, 0x82, 0x2e, 0x33, 0x3e, 0x87, 0x91, 0x51, 0x9b, 0x23, 0x14, 0xf6, 0xa3, 0xc9,
495	0xe2, 0xe5, 0xce, 0x6a, 0x0d, 0x9f, 0x38, 0x7a, 0xfe, 0x0b, 0xc1, 0xd8, 0x8f, 0x00, 0x5f, 0xc0,
496	0x01, 0xe5, 0xb2, 0x2e, 0xba, 0x5b, 0x5e, 0xef, 0x1d, 0x1b, 0xb9, 0xe2, 0xb2, 0x6e, 0x13, 0xef,
497	0x9b, 0x09, 0x18, 0x1a, 0x05, 0xbf, 0x81, 0xfe, 0x96, 0xb6, 0xa6, 0x8d, 0xfd, 0xd5, 0x68, 0x14,
498	0x9f, 0xdd, 0xed, 0x72, 0xbf, 0xc7, 0xc2, 0xab, 0x2d, 0x3c, 0xdf, 0x88, 0x72, 0x17, 0xbb, 0x02,
499	0x03, 0x5f, 0xeb, 0x6d, 0xb9, 0x46, 0x5f, 0x97, 0x0e, 0xcb, 0x05, 0x4b, 0x79, 0x4e, 0x44, 0x9d,
500	0xc7, 0x39, 0xe5, 0x66, 0x97, 0x62, 0x7b, 0x94, 0x56, 0x45, 0xf3, 0xe0, 0x67, 0xb2, 0xd4, 0xc1,
501	0x1f, 0x84, 0xb2, 0x91, 0x41, 0xdf, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xb1, 0x11, 0xf9, 0xd9,
502	0x76, 0x04, 0x00, 0x00,
503}
504