Imported Upstream version 1.23.0
[platform/upstream/grpc.git] / include / grpcpp / impl / codegen / async_stream.h
1 /*
2  *
3  * Copyright 2015 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 #ifndef GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H
20 #define GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H
21
22 #include <grpcpp/impl/codegen/async_stream_impl.h>
23
24 namespace grpc {
25
26 namespace internal {
27
28 typedef ::grpc_impl::internal::ClientAsyncStreamingInterface
29     ClientAsyncStreamingInterface;
30
31 template <class R>
32 using AsyncReaderInterface = ::grpc_impl::internal::AsyncReaderInterface<R>;
33
34 template <class W>
35 using AsyncWriterInterface = ::grpc_impl::internal::AsyncWriterInterface<W>;
36
37 }  // namespace internal
38
39 template <class R>
40 using ClientAsyncReaderInterface = ::grpc_impl::ClientAsyncReaderInterface<R>;
41
42 template <class R>
43 using ClientAsyncReader = ::grpc_impl::ClientAsyncReader<R>;
44
45 template <class W>
46 using ClientAsyncWriterInterface = ::grpc_impl::ClientAsyncWriterInterface<W>;
47
48 template <class W>
49 using ClientAsyncWriter = ::grpc_impl::ClientAsyncWriter<W>;
50
51 template <class W, class R>
52 using ClientAsyncReaderWriterInterface =
53     ::grpc_impl::ClientAsyncReaderWriterInterface<W, R>;
54
55 template <class W, class R>
56 using ClientAsyncReaderWriter = ::grpc_impl::ClientAsyncReaderWriter<W, R>;
57
58 template <class W, class R>
59 using ServerAsyncReaderInterface =
60     ::grpc_impl::ServerAsyncReaderInterface<W, R>;
61
62 template <class W, class R>
63 using ServerAsyncReader = ::grpc_impl::ServerAsyncReader<W, R>;
64
65 template <class W>
66 using ServerAsyncWriterInterface = ::grpc_impl::ServerAsyncWriterInterface<W>;
67
68 template <class W>
69 using ServerAsyncWriter = ::grpc_impl::ServerAsyncWriter<W>;
70
71 template <class W, class R>
72 using ServerAsyncReaderWriterInterface =
73     ::grpc_impl::ServerAsyncReaderWriterInterface<W, R>;
74
75 template <class W, class R>
76 using ServerAsyncReaderWriter = ::grpc_impl::ServerAsyncReaderWriter<W, R>;
77
78 namespace internal {
79 template <class R>
80 using ClientAsyncReaderFactory =
81     ::grpc_impl::internal::ClientAsyncReaderFactory<R>;
82
83 template <class W>
84 using ClientAsyncWriterFactory =
85     ::grpc_impl::internal::ClientAsyncWriterFactory<W>;
86
87 template <class W, class R>
88 using ClientAsyncReaderWriterFactory =
89     ::grpc_impl::internal::ClientAsyncReaderWriterFactory<W, R>;
90
91 }  // namespace internal
92
93 }  // namespace grpc
94
95 #endif  // GRPCPP_IMPL_CODEGEN_ASYNC_STREAM_H