<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/api/expr/v1beta1/decl.proto namespace Google\Api\Expr\V1beta1; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * A declaration. * * Generated from protobuf message <code>google.api.expr.v1beta1.Decl</code> */ class Decl extends \Google\Protobuf\Internal\Message { /** * The id of the declaration. * * Generated from protobuf field <code>int32 id = 1;</code> */ private $id = 0; /** * The name of the declaration. * * Generated from protobuf field <code>string name = 2;</code> */ private $name = ''; /** * The documentation string for the declaration. * * Generated from protobuf field <code>string doc = 3;</code> */ private $doc = ''; protected $kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $id * The id of the declaration. * @type string $name * The name of the declaration. * @type string $doc * The documentation string for the declaration. * @type \Google\Api\Expr\V1beta1\IdentDecl $ident * An identifier declaration. * @type \Google\Api\Expr\V1beta1\FunctionDecl $function * A function declaration. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Decl::initOnce(); parent::__construct($data); } /** * The id of the declaration. * * Generated from protobuf field <code>int32 id = 1;</code> * @return int */ public function getId() { return $this->id; } /** * The id of the declaration. * * Generated from protobuf field <code>int32 id = 1;</code> * @param int $var * @return $this */ public function setId($var) { GPBUtil::checkInt32($var); $this->id = $var; return $this; } /** * The name of the declaration. * * Generated from protobuf field <code>string name = 2;</code> * @return string */ public function getName() { return $this->name; } /** * The name of the declaration. * * Generated from protobuf field <code>string name = 2;</code> * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The documentation string for the declaration. * * Generated from protobuf field <code>string doc = 3;</code> * @return string */ public function getDoc() { return $this->doc; } /** * The documentation string for the declaration. * * Generated from protobuf field <code>string doc = 3;</code> * @param string $var * @return $this */ public function setDoc($var) { GPBUtil::checkString($var, True); $this->doc = $var; return $this; } /** * An identifier declaration. * * Generated from protobuf field <code>.google.api.expr.v1beta1.IdentDecl ident = 4;</code> * @return \Google\Api\Expr\V1beta1\IdentDecl */ public function getIdent() { return $this->readOneof(4); } /** * An identifier declaration. * * Generated from protobuf field <code>.google.api.expr.v1beta1.IdentDecl ident = 4;</code> * @param \Google\Api\Expr\V1beta1\IdentDecl $var * @return $this */ public function setIdent($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\IdentDecl::class); $this->writeOneof(4, $var); return $this; } /** * A function declaration. * * Generated from protobuf field <code>.google.api.expr.v1beta1.FunctionDecl function = 5;</code> * @return \Google\Api\Expr\V1beta1\FunctionDecl */ public function getFunction() { return $this->readOneof(5); } /** * A function declaration. * * Generated from protobuf field <code>.google.api.expr.v1beta1.FunctionDecl function = 5;</code> * @param \Google\Api\Expr\V1beta1\FunctionDecl $var * @return $this */ public function setFunction($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\FunctionDecl::class); $this->writeOneof(5, $var); return $this; } /** * @return string */ public function getKind() { return $this->whichOneof("kind"); } }
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 |
|