Skip to content

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.

Desc extends DescMessage

MessageShape<Desc>

DescField

any

void