1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.25.0
18// 	protoc        v3.13.0
19// source: google/api/expr/v1alpha1/explain.proto
20
21package expr
22
23import (
24	reflect "reflect"
25	sync "sync"
26
27	proto "github.com/golang/protobuf/proto"
28	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30)
31
32const (
33	// Verify that this generated code is sufficiently up-to-date.
34	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35	// Verify that runtime/protoimpl is sufficiently up-to-date.
36	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37)
38
39// This is a compile-time assertion that a sufficiently up-to-date version
40// of the legacy proto package is being used.
41const _ = proto.ProtoPackageIsVersion4
42
43// Values of intermediate expressions produced when evaluating expression.
44// Deprecated, use `EvalState` instead.
45//
46// Deprecated: Do not use.
47type Explain struct {
48	state         protoimpl.MessageState
49	sizeCache     protoimpl.SizeCache
50	unknownFields protoimpl.UnknownFields
51
52	// All of the observed values.
53	//
54	// The field value_index is an index in the values list.
55	// Separating values from steps is needed to remove redundant values.
56	Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
57	// List of steps.
58	//
59	// Repeated evaluations of the same expression generate new ExprStep
60	// instances. The order of such ExprStep instances matches the order of
61	// elements returned by Comprehension.iter_range.
62	ExprSteps []*Explain_ExprStep `protobuf:"bytes,2,rep,name=expr_steps,json=exprSteps,proto3" json:"expr_steps,omitempty"`
63}
64
65func (x *Explain) Reset() {
66	*x = Explain{}
67	if protoimpl.UnsafeEnabled {
68		mi := &file_google_api_expr_v1alpha1_explain_proto_msgTypes[0]
69		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
70		ms.StoreMessageInfo(mi)
71	}
72}
73
74func (x *Explain) String() string {
75	return protoimpl.X.MessageStringOf(x)
76}
77
78func (*Explain) ProtoMessage() {}
79
80func (x *Explain) ProtoReflect() protoreflect.Message {
81	mi := &file_google_api_expr_v1alpha1_explain_proto_msgTypes[0]
82	if protoimpl.UnsafeEnabled && x != nil {
83		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
84		if ms.LoadMessageInfo() == nil {
85			ms.StoreMessageInfo(mi)
86		}
87		return ms
88	}
89	return mi.MessageOf(x)
90}
91
92// Deprecated: Use Explain.ProtoReflect.Descriptor instead.
93func (*Explain) Descriptor() ([]byte, []int) {
94	return file_google_api_expr_v1alpha1_explain_proto_rawDescGZIP(), []int{0}
95}
96
97func (x *Explain) GetValues() []*Value {
98	if x != nil {
99		return x.Values
100	}
101	return nil
102}
103
104func (x *Explain) GetExprSteps() []*Explain_ExprStep {
105	if x != nil {
106		return x.ExprSteps
107	}
108	return nil
109}
110
111// ID and value index of one step.
112type Explain_ExprStep struct {
113	state         protoimpl.MessageState
114	sizeCache     protoimpl.SizeCache
115	unknownFields protoimpl.UnknownFields
116
117	// ID of corresponding Expr node.
118	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
119	// Index of the value in the values list.
120	ValueIndex int32 `protobuf:"varint,2,opt,name=value_index,json=valueIndex,proto3" json:"value_index,omitempty"`
121}
122
123func (x *Explain_ExprStep) Reset() {
124	*x = Explain_ExprStep{}
125	if protoimpl.UnsafeEnabled {
126		mi := &file_google_api_expr_v1alpha1_explain_proto_msgTypes[1]
127		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
128		ms.StoreMessageInfo(mi)
129	}
130}
131
132func (x *Explain_ExprStep) String() string {
133	return protoimpl.X.MessageStringOf(x)
134}
135
136func (*Explain_ExprStep) ProtoMessage() {}
137
138func (x *Explain_ExprStep) ProtoReflect() protoreflect.Message {
139	mi := &file_google_api_expr_v1alpha1_explain_proto_msgTypes[1]
140	if protoimpl.UnsafeEnabled && x != nil {
141		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142		if ms.LoadMessageInfo() == nil {
143			ms.StoreMessageInfo(mi)
144		}
145		return ms
146	}
147	return mi.MessageOf(x)
148}
149
150// Deprecated: Use Explain_ExprStep.ProtoReflect.Descriptor instead.
151func (*Explain_ExprStep) Descriptor() ([]byte, []int) {
152	return file_google_api_expr_v1alpha1_explain_proto_rawDescGZIP(), []int{0, 0}
153}
154
155func (x *Explain_ExprStep) GetId() int64 {
156	if x != nil {
157		return x.Id
158	}
159	return 0
160}
161
162func (x *Explain_ExprStep) GetValueIndex() int32 {
163	if x != nil {
164		return x.ValueIndex
165	}
166	return 0
167}
168
169var File_google_api_expr_v1alpha1_explain_proto protoreflect.FileDescriptor
170
171var file_google_api_expr_v1alpha1_explain_proto_rawDesc = []byte{
172	0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70,
173	0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x65, 0x78, 0x70, 0x6c, 0x61,
174	0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
175	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
176	0x61, 0x31, 0x1a, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65,
177	0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x76, 0x61, 0x6c,
178	0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xce, 0x01, 0x0a, 0x07, 0x45, 0x78, 0x70,
179	0x6c, 0x61, 0x69, 0x6e, 0x12, 0x37, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01,
180	0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
181	0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
182	0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x49, 0x0a,
183	0x0a, 0x65, 0x78, 0x70, 0x72, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28,
184	0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65,
185	0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70,
186	0x6c, 0x61, 0x69, 0x6e, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x53, 0x74, 0x65, 0x70, 0x52, 0x09, 0x65,
187	0x78, 0x70, 0x72, 0x53, 0x74, 0x65, 0x70, 0x73, 0x1a, 0x3b, 0x0a, 0x08, 0x45, 0x78, 0x70, 0x72,
188	0x53, 0x74, 0x65, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
189	0x52, 0x02, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x69, 0x6e,
190	0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65,
191	0x49, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x02, 0x18, 0x01, 0x42, 0x6f, 0x0a, 0x1c, 0x63, 0x6f, 0x6d,
192	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72,
193	0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x0c, 0x45, 0x78, 0x70, 0x6c, 0x61,
194	0x69, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
195	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
196	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
197	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
198	0x61, 0x31, 0x3b, 0x65, 0x78, 0x70, 0x72, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
199	0x6f, 0x33,
200}
201
202var (
203	file_google_api_expr_v1alpha1_explain_proto_rawDescOnce sync.Once
204	file_google_api_expr_v1alpha1_explain_proto_rawDescData = file_google_api_expr_v1alpha1_explain_proto_rawDesc
205)
206
207func file_google_api_expr_v1alpha1_explain_proto_rawDescGZIP() []byte {
208	file_google_api_expr_v1alpha1_explain_proto_rawDescOnce.Do(func() {
209		file_google_api_expr_v1alpha1_explain_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_expr_v1alpha1_explain_proto_rawDescData)
210	})
211	return file_google_api_expr_v1alpha1_explain_proto_rawDescData
212}
213
214var file_google_api_expr_v1alpha1_explain_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
215var file_google_api_expr_v1alpha1_explain_proto_goTypes = []interface{}{
216	(*Explain)(nil),          // 0: google.api.expr.v1alpha1.Explain
217	(*Explain_ExprStep)(nil), // 1: google.api.expr.v1alpha1.Explain.ExprStep
218	(*Value)(nil),            // 2: google.api.expr.v1alpha1.Value
219}
220var file_google_api_expr_v1alpha1_explain_proto_depIdxs = []int32{
221	2, // 0: google.api.expr.v1alpha1.Explain.values:type_name -> google.api.expr.v1alpha1.Value
222	1, // 1: google.api.expr.v1alpha1.Explain.expr_steps:type_name -> google.api.expr.v1alpha1.Explain.ExprStep
223	2, // [2:2] is the sub-list for method output_type
224	2, // [2:2] is the sub-list for method input_type
225	2, // [2:2] is the sub-list for extension type_name
226	2, // [2:2] is the sub-list for extension extendee
227	0, // [0:2] is the sub-list for field type_name
228}
229
230func init() { file_google_api_expr_v1alpha1_explain_proto_init() }
231func file_google_api_expr_v1alpha1_explain_proto_init() {
232	if File_google_api_expr_v1alpha1_explain_proto != nil {
233		return
234	}
235	file_google_api_expr_v1alpha1_value_proto_init()
236	if !protoimpl.UnsafeEnabled {
237		file_google_api_expr_v1alpha1_explain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
238			switch v := v.(*Explain); i {
239			case 0:
240				return &v.state
241			case 1:
242				return &v.sizeCache
243			case 2:
244				return &v.unknownFields
245			default:
246				return nil
247			}
248		}
249		file_google_api_expr_v1alpha1_explain_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
250			switch v := v.(*Explain_ExprStep); i {
251			case 0:
252				return &v.state
253			case 1:
254				return &v.sizeCache
255			case 2:
256				return &v.unknownFields
257			default:
258				return nil
259			}
260		}
261	}
262	type x struct{}
263	out := protoimpl.TypeBuilder{
264		File: protoimpl.DescBuilder{
265			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
266			RawDescriptor: file_google_api_expr_v1alpha1_explain_proto_rawDesc,
267			NumEnums:      0,
268			NumMessages:   2,
269			NumExtensions: 0,
270			NumServices:   0,
271		},
272		GoTypes:           file_google_api_expr_v1alpha1_explain_proto_goTypes,
273		DependencyIndexes: file_google_api_expr_v1alpha1_explain_proto_depIdxs,
274		MessageInfos:      file_google_api_expr_v1alpha1_explain_proto_msgTypes,
275	}.Build()
276	File_google_api_expr_v1alpha1_explain_proto = out.File
277	file_google_api_expr_v1alpha1_explain_proto_rawDesc = nil
278	file_google_api_expr_v1alpha1_explain_proto_goTypes = nil
279	file_google_api_expr_v1alpha1_explain_proto_depIdxs = nil
280}
281