setField
setField<
Desc>(message,field,value):void
Defined in: packages/core/src/field.ts:10
Sets the value of a field on a message. If the field is a oneof, the value is set to the oneof field.
Type Parameters
Section titled “Type Parameters”Desc extends DescMessage
Parameters
Section titled “Parameters”message
Section titled “message”MessageShape<Desc>
DescField
any
Returns
Section titled “Returns”void