Skip to content

inputOnlyMask

inputOnlyMask(schema, opts?): FieldMask

Defined in: packages/aip/src/fieldbehavior/mask.ts:154

Creates a FieldMask that excludes fields annotated with FieldBehavior.INPUT_ONLY.

Useful as a default mask for read operations where client-only fields (e.g. passwords, secrets) should not be returned in responses.

DescMessage

The message descriptor to inspect.

FieldMaskFromBehaviorOptions

Optional settings (e.g. maxDepth).

FieldMask