An abstract representation of a common expression.

Expressions are abstractly represented as a collection of identifiers,
select statements, function calls, literals, and comprehensions. All
operators with the exception of the '.' operator are modelled as function
calls. This makes it easy to represent new operators into the existing AST.
All references within expressions must resolve to a [Decl][google.api.expr.v1alpha1.Decl] provided at
type-check for an expression to be valid. A reference may either be a bare
identifier name or a qualified identifier google.api.name. References
may either refer to a value or a function declaration.
For example, the expression google.api.name.startsWith('expr') references
the declaration google.api.name within a [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and
the function declaration startsWith.

Generated from protobuf message google.api.expr.v1alpha1.Expr

CloneableInstantiable
ExtendsGoogle\Protobuf\Internal\Message
Methods
public __construct( $data = NULL)
 
Constructor.

    public Google\Protobuf\Internal\Message::byteSize()
     


    • ignore
    public Google\Protobuf\Internal\Message::clear()
    public Google\Protobuf\Internal\Message::discardUnknownFields()
    public getCallExpr()
     
    A call expression, including calls to predefined functions and operators.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.Call call_expr = 6;

    public getComprehensionExpr()
     
    A comprehension expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9;

    public getConstExpr()
     
    A literal expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Constant const_expr = 3;

    public getExprKind()
     


    • return string
    public getId()
     
    Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree.

    Generated from protobuf field int64 id = 2;

    • return int|string
    public getIdentExpr()
     
    An identifier expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4;

    public getListExpr()
     
    A list creation expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7;

    public getSelectExpr()
     
    A field selection expression, e.g. `request.auth`.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.Select select_expr = 5;

    public getStructExpr()
     
    A map or message creation expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8;

    public Google\Protobuf\Internal\Message::jsonByteSize()
     


    • ignore
    public Google\Protobuf\Internal\Message::mergeFrom( $msg)
    public Google\Protobuf\Internal\Message::mergeFromJsonString( $data)
    public Google\Protobuf\Internal\Message::mergeFromString( $data)
    public Google\Protobuf\Internal\Message::parseFromJsonStream( $input)
     


    • ignore
    public Google\Protobuf\Internal\Message::parseFromStream( $input)
     


    • ignore
    public Google\Protobuf\Internal\Message::serializeToJsonStream( $output)
     


    • ignore
    public Google\Protobuf\Internal\Message::serializeToJsonString()
     
    Serialize the message to json string.

    • return string Serialized json protobuf data.
    public Google\Protobuf\Internal\Message::serializeToStream( $output)
     


    • ignore
    public Google\Protobuf\Internal\Message::serializeToString()
     
    Serialize the message to string.

    • return string Serialized binary protobuf data.
    public setCallExpr( $var)
     
    A call expression, including calls to predefined functions and operators.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.Call call_expr = 6;

    • return $this
    public setComprehensionExpr( $var)
     
    A comprehension expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9;

    • return $this
    public setConstExpr( $var)
     
    A literal expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Constant const_expr = 3;

    • return $this
    public setId( $var)
     
    Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree.

    Generated from protobuf field int64 id = 2;

    • return $this
    public setIdentExpr( $var)
     
    An identifier expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4;

    • return $this
    public setListExpr( $var)
     
    A list creation expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7;

    • return $this
    public setSelectExpr( $var)
     
    A field selection expression, e.g. `request.auth`.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.Select select_expr = 5;

    • return $this
    public setStructExpr( $var)
     
    A map or message creation expression.

    Generated from protobuf field .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8;

    • return $this
    Properties
    protected $expr_kind
    Methods
    protected Google\Protobuf\Internal\Message::mergeFromArray(array $array)
    protected Google\Protobuf\Internal\Message::mergeFromJsonArray( $array)
    protected Google\Protobuf\Internal\Message::readOneof( $number)
    protected Google\Protobuf\Internal\Message::readWrapperValue( $member)
    protected Google\Protobuf\Internal\Message::whichOneof( $oneof_name)
    protected Google\Protobuf\Internal\Message::writeOneof( $number, $value)
    protected Google\Protobuf\Internal\Message::writeWrapperValue( $member, $value)
    Properties
    private $id
     
    Required. An id assigned to this node by the parser which is unique in a given expression tree. This is used to associate type information and other attributes to a node in the parse tree.

    Generated from protobuf field int64 id = 2;

    Methods
    private Google\Protobuf\Internal\Message::appendHelper( $field, $append_value)
    private Google\Protobuf\Internal\Message::convertJsonValueToProtoValue( $value, $field, $is_map_key = false)
    private Google\Protobuf\Internal\Message::defaultValue( $field)
     


    • ignore
    private Google\Protobuf\Internal\Message::existField( $field)
     


    • ignore
    private Google\Protobuf\Internal\Message::fieldByteSize( $field)
     


    • ignore
    private Google\Protobuf\Internal\Message::fieldDataOnlyByteSize( $field, $value)
     


    • ignore
    private Google\Protobuf\Internal\Message::fieldDataOnlyJsonByteSize( $field, $value)
     


    • ignore
    private Google\Protobuf\Internal\Message::fieldJsonByteSize( $field)
     


    • ignore
    private Google\Protobuf\Internal\Message::initWithDescriptor(Google\Protobuf\Internal\Descriptor $desc)
     


    • ignore
    private Google\Protobuf\Internal\Message::initWithGeneratedPool()
     


    • ignore
    private Google\Protobuf\Internal\Message::kvUpdateHelper( $field, $update_key, $update_value)
    private Google\Protobuf\Internal\Message::mergeFromArrayJsonImpl( $array)
    private static Google\Protobuf\Internal\Message::normalizeArrayElementsToMessageType( $value, $class)
     
    Tries to normalize the elements in $value into a provided protobuf wrapper type $class. If $value is any type other than array, we do not do any conversion, and instead rely on the existing protobuf type checking. If $value is an array, we process each element and try to convert it to an instance of $class.

      private static Google\Protobuf\Internal\Message::normalizeToMessageType( $value, $class)
       
      Tries to normalize $value into a provided protobuf wrapper type $class.

      If $value is any type other than an object, we attempt to construct an
      instance of $class and assign $value to it using the setValue method
      shared by all wrapper types.

      This method will raise an error if it receives a type that cannot be
      assigned to the wrapper type via setValue.

        private Google\Protobuf\Internal\Message::parseFieldFromStream( $tag, $input, $field)
         


        • ignore
        private static Google\Protobuf\Internal\Message::parseFieldFromStreamNoTag( $input, $field, $value)
         


        • ignore
        private Google\Protobuf\Internal\Message::repeatedFieldDataOnlyByteSize( $field)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeFieldToJsonStream( $output, $field)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeFieldToStream( $output, $field)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeMapFieldToStream( $field, $output)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeRepeatedFieldToStream( $field, $output)
         


        • ignore
        private Google\Protobuf\Internal\Message::serializeSingularFieldToStream( $field, $output)
         


        • ignore
        private Google\Protobuf\Internal\Message::skipField( $input, $tag)
         


        • ignore
        Methods
        private static Google\Protobuf\Internal\Message::normalizeArrayElementsToMessageType( $value, $class)
         
        Tries to normalize the elements in $value into a provided protobuf wrapper type $class. If $value is any type other than array, we do not do any conversion, and instead rely on the existing protobuf type checking. If $value is an array, we process each element and try to convert it to an instance of $class.

          private static Google\Protobuf\Internal\Message::normalizeToMessageType( $value, $class)
           
          Tries to normalize $value into a provided protobuf wrapper type $class.

          If $value is any type other than an object, we attempt to construct an
          instance of $class and assign $value to it using the setValue method
          shared by all wrapper types.

          This method will raise an error if it receives a type that cannot be
          assigned to the wrapper type via setValue.

            private static Google\Protobuf\Internal\Message::parseFieldFromStreamNoTag( $input, $field, $value)
             


            • ignore
            © 2020 Bruce Wells
            Search Namespaces \ Classes
            ConfigurationNumbers (0-9.) only