Type
extends Message
in package
Represents a CEL type.
Generated from protobuf message google.api.expr.v1alpha1.Type
Table of Contents
Properties
- $type_kind : mixed
Methods
- __construct() : mixed
- Constructor.
- getAbstractType() : AbstractType|null
- Abstract, application defined type.
- getDyn() : GPBEmpty|null
- Dynamic type.
- getError() : GPBEmpty|null
- Error type.
- getFunction() : FunctionType|null
- Function type.
- getListType() : ListType|null
- Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
- getMapType() : MapType|null
- Parameterized map with typed keys and values.
- getMessageType() : string
- Protocol buffer message type.
- getNull() : int
- Null value.
- getPrimitive() : int
- Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
- getType() : Type|null
- Type type.
- getTypeKind() : string
- getTypeParam() : string
- Type param type.
- getWellKnown() : int
- Well-known protobuf type such as `google.protobuf.Timestamp`.
- getWrapper() : int
- Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
- hasAbstractType() : mixed
- hasDyn() : mixed
- hasError() : mixed
- hasFunction() : mixed
- hasListType() : mixed
- hasMapType() : mixed
- hasMessageType() : mixed
- hasNull() : mixed
- hasPrimitive() : mixed
- hasType() : mixed
- hasTypeParam() : mixed
- hasWellKnown() : mixed
- hasWrapper() : mixed
- setAbstractType() : $this
- Abstract, application defined type.
- setDyn() : $this
- Dynamic type.
- setError() : $this
- Error type.
- setFunction() : $this
- Function type.
- setListType() : $this
- Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
- setMapType() : $this
- Parameterized map with typed keys and values.
- setMessageType() : $this
- Protocol buffer message type.
- setNull() : $this
- Null value.
- setPrimitive() : $this
- Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
- setType() : $this
- Type type.
- setTypeParam() : $this
- Type param type.
- setWellKnown() : $this
- Well-known protobuf type such as `google.protobuf.Timestamp`.
- setWrapper() : $this
- Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
Properties
$type_kind
protected
mixed
$type_kind
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\Protobuf\GPBEmpty $dyn Dynamic type. @type int $null Null value. @type int $primitive Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. @type int $wrapper Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. @type int $well_known Well-known protobuf type such as `google.protobuf.Timestamp`. @type \Google\Api\Expr\V1alpha1\Type\ListType $list_type Parameterized list with elements of `list_type`, e.g. `list<timestamp>`. @type \Google\Api\Expr\V1alpha1\Type\MapType $map_type Parameterized map with typed keys and values. @type \Google\Api\Expr\V1alpha1\Type\FunctionType $function Function type. @type string $message_type Protocol buffer message type. The `message_type` string specifies the qualified message type name. For example, `google.plus.Profile`. @type string $type_param Type param type. The `type_param` string specifies the type parameter name, e.g. `list<E>` would be a `list_type` whose element type was a `type_param` type named `E`. @type \Google\Api\Expr\V1alpha1\Type $type Type type. The `type` value specifies the target type. e.g. int is type with a target type of `Primitive.INT`. @type \Google\Protobuf\GPBEmpty $error Error type. During type-checking if an expression is an error, its type is propagated as the `ERROR` type. This permits the type-checker to discover other errors present in the expression. @type \Google\Api\Expr\V1alpha1\Type\AbstractType $abstract_type Abstract, application defined type.}
getAbstractType()
Abstract, application defined type.
public
getAbstractType() : AbstractType|null
Generated from protobuf field .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"];
Return values
AbstractType|nullgetDyn()
Dynamic type.
public
getDyn() : GPBEmpty|null
Generated from protobuf field .google.protobuf.Empty dyn = 1 [json_name = "dyn"];
Return values
GPBEmpty|nullgetError()
Error type.
public
getError() : GPBEmpty|null
During type-checking if an expression is an error, its type is propagated
as the ERROR type. This permits the type-checker to discover other
errors present in the expression.
Generated from protobuf field .google.protobuf.Empty error = 12 [json_name = "error"];
Return values
GPBEmpty|nullgetFunction()
Function type.
public
getFunction() : FunctionType|null
Generated from protobuf field .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"];
Return values
FunctionType|nullgetListType()
Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
public
getListType() : ListType|null
Generated from protobuf field .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"];
Return values
ListType|nullgetMapType()
Parameterized map with typed keys and values.
public
getMapType() : MapType|null
Generated from protobuf field .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"];
Return values
MapType|nullgetMessageType()
Protocol buffer message type.
public
getMessageType() : string
The message_type string specifies the qualified message type name. For
example, google.plus.Profile.
Generated from protobuf field string message_type = 9 [json_name = "messageType"];
Return values
stringgetNull()
Null value.
public
getNull() : int
Generated from protobuf field .google.protobuf.NullValue null = 2 [json_name = "null"];
Return values
intgetPrimitive()
Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
public
getPrimitive() : int
Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"];
Return values
intgetType()
Type type.
public
getType() : Type|null
The type value specifies the target type. e.g. int is type with a
target type of Primitive.INT.
Generated from protobuf field .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"];
Return values
Type|nullgetTypeKind()
public
getTypeKind() : string
Return values
stringgetTypeParam()
Type param type.
public
getTypeParam() : string
The type_param string specifies the type parameter name, e.g. list<E>
would be a list_type whose element type was a type_param type
named E.
Generated from protobuf field string type_param = 10 [json_name = "typeParam"];
Return values
stringgetWellKnown()
Well-known protobuf type such as `google.protobuf.Timestamp`.
public
getWellKnown() : int
Generated from protobuf field .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"];
Return values
intgetWrapper()
Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
public
getWrapper() : int
Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"];
Return values
inthasAbstractType()
public
hasAbstractType() : mixed
hasDyn()
public
hasDyn() : mixed
hasError()
public
hasError() : mixed
hasFunction()
public
hasFunction() : mixed
hasListType()
public
hasListType() : mixed
hasMapType()
public
hasMapType() : mixed
hasMessageType()
public
hasMessageType() : mixed
hasNull()
public
hasNull() : mixed
hasPrimitive()
public
hasPrimitive() : mixed
hasType()
public
hasType() : mixed
hasTypeParam()
public
hasTypeParam() : mixed
hasWellKnown()
public
hasWellKnown() : mixed
hasWrapper()
public
hasWrapper() : mixed
setAbstractType()
Abstract, application defined type.
public
setAbstractType(AbstractType $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14 [json_name = "abstractType"];
Parameters
- $var : AbstractType
Return values
$thissetDyn()
Dynamic type.
public
setDyn(GPBEmpty $var) : $this
Generated from protobuf field .google.protobuf.Empty dyn = 1 [json_name = "dyn"];
Parameters
- $var : GPBEmpty
Return values
$thissetError()
Error type.
public
setError(GPBEmpty $var) : $this
During type-checking if an expression is an error, its type is propagated
as the ERROR type. This permits the type-checker to discover other
errors present in the expression.
Generated from protobuf field .google.protobuf.Empty error = 12 [json_name = "error"];
Parameters
- $var : GPBEmpty
Return values
$thissetFunction()
Function type.
public
setFunction(FunctionType $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type.FunctionType function = 8 [json_name = "function"];
Parameters
- $var : FunctionType
Return values
$thissetListType()
Parameterized list with elements of `list_type`, e.g. `list<timestamp>`.
public
setListType(ListType $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type.ListType list_type = 6 [json_name = "listType"];
Parameters
- $var : ListType
Return values
$thissetMapType()
Parameterized map with typed keys and values.
public
setMapType(MapType $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type.MapType map_type = 7 [json_name = "mapType"];
Parameters
- $var : MapType
Return values
$thissetMessageType()
Protocol buffer message type.
public
setMessageType(string $var) : $this
The message_type string specifies the qualified message type name. For
example, google.plus.Profile.
Generated from protobuf field string message_type = 9 [json_name = "messageType"];
Parameters
- $var : string
Return values
$thissetNull()
Null value.
public
setNull(int $var) : $this
Generated from protobuf field .google.protobuf.NullValue null = 2 [json_name = "null"];
Parameters
- $var : int
Return values
$thissetPrimitive()
Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`.
public
setPrimitive(int $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3 [json_name = "primitive"];
Parameters
- $var : int
Return values
$thissetType()
Type type.
public
setType(Type $var) : $this
The type value specifies the target type. e.g. int is type with a
target type of Primitive.INT.
Generated from protobuf field .google.api.expr.v1alpha1.Type type = 11 [json_name = "type"];
Parameters
- $var : Type
Return values
$thissetTypeParam()
Type param type.
public
setTypeParam(string $var) : $this
The type_param string specifies the type parameter name, e.g. list<E>
would be a list_type whose element type was a type_param type
named E.
Generated from protobuf field string type_param = 10 [json_name = "typeParam"];
Parameters
- $var : string
Return values
$thissetWellKnown()
Well-known protobuf type such as `google.protobuf.Timestamp`.
public
setWellKnown(int $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5 [json_name = "wellKnown"];
Parameters
- $var : int
Return values
$thissetWrapper()
Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`.
public
setWrapper(int $var) : $this
Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4 [json_name = "wrapper"];
Parameters
- $var : int