Go to the documentation of this file.
43 : strings_(other.strings_) {
46 auto list_it_src = other.
strings_.begin();
47 for (
const auto&
a : other.
args_) {
51 ap.
key =
const_cast<char*
>(list_it_dst->c_str());
60 ap.
value.
string =
const_cast<char*
>(list_it_dst->c_str());
101 bool replaced =
false;
115 args_.push_back(mutator_arg);
116 args_.back().key =
const_cast<char*
>(
strings_.back().c_str());
126 if (user_agent_prefix.empty()) {
129 bool replaced =
false;
136 *(strings_it) = user_agent_prefix +
" " +
arg.
value.string;
137 arg.
value.string =
const_cast<char*
>(strings_it->c_str());
178 arg.key =
const_cast<char*
>(
strings_.back().c_str());
197 arg.key =
const_cast<char*
>(
strings_.back().c_str());
208 arg.key =
const_cast<char*
>(
strings_.back().c_str());
#define GRPC_ARG_PRIMARY_USER_AGENT_STRING
static const grpc_transport_vtable vtable
void SetGrpclbFallbackTimeout(int fallback_timeout)
void Swap(ChannelArguments &other)
union grpc_arg::grpc_arg_value value
struct grpc_arg::grpc_arg_value::grpc_arg_pointer pointer
#define GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH
#define GRPC_ARG_RESOURCE_QUOTA
void SetChannelArgs(grpc_channel_args *channel_args) const
grpc_compression_algorithm
void SetString(const std::string &key, const std::string &value)
Set a textual argument value under key.
std::string Version()
Return gRPC library version.
void SetSocketMutator(grpc_socket_mutator *mutator)
Set a mutator for the underlying socket.
void SetCompressionAlgorithm(grpc_compression_algorithm algorithm)
Set the compression algorithm for the channel.
#define GRPC_ARG_MAX_SEND_MESSAGE_LENGTH
void SetUserAgentPrefix(const std::string &user_agent_prefix)
Set the string to prepend to the user agent.
static void Destroy(void *)
ResourceQuotaRefPtr resource_quota
void SetMaxReceiveMessageSize(int size)
Set the max receive and send message sizes.
std::vector< grpc_arg > args_
void SetMaxSendMessageSize(int size)
void SetResourceQuota(const grpc::ResourceQuota &resource_quota)
Set the buffer pool to be attached to the constructed channel.
const GRPCAPI grpc_arg_pointer_vtable * grpc_resource_quota_arg_vtable(void)
static void * Copy(void *in)
#define GRPC_ARG_GRPCLB_FALLBACK_TIMEOUT_MS
#define GRPC_ARG_LB_POLICY_NAME
static int Compare(void *a, void *b)
void SetPointerWithVtable(const std::string &key, void *value, const grpc_arg_pointer_vtable *vtable)
std::list< std::string > strings_
#define GRPC_ARG_SERVICE_CONFIG
grpc_core::ExecCtx exec_ctx
void SetLoadBalancingPolicyName(const std::string &lb_policy_name)
void SetInt(const std::string &key, int value)
Set an integer argument value under key.
grpc_arg grpc_socket_mutator_to_arg(grpc_socket_mutator *mutator)
void SetServiceConfigJSON(const std::string &service_config_json)
#define GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM
void SetPointer(const std::string &key, void *value)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:43