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
channel
channel_stack_builder.cc
Go to the documentation of this file.
1
/*
2
*
3
* Copyright 2016 gRPC authors.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*/
18
19
#include <
grpc/support/port_platform.h
>
20
21
#include "
src/core/lib/channel/channel_stack_builder.h
"
22
23
#include <algorithm>
24
#include <utility>
25
26
#include "
src/core/lib/channel/channel_args.h
"
27
28
namespace
grpc_core
{
29
30
ChannelStackBuilder::~ChannelStackBuilder
() =
default
;
31
32
ChannelStackBuilder
&
ChannelStackBuilder::SetTarget
(
const
char
*
target
) {
33
if
(
target
==
nullptr
) {
34
target_
=
unknown_target
();
35
}
else
{
36
target_
=
target
;
37
}
38
return
*
this
;
39
}
40
41
ChannelStackBuilder
&
ChannelStackBuilder::SetChannelArgs
(
ChannelArgs
args
) {
42
args_
=
std::move
(
args
);
43
return
*
this
;
44
}
45
46
void
ChannelStackBuilder::PrependFilter
(
const
grpc_channel_filter
* filter) {
47
stack_
.insert(
stack_
.begin(), filter);
48
}
49
50
void
ChannelStackBuilder::AppendFilter
(
const
grpc_channel_filter
* filter) {
51
stack_
.push_back(filter);
52
}
53
54
}
// namespace grpc_core
grpc_core::ChannelStackBuilder::args_
ChannelArgs args_
Definition:
channel_stack_builder.h:105
grpc_core
Definition:
call_metric_recorder.h:31
grpc_core::ChannelStackBuilder::~ChannelStackBuilder
~ChannelStackBuilder()
grpc_core::ChannelStackBuilder::PrependFilter
void PrependFilter(const grpc_channel_filter *filter)
Definition:
channel_stack_builder.cc:46
grpc_core::ChannelStackBuilder
Definition:
channel_stack_builder.h:41
asyncio_get_stats.args
args
Definition:
asyncio_get_stats.py:40
absl::move
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
Definition:
abseil-cpp/absl/utility/utility.h:221
grpc_core::ChannelStackBuilder::SetTarget
ChannelStackBuilder & SetTarget(const char *target)
Definition:
channel_stack_builder.cc:32
grpc_core::ChannelStackBuilder::AppendFilter
void AppendFilter(const grpc_channel_filter *filter)
Definition:
channel_stack_builder.cc:50
grpc_channel_filter
Definition:
channel_stack.h:111
grpc_core::ChannelStackBuilder::SetChannelArgs
ChannelStackBuilder & SetChannelArgs(ChannelArgs args)
Definition:
channel_stack_builder.cc:41
grpc_core::ChannelStackBuilder::target_
std::string target_
Definition:
channel_stack_builder.h:101
grpc_core::ChannelStackBuilder::stack_
std::vector< const grpc_channel_filter * > stack_
Definition:
channel_stack_builder.h:107
grpc_core::ChannelArgs
Definition:
channel_args.h:111
channel_args.h
grpc_core::ChannelStackBuilder::target
absl::string_view target() const
Definition:
channel_stack_builder.h:53
grpc_core::ChannelStackBuilder::unknown_target
static std::string unknown_target()
Definition:
channel_stack_builder.h:94
channel_stack_builder.h
setup.target
target
Definition:
third_party/bloaty/third_party/protobuf/python/setup.py:179
port_platform.h
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:44