class Type extends Message

Represents a CEL type.

Generated from protobuf message google.api.expr.v1alpha1.Type

Properties

protected $type_kind

Methods

__construct(array $data = NULL)

Constructor.

GPBEmpty
getDyn()

Dynamic type.

$this
setDyn(GPBEmpty $var)

Dynamic type.

int
getNull()

Null value.

$this
setNull(int $var)

Null value.

int
getPrimitive()

Primitive types: true, 1u, -2.0, 'string', b'bytes'.

$this
setPrimitive(int $var)

Primitive types: true, 1u, -2.0, 'string', b'bytes'.

int
getWrapper()

Wrapper of a primitive type, e.g. google.protobuf.Int64Value.

$this
setWrapper(int $var)

Wrapper of a primitive type, e.g. google.protobuf.Int64Value.

int
getWellKnown()

Well-known protobuf type such as google.protobuf.Timestamp.

$this
setWellKnown(int $var)

Well-known protobuf type such as google.protobuf.Timestamp.

getListType()

Parameterized list with elements of list_type, e.g. list<timestamp>.

$this
setListType(ListType $var)

Parameterized list with elements of list_type, e.g. list<timestamp>.

getMapType()

Parameterized map with typed keys and values.

$this
setMapType(MapType $var)

Parameterized map with typed keys and values.

getFunction()

Function type.

$this
setFunction(FunctionType $var)

Function type.

string
getMessageType()

Protocol buffer message type.

$this
setMessageType(string $var)

Protocol buffer message type.

string
getTypeParam()

Type param type.

$this
setTypeParam(string $var)

Type param type.

getType()

Type type.

$this
setType(Type $var)

Type type.

GPBEmpty
getError()

Error type.

$this
setError(GPBEmpty $var)

Error type.

getAbstractType()

Abstract, application defined type.

$this
setAbstractType(AbstractType $var)

Abstract, application defined type.

string
getTypeKind()

No description

Details

at line 64
__construct(array $data = NULL)

Constructor.

Parameters

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

}

at line 75
GPBEmpty getDyn()

Dynamic type.

Generated from protobuf field .google.protobuf.Empty dyn = 1;

Return Value

GPBEmpty

at line 87
$this setDyn(GPBEmpty $var)

Dynamic type.

Generated from protobuf field .google.protobuf.Empty dyn = 1;

Parameters

GPBEmpty $var

Return Value

$this

at line 101
int getNull()

Null value.

Generated from protobuf field .google.protobuf.NullValue null = 2;

Return Value

int

at line 113
$this setNull(int $var)

Null value.

Generated from protobuf field .google.protobuf.NullValue null = 2;

Parameters

int $var

Return Value

$this

at line 127
int getPrimitive()

Primitive types: true, 1u, -2.0, 'string', b'bytes'.

Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3;

Return Value

int

at line 139
$this setPrimitive(int $var)

Primitive types: true, 1u, -2.0, 'string', b'bytes'.

Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3;

Parameters

int $var

Return Value

$this

at line 153
int getWrapper()

Wrapper of a primitive type, e.g. google.protobuf.Int64Value.

Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4;

Return Value

int

at line 165
$this setWrapper(int $var)

Wrapper of a primitive type, e.g. google.protobuf.Int64Value.

Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4;

Parameters

int $var

Return Value

$this

at line 179
int getWellKnown()

Well-known protobuf type such as google.protobuf.Timestamp.

Generated from protobuf field .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5;

Return Value

int

at line 191
$this setWellKnown(int $var)

Well-known protobuf type such as google.protobuf.Timestamp.

Generated from protobuf field .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5;

Parameters

int $var

Return Value

$this

at line 205
ListType getListType()

Parameterized list with elements of list_type, e.g. list<timestamp>.

Generated from protobuf field .google.api.expr.v1alpha1.Type.ListType list_type = 6;

Return Value

ListType

at line 217
$this setListType(ListType $var)

Parameterized list with elements of list_type, e.g. list<timestamp>.

Generated from protobuf field .google.api.expr.v1alpha1.Type.ListType list_type = 6;

Parameters

ListType $var

Return Value

$this

at line 231
MapType getMapType()

Parameterized map with typed keys and values.

Generated from protobuf field .google.api.expr.v1alpha1.Type.MapType map_type = 7;

Return Value

MapType

at line 243
$this setMapType(MapType $var)

Parameterized map with typed keys and values.

Generated from protobuf field .google.api.expr.v1alpha1.Type.MapType map_type = 7;

Parameters

MapType $var

Return Value

$this

at line 257
FunctionType getFunction()

Function type.

Generated from protobuf field .google.api.expr.v1alpha1.Type.FunctionType function = 8;

Return Value

FunctionType

at line 269
$this setFunction(FunctionType $var)

Function type.

Generated from protobuf field .google.api.expr.v1alpha1.Type.FunctionType function = 8;

Parameters

FunctionType $var

Return Value

$this

at line 285
string getMessageType()

Protocol buffer message type.

The message_type string specifies the qualified message type name. For example, google.plus.Profile.

Generated from protobuf field string message_type = 9;

Return Value

string

at line 299
$this setMessageType(string $var)

Protocol buffer message type.

The message_type string specifies the qualified message type name. For example, google.plus.Profile.

Generated from protobuf field string message_type = 9;

Parameters

string $var

Return Value

$this

at line 316
string getTypeParam()

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.

Generated from protobuf field string type_param = 10;

Return Value

string

at line 331
$this setTypeParam(string $var)

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.

Generated from protobuf field string type_param = 10;

Parameters

string $var

Return Value

$this

at line 347
Type getType()

Type type.

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;

Return Value

Type

at line 361
$this setType(Type $var)

Type type.

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;

Parameters

Type $var

Return Value

$this

at line 378
GPBEmpty getError()

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.

Generated from protobuf field .google.protobuf.Empty error = 12;

Return Value

GPBEmpty

at line 393
$this setError(GPBEmpty $var)

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.

Generated from protobuf field .google.protobuf.Empty error = 12;

Parameters

GPBEmpty $var

Return Value

$this

at line 407
AbstractType getAbstractType()

Abstract, application defined type.

Generated from protobuf field .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14;

Return Value

AbstractType

at line 419
$this setAbstractType(AbstractType $var)

Abstract, application defined type.

Generated from protobuf field .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14;

Parameters

AbstractType $var

Return Value

$this

at line 430
string getTypeKind()

Return Value

string