1 /*
2  *
3  * Copyright 2019 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 SRC_COMPILER_CONFIG_PROTOBUF_H
20 #define SRC_COMPILER_CONFIG_PROTOBUF_H
21 
22 #include <grpcpp/impl/codegen/config_protobuf.h>
23 
24 #ifndef GRPC_CUSTOM_CODEGENERATOR
25 #include <google/protobuf/compiler/code_generator.h>
26 #define GRPC_CUSTOM_CODEGENERATOR ::google::protobuf::compiler::CodeGenerator
27 #define GRPC_CUSTOM_GENERATORCONTEXT \
28   ::google::protobuf::compiler::GeneratorContext
29 #endif
30 
31 #ifndef GRPC_CUSTOM_PRINTER
32 #include <google/protobuf/io/coded_stream.h>
33 #include <google/protobuf/io/printer.h>
34 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
35 #define GRPC_CUSTOM_PRINTER ::google::protobuf::io::Printer
36 #define GRPC_CUSTOM_CODEDOUTPUTSTREAM ::google::protobuf::io::CodedOutputStream
37 #define GRPC_CUSTOM_STRINGOUTPUTSTREAM \
38   ::google::protobuf::io::StringOutputStream
39 #endif
40 
41 #ifndef GRPC_CUSTOM_PLUGINMAIN
42 #include <google/protobuf/compiler/plugin.h>
43 #define GRPC_CUSTOM_PLUGINMAIN ::google::protobuf::compiler::PluginMain
44 #endif
45 
46 #ifndef GRPC_CUSTOM_PARSEGENERATORPARAMETER
47 #include <google/protobuf/compiler/code_generator.h>
48 #define GRPC_CUSTOM_PARSEGENERATORPARAMETER \
49   ::google::protobuf::compiler::ParseGeneratorParameter
50 #endif
51 
52 #ifndef GRPC_CUSTOM_CSHARP_GETCLASSNAME
53 #include <google/protobuf/compiler/csharp/csharp_names.h>
54 #define GRPC_CUSTOM_CSHARP_GETCLASSNAME \
55   ::google::protobuf::compiler::csharp::GetClassName
56 #define GRPC_CUSTOM_CSHARP_GETFILENAMESPACE \
57   ::google::protobuf::compiler::csharp::GetFileNamespace
58 #define GRPC_CUSTOM_CSHARP_GETREFLECTIONCLASSNAME \
59   ::google::protobuf::compiler::csharp::GetReflectionClassName
60 #endif
61 
62 #endif  // SRC_COMPILER_CONFIG_PROTOBUF_H
63