GrpcAttributeMap
GrpcAttributeMap
class GrpcAttributeMap
The value of each protocol attribute, keyed by attribute name.
containsKey(key:)
func containsKey(key: String) -> Bool
Whether a value is stored under key.
entries()
func entries() -> [GrpcAttributeMapEntry]
Every entry, in key order.
get(key:)
func get(key: String) -> String?
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() -> [String]
Every value, ordered by the key it is stored under.
fromEntries(entries:)
static func fromEntries(entries: [GrpcAttributeMapEntry]) -> GrpcAttributeMap
Collect entries into a map. A key repeated across entries keeps the value of the last one.