Skip to content

applyFieldMask

applyFieldMask<Desc>(schema, message, fieldMask, opts?): MessageShape<Desc>

Defined in: fieldmask.ts:217

Applies a field mask to a message and returns the filtered copy.

Set inverse to keep everything except the masked fields. Set strict to false to allow AIP-161 wildcard behavior.

Desc extends DescMessage

Desc

MessageShape<Desc>

FieldMask

ApplyFieldMaskOptions

MessageShape<Desc>