TypeDescription
TypeDescription is a collection of type metadata relevant to expression checking and evaluation.
Implements
Section titled “Implements”description
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TypeDescription(
typeNameValue,descValue,fieldMapValue,jsonFieldMapValue,extensionsValue,reflectTypeValue,zeroMsgValue,jsonFieldNamesValue):TypeDescription
Parameters
Section titled “Parameters”typeNameValue
Section titled “typeNameValue”string
descValue
Section titled “descValue”DescMessage
fieldMapValue
Section titled “fieldMapValue”Map<string, FieldDescription>
jsonFieldMapValue
Section titled “jsonFieldMapValue”Map<string, FieldDescription>
extensionsValue
Section titled “extensionsValue”reflectTypeValue
Section titled “reflectTypeValue”unknown
zeroMsgValue
Section titled “zeroMsgValue”Message | undefined
jsonFieldNamesValue
Section titled “jsonFieldNamesValue”boolean
Returns
Section titled “Returns”TypeDescription
Methods
Section titled “Methods”copy()
Section titled “copy()”copy(
extensions):TypeDescription
Copy copies the type description with updated references to the Db.
Parameters
Section titled “Parameters”extensions
Section titled “extensions”Returns
Section titled “Returns”TypeDescription
descriptor()
Section titled “descriptor()”descriptor():
DescMessage
Descriptor returns the Buf message descriptor.
Returns
Section titled “Returns”DescMessage
fieldByName()
Section titled “fieldByName()”fieldByName(
name): [FieldDescription|undefined,boolean]
FieldByName returns the FieldDescription if declared within the type.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”[FieldDescription | undefined, boolean]
fieldMap()
Section titled “fieldMap()”fieldMap():
Map<string,FieldDescription>
FieldMap returns a string field name to FieldDescription map.
Returns
Section titled “Returns”Map<string, FieldDescription>
maybeUnwrap()
Section titled “maybeUnwrap()”maybeUnwrap(
msg): [unknown,boolean,Error|undefined]
MaybeUnwrap accepts a proto message as input and unwraps it to a primitive CEL type if possible.
Parameters
Section titled “Parameters”Message
Returns
Section titled “Returns”[unknown, boolean, Error | undefined]
message()
Section titled “message()”message():
Message
Message returns a mutable proto message.
Returns
Section titled “Returns”Message
name()
Section titled “name()”name():
string
Name returns the fully-qualified name of the type.
Returns
Section titled “Returns”string
reflectType()
Section titled “reflectType()”reflectType():
unknown
ReflectType returns the reflected runtime type token for this type.
Returns
Section titled “Returns”unknown
zero()
Section titled “zero()”zero():
Message|undefined
Zero returns the zero message value for this type.
Returns
Section titled “Returns”Message | undefined
Implementation of
Section titled “Implementation of”description.zero