Skip to content

immutableMask

immutableMask(schema, opts?): FieldMask

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

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

Useful as a default mask for update operations where fields that cannot be changed after creation should be excluded.

DescMessage

The message descriptor to inspect.

FieldMaskFromBehaviorOptions

Optional settings (e.g. maxDepth).

FieldMask