Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Segment

Auto-generated from /home/runner/work/feature-flag/feature-flag/proto/segments/v1/segment.proto

Package: stitchd.segments.v1

Message: ListSegment

Targets a specific context type by explicit include/exclude key lists.

FieldTypeDescription
keystring
context_typestring
included_keysrepeated string
excluded_keysrepeated string

Message: RuleSegment

A rule-based segment with its full rule payload for client-side evaluation. (Full typed rule messages added in the rules track.)

FieldTypeDescription
keystring
context_typestring
rule_payloadbytesOpaque serialised rule payload — parsed by the client rule engine.
idstringUUID of the segment — used by the SDK to correlate ConditionExpr references.

Message: ListSegmentMeta

Lightweight metadata for a list-based segment. The SDK receives this during definition sync so it knows which segments require a server lookup for membership resolution. The list entries themselves are NOT included here — they are fetched on demand via the list-check REST API.

FieldTypeDescription
keystringSegment key, used in flag rules and as the segment_key in list-check requests.
context_typestringThe context type this segment applies to (e.g. “user”, “org”).
idstringUUID of the segment — used by the SDK to correlate ConditionExpr references.

Message: SegmentBundle

Segment data returned as part of the flag sync response (embedded via FlagSyncService).

FieldTypeDescription
list_segmentsrepeated ListSegment
rule_segmentsrepeated RuleSegment