Class Expr (2.54.1) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.54.1keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  Expr   extends   GeneratedMessageV3   implements   ExprOrBuilder  
   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.
 Protobuf type google.type.Expr
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  DESCRIPTION_FIELD_NUMBER 
  
    
public   static   final   int   DESCRIPTION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  EXPRESSION_FIELD_NUMBER 
  
    
public   static   final   int   EXPRESSION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  LOCATION_FIELD_NUMBER 
  
    
public   static   final   int   LOCATION_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  TITLE_FIELD_NUMBER 
  
    
public   static   final   int   TITLE_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Expr   getDefaultInstance ()  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   Expr . Builder   newBuilder ()  
  
  newBuilder(Expr prototype) 
  
    
public   static   Expr . Builder   newBuilder ( Expr   prototype )  
  
    
      
        Parameter  
      
        Name Description  
      
        prototypeExpr  
     
  
  
  
    
public   static   Expr   parseDelimitedFrom ( InputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  
    
public   static   Expr   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  parseFrom(byte[] data) 
  
    
public   static   Expr   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Expr   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  parseFrom(ByteString data) 
  
    
public   static   Expr   parseFrom ( ByteString   data )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Expr   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  
    
public   static   Expr   parseFrom ( CodedInputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  
    
public   static   Expr   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  
    
public   static   Expr   parseFrom ( InputStream   input )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  
    
public   static   Expr   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   Expr   parseFrom ( ByteBuffer   data )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   Expr   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  
  parser() 
  
    
public   static   Parser<Expr>   parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Expr   getDefaultInstanceForType ()  
  
    
      
        Returns  
      
        Type Description  
      
        Expr  
     
  
  getDescription() 
  
    
public   String   getDescription ()  
   Optional. Description of the expression. This is a longer text which
 describes the expression, e.g. when hovered over it in a UI.
 string description = 3;
    
      
        Returns  
      
        Type Description  
      
        String The description.
 
     
  
  getDescriptionBytes() 
  
    
public   ByteString   getDescriptionBytes ()  
   Optional. Description of the expression. This is a longer text which
 describes the expression, e.g. when hovered over it in a UI.
 string description = 3;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for description.
 
     
  
  getExpression() 
  
    
public   String   getExpression ()  
   Textual representation of an expression in Common Expression Language
 syntax.
 string expression = 1;
    
      
        Returns  
      
        Type Description  
      
        String The expression.
 
     
  
  getExpressionBytes() 
  
    
public   ByteString   getExpressionBytes ()  
   Textual representation of an expression in Common Expression Language
 syntax.
 string expression = 1;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for expression.
 
     
  
  getLocation() 
  
    
public   String   getLocation ()  
   Optional. String indicating the location of the expression for error
 reporting, e.g. a file name and a position in the file.
 string location = 4;
    
      
        Returns  
      
        Type Description  
      
        String The location.
 
     
  
  getLocationBytes() 
  
    
public   ByteString   getLocationBytes ()  
   Optional. String indicating the location of the expression for error
 reporting, e.g. a file name and a position in the file.
 string location = 4;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for location.
 
     
  
  getParserForType() 
  
    
public   Parser<Expr>   getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getTitle() 
  
   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.
 string title = 2;
    
      
        Returns  
      
        Type Description  
      
        String The title.
 
     
  
  getTitleBytes() 
  
    
public   ByteString   getTitleBytes ()  
   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.
 string title = 2;
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for title.
 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Expr . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   Expr . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   Expr . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-10 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-10 UTC."],[],[]]