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