1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/api/expr/v1alpha1/conformance_service.proto 3 4package expr 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 status "google.golang.org/genproto/googleapis/rpc/status" 13 grpc "google.golang.org/grpc" 14) 15 16// Reference imports to suppress errors if they are not otherwise used. 17var _ = proto.Marshal 18var _ = fmt.Errorf 19var _ = math.Inf 20 21// This is a compile-time assertion to ensure that this generated file 22// is compatible with the proto package it is being compiled against. 23// A compilation error at this line likely means your copy of the 24// proto package needs to be updated. 25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27// Severities of issues. 28type IssueDetails_Severity int32 29 30const ( 31 // An unspecified severity. 32 IssueDetails_SEVERITY_UNSPECIFIED IssueDetails_Severity = 0 33 // Deprecation issue for statements and method that may no longer be 34 // supported or maintained. 35 IssueDetails_DEPRECATION IssueDetails_Severity = 1 36 // Warnings such as: unused variables. 37 IssueDetails_WARNING IssueDetails_Severity = 2 38 // Errors such as: unmatched curly braces or variable redefinition. 39 IssueDetails_ERROR IssueDetails_Severity = 3 40) 41 42var IssueDetails_Severity_name = map[int32]string{ 43 0: "SEVERITY_UNSPECIFIED", 44 1: "DEPRECATION", 45 2: "WARNING", 46 3: "ERROR", 47} 48 49var IssueDetails_Severity_value = map[string]int32{ 50 "SEVERITY_UNSPECIFIED": 0, 51 "DEPRECATION": 1, 52 "WARNING": 2, 53 "ERROR": 3, 54} 55 56func (x IssueDetails_Severity) String() string { 57 return proto.EnumName(IssueDetails_Severity_name, int32(x)) 58} 59 60func (IssueDetails_Severity) EnumDescriptor() ([]byte, []int) { 61 return fileDescriptor_b3ca1183e6ceae83, []int{6, 0} 62} 63 64// Request message for the Parse method. 65type ParseRequest struct { 66 // Required. Source text in CEL syntax. 67 CelSource string `protobuf:"bytes,1,opt,name=cel_source,json=celSource,proto3" json:"cel_source,omitempty"` 68 // Tag for version of CEL syntax, for future use. 69 SyntaxVersion string `protobuf:"bytes,2,opt,name=syntax_version,json=syntaxVersion,proto3" json:"syntax_version,omitempty"` 70 // File or resource for source text, used in 71 // [SourceInfo][google.api.expr.v1alpha1.SourceInfo]. 72 SourceLocation string `protobuf:"bytes,3,opt,name=source_location,json=sourceLocation,proto3" json:"source_location,omitempty"` 73 // Prevent macro expansion. See "Macros" in Language Defiinition. 74 DisableMacros bool `protobuf:"varint,4,opt,name=disable_macros,json=disableMacros,proto3" json:"disable_macros,omitempty"` 75 XXX_NoUnkeyedLiteral struct{} `json:"-"` 76 XXX_unrecognized []byte `json:"-"` 77 XXX_sizecache int32 `json:"-"` 78} 79 80func (m *ParseRequest) Reset() { *m = ParseRequest{} } 81func (m *ParseRequest) String() string { return proto.CompactTextString(m) } 82func (*ParseRequest) ProtoMessage() {} 83func (*ParseRequest) Descriptor() ([]byte, []int) { 84 return fileDescriptor_b3ca1183e6ceae83, []int{0} 85} 86 87func (m *ParseRequest) XXX_Unmarshal(b []byte) error { 88 return xxx_messageInfo_ParseRequest.Unmarshal(m, b) 89} 90func (m *ParseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 91 return xxx_messageInfo_ParseRequest.Marshal(b, m, deterministic) 92} 93func (m *ParseRequest) XXX_Merge(src proto.Message) { 94 xxx_messageInfo_ParseRequest.Merge(m, src) 95} 96func (m *ParseRequest) XXX_Size() int { 97 return xxx_messageInfo_ParseRequest.Size(m) 98} 99func (m *ParseRequest) XXX_DiscardUnknown() { 100 xxx_messageInfo_ParseRequest.DiscardUnknown(m) 101} 102 103var xxx_messageInfo_ParseRequest proto.InternalMessageInfo 104 105func (m *ParseRequest) GetCelSource() string { 106 if m != nil { 107 return m.CelSource 108 } 109 return "" 110} 111 112func (m *ParseRequest) GetSyntaxVersion() string { 113 if m != nil { 114 return m.SyntaxVersion 115 } 116 return "" 117} 118 119func (m *ParseRequest) GetSourceLocation() string { 120 if m != nil { 121 return m.SourceLocation 122 } 123 return "" 124} 125 126func (m *ParseRequest) GetDisableMacros() bool { 127 if m != nil { 128 return m.DisableMacros 129 } 130 return false 131} 132 133// Response message for the Parse method. 134type ParseResponse struct { 135 // The parsed representation, or unset if parsing failed. 136 ParsedExpr *ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3" json:"parsed_expr,omitempty"` 137 // Any number of issues with [StatusDetails][] as the details. 138 Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"` 139 XXX_NoUnkeyedLiteral struct{} `json:"-"` 140 XXX_unrecognized []byte `json:"-"` 141 XXX_sizecache int32 `json:"-"` 142} 143 144func (m *ParseResponse) Reset() { *m = ParseResponse{} } 145func (m *ParseResponse) String() string { return proto.CompactTextString(m) } 146func (*ParseResponse) ProtoMessage() {} 147func (*ParseResponse) Descriptor() ([]byte, []int) { 148 return fileDescriptor_b3ca1183e6ceae83, []int{1} 149} 150 151func (m *ParseResponse) XXX_Unmarshal(b []byte) error { 152 return xxx_messageInfo_ParseResponse.Unmarshal(m, b) 153} 154func (m *ParseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 155 return xxx_messageInfo_ParseResponse.Marshal(b, m, deterministic) 156} 157func (m *ParseResponse) XXX_Merge(src proto.Message) { 158 xxx_messageInfo_ParseResponse.Merge(m, src) 159} 160func (m *ParseResponse) XXX_Size() int { 161 return xxx_messageInfo_ParseResponse.Size(m) 162} 163func (m *ParseResponse) XXX_DiscardUnknown() { 164 xxx_messageInfo_ParseResponse.DiscardUnknown(m) 165} 166 167var xxx_messageInfo_ParseResponse proto.InternalMessageInfo 168 169func (m *ParseResponse) GetParsedExpr() *ParsedExpr { 170 if m != nil { 171 return m.ParsedExpr 172 } 173 return nil 174} 175 176func (m *ParseResponse) GetIssues() []*status.Status { 177 if m != nil { 178 return m.Issues 179 } 180 return nil 181} 182 183// Request message for the Check method. 184type CheckRequest struct { 185 // Required. The parsed representation of the CEL program. 186 ParsedExpr *ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3" json:"parsed_expr,omitempty"` 187 // Declarations of types for external variables and functions. 188 // Required if program uses external variables or functions 189 // not in the default environment. 190 TypeEnv []*Decl `protobuf:"bytes,2,rep,name=type_env,json=typeEnv,proto3" json:"type_env,omitempty"` 191 // The protocol buffer context. See "Name Resolution" in the 192 // Language Definition. 193 Container string `protobuf:"bytes,3,opt,name=container,proto3" json:"container,omitempty"` 194 // If true, use only the declarations in 195 // [type_env][google.api.expr.v1alpha1.CheckRequest.type_env]. If false 196 // (default), add declarations for the standard definitions to the type 197 // environment. See "Standard Definitions" in the Language Definition. 198 NoStdEnv bool `protobuf:"varint,4,opt,name=no_std_env,json=noStdEnv,proto3" json:"no_std_env,omitempty"` 199 XXX_NoUnkeyedLiteral struct{} `json:"-"` 200 XXX_unrecognized []byte `json:"-"` 201 XXX_sizecache int32 `json:"-"` 202} 203 204func (m *CheckRequest) Reset() { *m = CheckRequest{} } 205func (m *CheckRequest) String() string { return proto.CompactTextString(m) } 206func (*CheckRequest) ProtoMessage() {} 207func (*CheckRequest) Descriptor() ([]byte, []int) { 208 return fileDescriptor_b3ca1183e6ceae83, []int{2} 209} 210 211func (m *CheckRequest) XXX_Unmarshal(b []byte) error { 212 return xxx_messageInfo_CheckRequest.Unmarshal(m, b) 213} 214func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 215 return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic) 216} 217func (m *CheckRequest) XXX_Merge(src proto.Message) { 218 xxx_messageInfo_CheckRequest.Merge(m, src) 219} 220func (m *CheckRequest) XXX_Size() int { 221 return xxx_messageInfo_CheckRequest.Size(m) 222} 223func (m *CheckRequest) XXX_DiscardUnknown() { 224 xxx_messageInfo_CheckRequest.DiscardUnknown(m) 225} 226 227var xxx_messageInfo_CheckRequest proto.InternalMessageInfo 228 229func (m *CheckRequest) GetParsedExpr() *ParsedExpr { 230 if m != nil { 231 return m.ParsedExpr 232 } 233 return nil 234} 235 236func (m *CheckRequest) GetTypeEnv() []*Decl { 237 if m != nil { 238 return m.TypeEnv 239 } 240 return nil 241} 242 243func (m *CheckRequest) GetContainer() string { 244 if m != nil { 245 return m.Container 246 } 247 return "" 248} 249 250func (m *CheckRequest) GetNoStdEnv() bool { 251 if m != nil { 252 return m.NoStdEnv 253 } 254 return false 255} 256 257// Response message for the Check method. 258type CheckResponse struct { 259 // The annotated representation, or unset if checking failed. 260 CheckedExpr *CheckedExpr `protobuf:"bytes,1,opt,name=checked_expr,json=checkedExpr,proto3" json:"checked_expr,omitempty"` 261 // Any number of issues with [StatusDetails][] as the details. 262 Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"` 263 XXX_NoUnkeyedLiteral struct{} `json:"-"` 264 XXX_unrecognized []byte `json:"-"` 265 XXX_sizecache int32 `json:"-"` 266} 267 268func (m *CheckResponse) Reset() { *m = CheckResponse{} } 269func (m *CheckResponse) String() string { return proto.CompactTextString(m) } 270func (*CheckResponse) ProtoMessage() {} 271func (*CheckResponse) Descriptor() ([]byte, []int) { 272 return fileDescriptor_b3ca1183e6ceae83, []int{3} 273} 274 275func (m *CheckResponse) XXX_Unmarshal(b []byte) error { 276 return xxx_messageInfo_CheckResponse.Unmarshal(m, b) 277} 278func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 279 return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic) 280} 281func (m *CheckResponse) XXX_Merge(src proto.Message) { 282 xxx_messageInfo_CheckResponse.Merge(m, src) 283} 284func (m *CheckResponse) XXX_Size() int { 285 return xxx_messageInfo_CheckResponse.Size(m) 286} 287func (m *CheckResponse) XXX_DiscardUnknown() { 288 xxx_messageInfo_CheckResponse.DiscardUnknown(m) 289} 290 291var xxx_messageInfo_CheckResponse proto.InternalMessageInfo 292 293func (m *CheckResponse) GetCheckedExpr() *CheckedExpr { 294 if m != nil { 295 return m.CheckedExpr 296 } 297 return nil 298} 299 300func (m *CheckResponse) GetIssues() []*status.Status { 301 if m != nil { 302 return m.Issues 303 } 304 return nil 305} 306 307// Request message for the Eval method. 308type EvalRequest struct { 309 // Required. Either the parsed or annotated representation of the CEL program. 310 // 311 // Types that are valid to be assigned to ExprKind: 312 // *EvalRequest_ParsedExpr 313 // *EvalRequest_CheckedExpr 314 ExprKind isEvalRequest_ExprKind `protobuf_oneof:"expr_kind"` 315 // Bindings for the external variables. The types SHOULD be compatible 316 // with the type environment in 317 // [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. 318 Bindings map[string]*ExprValue `protobuf:"bytes,3,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 319 // SHOULD be the same container as used in 320 // [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. 321 Container string `protobuf:"bytes,4,opt,name=container,proto3" json:"container,omitempty"` 322 XXX_NoUnkeyedLiteral struct{} `json:"-"` 323 XXX_unrecognized []byte `json:"-"` 324 XXX_sizecache int32 `json:"-"` 325} 326 327func (m *EvalRequest) Reset() { *m = EvalRequest{} } 328func (m *EvalRequest) String() string { return proto.CompactTextString(m) } 329func (*EvalRequest) ProtoMessage() {} 330func (*EvalRequest) Descriptor() ([]byte, []int) { 331 return fileDescriptor_b3ca1183e6ceae83, []int{4} 332} 333 334func (m *EvalRequest) XXX_Unmarshal(b []byte) error { 335 return xxx_messageInfo_EvalRequest.Unmarshal(m, b) 336} 337func (m *EvalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 338 return xxx_messageInfo_EvalRequest.Marshal(b, m, deterministic) 339} 340func (m *EvalRequest) XXX_Merge(src proto.Message) { 341 xxx_messageInfo_EvalRequest.Merge(m, src) 342} 343func (m *EvalRequest) XXX_Size() int { 344 return xxx_messageInfo_EvalRequest.Size(m) 345} 346func (m *EvalRequest) XXX_DiscardUnknown() { 347 xxx_messageInfo_EvalRequest.DiscardUnknown(m) 348} 349 350var xxx_messageInfo_EvalRequest proto.InternalMessageInfo 351 352type isEvalRequest_ExprKind interface { 353 isEvalRequest_ExprKind() 354} 355 356type EvalRequest_ParsedExpr struct { 357 ParsedExpr *ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3,oneof"` 358} 359 360type EvalRequest_CheckedExpr struct { 361 CheckedExpr *CheckedExpr `protobuf:"bytes,2,opt,name=checked_expr,json=checkedExpr,proto3,oneof"` 362} 363 364func (*EvalRequest_ParsedExpr) isEvalRequest_ExprKind() {} 365 366func (*EvalRequest_CheckedExpr) isEvalRequest_ExprKind() {} 367 368func (m *EvalRequest) GetExprKind() isEvalRequest_ExprKind { 369 if m != nil { 370 return m.ExprKind 371 } 372 return nil 373} 374 375func (m *EvalRequest) GetParsedExpr() *ParsedExpr { 376 if x, ok := m.GetExprKind().(*EvalRequest_ParsedExpr); ok { 377 return x.ParsedExpr 378 } 379 return nil 380} 381 382func (m *EvalRequest) GetCheckedExpr() *CheckedExpr { 383 if x, ok := m.GetExprKind().(*EvalRequest_CheckedExpr); ok { 384 return x.CheckedExpr 385 } 386 return nil 387} 388 389func (m *EvalRequest) GetBindings() map[string]*ExprValue { 390 if m != nil { 391 return m.Bindings 392 } 393 return nil 394} 395 396func (m *EvalRequest) GetContainer() string { 397 if m != nil { 398 return m.Container 399 } 400 return "" 401} 402 403// XXX_OneofWrappers is for the internal use of the proto package. 404func (*EvalRequest) XXX_OneofWrappers() []interface{} { 405 return []interface{}{ 406 (*EvalRequest_ParsedExpr)(nil), 407 (*EvalRequest_CheckedExpr)(nil), 408 } 409} 410 411// Response message for the Eval method. 412type EvalResponse struct { 413 // The execution result, or unset if execution couldn't start. 414 Result *ExprValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` 415 // Any number of issues with [StatusDetails][] as the details. 416 // Note that CEL execution errors are reified into 417 // [ExprValue][google.api.expr.v1alpha1.ExprValue]. Nevertheless, we'll allow 418 // out-of-band issues to be raised, which also makes the replies more regular. 419 Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"` 420 XXX_NoUnkeyedLiteral struct{} `json:"-"` 421 XXX_unrecognized []byte `json:"-"` 422 XXX_sizecache int32 `json:"-"` 423} 424 425func (m *EvalResponse) Reset() { *m = EvalResponse{} } 426func (m *EvalResponse) String() string { return proto.CompactTextString(m) } 427func (*EvalResponse) ProtoMessage() {} 428func (*EvalResponse) Descriptor() ([]byte, []int) { 429 return fileDescriptor_b3ca1183e6ceae83, []int{5} 430} 431 432func (m *EvalResponse) XXX_Unmarshal(b []byte) error { 433 return xxx_messageInfo_EvalResponse.Unmarshal(m, b) 434} 435func (m *EvalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 436 return xxx_messageInfo_EvalResponse.Marshal(b, m, deterministic) 437} 438func (m *EvalResponse) XXX_Merge(src proto.Message) { 439 xxx_messageInfo_EvalResponse.Merge(m, src) 440} 441func (m *EvalResponse) XXX_Size() int { 442 return xxx_messageInfo_EvalResponse.Size(m) 443} 444func (m *EvalResponse) XXX_DiscardUnknown() { 445 xxx_messageInfo_EvalResponse.DiscardUnknown(m) 446} 447 448var xxx_messageInfo_EvalResponse proto.InternalMessageInfo 449 450func (m *EvalResponse) GetResult() *ExprValue { 451 if m != nil { 452 return m.Result 453 } 454 return nil 455} 456 457func (m *EvalResponse) GetIssues() []*status.Status { 458 if m != nil { 459 return m.Issues 460 } 461 return nil 462} 463 464// Warnings or errors in service execution are represented by 465// [google.rpc.Status][google.rpc.Status] messages, with the following message 466// in the details field. 467type IssueDetails struct { 468 // The severity of the issue. 469 Severity IssueDetails_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.api.expr.v1alpha1.IssueDetails_Severity" json:"severity,omitempty"` 470 // Position in the source, if known. 471 Position *SourcePosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"` 472 // Expression ID from [Expr][google.api.expr.v1alpha1.Expr], 0 if unknown. 473 Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` 474 XXX_NoUnkeyedLiteral struct{} `json:"-"` 475 XXX_unrecognized []byte `json:"-"` 476 XXX_sizecache int32 `json:"-"` 477} 478 479func (m *IssueDetails) Reset() { *m = IssueDetails{} } 480func (m *IssueDetails) String() string { return proto.CompactTextString(m) } 481func (*IssueDetails) ProtoMessage() {} 482func (*IssueDetails) Descriptor() ([]byte, []int) { 483 return fileDescriptor_b3ca1183e6ceae83, []int{6} 484} 485 486func (m *IssueDetails) XXX_Unmarshal(b []byte) error { 487 return xxx_messageInfo_IssueDetails.Unmarshal(m, b) 488} 489func (m *IssueDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 490 return xxx_messageInfo_IssueDetails.Marshal(b, m, deterministic) 491} 492func (m *IssueDetails) XXX_Merge(src proto.Message) { 493 xxx_messageInfo_IssueDetails.Merge(m, src) 494} 495func (m *IssueDetails) XXX_Size() int { 496 return xxx_messageInfo_IssueDetails.Size(m) 497} 498func (m *IssueDetails) XXX_DiscardUnknown() { 499 xxx_messageInfo_IssueDetails.DiscardUnknown(m) 500} 501 502var xxx_messageInfo_IssueDetails proto.InternalMessageInfo 503 504func (m *IssueDetails) GetSeverity() IssueDetails_Severity { 505 if m != nil { 506 return m.Severity 507 } 508 return IssueDetails_SEVERITY_UNSPECIFIED 509} 510 511func (m *IssueDetails) GetPosition() *SourcePosition { 512 if m != nil { 513 return m.Position 514 } 515 return nil 516} 517 518func (m *IssueDetails) GetId() int64 { 519 if m != nil { 520 return m.Id 521 } 522 return 0 523} 524 525func init() { 526 proto.RegisterEnum("google.api.expr.v1alpha1.IssueDetails_Severity", IssueDetails_Severity_name, IssueDetails_Severity_value) 527 proto.RegisterType((*ParseRequest)(nil), "google.api.expr.v1alpha1.ParseRequest") 528 proto.RegisterType((*ParseResponse)(nil), "google.api.expr.v1alpha1.ParseResponse") 529 proto.RegisterType((*CheckRequest)(nil), "google.api.expr.v1alpha1.CheckRequest") 530 proto.RegisterType((*CheckResponse)(nil), "google.api.expr.v1alpha1.CheckResponse") 531 proto.RegisterType((*EvalRequest)(nil), "google.api.expr.v1alpha1.EvalRequest") 532 proto.RegisterMapType((map[string]*ExprValue)(nil), "google.api.expr.v1alpha1.EvalRequest.BindingsEntry") 533 proto.RegisterType((*EvalResponse)(nil), "google.api.expr.v1alpha1.EvalResponse") 534 proto.RegisterType((*IssueDetails)(nil), "google.api.expr.v1alpha1.IssueDetails") 535} 536 537func init() { 538 proto.RegisterFile("google/api/expr/v1alpha1/conformance_service.proto", fileDescriptor_b3ca1183e6ceae83) 539} 540 541var fileDescriptor_b3ca1183e6ceae83 = []byte{ 542 // 807 bytes of a gzipped FileDescriptorProto 543 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x41, 0x6f, 0xdb, 0x36, 544 0x18, 0xb5, 0xe4, 0x24, 0xb5, 0x3f, 0xd9, 0xa9, 0x41, 0x0c, 0xa8, 0x61, 0x64, 0x43, 0xa0, 0x2e, 545 0x69, 0xb0, 0x83, 0x84, 0xba, 0x97, 0x75, 0xdd, 0xa5, 0xb1, 0xb5, 0xc6, 0xdb, 0x9a, 0x18, 0x74, 546 0x97, 0x62, 0xbd, 0x68, 0x8c, 0xc4, 0xb9, 0x44, 0x14, 0x52, 0x23, 0x65, 0xcd, 0xde, 0x69, 0x18, 547 0xb0, 0x7f, 0xb2, 0xfd, 0x9b, 0xfd, 0xa0, 0x1d, 0x07, 0x89, 0xb4, 0x63, 0xb7, 0x50, 0xd2, 0x0c, 548 0xbd, 0x49, 0x9f, 0xde, 0x7b, 0xfa, 0xde, 0xe3, 0x47, 0x12, 0xfa, 0x53, 0x21, 0xa6, 0x09, 0xf5, 549 0x49, 0xca, 0x7c, 0x3a, 0x4f, 0xa5, 0x9f, 0x3f, 0x26, 0x49, 0xfa, 0x96, 0x3c, 0xf6, 0x23, 0xc1, 550 0x7f, 0x16, 0xf2, 0x8a, 0xf0, 0x88, 0x86, 0x8a, 0xca, 0x9c, 0x45, 0xd4, 0x4b, 0xa5, 0xc8, 0x04, 551 0xea, 0x6a, 0x8e, 0x47, 0x52, 0xe6, 0x15, 0x1c, 0x6f, 0xc9, 0xe9, 0x1d, 0x56, 0xab, 0xbd, 0xa5, 552 0xd1, 0x25, 0x8d, 0xb5, 0x42, 0xef, 0x61, 0x25, 0x8e, 0xe6, 0x24, 0x31, 0xa0, 0x83, 0x4a, 0x90, 553 0x5a, 0xf0, 0x8c, 0xcc, 0x0d, 0xec, 0x81, 0x81, 0xc9, 0x34, 0xf2, 0x55, 0x46, 0xb2, 0x99, 0xd2, 554 0x1f, 0xdc, 0xbf, 0x2c, 0x68, 0x8d, 0x89, 0x54, 0x14, 0xd3, 0x5f, 0x66, 0x54, 0x65, 0xe8, 0x53, 555 0x80, 0x88, 0x26, 0xa1, 0x12, 0x33, 0x19, 0xd1, 0xae, 0xb5, 0x6f, 0x1d, 0x35, 0x71, 0x33, 0xa2, 556 0xc9, 0xa4, 0x2c, 0xa0, 0x03, 0xd8, 0xd5, 0xc2, 0x61, 0x4e, 0xa5, 0x62, 0x82, 0x77, 0xed, 0x12, 557 0xd2, 0xd6, 0xd5, 0x73, 0x5d, 0x44, 0x8f, 0xe0, 0xbe, 0x56, 0x08, 0x13, 0x11, 0x91, 0xac, 0xc0, 558 0xd5, 0x4b, 0xdc, 0xae, 0x2e, 0x7f, 0x6f, 0xaa, 0x85, 0x5e, 0xcc, 0x14, 0xb9, 0x48, 0x68, 0x78, 559 0x45, 0x22, 0x29, 0x54, 0x77, 0x6b, 0xdf, 0x3a, 0x6a, 0xe0, 0xb6, 0xa9, 0xbe, 0x2c, 0x8b, 0xee, 560 0x1f, 0x16, 0xb4, 0x4d, 0x9b, 0x2a, 0x15, 0x5c, 0x51, 0x14, 0x80, 0x93, 0x16, 0x85, 0x38, 0x2c, 561 0x6c, 0x97, 0x8d, 0x3a, 0xfd, 0xcf, 0xbd, 0xaa, 0xd4, 0xbd, 0x92, 0x1d, 0x07, 0xf3, 0x54, 0x62, 562 0x48, 0x57, 0xcf, 0xe8, 0x0b, 0xd8, 0x61, 0x4a, 0xcd, 0xa8, 0xea, 0xda, 0xfb, 0xf5, 0x23, 0xa7, 563 0x8f, 0x96, 0x0a, 0x32, 0x8d, 0xbc, 0x49, 0x99, 0x14, 0x36, 0x08, 0xf7, 0x1f, 0x0b, 0x5a, 0x83, 564 0x62, 0x89, 0x96, 0x59, 0x7d, 0xa4, 0x1e, 0x9e, 0x42, 0x23, 0x5b, 0xa4, 0x34, 0xa4, 0x3c, 0x37, 565 0x5d, 0x7c, 0x56, 0xad, 0x31, 0xa4, 0x51, 0x82, 0xef, 0x15, 0xf8, 0x80, 0xe7, 0x68, 0x0f, 0x9a, 566 0x91, 0xe0, 0x19, 0x61, 0x9c, 0x4a, 0x93, 0xf0, 0x75, 0x01, 0xed, 0x01, 0x70, 0x11, 0xaa, 0x2c, 567 0x2e, 0xa5, 0x75, 0xb0, 0x0d, 0x2e, 0x26, 0x59, 0x1c, 0xf0, 0xdc, 0xfd, 0xd3, 0x82, 0xb6, 0xb1, 568 0x63, 0x32, 0x3d, 0x81, 0x96, 0x19, 0xc1, 0x75, 0x43, 0x07, 0xd5, 0xcd, 0x0c, 0x34, 0xba, 0x74, 569 0xe4, 0x44, 0xd7, 0x2f, 0x77, 0x8a, 0xf5, 0xf7, 0x3a, 0x38, 0x41, 0x4e, 0x92, 0x65, 0xaa, 0x2f, 570 0xfe, 0x77, 0xaa, 0x27, 0xb5, 0x8d, 0x5c, 0xbf, 0x7d, 0xc7, 0x8e, 0x7d, 0x07, 0x3b, 0x27, 0xb5, 571 0x4d, 0x43, 0x67, 0xd0, 0xb8, 0x60, 0x3c, 0x66, 0x7c, 0xaa, 0xba, 0xf5, 0xd2, 0xd2, 0x93, 0x6a, 572 0x9d, 0x35, 0x37, 0xde, 0xb1, 0x61, 0x05, 0x3c, 0x93, 0x0b, 0xbc, 0x12, 0xd9, 0x5c, 0xb9, 0xad, 573 0x77, 0x56, 0xae, 0xf7, 0x13, 0xb4, 0x37, 0x88, 0xa8, 0x03, 0xf5, 0x4b, 0xba, 0x30, 0xfb, 0xb1, 574 0x78, 0x44, 0x4f, 0x61, 0x3b, 0x27, 0xc9, 0x8c, 0x1a, 0x5b, 0x0f, 0x6f, 0x68, 0x67, 0x9e, 0xca, 575 0xf3, 0x02, 0x8a, 0x35, 0xe3, 0x2b, 0xfb, 0x4b, 0xeb, 0xd8, 0x81, 0x66, 0x81, 0x0a, 0x2f, 0x19, 576 0x8f, 0xdd, 0x5f, 0xa1, 0xa5, 0x7b, 0x36, 0x83, 0xf0, 0x0c, 0x76, 0x24, 0x55, 0xb3, 0x24, 0x33, 577 0xe9, 0x7f, 0x90, 0xb8, 0xa1, 0xdc, 0x6d, 0xed, 0x6d, 0x68, 0x8d, 0x8a, 0xc7, 0x21, 0xcd, 0x08, 578 0x4b, 0x14, 0xfa, 0x0e, 0x1a, 0x8a, 0xe6, 0x54, 0xb2, 0x4c, 0x9b, 0xdd, 0xed, 0xfb, 0xd5, 0xff, 579 0x5e, 0x67, 0x7a, 0x13, 0x43, 0xc3, 0x2b, 0x01, 0x34, 0x84, 0x46, 0x2a, 0x14, 0xcb, 0x96, 0xc7, 580 0x94, 0xd3, 0x3f, 0xaa, 0x16, 0xd3, 0x07, 0xdc, 0xd8, 0xe0, 0xf1, 0x8a, 0x89, 0x76, 0xc1, 0x66, 581 0x71, 0xb9, 0xb9, 0xea, 0xd8, 0x66, 0xb1, 0xfb, 0x12, 0x1a, 0xcb, 0x7f, 0xa1, 0x2e, 0x7c, 0x32, 582 0x09, 0xce, 0x03, 0x3c, 0x7a, 0xf5, 0x63, 0xf8, 0xc3, 0xe9, 0x64, 0x1c, 0x0c, 0x46, 0xdf, 0x8c, 583 0x82, 0x61, 0xa7, 0x86, 0xee, 0x83, 0x33, 0x0c, 0xc6, 0x38, 0x18, 0x3c, 0x7f, 0x35, 0x3a, 0x3b, 584 0xed, 0x58, 0xc8, 0x81, 0x7b, 0xaf, 0x9f, 0xe3, 0xd3, 0xd1, 0xe9, 0x8b, 0x8e, 0x8d, 0x9a, 0xb0, 585 0x1d, 0x60, 0x7c, 0x86, 0x3b, 0xf5, 0xfe, 0xdf, 0x36, 0xa0, 0xc1, 0xf5, 0x35, 0x32, 0xd1, 0xb7, 586 0x08, 0x7a, 0x03, 0xdb, 0xe5, 0x60, 0xa3, 0xc3, 0x5b, 0x26, 0xdf, 0x0c, 0x5a, 0xef, 0xd1, 0xad, 587 0x38, 0xbd, 0xb8, 0x6e, 0xad, 0xd0, 0x2e, 0x47, 0xfd, 0x26, 0xed, 0xf5, 0x83, 0xee, 0x26, 0xed, 588 0x8d, 0x13, 0xc4, 0xad, 0xa1, 0xd7, 0xb0, 0x55, 0x8c, 0x12, 0x3a, 0xf8, 0xa0, 0xed, 0xd1, 0x3b, 589 0xbc, 0x0d, 0xb6, 0x14, 0x3e, 0xfe, 0x0d, 0xf6, 0x22, 0x71, 0x55, 0x09, 0x3f, 0x7e, 0xf0, 0x7e, 590 0x88, 0xe3, 0xe2, 0x8a, 0x1b, 0x5b, 0x6f, 0xbe, 0x36, 0xa4, 0xa9, 0x48, 0x08, 0x9f, 0x7a, 0x42, 591 0x4e, 0xfd, 0x29, 0xe5, 0xe5, 0x05, 0xe8, 0xeb, 0x4f, 0x24, 0x65, 0xea, 0xfd, 0x3b, 0xf4, 0x59, 592 0xf1, 0xf6, 0xaf, 0x65, 0x5d, 0xec, 0x94, 0xd8, 0x27, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xf9, 593 0x66, 0xbb, 0xae, 0x09, 0x08, 0x00, 0x00, 594} 595 596// Reference imports to suppress errors if they are not otherwise used. 597var _ context.Context 598var _ grpc.ClientConn 599 600// This is a compile-time assertion to ensure that this generated file 601// is compatible with the grpc package it is being compiled against. 602const _ = grpc.SupportPackageIsVersion4 603 604// ConformanceServiceClient is the client API for ConformanceService service. 605// 606// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 607type ConformanceServiceClient interface { 608 // Transforms CEL source text into a parsed representation. 609 Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*ParseResponse, error) 610 // Runs static checks on a parsed CEL representation and return 611 // an annotated representation, or a set of issues. 612 Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) 613 // Evaluates a parsed or annotation CEL representation given 614 // values of external bindings. 615 Eval(ctx context.Context, in *EvalRequest, opts ...grpc.CallOption) (*EvalResponse, error) 616} 617 618type conformanceServiceClient struct { 619 cc *grpc.ClientConn 620} 621 622func NewConformanceServiceClient(cc *grpc.ClientConn) ConformanceServiceClient { 623 return &conformanceServiceClient{cc} 624} 625 626func (c *conformanceServiceClient) Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*ParseResponse, error) { 627 out := new(ParseResponse) 628 err := c.cc.Invoke(ctx, "/google.api.expr.v1alpha1.ConformanceService/Parse", in, out, opts...) 629 if err != nil { 630 return nil, err 631 } 632 return out, nil 633} 634 635func (c *conformanceServiceClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) { 636 out := new(CheckResponse) 637 err := c.cc.Invoke(ctx, "/google.api.expr.v1alpha1.ConformanceService/Check", in, out, opts...) 638 if err != nil { 639 return nil, err 640 } 641 return out, nil 642} 643 644func (c *conformanceServiceClient) Eval(ctx context.Context, in *EvalRequest, opts ...grpc.CallOption) (*EvalResponse, error) { 645 out := new(EvalResponse) 646 err := c.cc.Invoke(ctx, "/google.api.expr.v1alpha1.ConformanceService/Eval", in, out, opts...) 647 if err != nil { 648 return nil, err 649 } 650 return out, nil 651} 652 653// ConformanceServiceServer is the server API for ConformanceService service. 654type ConformanceServiceServer interface { 655 // Transforms CEL source text into a parsed representation. 656 Parse(context.Context, *ParseRequest) (*ParseResponse, error) 657 // Runs static checks on a parsed CEL representation and return 658 // an annotated representation, or a set of issues. 659 Check(context.Context, *CheckRequest) (*CheckResponse, error) 660 // Evaluates a parsed or annotation CEL representation given 661 // values of external bindings. 662 Eval(context.Context, *EvalRequest) (*EvalResponse, error) 663} 664 665func RegisterConformanceServiceServer(s *grpc.Server, srv ConformanceServiceServer) { 666 s.RegisterService(&_ConformanceService_serviceDesc, srv) 667} 668 669func _ConformanceService_Parse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 670 in := new(ParseRequest) 671 if err := dec(in); err != nil { 672 return nil, err 673 } 674 if interceptor == nil { 675 return srv.(ConformanceServiceServer).Parse(ctx, in) 676 } 677 info := &grpc.UnaryServerInfo{ 678 Server: srv, 679 FullMethod: "/google.api.expr.v1alpha1.ConformanceService/Parse", 680 } 681 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 682 return srv.(ConformanceServiceServer).Parse(ctx, req.(*ParseRequest)) 683 } 684 return interceptor(ctx, in, info, handler) 685} 686 687func _ConformanceService_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 688 in := new(CheckRequest) 689 if err := dec(in); err != nil { 690 return nil, err 691 } 692 if interceptor == nil { 693 return srv.(ConformanceServiceServer).Check(ctx, in) 694 } 695 info := &grpc.UnaryServerInfo{ 696 Server: srv, 697 FullMethod: "/google.api.expr.v1alpha1.ConformanceService/Check", 698 } 699 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 700 return srv.(ConformanceServiceServer).Check(ctx, req.(*CheckRequest)) 701 } 702 return interceptor(ctx, in, info, handler) 703} 704 705func _ConformanceService_Eval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 706 in := new(EvalRequest) 707 if err := dec(in); err != nil { 708 return nil, err 709 } 710 if interceptor == nil { 711 return srv.(ConformanceServiceServer).Eval(ctx, in) 712 } 713 info := &grpc.UnaryServerInfo{ 714 Server: srv, 715 FullMethod: "/google.api.expr.v1alpha1.ConformanceService/Eval", 716 } 717 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 718 return srv.(ConformanceServiceServer).Eval(ctx, req.(*EvalRequest)) 719 } 720 return interceptor(ctx, in, info, handler) 721} 722 723var _ConformanceService_serviceDesc = grpc.ServiceDesc{ 724 ServiceName: "google.api.expr.v1alpha1.ConformanceService", 725 HandlerType: (*ConformanceServiceServer)(nil), 726 Methods: []grpc.MethodDesc{ 727 { 728 MethodName: "Parse", 729 Handler: _ConformanceService_Parse_Handler, 730 }, 731 { 732 MethodName: "Check", 733 Handler: _ConformanceService_Check_Handler, 734 }, 735 { 736 MethodName: "Eval", 737 Handler: _ConformanceService_Eval_Handler, 738 }, 739 }, 740 Streams: []grpc.StreamDesc{}, 741 Metadata: "google/api/expr/v1alpha1/conformance_service.proto", 742} 743