#include <lb_policy.h>
Public Member Functions | |
virtual void | Add (absl::string_view key, absl::string_view value)=0 |
virtual absl::optional< absl::string_view > | Lookup (absl::string_view key, std::string *buffer) const =0 |
virtual std::vector< std::pair< std::string, std::string > > | TestOnlyCopyToVector ()=0 |
Produce a vector of metadata key/value strings for tests. More... | |
virtual | ~MetadataInterface ()=default |
Interface for accessing metadata. Implemented by the client channel and used by the SubchannelPicker.
Definition at line 113 of file lb_policy.h.
|
virtualdefault |
|
pure virtual |
Adds a key/value pair. Does NOT take ownership of key or value. Implementations must ensure that the key and value remain alive until the call ends. If desired, they may be allocated via CallState::Alloc().
Implemented in grpc_core::ClientChannel::LoadBalancedCall::Metadata.
|
pure virtual |
Implemented in grpc_core::ClientChannel::LoadBalancedCall::Metadata.
|
pure virtual |
Produce a vector of metadata key/value strings for tests.
Implemented in grpc_core::ClientChannel::LoadBalancedCall::Metadata.