getField
getField<
Desc>(message,field):Message|ScalarValue|MessageShape<Desc>[keyofMessageShape<Desc>] |undefined
Defined in: packages/core/src/field.ts:42
Gets the value of the field on a message. If the field is a oneof, the value is returned from the oneof field. If the field is not a oneof, the value is returned from the field directly.
Type Parameters
Section titled “Type Parameters”Desc extends DescMessage
Parameters
Section titled “Parameters”message
Section titled “message”MessageShape<Desc>
DescField
Returns
Section titled “Returns”Message | ScalarValue | MessageShape<Desc>[keyof MessageShape<Desc>] | undefined