17 #ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_SERVICE_CONFIG_CALL_DATA_H
18 #define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_SERVICE_CONFIG_CALL_DATA_H
24 #include "absl/strings/string_view.h"
45 method_configs_(method_configs),
61 return method_configs_ !=
nullptr ? (*method_configs_)[index].get()
66 return service_config_->GetGlobalParsedConfig(index);
70 return call_attributes_;
74 static void Destroy(
void* ptr) {
76 self->~ServiceConfigCallData();
79 RefCountedPtr<ServiceConfig> service_config_;
81 std::map<const char*, absl::string_view> call_attributes_;
Definition: ref_counted_ptr.h:35
When a service config is applied to a call in the client_channel_filter, we create an instance of thi...
Definition: service_config_call_data.h:37
ServiceConfigParser::ParsedConfig * GetMethodParsedConfig(size_t index) const
Definition: service_config_call_data.h:60
ServiceConfigParser::ParsedConfig * GetGlobalParsedConfig(size_t index) const
Definition: service_config_call_data.h:65
const std::map< const char *, absl::string_view > & call_attributes() const
Definition: service_config_call_data.h:69
ServiceConfig * service_config()
Definition: service_config_call_data.h:58
ServiceConfigCallData(RefCountedPtr< ServiceConfig > service_config, const ServiceConfigParser::ParsedConfigVector *method_configs, grpc_call_context_element *call_context)
Definition: service_config_call_data.h:51
ServiceConfigCallData(RefCountedPtr< ServiceConfig > service_config, const ServiceConfigParser::ParsedConfigVector *method_configs, std::map< const char *, absl::string_view > call_attributes, grpc_call_context_element *call_context)
Definition: service_config_call_data.h:39
Definition: service_config.h:64
This is the base class that all service config parsers MUST use to store parsed service config data.
Definition: service_config_parser.h:39
absl::InlinedVector< std::unique_ptr< ParsedConfig >, kNumPreallocatedParsers > ParsedConfigVector
Definition: service_config_parser.h:71
@ GRPC_CONTEXT_SERVICE_CONFIG_CALL_DATA
Holds a pointer to ServiceConfigCallData associated with this call.
Definition: context.h:39
Round Robin Policy.
Definition: backend_metric.cc:26
Definition: async_unary_call.h:398
void(* destroy)(void *)
Definition: context.h:46
void * value
Definition: context.h:45