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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eMetadata\u003c/code\u003e is a collection of entries exchanged during gRPC calls, supporting request headers, response headers, and response trailers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMetadata\u003c/code\u003e class implements \u003ccode\u003eIList\u003c/code\u003e, \u003ccode\u003eICollection\u003c/code\u003e, and \u003ccode\u003eIEnumerable\u003c/code\u003e for \u003ccode\u003eMetadata.Entry\u003c/code\u003e, allowing for manipulation and traversal of metadata entries.\u003c/p\u003e\n"],["\u003cp\u003eMetadata 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 \u003ccode\u003e-bin\u003c/code\u003e suffix.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve specific metadata entries using \u003ccode\u003eGet\u003c/code\u003e for the last entry with a given key, \u003ccode\u003eGetAll\u003c/code\u003e for all entries with a key, \u003ccode\u003eGetValue\u003c/code\u003e for string values, or \u003ccode\u003eGetValueBytes\u003c/code\u003e for byte values, while \u003ccode\u003eEmpty\u003c/code\u003e is a static, read-only instance of metadata with no entries.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBinaryHeaderSuffix\u003c/code\u003e constant (\u003ccode\u003e-bin\u003c/code\u003e) 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.\u003c/p\u003e\n"]]],[],null,[]]