Debian Codegraph @

googleapis/api/expr/conformance/v1alpha1/conformance_service.pb.go

raw
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/conformance/v1alpha1/conformance_service.proto
20
21 package confpb
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 v1alpha1 "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
30 status "google.golang.org/genproto/googleapis/rpc/status"
31 grpc "google.golang.org/grpc"
32 codes "google.golang.org/grpc/codes"
33 status1 "google.golang.org/grpc/status"
34 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
35 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
36 )
37
38 const (
39 // Verify that this generated code is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41 // Verify that runtime/protoimpl is sufficiently up-to-date.
42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43 )
44
45 // Severities of issues.
46 type IssueDetails_Severity int32
47
48 const (
49 // An unspecified severity.
50 IssueDetails_SEVERITY_UNSPECIFIED IssueDetails_Severity = 0
51 // Deprecation issue for statements and method that may no longer be
52 // supported or maintained.
53 IssueDetails_DEPRECATION IssueDetails_Severity = 1
54 // Warnings such as: unused variables.
55 IssueDetails_WARNING IssueDetails_Severity = 2
56 // Errors such as: unmatched curly braces or variable redefinition.
57 IssueDetails_ERROR IssueDetails_Severity = 3
58 )
59
60 // Enum value maps for IssueDetails_Severity.
61 var (
62 IssueDetails_Severity_name = map[int32]string{
63 0: "SEVERITY_UNSPECIFIED",
64 1: "DEPRECATION",
65 2: "WARNING",
66 3: "ERROR",
67 }
68 IssueDetails_Severity_value = map[string]int32{
69 "SEVERITY_UNSPECIFIED": 0,
70 "DEPRECATION": 1,
71 "WARNING": 2,
72 "ERROR": 3,
73 }
74 )
75
76 func (x IssueDetails_Severity) Enum() *IssueDetails_Severity {
77 p := new(IssueDetails_Severity)
78 *p = x
79 return p
80 }
81
82 func (x IssueDetails_Severity) String() string {
83 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
84 }
85
86 func (IssueDetails_Severity) Descriptor() protoreflect.EnumDescriptor {
87 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_enumTypes[0].Descriptor()
88 }
89
90 func (IssueDetails_Severity) Type() protoreflect.EnumType {
91 return &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_enumTypes[0]
92 }
93
94 func (x IssueDetails_Severity) Number() protoreflect.EnumNumber {
95 return protoreflect.EnumNumber(x)
96 }
97
98 // Deprecated: Use IssueDetails_Severity.Descriptor instead.
99 func (IssueDetails_Severity) EnumDescriptor() ([]byte, []int) {
100 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{7, 0}
101 }
102
103 // Request message for the Parse method.
104 type ParseRequest struct {
105 state protoimpl.MessageState
106 sizeCache protoimpl.SizeCache
107 unknownFields protoimpl.UnknownFields
108
109 // Required. Source text in CEL syntax.
110 CelSource string `protobuf:"bytes,1,opt,name=cel_source,json=celSource,proto3" json:"cel_source,omitempty"`
111 // Tag for version of CEL syntax, for future use.
112 SyntaxVersion string `protobuf:"bytes,2,opt,name=syntax_version,json=syntaxVersion,proto3" json:"syntax_version,omitempty"`
113 // File or resource for source text, used in [SourceInfo][google.api.SourceInfo].
114 SourceLocation string `protobuf:"bytes,3,opt,name=source_location,json=sourceLocation,proto3" json:"source_location,omitempty"`
115 // Prevent macro expansion. See "Macros" in Language Defiinition.
116 DisableMacros bool `protobuf:"varint,4,opt,name=disable_macros,json=disableMacros,proto3" json:"disable_macros,omitempty"`
117 }
118
119 func (x *ParseRequest) Reset() {
120 *x = ParseRequest{}
121 if protoimpl.UnsafeEnabled {
122 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[0]
123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
124 ms.StoreMessageInfo(mi)
125 }
126 }
127
128 func (x *ParseRequest) String() string {
129 return protoimpl.X.MessageStringOf(x)
130 }
131
132 func (*ParseRequest) ProtoMessage() {}
133
134 func (x *ParseRequest) ProtoReflect() protoreflect.Message {
135 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[0]
136 if protoimpl.UnsafeEnabled && x != nil {
137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
138 if ms.LoadMessageInfo() == nil {
139 ms.StoreMessageInfo(mi)
140 }
141 return ms
142 }
143 return mi.MessageOf(x)
144 }
145
146 // Deprecated: Use ParseRequest.ProtoReflect.Descriptor instead.
147 func (*ParseRequest) Descriptor() ([]byte, []int) {
148 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{0}
149 }
150
151 func (x *ParseRequest) GetCelSource() string {
152 if x != nil {
153 return x.CelSource
154 }
155 return ""
156 }
157
158 func (x *ParseRequest) GetSyntaxVersion() string {
159 if x != nil {
160 return x.SyntaxVersion
161 }
162 return ""
163 }
164
165 func (x *ParseRequest) GetSourceLocation() string {
166 if x != nil {
167 return x.SourceLocation
168 }
169 return ""
170 }
171
172 func (x *ParseRequest) GetDisableMacros() bool {
173 if x != nil {
174 return x.DisableMacros
175 }
176 return false
177 }
178
179 // Response message for the Parse method.
180 type ParseResponse struct {
181 state protoimpl.MessageState
182 sizeCache protoimpl.SizeCache
183 unknownFields protoimpl.UnknownFields
184
185 // The parsed representation, or unset if parsing failed.
186 ParsedExpr *v1alpha1.ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3" json:"parsed_expr,omitempty"`
187 // Any number of issues with [StatusDetails][] as the details.
188 Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"`
189 }
190
191 func (x *ParseResponse) Reset() {
192 *x = ParseResponse{}
193 if protoimpl.UnsafeEnabled {
194 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[1]
195 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
196 ms.StoreMessageInfo(mi)
197 }
198 }
199
200 func (x *ParseResponse) String() string {
201 return protoimpl.X.MessageStringOf(x)
202 }
203
204 func (*ParseResponse) ProtoMessage() {}
205
206 func (x *ParseResponse) ProtoReflect() protoreflect.Message {
207 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[1]
208 if protoimpl.UnsafeEnabled && x != nil {
209 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
210 if ms.LoadMessageInfo() == nil {
211 ms.StoreMessageInfo(mi)
212 }
213 return ms
214 }
215 return mi.MessageOf(x)
216 }
217
218 // Deprecated: Use ParseResponse.ProtoReflect.Descriptor instead.
219 func (*ParseResponse) Descriptor() ([]byte, []int) {
220 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{1}
221 }
222
223 func (x *ParseResponse) GetParsedExpr() *v1alpha1.ParsedExpr {
224 if x != nil {
225 return x.ParsedExpr
226 }
227 return nil
228 }
229
230 func (x *ParseResponse) GetIssues() []*status.Status {
231 if x != nil {
232 return x.Issues
233 }
234 return nil
235 }
236
237 // Request message for the Check method.
238 type CheckRequest struct {
239 state protoimpl.MessageState
240 sizeCache protoimpl.SizeCache
241 unknownFields protoimpl.UnknownFields
242
243 // Required. The parsed representation of the CEL program.
244 ParsedExpr *v1alpha1.ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3" json:"parsed_expr,omitempty"`
245 // Declarations of types for external variables and functions.
246 // Required if program uses external variables or functions
247 // not in the default environment.
248 TypeEnv []*v1alpha1.Decl `protobuf:"bytes,2,rep,name=type_env,json=typeEnv,proto3" json:"type_env,omitempty"`
249 // The protocol buffer context. See "Name Resolution" in the
250 // Language Definition.
251 Container string `protobuf:"bytes,3,opt,name=container,proto3" json:"container,omitempty"`
252 // If true, use only the declarations in [type_env][google.api.expr.conformance.v1alpha1.CheckRequest.type_env]. If false (default),
253 // add declarations for the standard definitions to the type environment. See
254 // "Standard Definitions" in the Language Definition.
255 NoStdEnv bool `protobuf:"varint,4,opt,name=no_std_env,json=noStdEnv,proto3" json:"no_std_env,omitempty"`
256 }
257
258 func (x *CheckRequest) Reset() {
259 *x = CheckRequest{}
260 if protoimpl.UnsafeEnabled {
261 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[2]
262 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
263 ms.StoreMessageInfo(mi)
264 }
265 }
266
267 func (x *CheckRequest) String() string {
268 return protoimpl.X.MessageStringOf(x)
269 }
270
271 func (*CheckRequest) ProtoMessage() {}
272
273 func (x *CheckRequest) ProtoReflect() protoreflect.Message {
274 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[2]
275 if protoimpl.UnsafeEnabled && x != nil {
276 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
277 if ms.LoadMessageInfo() == nil {
278 ms.StoreMessageInfo(mi)
279 }
280 return ms
281 }
282 return mi.MessageOf(x)
283 }
284
285 // Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.
286 func (*CheckRequest) Descriptor() ([]byte, []int) {
287 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{2}
288 }
289
290 func (x *CheckRequest) GetParsedExpr() *v1alpha1.ParsedExpr {
291 if x != nil {
292 return x.ParsedExpr
293 }
294 return nil
295 }
296
297 func (x *CheckRequest) GetTypeEnv() []*v1alpha1.Decl {
298 if x != nil {
299 return x.TypeEnv
300 }
301 return nil
302 }
303
304 func (x *CheckRequest) GetContainer() string {
305 if x != nil {
306 return x.Container
307 }
308 return ""
309 }
310
311 func (x *CheckRequest) GetNoStdEnv() bool {
312 if x != nil {
313 return x.NoStdEnv
314 }
315 return false
316 }
317
318 // Response message for the Check method.
319 type CheckResponse struct {
320 state protoimpl.MessageState
321 sizeCache protoimpl.SizeCache
322 unknownFields protoimpl.UnknownFields
323
324 // The annotated representation, or unset if checking failed.
325 CheckedExpr *v1alpha1.CheckedExpr `protobuf:"bytes,1,opt,name=checked_expr,json=checkedExpr,proto3" json:"checked_expr,omitempty"`
326 // Any number of issues with [StatusDetails][] as the details.
327 Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"`
328 }
329
330 func (x *CheckResponse) Reset() {
331 *x = CheckResponse{}
332 if protoimpl.UnsafeEnabled {
333 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[3]
334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
335 ms.StoreMessageInfo(mi)
336 }
337 }
338
339 func (x *CheckResponse) String() string {
340 return protoimpl.X.MessageStringOf(x)
341 }
342
343 func (*CheckResponse) ProtoMessage() {}
344
345 func (x *CheckResponse) ProtoReflect() protoreflect.Message {
346 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[3]
347 if protoimpl.UnsafeEnabled && x != nil {
348 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
349 if ms.LoadMessageInfo() == nil {
350 ms.StoreMessageInfo(mi)
351 }
352 return ms
353 }
354 return mi.MessageOf(x)
355 }
356
357 // Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.
358 func (*CheckResponse) Descriptor() ([]byte, []int) {
359 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{3}
360 }
361
362 func (x *CheckResponse) GetCheckedExpr() *v1alpha1.CheckedExpr {
363 if x != nil {
364 return x.CheckedExpr
365 }
366 return nil
367 }
368
369 func (x *CheckResponse) GetIssues() []*status.Status {
370 if x != nil {
371 return x.Issues
372 }
373 return nil
374 }
375
376 // Request message for the Eval method.
377 type EvalRequest struct {
378 state protoimpl.MessageState
379 sizeCache protoimpl.SizeCache
380 unknownFields protoimpl.UnknownFields
381
382 // Required. Either the parsed or annotated representation of the CEL program.
383 //
384 // Types that are assignable to ExprKind:
385 //
386 // *EvalRequest_ParsedExpr
387 // *EvalRequest_CheckedExpr
388 ExprKind isEvalRequest_ExprKind `protobuf_oneof:"expr_kind"`
389 // Bindings for the external variables. The types SHOULD be compatible
390 // with the type environment in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked.
391 Bindings map[string]*v1alpha1.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"`
392 // SHOULD be the same container as used in [CheckRequest][google.api.expr.conformance.v1alpha1.CheckRequest], if checked.
393 Container string `protobuf:"bytes,4,opt,name=container,proto3" json:"container,omitempty"`
394 }
395
396 func (x *EvalRequest) Reset() {
397 *x = EvalRequest{}
398 if protoimpl.UnsafeEnabled {
399 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[4]
400 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
401 ms.StoreMessageInfo(mi)
402 }
403 }
404
405 func (x *EvalRequest) String() string {
406 return protoimpl.X.MessageStringOf(x)
407 }
408
409 func (*EvalRequest) ProtoMessage() {}
410
411 func (x *EvalRequest) ProtoReflect() protoreflect.Message {
412 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[4]
413 if protoimpl.UnsafeEnabled && x != nil {
414 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
415 if ms.LoadMessageInfo() == nil {
416 ms.StoreMessageInfo(mi)
417 }
418 return ms
419 }
420 return mi.MessageOf(x)
421 }
422
423 // Deprecated: Use EvalRequest.ProtoReflect.Descriptor instead.
424 func (*EvalRequest) Descriptor() ([]byte, []int) {
425 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{4}
426 }
427
428 func (m *EvalRequest) GetExprKind() isEvalRequest_ExprKind {
429 if m != nil {
430 return m.ExprKind
431 }
432 return nil
433 }
434
435 func (x *EvalRequest) GetParsedExpr() *v1alpha1.ParsedExpr {
436 if x, ok := x.GetExprKind().(*EvalRequest_ParsedExpr); ok {
437 return x.ParsedExpr
438 }
439 return nil
440 }
441
442 func (x *EvalRequest) GetCheckedExpr() *v1alpha1.CheckedExpr {
443 if x, ok := x.GetExprKind().(*EvalRequest_CheckedExpr); ok {
444 return x.CheckedExpr
445 }
446 return nil
447 }
448
449 func (x *EvalRequest) GetBindings() map[string]*v1alpha1.ExprValue {
450 if x != nil {
451 return x.Bindings
452 }
453 return nil
454 }
455
456 func (x *EvalRequest) GetContainer() string {
457 if x != nil {
458 return x.Container
459 }
460 return ""
461 }
462
463 type isEvalRequest_ExprKind interface {
464 isEvalRequest_ExprKind()
465 }
466
467 type EvalRequest_ParsedExpr struct {
468 // Evaluate based on the parsed representation.
469 ParsedExpr *v1alpha1.ParsedExpr `protobuf:"bytes,1,opt,name=parsed_expr,json=parsedExpr,proto3,oneof"`
470 }
471
472 type EvalRequest_CheckedExpr struct {
473 // Evaluate based on the checked representation.
474 CheckedExpr *v1alpha1.CheckedExpr `protobuf:"bytes,2,opt,name=checked_expr,json=checkedExpr,proto3,oneof"`
475 }
476
477 func (*EvalRequest_ParsedExpr) isEvalRequest_ExprKind() {}
478
479 func (*EvalRequest_CheckedExpr) isEvalRequest_ExprKind() {}
480
481 // Response message for the Eval method.
482 type EvalResponse struct {
483 state protoimpl.MessageState
484 sizeCache protoimpl.SizeCache
485 unknownFields protoimpl.UnknownFields
486
487 // The execution result, or unset if execution couldn't start.
488 Result *v1alpha1.ExprValue `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
489 // Any number of issues with [StatusDetails][] as the details.
490 // Note that CEL execution errors are reified into [ExprValue][].
491 // Nevertheless, we'll allow out-of-band issues to be raised,
492 // which also makes the replies more regular.
493 Issues []*status.Status `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"`
494 }
495
496 func (x *EvalResponse) Reset() {
497 *x = EvalResponse{}
498 if protoimpl.UnsafeEnabled {
499 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[5]
500 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
501 ms.StoreMessageInfo(mi)
502 }
503 }
504
505 func (x *EvalResponse) String() string {
506 return protoimpl.X.MessageStringOf(x)
507 }
508
509 func (*EvalResponse) ProtoMessage() {}
510
511 func (x *EvalResponse) ProtoReflect() protoreflect.Message {
512 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[5]
513 if protoimpl.UnsafeEnabled && x != nil {
514 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
515 if ms.LoadMessageInfo() == nil {
516 ms.StoreMessageInfo(mi)
517 }
518 return ms
519 }
520 return mi.MessageOf(x)
521 }
522
523 // Deprecated: Use EvalResponse.ProtoReflect.Descriptor instead.
524 func (*EvalResponse) Descriptor() ([]byte, []int) {
525 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{5}
526 }
527
528 func (x *EvalResponse) GetResult() *v1alpha1.ExprValue {
529 if x != nil {
530 return x.Result
531 }
532 return nil
533 }
534
535 func (x *EvalResponse) GetIssues() []*status.Status {
536 if x != nil {
537 return x.Issues
538 }
539 return nil
540 }
541
542 // A specific position in source.
543 type SourcePosition struct {
544 state protoimpl.MessageState
545 sizeCache protoimpl.SizeCache
546 unknownFields protoimpl.UnknownFields
547
548 // The source location name (e.g. file name).
549 Location string `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
550 // The UTF-8 code unit offset.
551 Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
552 // The 1-based index of the starting line in the source text
553 // where the issue occurs, or 0 if unknown.
554 Line int32 `protobuf:"varint,3,opt,name=line,proto3" json:"line,omitempty"`
555 // The 0-based index of the starting position within the line of source text
556 // where the issue occurs. Only meaningful if line is nonzero.
557 Column int32 `protobuf:"varint,4,opt,name=column,proto3" json:"column,omitempty"`
558 }
559
560 func (x *SourcePosition) Reset() {
561 *x = SourcePosition{}
562 if protoimpl.UnsafeEnabled {
563 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[6]
564 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
565 ms.StoreMessageInfo(mi)
566 }
567 }
568
569 func (x *SourcePosition) String() string {
570 return protoimpl.X.MessageStringOf(x)
571 }
572
573 func (*SourcePosition) ProtoMessage() {}
574
575 func (x *SourcePosition) ProtoReflect() protoreflect.Message {
576 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[6]
577 if protoimpl.UnsafeEnabled && x != nil {
578 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
579 if ms.LoadMessageInfo() == nil {
580 ms.StoreMessageInfo(mi)
581 }
582 return ms
583 }
584 return mi.MessageOf(x)
585 }
586
587 // Deprecated: Use SourcePosition.ProtoReflect.Descriptor instead.
588 func (*SourcePosition) Descriptor() ([]byte, []int) {
589 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{6}
590 }
591
592 func (x *SourcePosition) GetLocation() string {
593 if x != nil {
594 return x.Location
595 }
596 return ""
597 }
598
599 func (x *SourcePosition) GetOffset() int32 {
600 if x != nil {
601 return x.Offset
602 }
603 return 0
604 }
605
606 func (x *SourcePosition) GetLine() int32 {
607 if x != nil {
608 return x.Line
609 }
610 return 0
611 }
612
613 func (x *SourcePosition) GetColumn() int32 {
614 if x != nil {
615 return x.Column
616 }
617 return 0
618 }
619
620 // Warnings or errors in service execution are represented by
621 // [google.rpc.Status][google.rpc.Status] messages, with the following message
622 // in the details field.
623 type IssueDetails struct {
624 state protoimpl.MessageState
625 sizeCache protoimpl.SizeCache
626 unknownFields protoimpl.UnknownFields
627
628 // The severity of the issue.
629 Severity IssueDetails_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.api.expr.conformance.v1alpha1.IssueDetails_Severity" json:"severity,omitempty"`
630 // Position in the source, if known.
631 Position *SourcePosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
632 // Expression ID from [Expr][], 0 if unknown.
633 Id int64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"`
634 }
635
636 func (x *IssueDetails) Reset() {
637 *x = IssueDetails{}
638 if protoimpl.UnsafeEnabled {
639 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[7]
640 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
641 ms.StoreMessageInfo(mi)
642 }
643 }
644
645 func (x *IssueDetails) String() string {
646 return protoimpl.X.MessageStringOf(x)
647 }
648
649 func (*IssueDetails) ProtoMessage() {}
650
651 func (x *IssueDetails) ProtoReflect() protoreflect.Message {
652 mi := &file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[7]
653 if protoimpl.UnsafeEnabled && x != nil {
654 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
655 if ms.LoadMessageInfo() == nil {
656 ms.StoreMessageInfo(mi)
657 }
658 return ms
659 }
660 return mi.MessageOf(x)
661 }
662
663 // Deprecated: Use IssueDetails.ProtoReflect.Descriptor instead.
664 func (*IssueDetails) Descriptor() ([]byte, []int) {
665 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP(), []int{7}
666 }
667
668 func (x *IssueDetails) GetSeverity() IssueDetails_Severity {
669 if x != nil {
670 return x.Severity
671 }
672 return IssueDetails_SEVERITY_UNSPECIFIED
673 }
674
675 func (x *IssueDetails) GetPosition() *SourcePosition {
676 if x != nil {
677 return x.Position
678 }
679 return nil
680 }
681
682 func (x *IssueDetails) GetId() int64 {
683 if x != nil {
684 return x.Id
685 }
686 return 0
687 }
688
689 var File_google_api_expr_conformance_v1alpha1_conformance_service_proto protoreflect.FileDescriptor
690
691 var file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDesc = []byte{
692 0x0a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70,
693 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x76, 0x31,
694 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e,
695 0x63, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
696 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70,
697 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31,
698 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
699 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
700 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72,
701 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65,
702 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
703 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61,
704 0x31, 0x2f, 0x65, 0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x67, 0x6f,
705 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x78, 0x70, 0x72, 0x2f, 0x76, 0x31,
706 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x2e, 0x70, 0x72,
707 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f,
708 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x01, 0x0a,
709 0x0c, 0x50, 0x61, 0x72, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a,
710 0x0a, 0x63, 0x65, 0x6c, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
711 0x09, 0x52, 0x09, 0x63, 0x65, 0x6c, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e,
712 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02,
713 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x56, 0x65, 0x72, 0x73,
714 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6c, 0x6f,
715 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f,
716 0x75, 0x72, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e,
717 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x04,
718 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x63,
719 0x72, 0x6f, 0x73, 0x22, 0x82, 0x01, 0x0a, 0x0d, 0x50, 0x61, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73,
720 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x5f,
721 0x65, 0x78, 0x70, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f,
722 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61,
723 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72,
724 0x52, 0x0a, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x12, 0x2a, 0x0a, 0x06,
725 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67,
726 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
727 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x0c, 0x43, 0x68, 0x65,
728 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x70, 0x61, 0x72,
729 0x73, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24,
730 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72,
731 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73, 0x65, 0x64,
732 0x45, 0x78, 0x70, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72,
733 0x12, 0x39, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x03,
734 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e,
735 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x44, 0x65,
736 0x63, 0x6c, 0x52, 0x07, 0x74, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x76, 0x12, 0x1c, 0x0a, 0x09, 0x63,
737 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
738 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x0a, 0x6e, 0x6f, 0x5f,
739 0x73, 0x74, 0x64, 0x5f, 0x65, 0x6e, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e,
740 0x6f, 0x53, 0x74, 0x64, 0x45, 0x6e, 0x76, 0x22, 0x85, 0x01, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63,
741 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0c, 0x63, 0x68, 0x65,
742 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
743 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70,
744 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,
745 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x45,
746 0x78, 0x70, 0x72, 0x12, 0x2a, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20,
747 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63,
748 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x22,
749 0x8c, 0x03, 0x0a, 0x0b, 0x45, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
750 0x47, 0x0a, 0x0b, 0x70, 0x61, 0x72, 0x73, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x01,
751 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
752 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
753 0x50, 0x61, 0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61,
754 0x72, 0x73, 0x65, 0x64, 0x45, 0x78, 0x70, 0x72, 0x12, 0x4a, 0x0a, 0x0c, 0x63, 0x68, 0x65, 0x63,
755 0x6b, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25,
756 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72,
757 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x65,
758 0x64, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64,
759 0x45, 0x78, 0x70, 0x72, 0x12, 0x5b, 0x0a, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73,
760 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
761 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d,
762 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76,
763 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e,
764 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67,
765 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x18, 0x04,
766 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x1a,
767 0x60, 0x0a, 0x0d, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
768 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
769 0x65, 0x79, 0x12, 0x39, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
770 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65,
771 0x78, 0x70, 0x72, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70,
772 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
773 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x65, 0x78, 0x70, 0x72, 0x5f, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x77,
774 0x0a, 0x0c, 0x45, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b,
775 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23,
776 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72,
777 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x56, 0x61,
778 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2a, 0x0a, 0x06, 0x69,
779 0x73, 0x73, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f,
780 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
781 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x22, 0x70, 0x0a, 0x0e, 0x53, 0x6f, 0x75, 0x72, 0x63,
782 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63,
783 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63,
784 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18,
785 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a,
786 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x69, 0x6e,
787 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,
788 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x22, 0x98, 0x02, 0x0a, 0x0c, 0x49, 0x73,
789 0x73, 0x75, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x57, 0x0a, 0x08, 0x73, 0x65,
790 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x67,
791 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x63,
792 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
793 0x68, 0x61, 0x31, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73,
794 0x2e, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x08, 0x73, 0x65, 0x76, 0x65, 0x72,
795 0x69, 0x74, 0x79, 0x12, 0x50, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18,
796 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
797 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61,
798 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x53, 0x6f, 0x75,
799 0x72, 0x63, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x70, 0x6f, 0x73,
800 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
801 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4d, 0x0a, 0x08, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74,
802 0x79, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x45, 0x56, 0x45, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e,
803 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x44,
804 0x45, 0x50, 0x52, 0x45, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,
805 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52,
806 0x4f, 0x52, 0x10, 0x03, 0x32, 0x84, 0x03, 0x0a, 0x12, 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d,
807 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x72, 0x0a, 0x05, 0x50,
808 0x61, 0x72, 0x73, 0x65, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70,
809 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e,
810 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x73,
811 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
812 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f,
813 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
814 0x50, 0x61, 0x72, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
815 0x72, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
816 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f,
817 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e,
818 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67,
819 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x63,
820 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70,
821 0x68, 0x61, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
822 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x04, 0x45, 0x76, 0x61, 0x6c, 0x12, 0x31, 0x2e, 0x67, 0x6f,
823 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x63, 0x6f,
824 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68,
825 0x61, 0x31, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32,
826 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65, 0x78, 0x70, 0x72,
827 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x61,
828 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x45, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
829 0x73, 0x65, 0x22, 0x00, 0x1a, 0x15, 0xca, 0x41, 0x12, 0x63, 0x65, 0x6c, 0x2e, 0x67, 0x6f, 0x6f,
830 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x42, 0x94, 0x01, 0x0a, 0x28,
831 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x65,
832 0x78, 0x70, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2e,
833 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x42, 0x17, 0x43, 0x6f, 0x6e, 0x66, 0x6f, 0x72,
834 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
835 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
836 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
837 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65,
838 0x78, 0x70, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x2f,
839 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x63, 0x6f, 0x6e, 0x66, 0x70, 0x62, 0xf8,
840 0x01, 0x01, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
841 }
842
843 var (
844 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescOnce sync.Once
845 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescData = file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDesc
846 )
847
848 func file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescGZIP() []byte {
849 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescOnce.Do(func() {
850 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescData)
851 })
852 return file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDescData
853 }
854
855 var file_google_api_expr_conformance_v1alpha1_conformance_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
856 var file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
857 var file_google_api_expr_conformance_v1alpha1_conformance_service_proto_goTypes = []interface{}{
858 (IssueDetails_Severity)(0), // 0: google.api.expr.conformance.v1alpha1.IssueDetails.Severity
859 (*ParseRequest)(nil), // 1: google.api.expr.conformance.v1alpha1.ParseRequest
860 (*ParseResponse)(nil), // 2: google.api.expr.conformance.v1alpha1.ParseResponse
861 (*CheckRequest)(nil), // 3: google.api.expr.conformance.v1alpha1.CheckRequest
862 (*CheckResponse)(nil), // 4: google.api.expr.conformance.v1alpha1.CheckResponse
863 (*EvalRequest)(nil), // 5: google.api.expr.conformance.v1alpha1.EvalRequest
864 (*EvalResponse)(nil), // 6: google.api.expr.conformance.v1alpha1.EvalResponse
865 (*SourcePosition)(nil), // 7: google.api.expr.conformance.v1alpha1.SourcePosition
866 (*IssueDetails)(nil), // 8: google.api.expr.conformance.v1alpha1.IssueDetails
867 nil, // 9: google.api.expr.conformance.v1alpha1.EvalRequest.BindingsEntry
868 (*v1alpha1.ParsedExpr)(nil), // 10: google.api.expr.v1alpha1.ParsedExpr
869 (*status.Status)(nil), // 11: google.rpc.Status
870 (*v1alpha1.Decl)(nil), // 12: google.api.expr.v1alpha1.Decl
871 (*v1alpha1.CheckedExpr)(nil), // 13: google.api.expr.v1alpha1.CheckedExpr
872 (*v1alpha1.ExprValue)(nil), // 14: google.api.expr.v1alpha1.ExprValue
873 }
874 var file_google_api_expr_conformance_v1alpha1_conformance_service_proto_depIdxs = []int32{
875 10, // 0: google.api.expr.conformance.v1alpha1.ParseResponse.parsed_expr:type_name -> google.api.expr.v1alpha1.ParsedExpr
876 11, // 1: google.api.expr.conformance.v1alpha1.ParseResponse.issues:type_name -> google.rpc.Status
877 10, // 2: google.api.expr.conformance.v1alpha1.CheckRequest.parsed_expr:type_name -> google.api.expr.v1alpha1.ParsedExpr
878 12, // 3: google.api.expr.conformance.v1alpha1.CheckRequest.type_env:type_name -> google.api.expr.v1alpha1.Decl
879 13, // 4: google.api.expr.conformance.v1alpha1.CheckResponse.checked_expr:type_name -> google.api.expr.v1alpha1.CheckedExpr
880 11, // 5: google.api.expr.conformance.v1alpha1.CheckResponse.issues:type_name -> google.rpc.Status
881 10, // 6: google.api.expr.conformance.v1alpha1.EvalRequest.parsed_expr:type_name -> google.api.expr.v1alpha1.ParsedExpr
882 13, // 7: google.api.expr.conformance.v1alpha1.EvalRequest.checked_expr:type_name -> google.api.expr.v1alpha1.CheckedExpr
883 9, // 8: google.api.expr.conformance.v1alpha1.EvalRequest.bindings:type_name -> google.api.expr.conformance.v1alpha1.EvalRequest.BindingsEntry
884 14, // 9: google.api.expr.conformance.v1alpha1.EvalResponse.result:type_name -> google.api.expr.v1alpha1.ExprValue
885 11, // 10: google.api.expr.conformance.v1alpha1.EvalResponse.issues:type_name -> google.rpc.Status
886 0, // 11: google.api.expr.conformance.v1alpha1.IssueDetails.severity:type_name -> google.api.expr.conformance.v1alpha1.IssueDetails.Severity
887 7, // 12: google.api.expr.conformance.v1alpha1.IssueDetails.position:type_name -> google.api.expr.conformance.v1alpha1.SourcePosition
888 14, // 13: google.api.expr.conformance.v1alpha1.EvalRequest.BindingsEntry.value:type_name -> google.api.expr.v1alpha1.ExprValue
889 1, // 14: google.api.expr.conformance.v1alpha1.ConformanceService.Parse:input_type -> google.api.expr.conformance.v1alpha1.ParseRequest
890 3, // 15: google.api.expr.conformance.v1alpha1.ConformanceService.Check:input_type -> google.api.expr.conformance.v1alpha1.CheckRequest
891 5, // 16: google.api.expr.conformance.v1alpha1.ConformanceService.Eval:input_type -> google.api.expr.conformance.v1alpha1.EvalRequest
892 2, // 17: google.api.expr.conformance.v1alpha1.ConformanceService.Parse:output_type -> google.api.expr.conformance.v1alpha1.ParseResponse
893 4, // 18: google.api.expr.conformance.v1alpha1.ConformanceService.Check:output_type -> google.api.expr.conformance.v1alpha1.CheckResponse
894 6, // 19: google.api.expr.conformance.v1alpha1.ConformanceService.Eval:output_type -> google.api.expr.conformance.v1alpha1.EvalResponse
895 17, // [17:20] is the sub-list for method output_type
896 14, // [14:17] is the sub-list for method input_type
897 14, // [14:14] is the sub-list for extension type_name
898 14, // [14:14] is the sub-list for extension extendee
899 0, // [0:14] is the sub-list for field type_name
900 }
901
902 func init() { file_google_api_expr_conformance_v1alpha1_conformance_service_proto_init() }
903 func file_google_api_expr_conformance_v1alpha1_conformance_service_proto_init() {
904 if File_google_api_expr_conformance_v1alpha1_conformance_service_proto != nil {
905 return
906 }
907 if !protoimpl.UnsafeEnabled {
908 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
909 switch v := v.(*ParseRequest); i {
910 case 0:
911 return &v.state
912 case 1:
913 return &v.sizeCache
914 case 2:
915 return &v.unknownFields
916 default:
917 return nil
918 }
919 }
920 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
921 switch v := v.(*ParseResponse); i {
922 case 0:
923 return &v.state
924 case 1:
925 return &v.sizeCache
926 case 2:
927 return &v.unknownFields
928 default:
929 return nil
930 }
931 }
932 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
933 switch v := v.(*CheckRequest); i {
934 case 0:
935 return &v.state
936 case 1:
937 return &v.sizeCache
938 case 2:
939 return &v.unknownFields
940 default:
941 return nil
942 }
943 }
944 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
945 switch v := v.(*CheckResponse); i {
946 case 0:
947 return &v.state
948 case 1:
949 return &v.sizeCache
950 case 2:
951 return &v.unknownFields
952 default:
953 return nil
954 }
955 }
956 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
957 switch v := v.(*EvalRequest); i {
958 case 0:
959 return &v.state
960 case 1:
961 return &v.sizeCache
962 case 2:
963 return &v.unknownFields
964 default:
965 return nil
966 }
967 }
968 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
969 switch v := v.(*EvalResponse); i {
970 case 0:
971 return &v.state
972 case 1:
973 return &v.sizeCache
974 case 2:
975 return &v.unknownFields
976 default:
977 return nil
978 }
979 }
980 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
981 switch v := v.(*SourcePosition); i {
982 case 0:
983 return &v.state
984 case 1:
985 return &v.sizeCache
986 case 2:
987 return &v.unknownFields
988 default:
989 return nil
990 }
991 }
992 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
993 switch v := v.(*IssueDetails); i {
994 case 0:
995 return &v.state
996 case 1:
997 return &v.sizeCache
998 case 2:
999 return &v.unknownFields
1000 default:
1001 return nil
1002 }
1003 }
1004 }
1005 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes[4].OneofWrappers = []interface{}{
1006 (*EvalRequest_ParsedExpr)(nil),
1007 (*EvalRequest_CheckedExpr)(nil),
1008 }
1009 type x struct{}
1010 out := protoimpl.TypeBuilder{
1011 File: protoimpl.DescBuilder{
1012 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1013 RawDescriptor: file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDesc,
1014 NumEnums: 1,
1015 NumMessages: 9,
1016 NumExtensions: 0,
1017 NumServices: 1,
1018 },
1019 GoTypes: file_google_api_expr_conformance_v1alpha1_conformance_service_proto_goTypes,
1020 DependencyIndexes: file_google_api_expr_conformance_v1alpha1_conformance_service_proto_depIdxs,
1021 EnumInfos: file_google_api_expr_conformance_v1alpha1_conformance_service_proto_enumTypes,
1022 MessageInfos: file_google_api_expr_conformance_v1alpha1_conformance_service_proto_msgTypes,
1023 }.Build()
1024 File_google_api_expr_conformance_v1alpha1_conformance_service_proto = out.File
1025 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_rawDesc = nil
1026 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_goTypes = nil
1027 file_google_api_expr_conformance_v1alpha1_conformance_service_proto_depIdxs = nil
1028 }
1029
1030 // Reference imports to suppress errors if they are not otherwise used.
1031 var _ context.Context
1032 var _ grpc.ClientConnInterface
1033
1034 // This is a compile-time assertion to ensure that this generated file
1035 // is compatible with the grpc package it is being compiled against.
1036 const _ = grpc.SupportPackageIsVersion6
1037
1038 // ConformanceServiceClient is the client API for ConformanceService service.
1039 //
1040 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1041 type ConformanceServiceClient interface {
1042 // Transforms CEL source text into a parsed representation.
1043 Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*ParseResponse, error)
1044 // Runs static checks on a parsed CEL representation and return
1045 // an annotated representation, or a set of issues.
1046 Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
1047 // Evaluates a parsed or annotation CEL representation given
1048 // values of external bindings.
1049 Eval(ctx context.Context, in *EvalRequest, opts ...grpc.CallOption) (*EvalResponse, error)
1050 }
1051
1052 type conformanceServiceClient struct {
1053 cc grpc.ClientConnInterface
1054 }
1055
1056 func NewConformanceServiceClient(cc grpc.ClientConnInterface) ConformanceServiceClient {
1057 return &conformanceServiceClient{cc}
1058 }
1059
1060 func (c *conformanceServiceClient) Parse(ctx context.Context, in *ParseRequest, opts ...grpc.CallOption) (*ParseResponse, error) {
1061 out := new(ParseResponse)
1062 err := c.cc.Invoke(ctx, "/google.api.expr.conformance.v1alpha1.ConformanceService/Parse", in, out, opts...)
1063 if err != nil {
1064 return nil, err
1065 }
1066 return out, nil
1067 }
1068
1069 func (c *conformanceServiceClient) Check(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error) {
1070 out := new(CheckResponse)
1071 err := c.cc.Invoke(ctx, "/google.api.expr.conformance.v1alpha1.ConformanceService/Check", in, out, opts...)
1072 if err != nil {
1073 return nil, err
1074 }
1075 return out, nil
1076 }
1077
1078 func (c *conformanceServiceClient) Eval(ctx context.Context, in *EvalRequest, opts ...grpc.CallOption) (*EvalResponse, error) {
1079 out := new(EvalResponse)
1080 err := c.cc.Invoke(ctx, "/google.api.expr.conformance.v1alpha1.ConformanceService/Eval", in, out, opts...)
1081 if err != nil {
1082 return nil, err
1083 }
1084 return out, nil
1085 }
1086
1087 // ConformanceServiceServer is the server API for ConformanceService service.
1088 type ConformanceServiceServer interface {
1089 // Transforms CEL source text into a parsed representation.
1090 Parse(context.Context, *ParseRequest) (*ParseResponse, error)
1091 // Runs static checks on a parsed CEL representation and return
1092 // an annotated representation, or a set of issues.
1093 Check(context.Context, *CheckRequest) (*CheckResponse, error)
1094 // Evaluates a parsed or annotation CEL representation given
1095 // values of external bindings.
1096 Eval(context.Context, *EvalRequest) (*EvalResponse, error)
1097 }
1098
1099 // UnimplementedConformanceServiceServer can be embedded to have forward compatible implementations.
1100 type UnimplementedConformanceServiceServer struct {
1101 }
1102
1103 func (*UnimplementedConformanceServiceServer) Parse(context.Context, *ParseRequest) (*ParseResponse, error) {
1104 return nil, status1.Errorf(codes.Unimplemented, "method Parse not implemented")
1105 }
1106 func (*UnimplementedConformanceServiceServer) Check(context.Context, *CheckRequest) (*CheckResponse, error) {
1107 return nil, status1.Errorf(codes.Unimplemented, "method Check not implemented")
1108 }
1109 func (*UnimplementedConformanceServiceServer) Eval(context.Context, *EvalRequest) (*EvalResponse, error) {
1110 return nil, status1.Errorf(codes.Unimplemented, "method Eval not implemented")
1111 }
1112
1113 func RegisterConformanceServiceServer(s *grpc.Server, srv ConformanceServiceServer) {
1114 s.RegisterService(&_ConformanceService_serviceDesc, srv)
1115 }
1116
1117 func _ConformanceService_Parse_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1118 in := new(ParseRequest)
1119 if err := dec(in); err != nil {
1120 return nil, err
1121 }
1122 if interceptor == nil {
1123 return srv.(ConformanceServiceServer).Parse(ctx, in)
1124 }
1125 info := &grpc.UnaryServerInfo{
1126 Server: srv,
1127 FullMethod: "/google.api.expr.conformance.v1alpha1.ConformanceService/Parse",
1128 }
1129 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1130 return srv.(ConformanceServiceServer).Parse(ctx, req.(*ParseRequest))
1131 }
1132 return interceptor(ctx, in, info, handler)
1133 }
1134
1135 func _ConformanceService_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1136 in := new(CheckRequest)
1137 if err := dec(in); err != nil {
1138 return nil, err
1139 }
1140 if interceptor == nil {
1141 return srv.(ConformanceServiceServer).Check(ctx, in)
1142 }
1143 info := &grpc.UnaryServerInfo{
1144 Server: srv,
1145 FullMethod: "/google.api.expr.conformance.v1alpha1.ConformanceService/Check",
1146 }
1147 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1148 return srv.(ConformanceServiceServer).Check(ctx, req.(*CheckRequest))
1149 }
1150 return interceptor(ctx, in, info, handler)
1151 }
1152
1153 func _ConformanceService_Eval_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1154 in := new(EvalRequest)
1155 if err := dec(in); err != nil {
1156 return nil, err
1157 }
1158 if interceptor == nil {
1159 return srv.(ConformanceServiceServer).Eval(ctx, in)
1160 }
1161 info := &grpc.UnaryServerInfo{
1162 Server: srv,
1163 FullMethod: "/google.api.expr.conformance.v1alpha1.ConformanceService/Eval",
1164 }
1165 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1166 return srv.(ConformanceServiceServer).Eval(ctx, req.(*EvalRequest))
1167 }
1168 return interceptor(ctx, in, info, handler)
1169 }
1170
1171 var _ConformanceService_serviceDesc = grpc.ServiceDesc{
1172 ServiceName: "google.api.expr.conformance.v1alpha1.ConformanceService",
1173 HandlerType: (*ConformanceServiceServer)(nil),
1174 Methods: []grpc.MethodDesc{
1175 {
1176 MethodName: "Parse",
1177 Handler: _ConformanceService_Parse_Handler,
1178 },
1179 {
1180 MethodName: "Check",
1181 Handler: _ConformanceService_Check_Handler,
1182 },
1183 {
1184 MethodName: "Eval",
1185 Handler: _ConformanceService_Eval_Handler,
1186 },
1187 },
1188 Streams: []grpc.StreamDesc{},
1189 Metadata: "google/api/expr/conformance/v1alpha1/conformance_service.proto",
1190 }