| 1 |
// Copyright 2025 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 v4.24.4 |
| 19 |
// source: google/api/expr/v1alpha1/checked.proto |
| 20 |
|
| 21 |
package expr |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 28 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 29 |
emptypb "google.golang.org/protobuf/types/known/emptypb" |
| 30 |
structpb "google.golang.org/protobuf/types/known/structpb" |
| 31 |
) |
| 32 |
|
| 33 |
const ( |
| 34 |
// Verify that this generated code is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 36 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 38 |
) |
| 39 |
|
| 40 |
// CEL primitive types. |
| 41 |
type Type_PrimitiveType int32 |
| 42 |
|
| 43 |
const ( |
| 44 |
// Unspecified type. |
| 45 |
Type_PRIMITIVE_TYPE_UNSPECIFIED Type_PrimitiveType = 0 |
| 46 |
// Boolean type. |
| 47 |
Type_BOOL Type_PrimitiveType = 1 |
| 48 |
// Int64 type. |
| 49 |
// |
| 50 |
// Proto-based integer values are widened to int64. |
| 51 |
Type_INT64 Type_PrimitiveType = 2 |
| 52 |
// Uint64 type. |
| 53 |
// |
| 54 |
// Proto-based unsigned integer values are widened to uint64. |
| 55 |
Type_UINT64 Type_PrimitiveType = 3 |
| 56 |
// Double type. |
| 57 |
// |
| 58 |
// Proto-based float values are widened to double values. |
| 59 |
Type_DOUBLE Type_PrimitiveType = 4 |
| 60 |
// String type. |
| 61 |
Type_STRING Type_PrimitiveType = 5 |
| 62 |
// Bytes type. |
| 63 |
Type_BYTES Type_PrimitiveType = 6 |
| 64 |
) |
| 65 |
|
| 66 |
// Enum value maps for Type_PrimitiveType. |
| 67 |
var ( |
| 68 |
Type_PrimitiveType_name = map[int32]string{ |
| 69 |
0: "PRIMITIVE_TYPE_UNSPECIFIED", |
| 70 |
1: "BOOL", |
| 71 |
2: "INT64", |
| 72 |
3: "UINT64", |
| 73 |
4: "DOUBLE", |
| 74 |
5: "STRING", |
| 75 |
6: "BYTES", |
| 76 |
} |
| 77 |
Type_PrimitiveType_value = map[string]int32{ |
| 78 |
"PRIMITIVE_TYPE_UNSPECIFIED": 0, |
| 79 |
"BOOL": 1, |
| 80 |
"INT64": 2, |
| 81 |
"UINT64": 3, |
| 82 |
"DOUBLE": 4, |
| 83 |
"STRING": 5, |
| 84 |
"BYTES": 6, |
| 85 |
} |
| 86 |
) |
| 87 |
|
| 88 |
func (x Type_PrimitiveType) Enum() *Type_PrimitiveType { |
| 89 |
p := new(Type_PrimitiveType) |
| 90 |
*p = x |
| 91 |
return p |
| 92 |
} |
| 93 |
|
| 94 |
func (x Type_PrimitiveType) String() string { |
| 95 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 96 |
} |
| 97 |
|
| 98 |
func (Type_PrimitiveType) Descriptor() protoreflect.EnumDescriptor { |
| 99 |
return file_google_api_expr_v1alpha1_checked_proto_enumTypes[0].Descriptor() |
| 100 |
} |
| 101 |
|
| 102 |
func (Type_PrimitiveType) Type() protoreflect.EnumType { |
| 103 |
return &file_google_api_expr_v1alpha1_checked_proto_enumTypes[0] |
| 104 |
} |
| 105 |
|
| 106 |
func (x Type_PrimitiveType) Number() protoreflect.EnumNumber { |
| 107 |
return protoreflect.EnumNumber(x) |
| 108 |
} |
| 109 |
|
| 110 |
// Deprecated: Use Type_PrimitiveType.Descriptor instead. |
| 111 |
func (Type_PrimitiveType) EnumDescriptor() ([]byte, []int) { |
| 112 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1, 0} |
| 113 |
} |
| 114 |
|
| 115 |
// Well-known protobuf types treated with first-class support in CEL. |
| 116 |
type Type_WellKnownType int32 |
| 117 |
|
| 118 |
const ( |
| 119 |
// Unspecified type. |
| 120 |
Type_WELL_KNOWN_TYPE_UNSPECIFIED Type_WellKnownType = 0 |
| 121 |
// Well-known protobuf.Any type. |
| 122 |
// |
| 123 |
// Any types are a polymorphic message type. During type-checking they are |
| 124 |
// treated like `DYN` types, but at runtime they are resolved to a specific |
| 125 |
// message type specified at evaluation time. |
| 126 |
Type_ANY Type_WellKnownType = 1 |
| 127 |
// Well-known protobuf.Timestamp type, internally referenced as `timestamp`. |
| 128 |
Type_TIMESTAMP Type_WellKnownType = 2 |
| 129 |
// Well-known protobuf.Duration type, internally referenced as `duration`. |
| 130 |
Type_DURATION Type_WellKnownType = 3 |
| 131 |
) |
| 132 |
|
| 133 |
// Enum value maps for Type_WellKnownType. |
| 134 |
var ( |
| 135 |
Type_WellKnownType_name = map[int32]string{ |
| 136 |
0: "WELL_KNOWN_TYPE_UNSPECIFIED", |
| 137 |
1: "ANY", |
| 138 |
2: "TIMESTAMP", |
| 139 |
3: "DURATION", |
| 140 |
} |
| 141 |
Type_WellKnownType_value = map[string]int32{ |
| 142 |
"WELL_KNOWN_TYPE_UNSPECIFIED": 0, |
| 143 |
"ANY": 1, |
| 144 |
"TIMESTAMP": 2, |
| 145 |
"DURATION": 3, |
| 146 |
} |
| 147 |
) |
| 148 |
|
| 149 |
func (x Type_WellKnownType) Enum() *Type_WellKnownType { |
| 150 |
p := new(Type_WellKnownType) |
| 151 |
*p = x |
| 152 |
return p |
| 153 |
} |
| 154 |
|
| 155 |
func (x Type_WellKnownType) String() string { |
| 156 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 157 |
} |
| 158 |
|
| 159 |
func (Type_WellKnownType) Descriptor() protoreflect.EnumDescriptor { |
| 160 |
return file_google_api_expr_v1alpha1_checked_proto_enumTypes[1].Descriptor() |
| 161 |
} |
| 162 |
|
| 163 |
func (Type_WellKnownType) Type() protoreflect.EnumType { |
| 164 |
return &file_google_api_expr_v1alpha1_checked_proto_enumTypes[1] |
| 165 |
} |
| 166 |
|
| 167 |
func (x Type_WellKnownType) Number() protoreflect.EnumNumber { |
| 168 |
return protoreflect.EnumNumber(x) |
| 169 |
} |
| 170 |
|
| 171 |
// Deprecated: Use Type_WellKnownType.Descriptor instead. |
| 172 |
func (Type_WellKnownType) EnumDescriptor() ([]byte, []int) { |
| 173 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1, 1} |
| 174 |
} |
| 175 |
|
| 176 |
// A CEL expression which has been successfully type checked. |
| 177 |
type CheckedExpr struct { |
| 178 |
state protoimpl.MessageState |
| 179 |
sizeCache protoimpl.SizeCache |
| 180 |
unknownFields protoimpl.UnknownFields |
| 181 |
|
| 182 |
// A map from expression ids to resolved references. |
| 183 |
// |
| 184 |
// The following entries are in this table: |
| 185 |
// |
| 186 |
// - An Ident or Select expression is represented here if it resolves to a |
| 187 |
// declaration. For instance, if `a.b.c` is represented by |
| 188 |
// `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, |
| 189 |
// while `c` is a field selection, then the reference is attached to the |
| 190 |
// nested select expression (but not to the id or or the outer select). |
| 191 |
// In turn, if `a` resolves to a declaration and `b.c` are field selections, |
| 192 |
// the reference is attached to the ident expression. |
| 193 |
// - Every Call expression has an entry here, identifying the function being |
| 194 |
// called. |
| 195 |
// - Every CreateStruct expression for a message has an entry, identifying |
| 196 |
// the message. |
| 197 |
ReferenceMap map[int64]*Reference `protobuf:"bytes,2,rep,name=reference_map,json=referenceMap,proto3" json:"reference_map,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 198 |
// A map from expression ids to types. |
| 199 |
// |
| 200 |
// Every expression node which has a type different than DYN has a mapping |
| 201 |
// here. If an expression has type DYN, it is omitted from this map to save |
| 202 |
// space. |
| 203 |
TypeMap map[int64]*Type `protobuf:"bytes,3,rep,name=type_map,json=typeMap,proto3" json:"type_map,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` |
| 204 |
// The source info derived from input that generated the parsed `expr` and |
| 205 |
// any optimizations made during the type-checking pass. |
| 206 |
SourceInfo *SourceInfo `protobuf:"bytes,5,opt,name=source_info,json=sourceInfo,proto3" json:"source_info,omitempty"` |
| 207 |
// The expr version indicates the major / minor version number of the `expr` |
| 208 |
// representation. |
| 209 |
// |
| 210 |
// The most common reason for a version change will be to indicate to the CEL |
| 211 |
// runtimes that transformations have been performed on the expr during static |
| 212 |
// analysis. In some cases, this will save the runtime the work of applying |
| 213 |
// the same or similar transformations prior to evaluation. |
| 214 |
ExprVersion string `protobuf:"bytes,6,opt,name=expr_version,json=exprVersion,proto3" json:"expr_version,omitempty"` |
| 215 |
// The checked expression. Semantically equivalent to the parsed `expr`, but |
| 216 |
// may have structural differences. |
| 217 |
Expr *Expr `protobuf:"bytes,4,opt,name=expr,proto3" json:"expr,omitempty"` |
| 218 |
} |
| 219 |
|
| 220 |
func (x *CheckedExpr) Reset() { |
| 221 |
*x = CheckedExpr{} |
| 222 |
if protoimpl.UnsafeEnabled { |
| 223 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[0] |
| 224 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 225 |
ms.StoreMessageInfo(mi) |
| 226 |
} |
| 227 |
} |
| 228 |
|
| 229 |
func (x *CheckedExpr) String() string { |
| 230 |
return protoimpl.X.MessageStringOf(x) |
| 231 |
} |
| 232 |
|
| 233 |
func (*CheckedExpr) ProtoMessage() {} |
| 234 |
|
| 235 |
func (x *CheckedExpr) ProtoReflect() protoreflect.Message { |
| 236 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[0] |
| 237 |
if protoimpl.UnsafeEnabled && x != nil { |
| 238 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 239 |
if ms.LoadMessageInfo() == nil { |
| 240 |
ms.StoreMessageInfo(mi) |
| 241 |
} |
| 242 |
return ms |
| 243 |
} |
| 244 |
return mi.MessageOf(x) |
| 245 |
} |
| 246 |
|
| 247 |
// Deprecated: Use CheckedExpr.ProtoReflect.Descriptor instead. |
| 248 |
func (*CheckedExpr) Descriptor() ([]byte, []int) { |
| 249 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{0} |
| 250 |
} |
| 251 |
|
| 252 |
func (x *CheckedExpr) GetReferenceMap() map[int64]*Reference { |
| 253 |
if x != nil { |
| 254 |
return x.ReferenceMap |
| 255 |
} |
| 256 |
return nil |
| 257 |
} |
| 258 |
|
| 259 |
func (x *CheckedExpr) GetTypeMap() map[int64]*Type { |
| 260 |
if x != nil { |
| 261 |
return x.TypeMap |
| 262 |
} |
| 263 |
return nil |
| 264 |
} |
| 265 |
|
| 266 |
func (x *CheckedExpr) GetSourceInfo() *SourceInfo { |
| 267 |
if x != nil { |
| 268 |
return x.SourceInfo |
| 269 |
} |
| 270 |
return nil |
| 271 |
} |
| 272 |
|
| 273 |
func (x *CheckedExpr) GetExprVersion() string { |
| 274 |
if x != nil { |
| 275 |
return x.ExprVersion |
| 276 |
} |
| 277 |
return "" |
| 278 |
} |
| 279 |
|
| 280 |
func (x *CheckedExpr) GetExpr() *Expr { |
| 281 |
if x != nil { |
| 282 |
return x.Expr |
| 283 |
} |
| 284 |
return nil |
| 285 |
} |
| 286 |
|
| 287 |
// Represents a CEL type. |
| 288 |
type Type struct { |
| 289 |
state protoimpl.MessageState |
| 290 |
sizeCache protoimpl.SizeCache |
| 291 |
unknownFields protoimpl.UnknownFields |
| 292 |
|
| 293 |
// The kind of type. |
| 294 |
// |
| 295 |
// Types that are assignable to TypeKind: |
| 296 |
// |
| 297 |
// *Type_Dyn |
| 298 |
// *Type_Null |
| 299 |
// *Type_Primitive |
| 300 |
// *Type_Wrapper |
| 301 |
// *Type_WellKnown |
| 302 |
// *Type_ListType_ |
| 303 |
// *Type_MapType_ |
| 304 |
// *Type_Function |
| 305 |
// *Type_MessageType |
| 306 |
// *Type_TypeParam |
| 307 |
// *Type_Type |
| 308 |
// *Type_Error |
| 309 |
// *Type_AbstractType_ |
| 310 |
TypeKind isType_TypeKind `protobuf_oneof:"type_kind"` |
| 311 |
} |
| 312 |
|
| 313 |
func (x *Type) Reset() { |
| 314 |
*x = Type{} |
| 315 |
if protoimpl.UnsafeEnabled { |
| 316 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[1] |
| 317 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 318 |
ms.StoreMessageInfo(mi) |
| 319 |
} |
| 320 |
} |
| 321 |
|
| 322 |
func (x *Type) String() string { |
| 323 |
return protoimpl.X.MessageStringOf(x) |
| 324 |
} |
| 325 |
|
| 326 |
func (*Type) ProtoMessage() {} |
| 327 |
|
| 328 |
func (x *Type) ProtoReflect() protoreflect.Message { |
| 329 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[1] |
| 330 |
if protoimpl.UnsafeEnabled && x != nil { |
| 331 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 332 |
if ms.LoadMessageInfo() == nil { |
| 333 |
ms.StoreMessageInfo(mi) |
| 334 |
} |
| 335 |
return ms |
| 336 |
} |
| 337 |
return mi.MessageOf(x) |
| 338 |
} |
| 339 |
|
| 340 |
// Deprecated: Use Type.ProtoReflect.Descriptor instead. |
| 341 |
func (*Type) Descriptor() ([]byte, []int) { |
| 342 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1} |
| 343 |
} |
| 344 |
|
| 345 |
func (m *Type) GetTypeKind() isType_TypeKind { |
| 346 |
if m != nil { |
| 347 |
return m.TypeKind |
| 348 |
} |
| 349 |
return nil |
| 350 |
} |
| 351 |
|
| 352 |
func (x *Type) GetDyn() *emptypb.Empty { |
| 353 |
if x, ok := x.GetTypeKind().(*Type_Dyn); ok { |
| 354 |
return x.Dyn |
| 355 |
} |
| 356 |
return nil |
| 357 |
} |
| 358 |
|
| 359 |
func (x *Type) GetNull() structpb.NullValue { |
| 360 |
if x, ok := x.GetTypeKind().(*Type_Null); ok { |
| 361 |
return x.Null |
| 362 |
} |
| 363 |
return structpb.NullValue_NULL_VALUE |
| 364 |
} |
| 365 |
|
| 366 |
func (x *Type) GetPrimitive() Type_PrimitiveType { |
| 367 |
if x, ok := x.GetTypeKind().(*Type_Primitive); ok { |
| 368 |
return x.Primitive |
| 369 |
} |
| 370 |
return Type_PRIMITIVE_TYPE_UNSPECIFIED |
| 371 |
} |
| 372 |
|
| 373 |
func (x *Type) GetWrapper() Type_PrimitiveType { |
| 374 |
if x, ok := x.GetTypeKind().(*Type_Wrapper); ok { |
| 375 |
return x.Wrapper |
| 376 |
} |
| 377 |
return Type_PRIMITIVE_TYPE_UNSPECIFIED |
| 378 |
} |
| 379 |
|
| 380 |
func (x *Type) GetWellKnown() Type_WellKnownType { |
| 381 |
if x, ok := x.GetTypeKind().(*Type_WellKnown); ok { |
| 382 |
return x.WellKnown |
| 383 |
} |
| 384 |
return Type_WELL_KNOWN_TYPE_UNSPECIFIED |
| 385 |
} |
| 386 |
|
| 387 |
func (x *Type) GetListType() *Type_ListType { |
| 388 |
if x, ok := x.GetTypeKind().(*Type_ListType_); ok { |
| 389 |
return x.ListType |
| 390 |
} |
| 391 |
return nil |
| 392 |
} |
| 393 |
|
| 394 |
func (x *Type) GetMapType() *Type_MapType { |
| 395 |
if x, ok := x.GetTypeKind().(*Type_MapType_); ok { |
| 396 |
return x.MapType |
| 397 |
} |
| 398 |
return nil |
| 399 |
} |
| 400 |
|
| 401 |
func (x *Type) GetFunction() *Type_FunctionType { |
| 402 |
if x, ok := x.GetTypeKind().(*Type_Function); ok { |
| 403 |
return x.Function |
| 404 |
} |
| 405 |
return nil |
| 406 |
} |
| 407 |
|
| 408 |
func (x *Type) GetMessageType() string { |
| 409 |
if x, ok := x.GetTypeKind().(*Type_MessageType); ok { |
| 410 |
return x.MessageType |
| 411 |
} |
| 412 |
return "" |
| 413 |
} |
| 414 |
|
| 415 |
func (x *Type) GetTypeParam() string { |
| 416 |
if x, ok := x.GetTypeKind().(*Type_TypeParam); ok { |
| 417 |
return x.TypeParam |
| 418 |
} |
| 419 |
return "" |
| 420 |
} |
| 421 |
|
| 422 |
func (x *Type) GetType() *Type { |
| 423 |
if x, ok := x.GetTypeKind().(*Type_Type); ok { |
| 424 |
return x.Type |
| 425 |
} |
| 426 |
return nil |
| 427 |
} |
| 428 |
|
| 429 |
func (x *Type) GetError() *emptypb.Empty { |
| 430 |
if x, ok := x.GetTypeKind().(*Type_Error); ok { |
| 431 |
return x.Error |
| 432 |
} |
| 433 |
return nil |
| 434 |
} |
| 435 |
|
| 436 |
func (x *Type) GetAbstractType() *Type_AbstractType { |
| 437 |
if x, ok := x.GetTypeKind().(*Type_AbstractType_); ok { |
| 438 |
return x.AbstractType |
| 439 |
} |
| 440 |
return nil |
| 441 |
} |
| 442 |
|
| 443 |
type isType_TypeKind interface { |
| 444 |
isType_TypeKind() |
| 445 |
} |
| 446 |
|
| 447 |
type Type_Dyn struct { |
| 448 |
// Dynamic type. |
| 449 |
Dyn *emptypb.Empty `protobuf:"bytes,1,opt,name=dyn,proto3,oneof"` |
| 450 |
} |
| 451 |
|
| 452 |
type Type_Null struct { |
| 453 |
// Null value. |
| 454 |
Null structpb.NullValue `protobuf:"varint,2,opt,name=null,proto3,enum=google.protobuf.NullValue,oneof"` |
| 455 |
} |
| 456 |
|
| 457 |
type Type_Primitive struct { |
| 458 |
// Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. |
| 459 |
Primitive Type_PrimitiveType `protobuf:"varint,3,opt,name=primitive,proto3,enum=google.api.expr.v1alpha1.Type_PrimitiveType,oneof"` |
| 460 |
} |
| 461 |
|
| 462 |
type Type_Wrapper struct { |
| 463 |
// Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. |
| 464 |
Wrapper Type_PrimitiveType `protobuf:"varint,4,opt,name=wrapper,proto3,enum=google.api.expr.v1alpha1.Type_PrimitiveType,oneof"` |
| 465 |
} |
| 466 |
|
| 467 |
type Type_WellKnown struct { |
| 468 |
// Well-known protobuf type such as `google.protobuf.Timestamp`. |
| 469 |
WellKnown Type_WellKnownType `protobuf:"varint,5,opt,name=well_known,json=wellKnown,proto3,enum=google.api.expr.v1alpha1.Type_WellKnownType,oneof"` |
| 470 |
} |
| 471 |
|
| 472 |
type Type_ListType_ struct { |
| 473 |
// Parameterized list with elements of `list_type`, e.g. `list<timestamp>`. |
| 474 |
ListType *Type_ListType `protobuf:"bytes,6,opt,name=list_type,json=listType,proto3,oneof"` |
| 475 |
} |
| 476 |
|
| 477 |
type Type_MapType_ struct { |
| 478 |
// Parameterized map with typed keys and values. |
| 479 |
MapType *Type_MapType `protobuf:"bytes,7,opt,name=map_type,json=mapType,proto3,oneof"` |
| 480 |
} |
| 481 |
|
| 482 |
type Type_Function struct { |
| 483 |
// Function type. |
| 484 |
Function *Type_FunctionType `protobuf:"bytes,8,opt,name=function,proto3,oneof"` |
| 485 |
} |
| 486 |
|
| 487 |
type Type_MessageType struct { |
| 488 |
// Protocol buffer message type. |
| 489 |
// |
| 490 |
// The `message_type` string specifies the qualified message type name. For |
| 491 |
// example, `google.plus.Profile`. |
| 492 |
MessageType string `protobuf:"bytes,9,opt,name=message_type,json=messageType,proto3,oneof"` |
| 493 |
} |
| 494 |
|
| 495 |
type Type_TypeParam struct { |
| 496 |
// Type param type. |
| 497 |
// |
| 498 |
// The `type_param` string specifies the type parameter name, e.g. `list<E>` |
| 499 |
// would be a `list_type` whose element type was a `type_param` type |
| 500 |
// named `E`. |
| 501 |
TypeParam string `protobuf:"bytes,10,opt,name=type_param,json=typeParam,proto3,oneof"` |
| 502 |
} |
| 503 |
|
| 504 |
type Type_Type struct { |
| 505 |
// Type type. |
| 506 |
// |
| 507 |
// The `type` value specifies the target type. e.g. int is type with a |
| 508 |
// target type of `Primitive.INT`. |
| 509 |
Type *Type `protobuf:"bytes,11,opt,name=type,proto3,oneof"` |
| 510 |
} |
| 511 |
|
| 512 |
type Type_Error struct { |
| 513 |
// Error type. |
| 514 |
// |
| 515 |
// During type-checking if an expression is an error, its type is propagated |
| 516 |
// as the `ERROR` type. This permits the type-checker to discover other |
| 517 |
// errors present in the expression. |
| 518 |
Error *emptypb.Empty `protobuf:"bytes,12,opt,name=error,proto3,oneof"` |
| 519 |
} |
| 520 |
|
| 521 |
type Type_AbstractType_ struct { |
| 522 |
// Abstract, application defined type. |
| 523 |
AbstractType *Type_AbstractType `protobuf:"bytes,14,opt,name=abstract_type,json=abstractType,proto3,oneof"` |
| 524 |
} |
| 525 |
|
| 526 |
func (*Type_Dyn) isType_TypeKind() {} |
| 527 |
|
| 528 |
func (*Type_Null) isType_TypeKind() {} |
| 529 |
|
| 530 |
func (*Type_Primitive) isType_TypeKind() {} |
| 531 |
|
| 532 |
func (*Type_Wrapper) isType_TypeKind() {} |
| 533 |
|
| 534 |
func (*Type_WellKnown) isType_TypeKind() {} |
| 535 |
|
| 536 |
func (*Type_ListType_) isType_TypeKind() {} |
| 537 |
|
| 538 |
func (*Type_MapType_) isType_TypeKind() {} |
| 539 |
|
| 540 |
func (*Type_Function) isType_TypeKind() {} |
| 541 |
|
| 542 |
func (*Type_MessageType) isType_TypeKind() {} |
| 543 |
|
| 544 |
func (*Type_TypeParam) isType_TypeKind() {} |
| 545 |
|
| 546 |
func (*Type_Type) isType_TypeKind() {} |
| 547 |
|
| 548 |
func (*Type_Error) isType_TypeKind() {} |
| 549 |
|
| 550 |
func (*Type_AbstractType_) isType_TypeKind() {} |
| 551 |
|
| 552 |
// Represents a declaration of a named value or function. |
| 553 |
// |
| 554 |
// A declaration is part of the contract between the expression, the agent |
| 555 |
// evaluating that expression, and the caller requesting evaluation. |
| 556 |
type Decl struct { |
| 557 |
state protoimpl.MessageState |
| 558 |
sizeCache protoimpl.SizeCache |
| 559 |
unknownFields protoimpl.UnknownFields |
| 560 |
|
| 561 |
// The fully qualified name of the declaration. |
| 562 |
// |
| 563 |
// Declarations are organized in containers and this represents the full path |
| 564 |
// to the declaration in its container, as in `google.api.expr.Decl`. |
| 565 |
// |
| 566 |
// Declarations used as |
| 567 |
// [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] |
| 568 |
// parameters may or may not have a name depending on whether the overload is |
| 569 |
// function declaration or a function definition containing a result |
| 570 |
// [Expr][google.api.expr.v1alpha1.Expr]. |
| 571 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 572 |
// Required. The declaration kind. |
| 573 |
// |
| 574 |
// Types that are assignable to DeclKind: |
| 575 |
// |
| 576 |
// *Decl_Ident |
| 577 |
// *Decl_Function |
| 578 |
DeclKind isDecl_DeclKind `protobuf_oneof:"decl_kind"` |
| 579 |
} |
| 580 |
|
| 581 |
func (x *Decl) Reset() { |
| 582 |
*x = Decl{} |
| 583 |
if protoimpl.UnsafeEnabled { |
| 584 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[2] |
| 585 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 586 |
ms.StoreMessageInfo(mi) |
| 587 |
} |
| 588 |
} |
| 589 |
|
| 590 |
func (x *Decl) String() string { |
| 591 |
return protoimpl.X.MessageStringOf(x) |
| 592 |
} |
| 593 |
|
| 594 |
func (*Decl) ProtoMessage() {} |
| 595 |
|
| 596 |
func (x *Decl) ProtoReflect() protoreflect.Message { |
| 597 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[2] |
| 598 |
if protoimpl.UnsafeEnabled && x != nil { |
| 599 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 600 |
if ms.LoadMessageInfo() == nil { |
| 601 |
ms.StoreMessageInfo(mi) |
| 602 |
} |
| 603 |
return ms |
| 604 |
} |
| 605 |
return mi.MessageOf(x) |
| 606 |
} |
| 607 |
|
| 608 |
// Deprecated: Use Decl.ProtoReflect.Descriptor instead. |
| 609 |
func (*Decl) Descriptor() ([]byte, []int) { |
| 610 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{2} |
| 611 |
} |
| 612 |
|
| 613 |
func (x *Decl) GetName() string { |
| 614 |
if x != nil { |
| 615 |
return x.Name |
| 616 |
} |
| 617 |
return "" |
| 618 |
} |
| 619 |
|
| 620 |
func (m *Decl) GetDeclKind() isDecl_DeclKind { |
| 621 |
if m != nil { |
| 622 |
return m.DeclKind |
| 623 |
} |
| 624 |
return nil |
| 625 |
} |
| 626 |
|
| 627 |
func (x *Decl) GetIdent() *Decl_IdentDecl { |
| 628 |
if x, ok := x.GetDeclKind().(*Decl_Ident); ok { |
| 629 |
return x.Ident |
| 630 |
} |
| 631 |
return nil |
| 632 |
} |
| 633 |
|
| 634 |
func (x *Decl) GetFunction() *Decl_FunctionDecl { |
| 635 |
if x, ok := x.GetDeclKind().(*Decl_Function); ok { |
| 636 |
return x.Function |
| 637 |
} |
| 638 |
return nil |
| 639 |
} |
| 640 |
|
| 641 |
type isDecl_DeclKind interface { |
| 642 |
isDecl_DeclKind() |
| 643 |
} |
| 644 |
|
| 645 |
type Decl_Ident struct { |
| 646 |
// Identifier declaration. |
| 647 |
Ident *Decl_IdentDecl `protobuf:"bytes,2,opt,name=ident,proto3,oneof"` |
| 648 |
} |
| 649 |
|
| 650 |
type Decl_Function struct { |
| 651 |
// Function declaration. |
| 652 |
Function *Decl_FunctionDecl `protobuf:"bytes,3,opt,name=function,proto3,oneof"` |
| 653 |
} |
| 654 |
|
| 655 |
func (*Decl_Ident) isDecl_DeclKind() {} |
| 656 |
|
| 657 |
func (*Decl_Function) isDecl_DeclKind() {} |
| 658 |
|
| 659 |
// Describes a resolved reference to a declaration. |
| 660 |
type Reference struct { |
| 661 |
state protoimpl.MessageState |
| 662 |
sizeCache protoimpl.SizeCache |
| 663 |
unknownFields protoimpl.UnknownFields |
| 664 |
|
| 665 |
// The fully qualified name of the declaration. |
| 666 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 667 |
// For references to functions, this is a list of `Overload.overload_id` |
| 668 |
// values which match according to typing rules. |
| 669 |
// |
| 670 |
// If the list has more than one element, overload resolution among the |
| 671 |
// presented candidates must happen at runtime because of dynamic types. The |
| 672 |
// type checker attempts to narrow down this list as much as possible. |
| 673 |
// |
| 674 |
// Empty if this is not a reference to a |
| 675 |
// [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. |
| 676 |
OverloadId []string `protobuf:"bytes,3,rep,name=overload_id,json=overloadId,proto3" json:"overload_id,omitempty"` |
| 677 |
// For references to constants, this may contain the value of the |
| 678 |
// constant if known at compile time. |
| 679 |
Value *Constant `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` |
| 680 |
} |
| 681 |
|
| 682 |
func (x *Reference) Reset() { |
| 683 |
*x = Reference{} |
| 684 |
if protoimpl.UnsafeEnabled { |
| 685 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[3] |
| 686 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 687 |
ms.StoreMessageInfo(mi) |
| 688 |
} |
| 689 |
} |
| 690 |
|
| 691 |
func (x *Reference) String() string { |
| 692 |
return protoimpl.X.MessageStringOf(x) |
| 693 |
} |
| 694 |
|
| 695 |
func (*Reference) ProtoMessage() {} |
| 696 |
|
| 697 |
func (x *Reference) ProtoReflect() protoreflect.Message { |
| 698 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[3] |
| 699 |
if protoimpl.UnsafeEnabled && x != nil { |
| 700 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 701 |
if ms.LoadMessageInfo() == nil { |
| 702 |
ms.StoreMessageInfo(mi) |
| 703 |
} |
| 704 |
return ms |
| 705 |
} |
| 706 |
return mi.MessageOf(x) |
| 707 |
} |
| 708 |
|
| 709 |
// Deprecated: Use Reference.ProtoReflect.Descriptor instead. |
| 710 |
func (*Reference) Descriptor() ([]byte, []int) { |
| 711 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{3} |
| 712 |
} |
| 713 |
|
| 714 |
func (x *Reference) GetName() string { |
| 715 |
if x != nil { |
| 716 |
return x.Name |
| 717 |
} |
| 718 |
return "" |
| 719 |
} |
| 720 |
|
| 721 |
func (x *Reference) GetOverloadId() []string { |
| 722 |
if x != nil { |
| 723 |
return x.OverloadId |
| 724 |
} |
| 725 |
return nil |
| 726 |
} |
| 727 |
|
| 728 |
func (x *Reference) GetValue() *Constant { |
| 729 |
if x != nil { |
| 730 |
return x.Value |
| 731 |
} |
| 732 |
return nil |
| 733 |
} |
| 734 |
|
| 735 |
// List type with typed elements, e.g. `list<example.proto.MyMessage>`. |
| 736 |
type Type_ListType struct { |
| 737 |
state protoimpl.MessageState |
| 738 |
sizeCache protoimpl.SizeCache |
| 739 |
unknownFields protoimpl.UnknownFields |
| 740 |
|
| 741 |
// The element type. |
| 742 |
ElemType *Type `protobuf:"bytes,1,opt,name=elem_type,json=elemType,proto3" json:"elem_type,omitempty"` |
| 743 |
} |
| 744 |
|
| 745 |
func (x *Type_ListType) Reset() { |
| 746 |
*x = Type_ListType{} |
| 747 |
if protoimpl.UnsafeEnabled { |
| 748 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[6] |
| 749 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 750 |
ms.StoreMessageInfo(mi) |
| 751 |
} |
| 752 |
} |
| 753 |
|
| 754 |
func (x *Type_ListType) String() string { |
| 755 |
return protoimpl.X.MessageStringOf(x) |
| 756 |
} |
| 757 |
|
| 758 |
func (*Type_ListType) ProtoMessage() {} |
| 759 |
|
| 760 |
func (x *Type_ListType) ProtoReflect() protoreflect.Message { |
| 761 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[6] |
| 762 |
if protoimpl.UnsafeEnabled && x != nil { |
| 763 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 764 |
if ms.LoadMessageInfo() == nil { |
| 765 |
ms.StoreMessageInfo(mi) |
| 766 |
} |
| 767 |
return ms |
| 768 |
} |
| 769 |
return mi.MessageOf(x) |
| 770 |
} |
| 771 |
|
| 772 |
// Deprecated: Use Type_ListType.ProtoReflect.Descriptor instead. |
| 773 |
func (*Type_ListType) Descriptor() ([]byte, []int) { |
| 774 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1, 0} |
| 775 |
} |
| 776 |
|
| 777 |
func (x *Type_ListType) GetElemType() *Type { |
| 778 |
if x != nil { |
| 779 |
return x.ElemType |
| 780 |
} |
| 781 |
return nil |
| 782 |
} |
| 783 |
|
| 784 |
// Map type with parameterized key and value types, e.g. `map<string, int>`. |
| 785 |
type Type_MapType struct { |
| 786 |
state protoimpl.MessageState |
| 787 |
sizeCache protoimpl.SizeCache |
| 788 |
unknownFields protoimpl.UnknownFields |
| 789 |
|
| 790 |
// The type of the key. |
| 791 |
KeyType *Type `protobuf:"bytes,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` |
| 792 |
// The type of the value. |
| 793 |
ValueType *Type `protobuf:"bytes,2,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"` |
| 794 |
} |
| 795 |
|
| 796 |
func (x *Type_MapType) Reset() { |
| 797 |
*x = Type_MapType{} |
| 798 |
if protoimpl.UnsafeEnabled { |
| 799 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[7] |
| 800 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 801 |
ms.StoreMessageInfo(mi) |
| 802 |
} |
| 803 |
} |
| 804 |
|
| 805 |
func (x *Type_MapType) String() string { |
| 806 |
return protoimpl.X.MessageStringOf(x) |
| 807 |
} |
| 808 |
|
| 809 |
func (*Type_MapType) ProtoMessage() {} |
| 810 |
|
| 811 |
func (x *Type_MapType) ProtoReflect() protoreflect.Message { |
| 812 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[7] |
| 813 |
if protoimpl.UnsafeEnabled && x != nil { |
| 814 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 815 |
if ms.LoadMessageInfo() == nil { |
| 816 |
ms.StoreMessageInfo(mi) |
| 817 |
} |
| 818 |
return ms |
| 819 |
} |
| 820 |
return mi.MessageOf(x) |
| 821 |
} |
| 822 |
|
| 823 |
// Deprecated: Use Type_MapType.ProtoReflect.Descriptor instead. |
| 824 |
func (*Type_MapType) Descriptor() ([]byte, []int) { |
| 825 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1, 1} |
| 826 |
} |
| 827 |
|
| 828 |
func (x *Type_MapType) GetKeyType() *Type { |
| 829 |
if x != nil { |
| 830 |
return x.KeyType |
| 831 |
} |
| 832 |
return nil |
| 833 |
} |
| 834 |
|
| 835 |
func (x *Type_MapType) GetValueType() *Type { |
| 836 |
if x != nil { |
| 837 |
return x.ValueType |
| 838 |
} |
| 839 |
return nil |
| 840 |
} |
| 841 |
|
| 842 |
// Function type with result and arg types. |
| 843 |
type Type_FunctionType struct { |
| 844 |
state protoimpl.MessageState |
| 845 |
sizeCache protoimpl.SizeCache |
| 846 |
unknownFields protoimpl.UnknownFields |
| 847 |
|
| 848 |
// Result type of the function. |
| 849 |
ResultType *Type `protobuf:"bytes,1,opt,name=result_type,json=resultType,proto3" json:"result_type,omitempty"` |
| 850 |
// Argument types of the function. |
| 851 |
ArgTypes []*Type `protobuf:"bytes,2,rep,name=arg_types,json=argTypes,proto3" json:"arg_types,omitempty"` |
| 852 |
} |
| 853 |
|
| 854 |
func (x *Type_FunctionType) Reset() { |
| 855 |
*x = Type_FunctionType{} |
| 856 |
if protoimpl.UnsafeEnabled { |
| 857 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[8] |
| 858 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 859 |
ms.StoreMessageInfo(mi) |
| 860 |
} |
| 861 |
} |
| 862 |
|
| 863 |
func (x *Type_FunctionType) String() string { |
| 864 |
return protoimpl.X.MessageStringOf(x) |
| 865 |
} |
| 866 |
|
| 867 |
func (*Type_FunctionType) ProtoMessage() {} |
| 868 |
|
| 869 |
func (x *Type_FunctionType) ProtoReflect() protoreflect.Message { |
| 870 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[8] |
| 871 |
if protoimpl.UnsafeEnabled && x != nil { |
| 872 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 873 |
if ms.LoadMessageInfo() == nil { |
| 874 |
ms.StoreMessageInfo(mi) |
| 875 |
} |
| 876 |
return ms |
| 877 |
} |
| 878 |
return mi.MessageOf(x) |
| 879 |
} |
| 880 |
|
| 881 |
// Deprecated: Use Type_FunctionType.ProtoReflect.Descriptor instead. |
| 882 |
func (*Type_FunctionType) Descriptor() ([]byte, []int) { |
| 883 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1, 2} |
| 884 |
} |
| 885 |
|
| 886 |
func (x *Type_FunctionType) GetResultType() *Type { |
| 887 |
if x != nil { |
| 888 |
return x.ResultType |
| 889 |
} |
| 890 |
return nil |
| 891 |
} |
| 892 |
|
| 893 |
func (x *Type_FunctionType) GetArgTypes() []*Type { |
| 894 |
if x != nil { |
| 895 |
return x.ArgTypes |
| 896 |
} |
| 897 |
return nil |
| 898 |
} |
| 899 |
|
| 900 |
// Application defined abstract type. |
| 901 |
type Type_AbstractType struct { |
| 902 |
state protoimpl.MessageState |
| 903 |
sizeCache protoimpl.SizeCache |
| 904 |
unknownFields protoimpl.UnknownFields |
| 905 |
|
| 906 |
// The fully qualified name of this abstract type. |
| 907 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 908 |
// Parameter types for this abstract type. |
| 909 |
ParameterTypes []*Type `protobuf:"bytes,2,rep,name=parameter_types,json=parameterTypes,proto3" json:"parameter_types,omitempty"` |
| 910 |
} |
| 911 |
|
| 912 |
func (x *Type_AbstractType) Reset() { |
| 913 |
*x = Type_AbstractType{} |
| 914 |
if protoimpl.UnsafeEnabled { |
| 915 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[9] |
| 916 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 917 |
ms.StoreMessageInfo(mi) |
| 918 |
} |
| 919 |
} |
| 920 |
|
| 921 |
func (x *Type_AbstractType) String() string { |
| 922 |
return protoimpl.X.MessageStringOf(x) |
| 923 |
} |
| 924 |
|
| 925 |
func (*Type_AbstractType) ProtoMessage() {} |
| 926 |
|
| 927 |
func (x *Type_AbstractType) ProtoReflect() protoreflect.Message { |
| 928 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[9] |
| 929 |
if protoimpl.UnsafeEnabled && x != nil { |
| 930 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 931 |
if ms.LoadMessageInfo() == nil { |
| 932 |
ms.StoreMessageInfo(mi) |
| 933 |
} |
| 934 |
return ms |
| 935 |
} |
| 936 |
return mi.MessageOf(x) |
| 937 |
} |
| 938 |
|
| 939 |
// Deprecated: Use Type_AbstractType.ProtoReflect.Descriptor instead. |
| 940 |
func (*Type_AbstractType) Descriptor() ([]byte, []int) { |
| 941 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{1, 3} |
| 942 |
} |
| 943 |
|
| 944 |
func (x *Type_AbstractType) GetName() string { |
| 945 |
if x != nil { |
| 946 |
return x.Name |
| 947 |
} |
| 948 |
return "" |
| 949 |
} |
| 950 |
|
| 951 |
func (x *Type_AbstractType) GetParameterTypes() []*Type { |
| 952 |
if x != nil { |
| 953 |
return x.ParameterTypes |
| 954 |
} |
| 955 |
return nil |
| 956 |
} |
| 957 |
|
| 958 |
// Identifier declaration which specifies its type and optional `Expr` value. |
| 959 |
// |
| 960 |
// An identifier without a value is a declaration that must be provided at |
| 961 |
// evaluation time. An identifier with a value should resolve to a constant, |
| 962 |
// but may be used in conjunction with other identifiers bound at evaluation |
| 963 |
// time. |
| 964 |
type Decl_IdentDecl struct { |
| 965 |
state protoimpl.MessageState |
| 966 |
sizeCache protoimpl.SizeCache |
| 967 |
unknownFields protoimpl.UnknownFields |
| 968 |
|
| 969 |
// Required. The type of the identifier. |
| 970 |
Type *Type `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` |
| 971 |
// The constant value of the identifier. If not specified, the identifier |
| 972 |
// must be supplied at evaluation time. |
| 973 |
Value *Constant `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| 974 |
// Documentation string for the identifier. |
| 975 |
Doc string `protobuf:"bytes,3,opt,name=doc,proto3" json:"doc,omitempty"` |
| 976 |
} |
| 977 |
|
| 978 |
func (x *Decl_IdentDecl) Reset() { |
| 979 |
*x = Decl_IdentDecl{} |
| 980 |
if protoimpl.UnsafeEnabled { |
| 981 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[10] |
| 982 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 983 |
ms.StoreMessageInfo(mi) |
| 984 |
} |
| 985 |
} |
| 986 |
|
| 987 |
func (x *Decl_IdentDecl) String() string { |
| 988 |
return protoimpl.X.MessageStringOf(x) |
| 989 |
} |
| 990 |
|
| 991 |
func (*Decl_IdentDecl) ProtoMessage() {} |
| 992 |
|
| 993 |
func (x *Decl_IdentDecl) ProtoReflect() protoreflect.Message { |
| 994 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[10] |
| 995 |
if protoimpl.UnsafeEnabled && x != nil { |
| 996 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 997 |
if ms.LoadMessageInfo() == nil { |
| 998 |
ms.StoreMessageInfo(mi) |
| 999 |
} |
| 1000 |
return ms |
| 1001 |
} |
| 1002 |
return mi.MessageOf(x) |
| 1003 |
} |
| 1004 |
|
| 1005 |
// Deprecated: Use Decl_IdentDecl.ProtoReflect.Descriptor instead. |
| 1006 |
func (*Decl_IdentDecl) Descriptor() ([]byte, []int) { |
| 1007 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{2, 0} |
| 1008 |
} |
| 1009 |
|
| 1010 |
func (x *Decl_IdentDecl) GetType() *Type { |
| 1011 |
if x != nil { |
| 1012 |
return x.Type |
| 1013 |
} |
| 1014 |
return nil |
| 1015 |
} |
| 1016 |
|
| 1017 |
func (x *Decl_IdentDecl) GetValue() *Constant { |
| 1018 |
if x != nil { |
| 1019 |
return x.Value |
| 1020 |
} |
| 1021 |
return nil |
| 1022 |
} |
| 1023 |
|
| 1024 |
func (x *Decl_IdentDecl) GetDoc() string { |
| 1025 |
if x != nil { |
| 1026 |
return x.Doc |
| 1027 |
} |
| 1028 |
return "" |
| 1029 |
} |
| 1030 |
|
| 1031 |
// Function declaration specifies one or more overloads which indicate the |
| 1032 |
// function's parameter types and return type. |
| 1033 |
// |
| 1034 |
// Functions have no observable side-effects (there may be side-effects like |
| 1035 |
// logging which are not observable from CEL). |
| 1036 |
type Decl_FunctionDecl struct { |
| 1037 |
state protoimpl.MessageState |
| 1038 |
sizeCache protoimpl.SizeCache |
| 1039 |
unknownFields protoimpl.UnknownFields |
| 1040 |
|
| 1041 |
// Required. List of function overloads, must contain at least one overload. |
| 1042 |
Overloads []*Decl_FunctionDecl_Overload `protobuf:"bytes,1,rep,name=overloads,proto3" json:"overloads,omitempty"` |
| 1043 |
} |
| 1044 |
|
| 1045 |
func (x *Decl_FunctionDecl) Reset() { |
| 1046 |
*x = Decl_FunctionDecl{} |
| 1047 |
if protoimpl.UnsafeEnabled { |
| 1048 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[11] |
| 1049 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1050 |
ms.StoreMessageInfo(mi) |
| 1051 |
} |
| 1052 |
} |
| 1053 |
|
| 1054 |
func (x *Decl_FunctionDecl) String() string { |
| 1055 |
return protoimpl.X.MessageStringOf(x) |
| 1056 |
} |
| 1057 |
|
| 1058 |
func (*Decl_FunctionDecl) ProtoMessage() {} |
| 1059 |
|
| 1060 |
func (x *Decl_FunctionDecl) ProtoReflect() protoreflect.Message { |
| 1061 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[11] |
| 1062 |
if protoimpl.UnsafeEnabled && x != nil { |
| 1063 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1064 |
if ms.LoadMessageInfo() == nil { |
| 1065 |
ms.StoreMessageInfo(mi) |
| 1066 |
} |
| 1067 |
return ms |
| 1068 |
} |
| 1069 |
return mi.MessageOf(x) |
| 1070 |
} |
| 1071 |
|
| 1072 |
// Deprecated: Use Decl_FunctionDecl.ProtoReflect.Descriptor instead. |
| 1073 |
func (*Decl_FunctionDecl) Descriptor() ([]byte, []int) { |
| 1074 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{2, 1} |
| 1075 |
} |
| 1076 |
|
| 1077 |
func (x *Decl_FunctionDecl) GetOverloads() []*Decl_FunctionDecl_Overload { |
| 1078 |
if x != nil { |
| 1079 |
return x.Overloads |
| 1080 |
} |
| 1081 |
return nil |
| 1082 |
} |
| 1083 |
|
| 1084 |
// An overload indicates a function's parameter types and return type, and |
| 1085 |
// may optionally include a function body described in terms of |
| 1086 |
// [Expr][google.api.expr.v1alpha1.Expr] values. |
| 1087 |
// |
| 1088 |
// Functions overloads are declared in either a function or method |
| 1089 |
// call-style. For methods, the `params[0]` is the expected type of the |
| 1090 |
// target receiver. |
| 1091 |
// |
| 1092 |
// Overloads must have non-overlapping argument types after erasure of all |
| 1093 |
// parameterized type variables (similar as type erasure in Java). |
| 1094 |
type Decl_FunctionDecl_Overload struct { |
| 1095 |
state protoimpl.MessageState |
| 1096 |
sizeCache protoimpl.SizeCache |
| 1097 |
unknownFields protoimpl.UnknownFields |
| 1098 |
|
| 1099 |
// Required. Globally unique overload name of the function which reflects |
| 1100 |
// the function name and argument types. |
| 1101 |
// |
| 1102 |
// This will be used by a [Reference][google.api.expr.v1alpha1.Reference] |
| 1103 |
// to indicate the `overload_id` that was resolved for the function |
| 1104 |
// `name`. |
| 1105 |
OverloadId string `protobuf:"bytes,1,opt,name=overload_id,json=overloadId,proto3" json:"overload_id,omitempty"` |
| 1106 |
// List of function parameter [Type][google.api.expr.v1alpha1.Type] |
| 1107 |
// values. |
| 1108 |
// |
| 1109 |
// Param types are disjoint after generic type parameters have been |
| 1110 |
// replaced with the type `DYN`. Since the `DYN` type is compatible with |
| 1111 |
// any other type, this means that if `A` is a type parameter, the |
| 1112 |
// function types `int<A>` and `int<int>` are not disjoint. Likewise, |
| 1113 |
// `map<string, string>` is not disjoint from `map<K, V>`. |
| 1114 |
// |
| 1115 |
// When the `result_type` of a function is a generic type param, the |
| 1116 |
// type param name also appears as the `type` of on at least one params. |
| 1117 |
Params []*Type `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty"` |
| 1118 |
// The type param names associated with the function declaration. |
| 1119 |
// |
| 1120 |
// For example, `function ex<K,V>(K key, map<K, V> map) : V` would yield |
| 1121 |
// the type params of `K, V`. |
| 1122 |
TypeParams []string `protobuf:"bytes,3,rep,name=type_params,json=typeParams,proto3" json:"type_params,omitempty"` |
| 1123 |
// Required. The result type of the function. For example, the operator |
| 1124 |
// `string.isEmpty()` would have `result_type` of `kind: BOOL`. |
| 1125 |
ResultType *Type `protobuf:"bytes,4,opt,name=result_type,json=resultType,proto3" json:"result_type,omitempty"` |
| 1126 |
// Whether the function is to be used in a method call-style `x.f(...)` |
| 1127 |
// or a function call-style `f(x, ...)`. |
| 1128 |
// |
| 1129 |
// For methods, the first parameter declaration, `params[0]` is the |
| 1130 |
// expected type of the target receiver. |
| 1131 |
IsInstanceFunction bool `protobuf:"varint,5,opt,name=is_instance_function,json=isInstanceFunction,proto3" json:"is_instance_function,omitempty"` |
| 1132 |
// Documentation string for the overload. |
| 1133 |
Doc string `protobuf:"bytes,6,opt,name=doc,proto3" json:"doc,omitempty"` |
| 1134 |
} |
| 1135 |
|
| 1136 |
func (x *Decl_FunctionDecl_Overload) Reset() { |
| 1137 |
*x = Decl_FunctionDecl_Overload{} |
| 1138 |
if protoimpl.UnsafeEnabled { |
| 1139 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[12] |
| 1140 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1141 |
ms.StoreMessageInfo(mi) |
| 1142 |
} |
| 1143 |
} |
| 1144 |
|
| 1145 |
func (x *Decl_FunctionDecl_Overload) String() string { |
| 1146 |
return protoimpl.X.MessageStringOf(x) |
| 1147 |
} |
| 1148 |
|
| 1149 |
func (*Decl_FunctionDecl_Overload) ProtoMessage() {} |
| 1150 |
|
| 1151 |
func (x *Decl_FunctionDecl_Overload) ProtoReflect() protoreflect.Message { |
| 1152 |
mi := &file_google_api_expr_v1alpha1_checked_proto_msgTypes[12] |
| 1153 |
if protoimpl.UnsafeEnabled && x != nil { |
| 1154 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 1155 |
if ms.LoadMessageInfo() == nil { |
| 1156 |
ms.StoreMessageInfo(mi) |
| 1157 |
} |
| 1158 |
return ms |
| 1159 |
} |
| 1160 |
return mi.MessageOf(x) |
| 1161 |
} |
| 1162 |
|
| 1163 |
// Deprecated: Use Decl_FunctionDecl_Overload.ProtoReflect.Descriptor instead. |
| 1164 |
func (*Decl_FunctionDecl_Overload) Descriptor() ([]byte, []int) { |
| 1165 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP(), []int{2, 1, 0} |
| 1166 |
} |
| 1167 |
|
| 1168 |
func (x *Decl_FunctionDecl_Overload) GetOverloadId() string { |
| 1169 |
if x != nil { |
| 1170 |
return x.OverloadId |
| 1171 |
} |
| 1172 |
return "" |
| 1173 |
} |
| 1174 |
|
| 1175 |
func (x *Decl_FunctionDecl_Overload) GetParams() []*Type { |
| 1176 |
if x != nil { |
| 1177 |
return x.Params |
| 1178 |
} |
| 1179 |
return nil |
| 1180 |
} |
| 1181 |
|
| 1182 |
func (x *Decl_FunctionDecl_Overload) GetTypeParams() []string { |
| 1183 |
if x != nil { |
| 1184 |
return x.TypeParams |
| 1185 |
} |
| 1186 |
return nil |
| 1187 |
} |
| 1188 |
|
| 1189 |
func (x *Decl_FunctionDecl_Overload) GetResultType() *Type { |
| 1190 |
if x != nil { |
| 1191 |
return x.ResultType |
| 1192 |
} |
| 1193 |
return nil |
| 1194 |
} |
| 1195 |
|
| 1196 |
func (x *Decl_FunctionDecl_Overload) GetIsInstanceFunction() bool { |
| 1197 |
if x != nil { |
| 1198 |
return x.IsInstanceFunction |
| 1199 |
} |
| 1200 |
return false |
| 1201 |
} |
| 1202 |
|
| 1203 |
func (x *Decl_FunctionDecl_Overload) GetDoc() string { |
| 1204 |
if x != nil { |
| 1205 |
return x.Doc |
| 1206 |
} |
| 1207 |
return "" |
| 1208 |
} |
| 1209 |
|
| 1210 |
var File_google_api_expr_v1alpha1_checked_proto protoreflect.FileDescriptor |
| 1211 |
|
| 1212 |
var file_google_api_expr_v1alpha1_checked_proto_rawDesc = []byte{ |
| 1213 |
0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, |
| 1214 |
0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, |
| 1215 |
0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1216 |
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, |
| 1217 |
0x61, 0x31, 0x1a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, |
| 1218 |
0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x79, 0x6e, |
| 1219 |
0x74, 0x61, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1220 |
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, |
| 1221 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, |
| 1222 |
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, |
| 1223 |
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x04, 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, |
| 1224 |
0x45, 0x78, 0x70, 0x72, 0x12, 0x5c, 0x0a, 0x0d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, |
| 1225 |
0x65, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, |
| 1226 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, |
| 1227 |
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x45, 0x78, |
| 1228 |
0x70, 0x72, 0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x70, 0x45, |
| 1229 |
0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4d, |
| 1230 |
0x61, 0x70, 0x12, 0x4d, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x03, |
| 1231 |
0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, |
| 1232 |
0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, |
| 1233 |
0x43, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x54, 0x79, 0x70, 0x65, |
| 1234 |
0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 0x4d, 0x61, |
| 1235 |
0x70, 0x12, 0x45, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, |
| 1236 |
0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1237 |
0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, |
| 1238 |
0x31, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x73, 0x6f, |
| 1239 |
0x75, 0x72, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x72, |
| 1240 |
0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, |
| 1241 |
0x65, 0x78, 0x70, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x04, 0x65, |
| 1242 |
0x78, 0x70, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1243 |
0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, |
| 1244 |
0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x04, 0x65, 0x78, 0x70, 0x72, 0x1a, |
| 1245 |
0x64, 0x0a, 0x11, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x61, 0x70, 0x45, |
| 1246 |
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 1247 |
0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, |
| 1248 |
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, |
| 1249 |
0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, |
| 1250 |
0x2e, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 1251 |
0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x5a, 0x0a, 0x0c, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, |
| 1252 |
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, |
| 1253 |
0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 1254 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1255 |
0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, |
| 1256 |
0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, |
| 1257 |
0x01, 0x22, 0xc8, 0x0b, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x03, 0x64, 0x79, |
| 1258 |
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1259 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, |
| 1260 |
0x00, 0x52, 0x03, 0x64, 0x79, 0x6e, 0x12, 0x30, 0x0a, 0x04, 0x6e, 0x75, 0x6c, 0x6c, 0x18, 0x02, |
| 1261 |
0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
| 1262 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, |
| 1263 |
0x48, 0x00, 0x52, 0x04, 0x6e, 0x75, 0x6c, 0x6c, 0x12, 0x4c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6d, |
| 1264 |
0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, |
| 1265 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, |
| 1266 |
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, |
| 1267 |
0x69, 0x74, 0x69, 0x76, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x70, 0x72, 0x69, |
| 1268 |
0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x48, 0x0a, 0x07, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, |
| 1269 |
0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1270 |
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, |
| 1271 |
0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, |
| 1272 |
0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x07, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, |
| 1273 |
0x12, 0x4d, 0x0a, 0x0a, 0x77, 0x65, 0x6c, 0x6c, 0x5f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x05, |
| 1274 |
0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, |
| 1275 |
0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, |
| 1276 |
0x54, 0x79, 0x70, 0x65, 0x2e, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, |
| 1277 |
0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x77, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, |
| 1278 |
0x46, 0x0a, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, |
| 1279 |
0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, |
| 1280 |
0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, |
| 1281 |
0x70, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x6c, |
| 1282 |
0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, 0x08, 0x6d, 0x61, 0x70, 0x5f, 0x74, |
| 1283 |
0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 1284 |
0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, |
| 1285 |
0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x4d, 0x61, 0x70, 0x54, 0x79, 0x70, |
| 1286 |
0x65, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x49, 0x0a, 0x08, |
| 1287 |
0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, |
| 1288 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, |
| 1289 |
0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x46, |
| 1290 |
0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x66, |
| 1291 |
0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, |
| 1292 |
0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, |
| 1293 |
0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0a, |
| 1294 |
0x74, 0x79, 0x70, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, |
| 1295 |
0x48, 0x00, 0x52, 0x09, 0x74, 0x79, 0x70, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x34, 0x0a, |
| 1296 |
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, |
| 1297 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, |
| 1298 |
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x04, 0x74, |
| 1299 |
0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0c, 0x20, 0x01, |
| 1300 |
0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 1301 |
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, |
| 1302 |
0x72, 0x6f, 0x72, 0x12, 0x52, 0x0a, 0x0d, 0x61, 0x62, 0x73, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, |
| 1303 |
0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, |
| 1304 |
0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, |
| 1305 |
0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x41, 0x62, 0x73, 0x74, 0x72, |
| 1306 |
0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x62, 0x73, 0x74, 0x72, |
| 1307 |
0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x47, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x54, |
| 1308 |
0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x65, 0x6c, 0x65, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, |
| 1309 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 1310 |
0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, |
| 1311 |
0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x65, 0x6c, 0x65, 0x6d, 0x54, 0x79, 0x70, 0x65, |
| 1312 |
0x1a, 0x83, 0x01, 0x0a, 0x07, 0x4d, 0x61, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x08, |
| 1313 |
0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, |
| 1314 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, |
| 1315 |
0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, |
| 1316 |
0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 1317 |
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, |
| 1318 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, |
| 1319 |
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x76, 0x61, 0x6c, |
| 1320 |
0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x8c, 0x01, 0x0a, 0x0c, 0x46, 0x75, 0x6e, 0x63, 0x74, |
| 1321 |
0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x75, 0x6c, |
| 1322 |
0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, |
| 1323 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, |
| 1324 |
0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x72, 0x65, |
| 1325 |
0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x61, 0x72, 0x67, 0x5f, |
| 1326 |
0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, |
| 1327 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, |
| 1328 |
0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x72, 0x67, |
| 1329 |
0x54, 0x79, 0x70, 0x65, 0x73, 0x1a, 0x6b, 0x0a, 0x0c, 0x41, 0x62, 0x73, 0x74, 0x72, 0x61, 0x63, |
| 1330 |
0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, |
| 1331 |
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x0f, 0x70, 0x61, 0x72, |
| 1332 |
0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, |
| 1333 |
0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, |
| 1334 |
0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, |
| 1335 |
0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x54, 0x79, 0x70, |
| 1336 |
0x65, 0x73, 0x22, 0x73, 0x0a, 0x0d, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x54, |
| 1337 |
0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x50, 0x52, 0x49, 0x4d, 0x49, 0x54, 0x49, 0x56, 0x45, |
| 1338 |
0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, |
| 1339 |
0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x01, 0x12, 0x09, 0x0a, |
| 1340 |
0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, |
| 1341 |
0x36, 0x34, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x04, |
| 1342 |
0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, |
| 1343 |
0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x06, 0x22, 0x56, 0x0a, 0x0d, 0x57, 0x65, 0x6c, 0x6c, 0x4b, |
| 1344 |
0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x57, 0x45, 0x4c, 0x4c, |
| 1345 |
0x5f, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, |
| 1346 |
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4e, 0x59, |
| 1347 |
0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, |
| 1348 |
0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x42, |
| 1349 |
0x0b, 0x0a, 0x09, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xb3, 0x05, 0x0a, |
| 1350 |
0x04, 0x44, 0x65, 0x63, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, |
| 1351 |
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x05, 0x69, 0x64, 0x65, |
| 1352 |
0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1353 |
0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, |
| 1354 |
0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x6c, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x44, 0x65, |
| 1355 |
0x63, 0x6c, 0x48, 0x00, 0x52, 0x05, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x08, 0x66, |
| 1356 |
0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, |
| 1357 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, |
| 1358 |
0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x6c, 0x2e, 0x46, 0x75, |
| 1359 |
0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x65, 0x63, 0x6c, 0x48, 0x00, 0x52, 0x08, 0x66, 0x75, |
| 1360 |
0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x8b, 0x01, 0x0a, 0x09, 0x49, 0x64, 0x65, 0x6e, 0x74, |
| 1361 |
0x44, 0x65, 0x63, 0x6c, 0x12, 0x32, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, |
| 1362 |
0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, |
| 1363 |
0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x54, 0x79, |
| 1364 |
0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 1365 |
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1366 |
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, |
| 1367 |
0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, |
| 1368 |
0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6f, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 1369 |
0x03, 0x64, 0x6f, 0x63, 0x1a, 0xee, 0x02, 0x0a, 0x0c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, |
| 1370 |
0x6e, 0x44, 0x65, 0x63, 0x6c, 0x12, 0x52, 0x0a, 0x09, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, |
| 1371 |
0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1372 |
0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, |
| 1373 |
0x68, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x6c, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, |
| 1374 |
0x6e, 0x44, 0x65, 0x63, 0x6c, 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x09, |
| 1375 |
0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x1a, 0x89, 0x02, 0x0a, 0x08, 0x4f, 0x76, |
| 1376 |
0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, |
| 1377 |
0x61, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x76, 0x65, |
| 1378 |
0x72, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, |
| 1379 |
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1380 |
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, |
| 1381 |
0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, |
| 1382 |
0x1f, 0x0a, 0x0b, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, |
| 1383 |
0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x79, 0x70, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, |
| 1384 |
0x12, 0x3f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, |
| 1385 |
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, |
| 1386 |
0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, |
| 1387 |
0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x54, 0x79, 0x70, |
| 1388 |
0x65, 0x12, 0x30, 0x0a, 0x14, 0x69, 0x73, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, |
| 1389 |
0x5f, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, |
| 1390 |
0x12, 0x69, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x46, 0x75, 0x6e, 0x63, 0x74, |
| 1391 |
0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6f, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, |
| 1392 |
0x52, 0x03, 0x64, 0x6f, 0x63, 0x42, 0x0b, 0x0a, 0x09, 0x64, 0x65, 0x63, 0x6c, 0x5f, 0x6b, 0x69, |
| 1393 |
0x6e, 0x64, 0x22, 0x7a, 0x0a, 0x09, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, |
| 1394 |
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, |
| 1395 |
0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, 0x61, 0x64, 0x5f, |
| 1396 |
0x69, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x76, 0x65, 0x72, 0x6c, 0x6f, |
| 1397 |
0x61, 0x64, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, |
| 1398 |
0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, |
| 1399 |
0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, |
| 1400 |
0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x6c, |
| 1401 |
0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, |
| 1402 |
0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x09, |
| 1403 |
0x44, 0x65, 0x63, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, |
| 1404 |
0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, |
| 1405 |
0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, |
| 1406 |
0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, |
| 1407 |
0x70, 0x68, 0x61, 0x31, 0x3b, 0x65, 0x78, 0x70, 0x72, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, |
| 1408 |
0x6f, 0x74, 0x6f, 0x33, |
| 1409 |
} |
| 1410 |
|
| 1411 |
var ( |
| 1412 |
file_google_api_expr_v1alpha1_checked_proto_rawDescOnce sync.Once |
| 1413 |
file_google_api_expr_v1alpha1_checked_proto_rawDescData = file_google_api_expr_v1alpha1_checked_proto_rawDesc |
| 1414 |
) |
| 1415 |
|
| 1416 |
func file_google_api_expr_v1alpha1_checked_proto_rawDescGZIP() []byte { |
| 1417 |
file_google_api_expr_v1alpha1_checked_proto_rawDescOnce.Do(func() { |
| 1418 |
file_google_api_expr_v1alpha1_checked_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_expr_v1alpha1_checked_proto_rawDescData) |
| 1419 |
}) |
| 1420 |
return file_google_api_expr_v1alpha1_checked_proto_rawDescData |
| 1421 |
} |
| 1422 |
|
| 1423 |
var file_google_api_expr_v1alpha1_checked_proto_enumTypes = make([]protoimpl.EnumInfo, 2) |
| 1424 |
var file_google_api_expr_v1alpha1_checked_proto_msgTypes = make([]protoimpl.MessageInfo, 13) |
| 1425 |
var file_google_api_expr_v1alpha1_checked_proto_goTypes = []interface{}{ |
| 1426 |
(Type_PrimitiveType)(0), // 0: google.api.expr.v1alpha1.Type.PrimitiveType |
| 1427 |
(Type_WellKnownType)(0), // 1: google.api.expr.v1alpha1.Type.WellKnownType |
| 1428 |
(*CheckedExpr)(nil), // 2: google.api.expr.v1alpha1.CheckedExpr |
| 1429 |
(*Type)(nil), // 3: google.api.expr.v1alpha1.Type |
| 1430 |
(*Decl)(nil), // 4: google.api.expr.v1alpha1.Decl |
| 1431 |
(*Reference)(nil), // 5: google.api.expr.v1alpha1.Reference |
| 1432 |
nil, // 6: google.api.expr.v1alpha1.CheckedExpr.ReferenceMapEntry |
| 1433 |
nil, // 7: google.api.expr.v1alpha1.CheckedExpr.TypeMapEntry |
| 1434 |
(*Type_ListType)(nil), // 8: google.api.expr.v1alpha1.Type.ListType |
| 1435 |
(*Type_MapType)(nil), // 9: google.api.expr.v1alpha1.Type.MapType |
| 1436 |
(*Type_FunctionType)(nil), // 10: google.api.expr.v1alpha1.Type.FunctionType |
| 1437 |
(*Type_AbstractType)(nil), // 11: google.api.expr.v1alpha1.Type.AbstractType |
| 1438 |
(*Decl_IdentDecl)(nil), // 12: google.api.expr.v1alpha1.Decl.IdentDecl |
| 1439 |
(*Decl_FunctionDecl)(nil), // 13: google.api.expr.v1alpha1.Decl.FunctionDecl |
| 1440 |
(*Decl_FunctionDecl_Overload)(nil), // 14: google.api.expr.v1alpha1.Decl.FunctionDecl.Overload |
| 1441 |
(*SourceInfo)(nil), // 15: google.api.expr.v1alpha1.SourceInfo |
| 1442 |
(*Expr)(nil), // 16: google.api.expr.v1alpha1.Expr |
| 1443 |
(*emptypb.Empty)(nil), // 17: google.protobuf.Empty |
| 1444 |
(structpb.NullValue)(0), // 18: google.protobuf.NullValue |
| 1445 |
(*Constant)(nil), // 19: google.api.expr.v1alpha1.Constant |
| 1446 |
} |
| 1447 |
var file_google_api_expr_v1alpha1_checked_proto_depIdxs = []int32{ |
| 1448 |
6, // 0: google.api.expr.v1alpha1.CheckedExpr.reference_map:type_name -> google.api.expr.v1alpha1.CheckedExpr.ReferenceMapEntry |
| 1449 |
7, // 1: google.api.expr.v1alpha1.CheckedExpr.type_map:type_name -> google.api.expr.v1alpha1.CheckedExpr.TypeMapEntry |
| 1450 |
15, // 2: google.api.expr.v1alpha1.CheckedExpr.source_info:type_name -> google.api.expr.v1alpha1.SourceInfo |
| 1451 |
16, // 3: google.api.expr.v1alpha1.CheckedExpr.expr:type_name -> google.api.expr.v1alpha1.Expr |
| 1452 |
17, // 4: google.api.expr.v1alpha1.Type.dyn:type_name -> google.protobuf.Empty |
| 1453 |
18, // 5: google.api.expr.v1alpha1.Type.null:type_name -> google.protobuf.NullValue |
| 1454 |
0, // 6: google.api.expr.v1alpha1.Type.primitive:type_name -> google.api.expr.v1alpha1.Type.PrimitiveType |
| 1455 |
0, // 7: google.api.expr.v1alpha1.Type.wrapper:type_name -> google.api.expr.v1alpha1.Type.PrimitiveType |
| 1456 |
1, // 8: google.api.expr.v1alpha1.Type.well_known:type_name -> google.api.expr.v1alpha1.Type.WellKnownType |
| 1457 |
8, // 9: google.api.expr.v1alpha1.Type.list_type:type_name -> google.api.expr.v1alpha1.Type.ListType |
| 1458 |
9, // 10: google.api.expr.v1alpha1.Type.map_type:type_name -> google.api.expr.v1alpha1.Type.MapType |
| 1459 |
10, // 11: google.api.expr.v1alpha1.Type.function:type_name -> google.api.expr.v1alpha1.Type.FunctionType |
| 1460 |
3, // 12: google.api.expr.v1alpha1.Type.type:type_name -> google.api.expr.v1alpha1.Type |
| 1461 |
17, // 13: google.api.expr.v1alpha1.Type.error:type_name -> google.protobuf.Empty |
| 1462 |
11, // 14: google.api.expr.v1alpha1.Type.abstract_type:type_name -> google.api.expr.v1alpha1.Type.AbstractType |
| 1463 |
12, // 15: google.api.expr.v1alpha1.Decl.ident:type_name -> google.api.expr.v1alpha1.Decl.IdentDecl |
| 1464 |
13, // 16: google.api.expr.v1alpha1.Decl.function:type_name -> google.api.expr.v1alpha1.Decl.FunctionDecl |
| 1465 |
19, // 17: google.api.expr.v1alpha1.Reference.value:type_name -> google.api.expr.v1alpha1.Constant |
| 1466 |
5, // 18: google.api.expr.v1alpha1.CheckedExpr.ReferenceMapEntry.value:type_name -> google.api.expr.v1alpha1.Reference |
| 1467 |
3, // 19: google.api.expr.v1alpha1.CheckedExpr.TypeMapEntry.value:type_name -> google.api.expr.v1alpha1.Type |
| 1468 |
3, // 20: google.api.expr.v1alpha1.Type.ListType.elem_type:type_name -> google.api.expr.v1alpha1.Type |
| 1469 |
3, // 21: google.api.expr.v1alpha1.Type.MapType.key_type:type_name -> google.api.expr.v1alpha1.Type |
| 1470 |
3, // 22: google.api.expr.v1alpha1.Type.MapType.value_type:type_name -> google.api.expr.v1alpha1.Type |
| 1471 |
3, // 23: google.api.expr.v1alpha1.Type.FunctionType.result_type:type_name -> google.api.expr.v1alpha1.Type |
| 1472 |
3, // 24: google.api.expr.v1alpha1.Type.FunctionType.arg_types:type_name -> google.api.expr.v1alpha1.Type |
| 1473 |
3, // 25: google.api.expr.v1alpha1.Type.AbstractType.parameter_types:type_name -> google.api.expr.v1alpha1.Type |
| 1474 |
3, // 26: google.api.expr.v1alpha1.Decl.IdentDecl.type:type_name -> google.api.expr.v1alpha1.Type |
| 1475 |
19, // 27: google.api.expr.v1alpha1.Decl.IdentDecl.value:type_name -> google.api.expr.v1alpha1.Constant |
| 1476 |
14, // 28: google.api.expr.v1alpha1.Decl.FunctionDecl.overloads:type_name -> google.api.expr.v1alpha1.Decl.FunctionDecl.Overload |
| 1477 |
3, // 29: google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.params:type_name -> google.api.expr.v1alpha1.Type |
| 1478 |
3, // 30: google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.result_type:type_name -> google.api.expr.v1alpha1.Type |
| 1479 |
31, // [31:31] is the sub-list for method output_type |
| 1480 |
31, // [31:31] is the sub-list for method input_type |
| 1481 |
31, // [31:31] is the sub-list for extension type_name |
| 1482 |
31, // [31:31] is the sub-list for extension extendee |
| 1483 |
0, // [0:31] is the sub-list for field type_name |
| 1484 |
} |
| 1485 |
|
| 1486 |
func init() { file_google_api_expr_v1alpha1_checked_proto_init() } |
| 1487 |
func file_google_api_expr_v1alpha1_checked_proto_init() { |
| 1488 |
if File_google_api_expr_v1alpha1_checked_proto != nil { |
| 1489 |
return |
| 1490 |
} |
| 1491 |
file_google_api_expr_v1alpha1_syntax_proto_init() |
| 1492 |
if !protoimpl.UnsafeEnabled { |
| 1493 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 1494 |
switch v := v.(*CheckedExpr); i { |
| 1495 |
case 0: |
| 1496 |
return &v.state |
| 1497 |
case 1: |
| 1498 |
return &v.sizeCache |
| 1499 |
case 2: |
| 1500 |
return &v.unknownFields |
| 1501 |
default: |
| 1502 |
return nil |
| 1503 |
} |
| 1504 |
} |
| 1505 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 1506 |
switch v := v.(*Type); i { |
| 1507 |
case 0: |
| 1508 |
return &v.state |
| 1509 |
case 1: |
| 1510 |
return &v.sizeCache |
| 1511 |
case 2: |
| 1512 |
return &v.unknownFields |
| 1513 |
default: |
| 1514 |
return nil |
| 1515 |
} |
| 1516 |
} |
| 1517 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 1518 |
switch v := v.(*Decl); i { |
| 1519 |
case 0: |
| 1520 |
return &v.state |
| 1521 |
case 1: |
| 1522 |
return &v.sizeCache |
| 1523 |
case 2: |
| 1524 |
return &v.unknownFields |
| 1525 |
default: |
| 1526 |
return nil |
| 1527 |
} |
| 1528 |
} |
| 1529 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 1530 |
switch v := v.(*Reference); i { |
| 1531 |
case 0: |
| 1532 |
return &v.state |
| 1533 |
case 1: |
| 1534 |
return &v.sizeCache |
| 1535 |
case 2: |
| 1536 |
return &v.unknownFields |
| 1537 |
default: |
| 1538 |
return nil |
| 1539 |
} |
| 1540 |
} |
| 1541 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| 1542 |
switch v := v.(*Type_ListType); i { |
| 1543 |
case 0: |
| 1544 |
return &v.state |
| 1545 |
case 1: |
| 1546 |
return &v.sizeCache |
| 1547 |
case 2: |
| 1548 |
return &v.unknownFields |
| 1549 |
default: |
| 1550 |
return nil |
| 1551 |
} |
| 1552 |
} |
| 1553 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| 1554 |
switch v := v.(*Type_MapType); i { |
| 1555 |
case 0: |
| 1556 |
return &v.state |
| 1557 |
case 1: |
| 1558 |
return &v.sizeCache |
| 1559 |
case 2: |
| 1560 |
return &v.unknownFields |
| 1561 |
default: |
| 1562 |
return nil |
| 1563 |
} |
| 1564 |
} |
| 1565 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { |
| 1566 |
switch v := v.(*Type_FunctionType); i { |
| 1567 |
case 0: |
| 1568 |
return &v.state |
| 1569 |
case 1: |
| 1570 |
return &v.sizeCache |
| 1571 |
case 2: |
| 1572 |
return &v.unknownFields |
| 1573 |
default: |
| 1574 |
return nil |
| 1575 |
} |
| 1576 |
} |
| 1577 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| 1578 |
switch v := v.(*Type_AbstractType); i { |
| 1579 |
case 0: |
| 1580 |
return &v.state |
| 1581 |
case 1: |
| 1582 |
return &v.sizeCache |
| 1583 |
case 2: |
| 1584 |
return &v.unknownFields |
| 1585 |
default: |
| 1586 |
return nil |
| 1587 |
} |
| 1588 |
} |
| 1589 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
| 1590 |
switch v := v.(*Decl_IdentDecl); i { |
| 1591 |
case 0: |
| 1592 |
return &v.state |
| 1593 |
case 1: |
| 1594 |
return &v.sizeCache |
| 1595 |
case 2: |
| 1596 |
return &v.unknownFields |
| 1597 |
default: |
| 1598 |
return nil |
| 1599 |
} |
| 1600 |
} |
| 1601 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { |
| 1602 |
switch v := v.(*Decl_FunctionDecl); i { |
| 1603 |
case 0: |
| 1604 |
return &v.state |
| 1605 |
case 1: |
| 1606 |
return &v.sizeCache |
| 1607 |
case 2: |
| 1608 |
return &v.unknownFields |
| 1609 |
default: |
| 1610 |
return nil |
| 1611 |
} |
| 1612 |
} |
| 1613 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { |
| 1614 |
switch v := v.(*Decl_FunctionDecl_Overload); i { |
| 1615 |
case 0: |
| 1616 |
return &v.state |
| 1617 |
case 1: |
| 1618 |
return &v.sizeCache |
| 1619 |
case 2: |
| 1620 |
return &v.unknownFields |
| 1621 |
default: |
| 1622 |
return nil |
| 1623 |
} |
| 1624 |
} |
| 1625 |
} |
| 1626 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| 1627 |
(*Type_Dyn)(nil), |
| 1628 |
(*Type_Null)(nil), |
| 1629 |
(*Type_Primitive)(nil), |
| 1630 |
(*Type_Wrapper)(nil), |
| 1631 |
(*Type_WellKnown)(nil), |
| 1632 |
(*Type_ListType_)(nil), |
| 1633 |
(*Type_MapType_)(nil), |
| 1634 |
(*Type_Function)(nil), |
| 1635 |
(*Type_MessageType)(nil), |
| 1636 |
(*Type_TypeParam)(nil), |
| 1637 |
(*Type_Type)(nil), |
| 1638 |
(*Type_Error)(nil), |
| 1639 |
(*Type_AbstractType_)(nil), |
| 1640 |
} |
| 1641 |
file_google_api_expr_v1alpha1_checked_proto_msgTypes[2].OneofWrappers = []interface{}{ |
| 1642 |
(*Decl_Ident)(nil), |
| 1643 |
(*Decl_Function)(nil), |
| 1644 |
} |
| 1645 |
type x struct{} |
| 1646 |
out := protoimpl.TypeBuilder{ |
| 1647 |
File: protoimpl.DescBuilder{ |
| 1648 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1649 |
RawDescriptor: file_google_api_expr_v1alpha1_checked_proto_rawDesc, |
| 1650 |
NumEnums: 2, |
| 1651 |
NumMessages: 13, |
| 1652 |
NumExtensions: 0, |
| 1653 |
NumServices: 0, |
| 1654 |
}, |
| 1655 |
GoTypes: file_google_api_expr_v1alpha1_checked_proto_goTypes, |
| 1656 |
DependencyIndexes: file_google_api_expr_v1alpha1_checked_proto_depIdxs, |
| 1657 |
EnumInfos: file_google_api_expr_v1alpha1_checked_proto_enumTypes, |
| 1658 |
MessageInfos: file_google_api_expr_v1alpha1_checked_proto_msgTypes, |
| 1659 |
}.Build() |
| 1660 |
File_google_api_expr_v1alpha1_checked_proto = out.File |
| 1661 |
file_google_api_expr_v1alpha1_checked_proto_rawDesc = nil |
| 1662 |
file_google_api_expr_v1alpha1_checked_proto_goTypes = nil |
| 1663 |
file_google_api_expr_v1alpha1_checked_proto_depIdxs = nil |
| 1664 |
} |