Auto-generated from /home/runner/work/feature-flag/feature-flag/proto/flags/v1/flag_sync.proto
Package: stitchd.flags.v1
| Field | Type | Description |
bool_value | bool | |
int_value | int64 | |
double_value | double | |
string_value | string | |
json_value | string | JSON serialised as string |
| Field | Type | Description |
key | string | |
value | VariantValue | |
A single bucket in a percentage rollout.
| Field | Type | Description |
variant_key | string | Variant key this bucket maps to. |
weight_milli | uint32 | Weight in units of 0.1% (e.g. 1000 = 100.0%, 500 = 50.0%). |
Percentage allocation: deterministic hash over context keys/params.
hash(targeted_keys, flag_key, project_id, environment_id) mod 100_000
| Field | Type | Description |
context_hash_specs | map<string, ContextHashSpec> | Context types and their parameter names to include in the hash. An empty parameter list means use the context key only. |
buckets | repeated AllocationBucket | |
| Field | Type | Description |
parameter_names | repeated string | If empty, only the context key is hashed. |
| Field | Type | Description |
rule_payload | bytes | Opaque serialised rule payload — parsed by the client rule engine. Full typed rule messages will replace this in the rules track. |
variant_key | string | |
allocation | PercentageAllocation | |
| Value | Description |
FLAG_VALUE_TYPE_UNSPECIFIED | |
FLAG_VALUE_TYPE_BOOL | |
FLAG_VALUE_TYPE_INT | |
FLAG_VALUE_TYPE_DOUBLE | |
FLAG_VALUE_TYPE_STRING | |
FLAG_VALUE_TYPE_JSON | |
| Field | Type | Description |
key | string | |
enabled | bool | |
value_type | FlagValueType | |
variants | repeated Variant | |
rules | repeated FlagRule | Evaluated in order; first match wins. Last rule is the default fallback. |
| Field | Type | Description |
contexts | repeated stitchd.common.v1.Context | Contexts the client was initialised with. |
| Field | Type | Description |
flags | repeated FeatureFlag | |
server_timestamp_ms | int64 | Epoch millis — client uses this to detect stale payloads. |
rule_segments | repeated stitchd.segments.v1.RuleSegment | Rule-based segment definitions for local evaluation. |
list_segments | repeated stitchd.segments.v1.ListSegmentMeta | List-based segment metadata (key + context_type only, no list entries). The SDK uses these to identify which segments require a list-check API call. |
environment_id | string | UUID of the resolved environment — SDK uses this in REST list-check URLs. |
Returns all feature flags and associated data for the calling environment.
SDK key is supplied via gRPC metadata header x-sdk-key.
- Request:
SyncRequest
- Response:
SyncResponse