Metadata key. Gets converted to lowercase. Needs to have -bin suffix indicating a binary-valued metadata entry. The binary header suffix can be added to the key with BinaryHeaderSuffix. Can only contain lowercase alphanumeric characters, underscores, hyphens, and dots.
Metadata key. Gets converted to lowercase. Must not use -bin suffix indicating a binary-valued metadata entry. Can only contain lowercase alphanumeric characters, underscores, hyphens, and dots.
Gets the string value of the last metadata entry with the specified key.
If the metadata entry is binary then an exception is thrown.
If there are no matching entries then null is returned.
Gets the bytes value of the last metadata entry with the specified key.
If the metadata entry is not binary the string value will be returned as ASCII encoded bytes.
If there are no matching entries then null is returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-02 UTC."],[[["`Metadata` is a collection of entries exchanged during gRPC calls, supporting request headers, response headers, and response trailers."],["The `Metadata` class implements `IList`, `ICollection`, and `IEnumerable` for `Metadata.Entry`, allowing for manipulation and traversal of metadata entries."],["Metadata entries can be added with either string keys and string values for ASCII data, or with string keys and byte arrays for binary data, where binary header keys need to have the `-bin` suffix."],["You can retrieve specific metadata entries using `Get` for the last entry with a given key, `GetAll` for all entries with a key, `GetValue` for string values, or `GetValueBytes` for byte values, while `Empty` is a static, read-only instance of metadata with no entries."],["The `BinaryHeaderSuffix` constant (`-bin`) is used to denote that a metadata key is for a binary-valued entry, and that all binary header keys should be appended with this suffix."]]],[]]