Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_CLIENT_INTERCEPTOR_H
20 #define GRPCPP_IMPL_CODEGEN_CLIENT_INTERCEPTOR_H
37 class InterceptorBatchMethodsImpl;
40 namespace experimental {
59 extern experimental::ClientInterceptorFactoryInterface*
67 namespace experimental {
109 "violated expectation about Type enum");
112 "violated expectation about Type enum");
115 "violated expectation about Type enum");
118 "violated expectation about Type enum");
145 const std::vector<std::unique_ptr<
147 size_t interceptor_pos) {
148 if (interceptor_pos > creators.size()) {
154 for (
auto it = creators.begin() + interceptor_pos;
it != creators.end();
156 auto* interceptor = (*it)->CreateClientInterceptor(
this);
157 if (interceptor !=
nullptr) {
159 std::unique_ptr<experimental::Interceptor>(interceptor));
163 interceptors_.push_back(std::unique_ptr<experimental::Interceptor>(
165 ->CreateClientInterceptor(
this)));
199 #endif // GRPCPP_IMPL_CODEGEN_CLIENT_INTERCEPTOR_H
size_t hijacked_interceptor_
std::vector< std::unique_ptr< experimental::Interceptor > > interceptors_
const char * method() const
Return the fully-specified method name.
ClientRpcInfo & operator=(ClientRpcInfo &&)=default
experimental::ClientInterceptorFactoryInterface * g_global_client_interceptor_factory
Codegen interface for grpc::Channel.
Type type() const
Return the type of the RPC (unary or a streaming flavor)
void RegisterGlobalClientInterceptorFactory(ClientInterceptorFactoryInterface *factory)
const char * suffix_for_stats_
void RunInterceptor(experimental::InterceptorBatchMethods *interceptor_methods, size_t pos)
const char * suffix_for_stats() const
ChannelInterface * channel()
Return a pointer to the channel on which the RPC is being sent.
virtual ~ClientInterceptorFactoryInterface()
void RegisterInterceptors(const std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> &creators, size_t interceptor_pos)
grpc::ChannelInterface * channel_
grpc::ClientContext * client_context()
ClientRpcInfo(grpc::ClientContext *ctx, internal::RpcMethod::RpcType type, const char *method, const char *suffix_for_stats, grpc::ChannelInterface *channel)
#define GPR_CODEGEN_ASSERT(x)
Codegen specific version of GPR_ASSERT.
grpc::ClientContext * ctx_
virtual Interceptor * CreateClientInterceptor(ClientRpcInfo *info)=0
void TestOnlyResetGlobalClientInterceptorFactory()
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:47