getField
getField<
Desc>(message,field):Message|ScalarValue|MessageShape<Desc>[keyofMessageShape<Desc>] |undefined
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