Debian Codegraph @

xds/type/matcher/v3/cel.proto

raw
1 syntax = "proto3";
2
3 package xds.type.matcher.v3;
4
5 import "xds/type/v3/cel.proto";
6 import "validate/validate.proto";
7
8 option java_package = "com.github.xds.type.matcher.v3";
9 option java_outer_classname = "CelProto";
10 option java_multiple_files = true;
11 option go_package = "github.com/cncf/xds/go/xds/type/matcher/v3";
12
13 // [#protodoc-title: Common Expression Language (CEL) matchers]
14
15 // Performs a match by evaluating a `Common Expression Language
16 // <https://github.com/google/cel-spec>`_ (CEL) expression against the standardized set of
17 // :ref:`HTTP attributes <arch_overview_attributes>` specified via ``HttpAttributesCelMatchInput``.
18 //
19 // .. attention::
20 //
21 // The match is ``true``, iff the result of the evaluation is a bool AND true.
22 // In all other cases, the match is ``false``, including but not limited to: non-bool types,
23 // ``false``, ``null``, ``int(1)``, etc.
24 // In case CEL expression raises an error, the result of the evaluation is interpreted "no match".
25 //
26 // Refer to :ref:`Unified Matcher API <envoy_v3_api_msg_.xds.type.matcher.v3.Matcher>` documentation
27 // for usage details.
28 //
29 // [#comment: envoy.matching.matchers.cel_matcher]
30 message CelMatcher {
31 // Either parsed or checked representation of the CEL program.
32 type.v3.CelExpression expr_match = 1 [(validate.rules).message = {required: true}];
33
34 // Free-form description of the CEL AST, e.g. the original expression text, to be
35 // used for debugging assistance.
36 string description = 2;
37 }