Skip to content

clearFields

clearFields<Desc>(schema, message, behaviors, opts?): MessageShape<Desc>

Defined in: packages/aip/src/fieldbehavior/fieldbehavior.ts:65

Clears all fields annotated with any of the provided behaviors. This can be used to ignore fields provided as input that have field_behavior’s such as OUTPUT_ONLY and IMMUTABLE.

See: https://google.aip.dev/161#output-only-fields

Desc extends DescMessage

Desc

MessageShape<Desc>

FieldBehavior[]

ClearFieldsOptions

MessageShape<Desc>