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