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.
| Field | Type | Description |
|---|---|---|
key | string | |
context_type | string | |
included_keys | repeated string | |
excluded_keys | repeated 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.)
| Field | Type | Description |
|---|---|---|
key | string | |
context_type | string | |
rule_payload | bytes | Opaque serialised rule payload — parsed by the client rule engine. |
id | string | UUID 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.
| Field | Type | Description |
|---|---|---|
key | string | Segment key, used in flag rules and as the segment_key in list-check requests. |
context_type | string | The context type this segment applies to (e.g. “user”, “org”). |
id | string | UUID 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).
| Field | Type | Description |
|---|---|---|
list_segments | repeated ListSegment | |
rule_segments | repeated RuleSegment |