GRPC C++  1.53.0
config_protobuf.h
Go to the documentation of this file.
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_CONFIG_PROTOBUF_H
20 #define GRPCPP_IMPL_CODEGEN_CONFIG_PROTOBUF_H
21 
22 // IWYU pragma: private
23 
24 #define GRPC_OPEN_SOURCE_PROTO
25 
26 #ifndef GRPC_CUSTOM_MESSAGE
27 #ifdef GRPC_USE_PROTO_LITE
28 #include <google/protobuf/message_lite.h>
29 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite
30 #define GRPC_CUSTOM_MESSAGELITE ::google::protobuf::MessageLite
31 #else
32 #include <google/protobuf/message.h>
33 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message
34 #define GRPC_CUSTOM_MESSAGELITE ::google::protobuf::MessageLite
35 #endif
36 #endif
37 
38 #ifndef GRPC_CUSTOM_DESCRIPTOR
39 #include <google/protobuf/descriptor.h>
40 #include <google/protobuf/descriptor.pb.h>
41 #define GRPC_CUSTOM_DESCRIPTOR ::google::protobuf::Descriptor
42 #define GRPC_CUSTOM_DESCRIPTORPOOL ::google::protobuf::DescriptorPool
43 #define GRPC_CUSTOM_FIELDDESCRIPTOR ::google::protobuf::FieldDescriptor
44 #define GRPC_CUSTOM_FILEDESCRIPTOR ::google::protobuf::FileDescriptor
45 #define GRPC_CUSTOM_FILEDESCRIPTORPROTO ::google::protobuf::FileDescriptorProto
46 #define GRPC_CUSTOM_METHODDESCRIPTOR ::google::protobuf::MethodDescriptor
47 #define GRPC_CUSTOM_SERVICEDESCRIPTOR ::google::protobuf::ServiceDescriptor
48 #define GRPC_CUSTOM_SOURCELOCATION ::google::protobuf::SourceLocation
49 #endif
50 
51 #ifndef GRPC_CUSTOM_DESCRIPTORDATABASE
52 #include <google/protobuf/descriptor_database.h>
53 #define GRPC_CUSTOM_DESCRIPTORDATABASE ::google::protobuf::DescriptorDatabase
54 #define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE \
55  ::google::protobuf::SimpleDescriptorDatabase
56 #endif
57 
58 #ifndef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
59 #include <google/protobuf/io/coded_stream.h>
60 #include <google/protobuf/io/zero_copy_stream.h>
61 #define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM \
62  ::google::protobuf::io::ZeroCopyOutputStream
63 #define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM \
64  ::google::protobuf::io::ZeroCopyInputStream
65 #define GRPC_CUSTOM_CODEDINPUTSTREAM ::google::protobuf::io::CodedInputStream
66 #endif
67 
68 #ifndef GRPC_CUSTOM_JSONUTIL
69 #include <google/protobuf/util/json_util.h>
70 #include <google/protobuf/util/type_resolver_util.h>
71 #define GRPC_CUSTOM_JSONUTIL ::google::protobuf::util
72 #define GRPC_CUSTOM_UTIL_STATUS ::google::protobuf::util::Status
73 #endif
74 
75 namespace grpc {
76 namespace protobuf {
77 
80 
91 
92 namespace util {
94 } // namespace util
95 
96 // NOLINTNEXTLINE(misc-unused-alias-decls)
97 namespace json = GRPC_CUSTOM_JSONUTIL;
98 
99 namespace io {
103 } // namespace io
104 
105 } // namespace protobuf
106 } // namespace grpc
107 
108 #endif // GRPCPP_IMPL_CODEGEN_CONFIG_PROTOBUF_H
grpc::protobuf::FieldDescriptor
::google::protobuf::FieldDescriptor FieldDescriptor
Definition: config_protobuf.h:84
GRPC_CUSTOM_SERVICEDESCRIPTOR
#define GRPC_CUSTOM_SERVICEDESCRIPTOR
Definition: config_protobuf.h:47
GRPC_CUSTOM_FILEDESCRIPTOR
#define GRPC_CUSTOM_FILEDESCRIPTOR
Definition: config_protobuf.h:44
grpc
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:32
GRPC_CUSTOM_FILEDESCRIPTORPROTO
#define GRPC_CUSTOM_FILEDESCRIPTORPROTO
Definition: config_protobuf.h:45
grpc::protobuf::io::ZeroCopyOutputStream
::google::protobuf::io::ZeroCopyOutputStream ZeroCopyOutputStream
Definition: config_protobuf.h:100
GRPC_CUSTOM_ZEROCOPYINPUTSTREAM
#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM
Definition: config_protobuf.h:63
GRPC_CUSTOM_DESCRIPTORPOOL
#define GRPC_CUSTOM_DESCRIPTORPOOL
Definition: config_protobuf.h:42
grpc::protobuf::io::ZeroCopyInputStream
::google::protobuf::io::ZeroCopyInputStream ZeroCopyInputStream
Definition: config_protobuf.h:101
grpc::protobuf::FileDescriptorProto
::google::protobuf::FileDescriptorProto FileDescriptorProto
Definition: config_protobuf.h:86
grpc::protobuf::io::CodedInputStream
::google::protobuf::io::CodedInputStream CodedInputStream
Definition: config_protobuf.h:102
grpc::protobuf::FileDescriptor
::google::protobuf::FileDescriptor FileDescriptor
Definition: config_protobuf.h:85
GRPC_CUSTOM_DESCRIPTORDATABASE
#define GRPC_CUSTOM_DESCRIPTORDATABASE
Definition: config_protobuf.h:53
GRPC_CUSTOM_MESSAGELITE
#define GRPC_CUSTOM_MESSAGELITE
Definition: config_protobuf.h:34
GRPC_CUSTOM_FIELDDESCRIPTOR
#define GRPC_CUSTOM_FIELDDESCRIPTOR
Definition: config_protobuf.h:43
GRPC_CUSTOM_METHODDESCRIPTOR
#define GRPC_CUSTOM_METHODDESCRIPTOR
Definition: config_protobuf.h:46
GRPC_CUSTOM_CODEDINPUTSTREAM
#define GRPC_CUSTOM_CODEDINPUTSTREAM
Definition: config_protobuf.h:65
GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE
#define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE
Definition: config_protobuf.h:54
grpc::protobuf::ServiceDescriptor
::google::protobuf::ServiceDescriptor ServiceDescriptor
Definition: config_protobuf.h:88
grpc::protobuf::DescriptorPool
::google::protobuf::DescriptorPool DescriptorPool
Definition: config_protobuf.h:82
GRPC_CUSTOM_UTIL_STATUS
#define GRPC_CUSTOM_UTIL_STATUS
Definition: config_protobuf.h:72
grpc::protobuf::DescriptorDatabase
::google::protobuf::DescriptorDatabase DescriptorDatabase
Definition: config_protobuf.h:83
GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
Definition: config_protobuf.h:61
grpc::protobuf::util::Status
::google::protobuf::util::Status Status
Definition: config_protobuf.h:93
grpc::protobuf::SimpleDescriptorDatabase
::google::protobuf::SimpleDescriptorDatabase SimpleDescriptorDatabase
Definition: config_protobuf.h:89
GRPC_CUSTOM_MESSAGE
#define GRPC_CUSTOM_MESSAGE
Definition: config_protobuf.h:33
GRPC_CUSTOM_SOURCELOCATION
#define GRPC_CUSTOM_SOURCELOCATION
Definition: config_protobuf.h:48
GRPC_CUSTOM_DESCRIPTOR
#define GRPC_CUSTOM_DESCRIPTOR
Definition: config_protobuf.h:41
grpc::protobuf::Descriptor
::google::protobuf::Descriptor Descriptor
Definition: config_protobuf.h:81
grpc::protobuf::SourceLocation
::google::protobuf::SourceLocation SourceLocation
Definition: config_protobuf.h:90
grpc::protobuf::Message
::google::protobuf::Message Message
Definition: config_protobuf.h:78
GRPC_CUSTOM_JSONUTIL
#define GRPC_CUSTOM_JSONUTIL
Definition: config_protobuf.h:71
grpc::protobuf::MethodDescriptor
::google::protobuf::MethodDescriptor MethodDescriptor
Definition: config_protobuf.h:87
grpc::protobuf::MessageLite
::google::protobuf::MessageLite MessageLite
Definition: config_protobuf.h:79