Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
grpc
src
core
lib
service_config
service_config_call_data.h
Go to the documentation of this file.
1
//
2
// Copyright 2016 gRPC authors.
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
//
16
17
#ifndef GRPC_CORE_LIB_SERVICE_CONFIG_SERVICE_CONFIG_CALL_DATA_H
18
#define GRPC_CORE_LIB_SERVICE_CONFIG_SERVICE_CONFIG_CALL_DATA_H
19
20
#include <
grpc/support/port_platform.h
>
21
22
#include <stddef.h>
23
24
#include <map>
25
#include <memory>
26
#include <utility>
27
28
#include "absl/strings/string_view.h"
29
30
#include "
src/core/lib/gprpp/ref_counted_ptr.h
"
31
#include "
src/core/lib/gprpp/unique_type_name.h
"
32
#include "
src/core/lib/service_config/service_config.h
"
33
#include "
src/core/lib/service_config/service_config_parser.h
"
34
35
namespace
grpc_core
{
36
41
class
ServiceConfigCallData
{
42
public
:
43
using
CallAttributes
= std::map<UniqueTypeName, absl::string_view>;
44
45
ServiceConfigCallData
() :
method_configs_
(nullptr) {}
46
47
ServiceConfigCallData
(
48
RefCountedPtr<ServiceConfig>
service_config
,
49
const
ServiceConfigParser::ParsedConfigVector
* method_configs,
50
CallAttributes
call_attributes
)
51
:
service_config_
(
std
::
move
(
service_config
)),
52
method_configs_
(method_configs),
53
call_attributes_
(
std
::
move
(
call_attributes
)) {}
54
55
ServiceConfig
*
service_config
() {
return
service_config_
.get(); }
56
57
ServiceConfigParser::ParsedConfig
*
GetMethodParsedConfig
(
size_t
index
)
const
{
58
return
method_configs_
!=
nullptr
? (*method_configs_)[
index
].get()
59
:
nullptr
;
60
}
61
62
ServiceConfigParser::ParsedConfig
*
GetGlobalParsedConfig
(
size_t
index
)
const
{
63
return
service_config_
->GetGlobalParsedConfig(
index
);
64
}
65
66
const
CallAttributes
&
call_attributes
()
const
{
return
call_attributes_
; }
67
68
private
:
69
RefCountedPtr<ServiceConfig>
service_config_
;
70
const
ServiceConfigParser::ParsedConfigVector
*
method_configs_
;
71
CallAttributes
call_attributes_
;
72
};
73
74
}
// namespace grpc_core
75
76
#endif
/* GRPC_CORE_LIB_SERVICE_CONFIG_SERVICE_CONFIG_CALL_DATA_H */
grpc_core::ServiceConfigCallData::ServiceConfigCallData
ServiceConfigCallData(RefCountedPtr< ServiceConfig > service_config, const ServiceConfigParser::ParsedConfigVector *method_configs, CallAttributes call_attributes)
Definition:
service_config_call_data.h:47
grpc_core::ServiceConfigCallData::method_configs_
const ServiceConfigParser::ParsedConfigVector * method_configs_
Definition:
service_config_call_data.h:70
grpc_core
Definition:
call_metric_recorder.h:31
grpc_core::ServiceConfigCallData::GetGlobalParsedConfig
ServiceConfigParser::ParsedConfig * GetGlobalParsedConfig(size_t index) const
Definition:
service_config_call_data.h:62
grpc_core::ServiceConfigCallData
Definition:
service_config_call_data.h:41
grpc_core::ServiceConfigParser::ParsedConfigVector
std::vector< std::unique_ptr< ParsedConfig > > ParsedConfigVector
Definition:
lib/service_config/service_config_parser.h:77
grpc_core::ServiceConfigCallData::call_attributes
const CallAttributes & call_attributes() const
Definition:
service_config_call_data.h:66
grpc_core::ServiceConfigCallData::service_config
ServiceConfig * service_config()
Definition:
service_config_call_data.h:55
grpc_core::RefCountedPtr
Definition:
ref_counted_ptr.h:35
absl::move
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
Definition:
abseil-cpp/absl/utility/utility.h:221
grpc_core::ServiceConfigCallData::GetMethodParsedConfig
ServiceConfigParser::ParsedConfig * GetMethodParsedConfig(size_t index) const
Definition:
service_config_call_data.h:57
grpc_core::ServiceConfig
Definition:
service_config.h:59
grpc_core::ServiceConfigCallData::call_attributes_
CallAttributes call_attributes_
Definition:
service_config_call_data.h:71
grpc_core::ServiceConfigCallData::CallAttributes
std::map< UniqueTypeName, absl::string_view > CallAttributes
Definition:
service_config_call_data.h:43
service_config_parser.h
grpc_core::ServiceConfigCallData::ServiceConfigCallData
ServiceConfigCallData()
Definition:
service_config_call_data.h:45
index
int index
Definition:
bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:1184
grpc_core::ServiceConfigCallData::service_config_
RefCountedPtr< ServiceConfig > service_config_
Definition:
service_config_call_data.h:69
std
Definition:
grpcpp/impl/codegen/async_unary_call.h:407
unique_type_name.h
ref_counted_ptr.h
service_config.h
grpc_core::ServiceConfigParser::ParsedConfig
Definition:
lib/service_config/service_config_parser.h:45
port_platform.h
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:17