IdentDecl
extends Message
in package
Identifier declaration which specifies its type and optional `Expr` value.
An identifier without a value is a declaration that must be provided at evaluation time. An identifier with a value should resolve to a constant, but may be used in conjunction with other identifiers bound at evaluation time.
Generated from protobuf message google.api.expr.v1alpha1.Decl.IdentDecl
Table of Contents
Properties
- $doc : mixed
- Documentation string for the identifier.
- $type : mixed
- Required. The type of the identifier.
- $value : mixed
- The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
Methods
- __construct() : mixed
- Constructor.
- clearType() : mixed
- clearValue() : mixed
- getDoc() : string
- Documentation string for the identifier.
- getType() : Type|null
- Required. The type of the identifier.
- getValue() : Constant|null
- The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
- hasType() : mixed
- hasValue() : mixed
- setDoc() : $this
- Documentation string for the identifier.
- setType() : $this
- Required. The type of the identifier.
- setValue() : $this
- The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
Properties
$doc
Documentation string for the identifier.
protected
mixed
$doc
= ''
Generated from protobuf field string doc = 3 [json_name = "doc"];
$type
Required. The type of the identifier.
protected
mixed
$type
= null
Generated from protobuf field .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
$value
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
protected
mixed
$value
= null
Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = NULL ]) : mixed
Parameters
- $data : array<string|int, mixed> = NULL
-
{ Optional. Data for populating the Message object.
@type \Google\Api\Expr\V1alpha1\Type $type Required. The type of the identifier. @type \Google\Api\Expr\V1alpha1\Constant $value The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time. @type string $doc Documentation string for the identifier.}
clearType()
public
clearType() : mixed
clearValue()
public
clearValue() : mixed
getDoc()
Documentation string for the identifier.
public
getDoc() : string
Generated from protobuf field string doc = 3 [json_name = "doc"];
Return values
stringgetType()
Required. The type of the identifier.
public
getType() : Type|null
Generated from protobuf field .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
Return values
Type|nullgetValue()
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
public
getValue() : Constant|null
Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
Return values
Constant|nullhasType()
public
hasType() : mixed
hasValue()
public
hasValue() : mixed
setDoc()
Documentation string for the identifier.
public
setDoc(string $var) : $this
Generated from protobuf field string doc = 3 [json_name = "doc"];
Parameters
- $var : string
Return values
$thissetType()
Required. The type of the identifier.
public
setType(Type $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type type = 1 [json_name = "type"];
Parameters
- $var : Type
Return values
$thissetValue()
The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.
public
setValue(Constant $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 2 [json_name = "value"];
Parameters
- $var : Constant