class documentation

class FieldSelection:

View In Hierarchy

Which fields of a message type a Binding exposes.

Instance Variable exclude Patterns removing what they match, after include has narrowed.
Instance Variable include Patterns narrowing the message to what they match. Empty means every field, which is the ordinary case: a Binding that wants the whole message says nothing.
Instance Variable rename New names by exact field path. The Binding checks a name against the naming rule; resolve_selection checks the path is rendered.
Property patterns Return every declared pattern (include, then exclude).
exclude: tuple[str, ...] =

Patterns removing what they match, after include has narrowed.

include: tuple[str, ...] =

Patterns narrowing the message to what they match. Empty means every field, which is the ordinary case: a Binding that wants the whole message says nothing.

rename: Mapping[str, str] =

New names by exact field path. The Binding checks a name against the naming rule; resolve_selection checks the path is rendered.

@property
patterns: tuple[str, ...] =

Return every declared pattern (include, then exclude).