404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.220.118.29: ~ $
<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/api/expr/v1beta1/expr.proto

namespace Google\Api\Expr\V1beta1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * 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.v1beta1.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.v1beta1.Expr.Select] expression, and
 * the function declaration `startsWith`.
 *
 * Generated from protobuf message <code>google.api.expr.v1beta1.Expr</code>
 */
class Expr extends \Google\Protobuf\Internal\Message
{
    /**
     * 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 <code>int32 id = 2;</code>
     */
    private $id = 0;
    protected $expr_kind;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $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.
     *     @type \Google\Api\Expr\V1beta1\Literal $literal_expr
     *           A literal expression.
     *     @type \Google\Api\Expr\V1beta1\Expr\Ident $ident_expr
     *           An identifier expression.
     *     @type \Google\Api\Expr\V1beta1\Expr\Select $select_expr
     *           A field selection expression, e.g. `request.auth`.
     *     @type \Google\Api\Expr\V1beta1\Expr\Call $call_expr
     *           A call expression, including calls to predefined functions and operators.
     *     @type \Google\Api\Expr\V1beta1\Expr\CreateList $list_expr
     *           A list creation expression.
     *     @type \Google\Api\Expr\V1beta1\Expr\CreateStruct $struct_expr
     *           A map or object creation expression.
     *     @type \Google\Api\Expr\V1beta1\Expr\Comprehension $comprehension_expr
     *           A comprehension expression.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce();
        parent::__construct($data);
    }

    /**
     * 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 <code>int32 id = 2;</code>
     * @return int
     */
    public function getId()
    {
        return $this->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 <code>int32 id = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt32($var);
        $this->id = $var;

        return $this;
    }

    /**
     * A literal expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Literal literal_expr = 3;</code>
     * @return \Google\Api\Expr\V1beta1\Literal
     */
    public function getLiteralExpr()
    {
        return $this->readOneof(3);
    }

    /**
     * A literal expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Literal literal_expr = 3;</code>
     * @param \Google\Api\Expr\V1beta1\Literal $var
     * @return $this
     */
    public function setLiteralExpr($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Literal::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * An identifier expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.Ident ident_expr = 4;</code>
     * @return \Google\Api\Expr\V1beta1\Expr\Ident
     */
    public function getIdentExpr()
    {
        return $this->readOneof(4);
    }

    /**
     * An identifier expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.Ident ident_expr = 4;</code>
     * @param \Google\Api\Expr\V1beta1\Expr\Ident $var
     * @return $this
     */
    public function setIdentExpr($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_Ident::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * A field selection expression, e.g. `request.auth`.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.Select select_expr = 5;</code>
     * @return \Google\Api\Expr\V1beta1\Expr\Select
     */
    public function getSelectExpr()
    {
        return $this->readOneof(5);
    }

    /**
     * A field selection expression, e.g. `request.auth`.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.Select select_expr = 5;</code>
     * @param \Google\Api\Expr\V1beta1\Expr\Select $var
     * @return $this
     */
    public function setSelectExpr($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_Select::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * A call expression, including calls to predefined functions and operators.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.Call call_expr = 6;</code>
     * @return \Google\Api\Expr\V1beta1\Expr\Call
     */
    public function getCallExpr()
    {
        return $this->readOneof(6);
    }

    /**
     * A call expression, including calls to predefined functions and operators.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.Call call_expr = 6;</code>
     * @param \Google\Api\Expr\V1beta1\Expr\Call $var
     * @return $this
     */
    public function setCallExpr($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_Call::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * A list creation expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.CreateList list_expr = 7;</code>
     * @return \Google\Api\Expr\V1beta1\Expr\CreateList
     */
    public function getListExpr()
    {
        return $this->readOneof(7);
    }

    /**
     * A list creation expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.CreateList list_expr = 7;</code>
     * @param \Google\Api\Expr\V1beta1\Expr\CreateList $var
     * @return $this
     */
    public function setListExpr($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_CreateList::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * A map or object creation expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8;</code>
     * @return \Google\Api\Expr\V1beta1\Expr\CreateStruct
     */
    public function getStructExpr()
    {
        return $this->readOneof(8);
    }

    /**
     * A map or object creation expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8;</code>
     * @param \Google\Api\Expr\V1beta1\Expr\CreateStruct $var
     * @return $this
     */
    public function setStructExpr($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_CreateStruct::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * A comprehension expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9;</code>
     * @return \Google\Api\Expr\V1beta1\Expr\Comprehension
     */
    public function getComprehensionExpr()
    {
        return $this->readOneof(9);
    }

    /**
     * A comprehension expression.
     *
     * Generated from protobuf field <code>.google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9;</code>
     * @param \Google\Api\Expr\V1beta1\Expr\Comprehension $var
     * @return $this
     */
    public function setComprehensionExpr($var)
    {
        GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_Comprehension::class);
        $this->writeOneof(9, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getExprKind()
    {
        return $this->whichOneof("expr_kind");
    }

}


Filemanager

Name Type Size Permission Actions
EvalState Folder 2755
Expr Folder 2755
MapValue Folder 2755
Decl.php File 4.68 KB 0644
DeclType.php File 3.99 KB 0644
EnumValue.php File 2.23 KB 0644
ErrorSet.php File 1.8 KB 0644
EvalState.php File 3.51 KB 0644
EvalState_Result.php File 547 B 0644
Expr.php File 9.19 KB 0644
ExprValue.php File 8.74 KB 0644
Expr_Call.php File 512 B 0644
Expr_Comprehension.php File 557 B 0644
Expr_CreateList.php File 542 B 0644
Expr_CreateStruct.php File 552 B 0644
Expr_CreateStruct_Entry.php File 582 B 0644
Expr_Ident.php File 517 B 0644
Expr_Select.php File 522 B 0644
FunctionDecl.php File 3.77 KB 0644
IdRef.php File 1.4 KB 0644
IdentDecl.php File 2.63 KB 0644
ListValue.php File 1.94 KB 0644
Literal.php File 5.56 KB 0644
MapValue.php File 2.37 KB 0644
MapValue_Entry.php File 538 B 0644
ParsedExpr.php File 3.74 KB 0644
SourceInfo.php File 5.62 KB 0644
SourcePosition.php File 4.52 KB 0644
UnknownSet.php File 2 KB 0644
Value.php File 9.11 KB 0644