Skip to main content

GrpcFeatureFlagMap

GrpcFeatureFlagMap​

class GrpcFeatureFlagMap

The status of each protocol feature flag, keyed by flag name.

containsKey(key:)​

func containsKey(key: String) -> Bool

Whether a value is stored under key.

entries()​

func entries() -> [GrpcFeatureFlagMapEntry]

Every entry, in key order.

get(key:)​

func get(key: String) -> Bool?

The value stored under key, or None if there is none.

isEmpty()​

func isEmpty() -> Bool

Whether the map holds no entries.

keys()​

func keys() -> [String]

Every key, in key order.

len()​

func len() -> UInt64

The number of entries.

values()​

func values() -> [Bool]

Every value, ordered by the key it is stored under.

fromEntries(entries:)​

static func fromEntries(entries: [GrpcFeatureFlagMapEntry]) -> GrpcFeatureFlagMap

Collect entries into a map. A key repeated across entries keeps the value of the last one.