Skip to content

outputOnlyMask

outputOnlyMask(schema, opts?): FieldMask

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

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

Useful as a default mask for write operations (create/update) where server-managed output fields should not be accepted from clients.

DescMessage

The message descriptor to inspect.

FieldMaskFromBehaviorOptions

Optional settings (e.g. maxDepth).

FieldMask