1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/api/expr/v1alpha1/eval.proto
3
4package expr
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	status "google.golang.org/genproto/googleapis/rpc/status"
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
25// The state of an evaluation.
26//
27// Can represent an inital, partial, or completed state of evaluation.
28type EvalState struct {
29	// The unique values referenced in this message.
30	Values []*ExprValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
31	// An ordered list of results.
32	//
33	// Tracks the flow of evaluation through the expression.
34	// May be sparse.
35	Results              []*EvalState_Result `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
36	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
37	XXX_unrecognized     []byte              `json:"-"`
38	XXX_sizecache        int32               `json:"-"`
39}
40
41func (m *EvalState) Reset()         { *m = EvalState{} }
42func (m *EvalState) String() string { return proto.CompactTextString(m) }
43func (*EvalState) ProtoMessage()    {}
44func (*EvalState) Descriptor() ([]byte, []int) {
45	return fileDescriptor_1e95f32326d4b8b7, []int{0}
46}
47
48func (m *EvalState) XXX_Unmarshal(b []byte) error {
49	return xxx_messageInfo_EvalState.Unmarshal(m, b)
50}
51func (m *EvalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
52	return xxx_messageInfo_EvalState.Marshal(b, m, deterministic)
53}
54func (m *EvalState) XXX_Merge(src proto.Message) {
55	xxx_messageInfo_EvalState.Merge(m, src)
56}
57func (m *EvalState) XXX_Size() int {
58	return xxx_messageInfo_EvalState.Size(m)
59}
60func (m *EvalState) XXX_DiscardUnknown() {
61	xxx_messageInfo_EvalState.DiscardUnknown(m)
62}
63
64var xxx_messageInfo_EvalState proto.InternalMessageInfo
65
66func (m *EvalState) GetValues() []*ExprValue {
67	if m != nil {
68		return m.Values
69	}
70	return nil
71}
72
73func (m *EvalState) GetResults() []*EvalState_Result {
74	if m != nil {
75		return m.Results
76	}
77	return nil
78}
79
80// A single evalution result.
81type EvalState_Result struct {
82	// The id of the expression this result if for.
83	Expr int64 `protobuf:"varint,1,opt,name=expr,proto3" json:"expr,omitempty"`
84	// The index in `values` of the resulting value.
85	Value                int64    `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
86	XXX_NoUnkeyedLiteral struct{} `json:"-"`
87	XXX_unrecognized     []byte   `json:"-"`
88	XXX_sizecache        int32    `json:"-"`
89}
90
91func (m *EvalState_Result) Reset()         { *m = EvalState_Result{} }
92func (m *EvalState_Result) String() string { return proto.CompactTextString(m) }
93func (*EvalState_Result) ProtoMessage()    {}
94func (*EvalState_Result) Descriptor() ([]byte, []int) {
95	return fileDescriptor_1e95f32326d4b8b7, []int{0, 0}
96}
97
98func (m *EvalState_Result) XXX_Unmarshal(b []byte) error {
99	return xxx_messageInfo_EvalState_Result.Unmarshal(m, b)
100}
101func (m *EvalState_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
102	return xxx_messageInfo_EvalState_Result.Marshal(b, m, deterministic)
103}
104func (m *EvalState_Result) XXX_Merge(src proto.Message) {
105	xxx_messageInfo_EvalState_Result.Merge(m, src)
106}
107func (m *EvalState_Result) XXX_Size() int {
108	return xxx_messageInfo_EvalState_Result.Size(m)
109}
110func (m *EvalState_Result) XXX_DiscardUnknown() {
111	xxx_messageInfo_EvalState_Result.DiscardUnknown(m)
112}
113
114var xxx_messageInfo_EvalState_Result proto.InternalMessageInfo
115
116func (m *EvalState_Result) GetExpr() int64 {
117	if m != nil {
118		return m.Expr
119	}
120	return 0
121}
122
123func (m *EvalState_Result) GetValue() int64 {
124	if m != nil {
125		return m.Value
126	}
127	return 0
128}
129
130// The value of an evaluated expression.
131type ExprValue struct {
132	// An expression can resolve to a value, error or unknown.
133	//
134	// Types that are valid to be assigned to Kind:
135	//	*ExprValue_Value
136	//	*ExprValue_Error
137	//	*ExprValue_Unknown
138	Kind                 isExprValue_Kind `protobuf_oneof:"kind"`
139	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
140	XXX_unrecognized     []byte           `json:"-"`
141	XXX_sizecache        int32            `json:"-"`
142}
143
144func (m *ExprValue) Reset()         { *m = ExprValue{} }
145func (m *ExprValue) String() string { return proto.CompactTextString(m) }
146func (*ExprValue) ProtoMessage()    {}
147func (*ExprValue) Descriptor() ([]byte, []int) {
148	return fileDescriptor_1e95f32326d4b8b7, []int{1}
149}
150
151func (m *ExprValue) XXX_Unmarshal(b []byte) error {
152	return xxx_messageInfo_ExprValue.Unmarshal(m, b)
153}
154func (m *ExprValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
155	return xxx_messageInfo_ExprValue.Marshal(b, m, deterministic)
156}
157func (m *ExprValue) XXX_Merge(src proto.Message) {
158	xxx_messageInfo_ExprValue.Merge(m, src)
159}
160func (m *ExprValue) XXX_Size() int {
161	return xxx_messageInfo_ExprValue.Size(m)
162}
163func (m *ExprValue) XXX_DiscardUnknown() {
164	xxx_messageInfo_ExprValue.DiscardUnknown(m)
165}
166
167var xxx_messageInfo_ExprValue proto.InternalMessageInfo
168
169type isExprValue_Kind interface {
170	isExprValue_Kind()
171}
172
173type ExprValue_Value struct {
174	Value *Value `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
175}
176
177type ExprValue_Error struct {
178	Error *ErrorSet `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
179}
180
181type ExprValue_Unknown struct {
182	Unknown *UnknownSet `protobuf:"bytes,3,opt,name=unknown,proto3,oneof"`
183}
184
185func (*ExprValue_Value) isExprValue_Kind() {}
186
187func (*ExprValue_Error) isExprValue_Kind() {}
188
189func (*ExprValue_Unknown) isExprValue_Kind() {}
190
191func (m *ExprValue) GetKind() isExprValue_Kind {
192	if m != nil {
193		return m.Kind
194	}
195	return nil
196}
197
198func (m *ExprValue) GetValue() *Value {
199	if x, ok := m.GetKind().(*ExprValue_Value); ok {
200		return x.Value
201	}
202	return nil
203}
204
205func (m *ExprValue) GetError() *ErrorSet {
206	if x, ok := m.GetKind().(*ExprValue_Error); ok {
207		return x.Error
208	}
209	return nil
210}
211
212func (m *ExprValue) GetUnknown() *UnknownSet {
213	if x, ok := m.GetKind().(*ExprValue_Unknown); ok {
214		return x.Unknown
215	}
216	return nil
217}
218
219// XXX_OneofWrappers is for the internal use of the proto package.
220func (*ExprValue) XXX_OneofWrappers() []interface{} {
221	return []interface{}{
222		(*ExprValue_Value)(nil),
223		(*ExprValue_Error)(nil),
224		(*ExprValue_Unknown)(nil),
225	}
226}
227
228// A set of errors.
229//
230// The errors included depend on the context. See `ExprValue.error`.
231type ErrorSet struct {
232	// The errors in the set.
233	Errors               []*status.Status `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"`
234	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
235	XXX_unrecognized     []byte           `json:"-"`
236	XXX_sizecache        int32            `json:"-"`
237}
238
239func (m *ErrorSet) Reset()         { *m = ErrorSet{} }
240func (m *ErrorSet) String() string { return proto.CompactTextString(m) }
241func (*ErrorSet) ProtoMessage()    {}
242func (*ErrorSet) Descriptor() ([]byte, []int) {
243	return fileDescriptor_1e95f32326d4b8b7, []int{2}
244}
245
246func (m *ErrorSet) XXX_Unmarshal(b []byte) error {
247	return xxx_messageInfo_ErrorSet.Unmarshal(m, b)
248}
249func (m *ErrorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
250	return xxx_messageInfo_ErrorSet.Marshal(b, m, deterministic)
251}
252func (m *ErrorSet) XXX_Merge(src proto.Message) {
253	xxx_messageInfo_ErrorSet.Merge(m, src)
254}
255func (m *ErrorSet) XXX_Size() int {
256	return xxx_messageInfo_ErrorSet.Size(m)
257}
258func (m *ErrorSet) XXX_DiscardUnknown() {
259	xxx_messageInfo_ErrorSet.DiscardUnknown(m)
260}
261
262var xxx_messageInfo_ErrorSet proto.InternalMessageInfo
263
264func (m *ErrorSet) GetErrors() []*status.Status {
265	if m != nil {
266		return m.Errors
267	}
268	return nil
269}
270
271// A set of expressions for which the value is unknown.
272//
273// The unknowns included depend on the context. See `ExprValue.unknown`.
274type UnknownSet struct {
275	// The ids of the expressions with unknown values.
276	Exprs                []int64  `protobuf:"varint,1,rep,packed,name=exprs,proto3" json:"exprs,omitempty"`
277	XXX_NoUnkeyedLiteral struct{} `json:"-"`
278	XXX_unrecognized     []byte   `json:"-"`
279	XXX_sizecache        int32    `json:"-"`
280}
281
282func (m *UnknownSet) Reset()         { *m = UnknownSet{} }
283func (m *UnknownSet) String() string { return proto.CompactTextString(m) }
284func (*UnknownSet) ProtoMessage()    {}
285func (*UnknownSet) Descriptor() ([]byte, []int) {
286	return fileDescriptor_1e95f32326d4b8b7, []int{3}
287}
288
289func (m *UnknownSet) XXX_Unmarshal(b []byte) error {
290	return xxx_messageInfo_UnknownSet.Unmarshal(m, b)
291}
292func (m *UnknownSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
293	return xxx_messageInfo_UnknownSet.Marshal(b, m, deterministic)
294}
295func (m *UnknownSet) XXX_Merge(src proto.Message) {
296	xxx_messageInfo_UnknownSet.Merge(m, src)
297}
298func (m *UnknownSet) XXX_Size() int {
299	return xxx_messageInfo_UnknownSet.Size(m)
300}
301func (m *UnknownSet) XXX_DiscardUnknown() {
302	xxx_messageInfo_UnknownSet.DiscardUnknown(m)
303}
304
305var xxx_messageInfo_UnknownSet proto.InternalMessageInfo
306
307func (m *UnknownSet) GetExprs() []int64 {
308	if m != nil {
309		return m.Exprs
310	}
311	return nil
312}
313
314func init() {
315	proto.RegisterType((*EvalState)(nil), "google.api.expr.v1alpha1.EvalState")
316	proto.RegisterType((*EvalState_Result)(nil), "google.api.expr.v1alpha1.EvalState.Result")
317	proto.RegisterType((*ExprValue)(nil), "google.api.expr.v1alpha1.ExprValue")
318	proto.RegisterType((*ErrorSet)(nil), "google.api.expr.v1alpha1.ErrorSet")
319	proto.RegisterType((*UnknownSet)(nil), "google.api.expr.v1alpha1.UnknownSet")
320}
321
322func init() {
323	proto.RegisterFile("google/api/expr/v1alpha1/eval.proto", fileDescriptor_1e95f32326d4b8b7)
324}
325
326var fileDescriptor_1e95f32326d4b8b7 = []byte{
327	// 367 bytes of a gzipped FileDescriptorProto
328	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xcf, 0x4b, 0xeb, 0x40,
329	0x10, 0xc7, 0x5f, 0x5e, 0xda, 0xf4, 0xbd, 0xe9, 0x6d, 0x11, 0x0c, 0x45, 0xb0, 0xa4, 0x3d, 0x94,
330	0x1e, 0x36, 0x34, 0x82, 0x82, 0xf5, 0x20, 0xc5, 0x82, 0xc7, 0x92, 0xa2, 0x07, 0x6f, 0x6b, 0x5d,
331	0x62, 0xe8, 0x9a, 0x5d, 0x36, 0x3f, 0xec, 0xdf, 0xe7, 0xd1, 0xbf, 0xc8, 0xa3, 0xec, 0x6c, 0x16,
332	0x0f, 0x92, 0xde, 0x3a, 0xbb, 0x9f, 0xcf, 0x77, 0xa6, 0xd9, 0x81, 0x49, 0x26, 0x65, 0x26, 0x78,
333	0xcc, 0x54, 0x1e, 0xf3, 0x83, 0xd2, 0x71, 0xb3, 0x60, 0x42, 0xbd, 0xb2, 0x45, 0xcc, 0x1b, 0x26,
334	0xa8, 0xd2, 0xb2, 0x92, 0x24, 0xb4, 0x10, 0x65, 0x2a, 0xa7, 0x06, 0xa2, 0x0e, 0x1a, 0x4d, 0x3b,
335	0xf5, 0x86, 0x89, 0x9a, 0x5b, 0x7f, 0x74, 0xda, 0x52, 0x5a, 0xed, 0xe2, 0xb2, 0x62, 0x55, 0x5d,
336	0xda, 0x8b, 0xe8, 0xc3, 0x83, 0xff, 0xeb, 0x86, 0x89, 0x6d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