Go to the documentation of this file.
34 #ifndef GRPCPP_IMPL_CODEGEN_CLIENT_CONTEXT_H
35 #define GRPCPP_IMPL_CODEGEN_CLIENT_CONTEXT_H
63 class ServerContextBase;
64 class CallbackServerContext;
67 template <
class InputMessage,
class OutputMessage>
68 class CallbackUnaryCallImpl;
69 template <
class Request,
class Response>
70 class ClientCallbackReaderWriterImpl;
71 template <
class Response>
72 class ClientCallbackReaderImpl;
73 template <
class Request>
74 class ClientCallbackWriterImpl;
75 class ClientCallbackUnaryImpl;
76 class ClientContextAccessor;
77 class ClientAsyncResponseReaderHelper;
84 template <
class W,
class R>
85 class ClientReaderWriter;
87 class ClientAsyncReader;
89 class ClientAsyncWriter;
90 template <
class W,
class R>
91 class ClientAsyncReaderWriter;
93 class ClientAsyncResponseReader;
96 class InteropClientContextInspector;
97 class ClientContextTestPeer;
102 template <
class InputMessage,
class OutputMessage>
103 class BlockingUnaryCallImpl;
104 class CallOpClientRecvStatus;
105 class CallOpRecvInitialMetadata;
106 class ServerContextImpl;
107 template <
class InputMessage,
class OutputMessage>
108 class CallbackUnaryCallImpl;
109 template <
class Request,
class Response>
110 class ClientCallbackReaderWriterImpl;
111 template <
class Response>
112 class ClientCallbackReaderImpl;
113 template <
class Request>
114 class ClientCallbackWriterImpl;
115 class ClientCallbackUnaryImpl;
116 class ClientContextAccessor;
121 class ChannelInterface;
122 class CompletionQueue;
249 const std::multimap<grpc::string_ref, grpc::string_ref>&
261 const std::multimap<grpc::string_ref, grpc::string_ref>&
273 template <
typename T>
326 void set_credentials(
const std::shared_ptr<grpc::CallCredentials>& creds);
430 template <
class W,
class R>
436 template <
class W,
class R>
441 template <
class InputMessage,
class OutputMessage>
443 template <
class InputMessage,
class OutputMessage>
445 template <
class Request,
class Response>
447 template <
class Response>
449 template <
class Request>
463 const char*
method,
const char* suffix_for_stats,
465 const std::vector<std::unique_ptr<
467 size_t interceptor_pos) {
499 std::shared_ptr<grpc::CallCredentials>
creds_;
519 #endif // GRPCPP_IMPL_CODEGEN_CLIENT_CONTEXT_H
struct census_context * census_context() const
Returns the census context that has been set, or nullptr if not set.
std::multimap< std::string, std::string > send_initial_metadata_
struct census_context census_context
virtual ~GlobalCallbacks()
void set_call(grpc_call *call, const std::shared_ptr< grpc::Channel > &channel)
grpc_compression_algorithm compression_algorithm_
std::string debug_error_string_
PropagationOptions & disable_cancellation_propagation()
std::chrono::time_point< std::chrono::system_clock, D > time_point
std::shared_ptr< grpc::CallCredentials > credentials()
void set_wait_for_ready(bool wait_for_ready)
static unsigned int callbacks
PropagationOptions & disable_deadline_propagation()
grpc_compression_algorithm
void set_deadline(const T &deadline)
PropagationOptions & enable_census_stats_propagation()
void AddMetadata(const std::string &meta_key, const std::string &meta_value)
Channels represent a connection to an endpoint. Created by CreateChannel.
#define T(upbtypeconst, upbtype, ctype, default_value)
PropagationOptions & disable_census_stats_propagation()
PropagationOptions & disable_census_tracing_propagation()
void set_initial_metadata_corked(bool corked)
void set_fail_fast(bool fail_fast)
DEPRECATED: Use set_wait_for_ready() instead.
void set_authority(const std::string &authority)
gpr_timespec raw_deadline() const
Return a gpr_timespec representation of the client call's deadline.
Codegen interface for grpc::Channel.
wrapped_grpc_channel * channel
#define GRPC_INITIAL_METADATA_WAIT_FOR_READY
Base class of ServerContext.
PropagationOptions & enable_deadline_propagation()
std::shared_ptr< grpc::CallCredentials > creds_
#define GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET
bool wait_for_ready_explicitly_set_
std::shared_ptr< const grpc::AuthContext > auth_context_
grpc::internal::Mutex mu_
struct census_context * census_context_
void set_debug_error_string(const std::string &debug_error_string)
#define GRPC_INITIAL_METADATA_CORKED
struct grpc_call grpc_call
#define GRPC_PROPAGATE_CENSUS_STATS_CONTEXT
grpc::internal::MetadataMap recv_initial_metadata_
static std::unique_ptr< ClientContext > FromServerContext(const grpc::ServerContextBase &server_context, PropagationOptions options=PropagationOptions())
std::shared_ptr< const grpc::AuthContext > auth_context() const
void SendCancelToInterceptors()
PropagationOptions & enable_census_tracing_propagation()
bool initial_metadata_received_
A test-only class to access private members and methods of ClientContext.
virtual void Destructor(ClientContext *context)=0
grpc::internal::MetadataMap trailing_metadata_
uint32_t initial_metadata_flags() const
std::chrono::system_clock::time_point Timespec2Timepoint(gpr_timespec t)
grpc::experimental::ClientRpcInfo rpc_info_
static std::unique_ptr< ClientContext > FromInternalServerContext(const grpc::ServerContextBase &server_context, PropagationOptions options)
const std::multimap< grpc::string_ref, grpc::string_ref > & GetServerTrailingMetadata() const
friend class grpc::internal::ClientContextAccessor
#define GRPC_PROPAGATE_DEFAULTS
void RegisterInterceptors(const std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> &creators, size_t interceptor_pos)
virtual void DefaultConstructor(ClientContext *context)=0
std::chrono::system_clock::time_point deadline() const
Return the deadline for the client call.
#define GRPC_PROPAGATE_CENSUS_TRACING_CONTEXT
static std::unique_ptr< ClientContext > FromCallbackServerContext(const grpc::CallbackServerContext &server_context, PropagationOptions options=PropagationOptions())
void set_census_context(struct census_context *ccp)
grpc_compression_algorithm compression_algorithm() const
grpc_call * propagate_from_call_
bool initial_metadata_corked_
ClientContext & operator=(const ClientContext &)
std::shared_ptr< const AuthContext > CreateAuthContext(grpc_call *call)
PropagationOptions & enable_cancellation_propagation()
#define GPR_CODEGEN_ASSERT(x)
Codegen specific version of GPR_ASSERT.
grpc::ClientContext context
#define GRPC_PROPAGATE_DEADLINE
const std::multimap< grpc::string_ref, grpc::string_ref > & GetServerInitialMetadata() const
void set_credentials(const std::shared_ptr< grpc::CallCredentials > &creds)
PropagationOptions propagation_options_
std::string debug_error_string() const
static void SetGlobalCallbacks(GlobalCallbacks *callbacks)
gpr_timespec raw_time()=delete
void set_compression_algorithm(grpc_compression_algorithm algorithm)
grpc::experimental::ClientRpcInfo * set_client_rpc_info(const char *method, const char *suffix_for_stats, grpc::internal::RpcMethod::RpcType type, grpc::ChannelInterface *channel, const std::vector< std::unique_ptr< grpc::experimental::ClientInterceptorFactoryInterface >> &creators, size_t interceptor_pos)
std::shared_ptr< grpc::Channel > channel_
uint32_t c_bitmask() const
#define GRPC_PROPAGATE_CANCELLATION
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:47