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
Type Parameters
Section titled “Type Parameters”Desc extends DescMessage
Parameters
Section titled “Parameters”schema
Section titled “schema”Desc
message
Section titled “message”MessageShape<Desc>
behaviors
Section titled “behaviors”FieldBehavior[]
Returns
Section titled “Returns”MessageShape<Desc>