class IdentDecl extends Message

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

Methods

__construct(array $data = NULL)

Constructor.

getType()

Required. The type of the identifier.

$this
setType(Type $var)

Required. The type of the identifier.

getValue()

The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.

$this
setValue(Constant $var)

The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.

string
getDoc()

Documentation string for the identifier.

$this
setDoc(string $var)

Documentation string for the identifier.

Details

at line 57
__construct(array $data = NULL)

Constructor.

Parameters

array $data { 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.

}

at line 68
Type getType()

Required. The type of the identifier.

Generated from protobuf field .google.api.expr.v1alpha1.Type type = 1;

Return Value

Type

at line 80
$this setType(Type $var)

Required. The type of the identifier.

Generated from protobuf field .google.api.expr.v1alpha1.Type type = 1;

Parameters

Type $var

Return Value

$this

at line 95
Constant getValue()

The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.

Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 2;

Return Value

Constant

at line 108
$this setValue(Constant $var)

The constant value of the identifier. If not specified, the identifier must be supplied at evaluation time.

Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 2;

Parameters

Constant $var

Return Value

$this

at line 122
string getDoc()

Documentation string for the identifier.

Generated from protobuf field string doc = 3;

Return Value

string

at line 134
$this setDoc(string $var)

Documentation string for the identifier.

Generated from protobuf field string doc = 3;

Parameters

string $var

Return Value

$this