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 
20 
22 
23 #include <algorithm>
24 #include <utility>
25 
27 
28 namespace grpc_core {
29 
31 
33  if (target == nullptr) {
35  } else {
36  target_ = target;
37  }
38  return *this;
39 }
40 
42  args_ = std::move(args);
43  return *this;
44 }
45 
47  stack_.insert(stack_.begin(), filter);
48 }
49 
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