public sealed class Expr : IMessage<Expr>, IEquatable<Expr>, IDeepCloneable<Expr>, IBufferMessage, IMessage
Represents a textual expression in the Common Expression Language (CEL)
syntax. CEL is a C-like expression language. The syntax and semantics of CEL
are documented at https://github.com/google/cel-spec.
Example (Comparison):
title: "Summary size limit"
description: "Determines if a summary is less than 100 chars"
expression: "document.summary.size() < 100"
Example (Equality):
title: "Requestor is owner"
description: "Determines if requestor is the document owner"
expression: "document.owner == request.auth.claims.email"
Example (Logic):
title: "Public documents"
description: "Determine whether the document should be publicly visible"
expression: "document.type != 'private' && document.type != 'internal'"
Example (Data Manipulation):
title: "Notification string"
description: "Create a notification string with a timestamp."
expression: "'New message received at ' + string(document.create_time)"
The exact variables and functions that may be referenced within an expression
are determined by the service that evaluates it. See the service
documentation for additional information.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The `Expr` class represents a textual expression written in the Common Expression Language (CEL) syntax, which is a C-like language used for defining expressions."],["`Expr` objects can be used to represent a variety of logical, comparative, and data manipulation expressions, as shown in the provided examples within the content."],["The `Expr` class includes properties such as `Title`, `Description`, `Expression`, and `Location`, allowing for detailed definition and contextualization of the expression."],["The service evaluating the `Expr` object determines the exact variables and functions that can be used within it, so you should refer to the service documentation for more information."],["The class implements multiple interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage` which allow the class to be used in a wide variety of implementations."]]],[]]