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