Class Expr
Represents an expression text. Example:
title: "User account presence"
description: "Determines whether the request has a user account"
expression: "size(request.user) > 0"
Inheritance
System.Object
Expr
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class Expr : IMessage<Expr>, IMessage, IEquatable<Expr>, IDeepCloneable<Expr>
Constructors
Expr()
Declaration
Expr(Expr)
Declaration
Parameters
Type |
Name |
Description |
Expr |
other |
|
Fields
DescriptionFieldNumber
Field number for the "description" field.
Declaration
public const int DescriptionFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
ExpressionFieldNumber
Field number for the "expression" field.
Declaration
public const int ExpressionFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
LocationFieldNumber
Field number for the "location" field.
Declaration
public const int LocationFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
TitleFieldNumber
Field number for the "title" field.
Declaration
public const int TitleFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
Properties
Description
An optional description of the expression. This is a longer text which
describes the expression, e.g. when hovered over it in a UI.
Declaration
public string Description { get; set; }
Property Value
Type |
Description |
System.String |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Expression
Textual representation of an expression in
Common Expression Language syntax.
The application context of the containing message determines which
well-known feature set of CEL is supported.
Declaration
public string Expression { get; set; }
Property Value
Type |
Description |
System.String |
|
Location
An optional string indicating the location of the expression for error
reporting, e.g. a file name and a position in the file.
Declaration
public string Location { get; set; }
Property Value
Type |
Description |
System.String |
|
Parser
Declaration
public static MessageParser<Expr> Parser { get; }
Property Value
Title
An optional title for the expression, i.e. a short string describing
its purpose. This can be used e.g. in UIs which allow to enter the
expression.
Declaration
public string Title { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
Returns
Implements
Equals(Expr)
Declaration
public bool Equals(Expr other)
Parameters
Type |
Name |
Description |
Expr |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(Expr)
Declaration
public void MergeFrom(Expr other)
Parameters
Type |
Name |
Description |
Expr |
other |
|
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements