Public Member Functions | Private Attributes | List of all members
grpc::MetadataBatch Class Reference

A C++ wrapper for the grpc_metadata_batch struct. More...

#include <channel_filter.h>

Public Member Functions

void AddMetadata (const string &key, const string &value)
 Adds metadata. More...
 
grpc_metadata_batchbatch () const
 
 MetadataBatch (grpc_metadata_batch *batch)
 

Private Attributes

grpc_metadata_batchbatch_
 

Detailed Description

A C++ wrapper for the grpc_metadata_batch struct.

Definition at line 60 of file common/channel_filter.h.

Constructor & Destructor Documentation

◆ MetadataBatch()

grpc::MetadataBatch::MetadataBatch ( grpc_metadata_batch batch)
inlineexplicit

Borrows a pointer to batch, but does NOT take ownership. The caller must ensure that batch continues to exist for as long as the MetadataBatch object does.

Definition at line 65 of file common/channel_filter.h.

Member Function Documentation

◆ AddMetadata()

void grpc::MetadataBatch::AddMetadata ( const string &  key,
const string &  value 
)

Adds metadata.

Definition at line 37 of file common/channel_filter.cc.

◆ batch()

grpc_metadata_batch* grpc::MetadataBatch::batch ( ) const
inline

Definition at line 67 of file common/channel_filter.h.

Member Data Documentation

◆ batch_

grpc_metadata_batch* grpc::MetadataBatch::batch_
private

Definition at line 73 of file common/channel_filter.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:31