GRPC C++  1.30.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 #define GRPC_OPEN_SOURCE_PROTO
23 
24 #ifndef GRPC_CUSTOM_MESSAGE
25 #ifdef GRPC_USE_PROTO_LITE
26 #include <google/protobuf/message_lite.h>
27 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite
28 #define GRPC_CUSTOM_MESSAGELITE ::google::protobuf::MessageLite
29 #else
30 #include <google/protobuf/message.h>
31 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message
32 #define GRPC_CUSTOM_MESSAGELITE ::google::protobuf::MessageLite
33 #endif
34 #endif
35 
36 #ifndef GRPC_CUSTOM_DESCRIPTOR
37 #include <google/protobuf/descriptor.h>
38 #include <google/protobuf/descriptor.pb.h>
39 #define GRPC_CUSTOM_DESCRIPTOR ::google::protobuf::Descriptor
40 #define GRPC_CUSTOM_DESCRIPTORPOOL ::google::protobuf::DescriptorPool
41 #define GRPC_CUSTOM_FIELDDESCRIPTOR ::google::protobuf::FieldDescriptor
42 #define GRPC_CUSTOM_FILEDESCRIPTOR ::google::protobuf::FileDescriptor
43 #define GRPC_CUSTOM_FILEDESCRIPTORPROTO ::google::protobuf::FileDescriptorProto
44 #define GRPC_CUSTOM_METHODDESCRIPTOR ::google::protobuf::MethodDescriptor
45 #define GRPC_CUSTOM_SERVICEDESCRIPTOR ::google::protobuf::ServiceDescriptor
46 #define GRPC_CUSTOM_SOURCELOCATION ::google::protobuf::SourceLocation
47 #endif
48 
49 #ifndef GRPC_CUSTOM_DESCRIPTORDATABASE
50 #include <google/protobuf/descriptor_database.h>
51 #define GRPC_CUSTOM_DESCRIPTORDATABASE ::google::protobuf::DescriptorDatabase
52 #define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE \
53  ::google::protobuf::SimpleDescriptorDatabase
54 #endif
55 
56 #ifndef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
57 #include <google/protobuf/io/coded_stream.h>
58 #include <google/protobuf/io/zero_copy_stream.h>
59 #define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM \
60  ::google::protobuf::io::ZeroCopyOutputStream
61 #define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM \
62  ::google::protobuf::io::ZeroCopyInputStream
63 #define GRPC_CUSTOM_CODEDINPUTSTREAM ::google::protobuf::io::CodedInputStream
64 #endif
65 
66 #ifndef GRPC_CUSTOM_JSONUTIL
67 #include <google/protobuf/util/json_util.h>
68 #define GRPC_CUSTOM_JSONUTIL ::google::protobuf::util
69 #define GRPC_CUSTOM_UTIL_STATUS ::google::protobuf::util::Status
70 #endif
71 
72 namespace grpc {
73 namespace protobuf {
74 
77 
88 
89 namespace util {
91 } // namespace util
92 
93 namespace json = GRPC_CUSTOM_JSONUTIL;
94 
95 namespace io {
99 } // namespace io
100 
101 } // namespace protobuf
102 } // namespace grpc
103 
104 #endif // GRPCPP_IMPL_CODEGEN_CONFIG_PROTOBUF_H
grpc::protobuf::FieldDescriptor
::google::protobuf::FieldDescriptor FieldDescriptor
Definition: config_protobuf.h:81
GRPC_CUSTOM_SERVICEDESCRIPTOR
#define GRPC_CUSTOM_SERVICEDESCRIPTOR
Definition: config_protobuf.h:45
GRPC_CUSTOM_FILEDESCRIPTOR
#define GRPC_CUSTOM_FILEDESCRIPTOR
Definition: config_protobuf.h:42
grpc
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
GRPC_CUSTOM_FILEDESCRIPTORPROTO
#define GRPC_CUSTOM_FILEDESCRIPTORPROTO
Definition: config_protobuf.h:43
grpc::protobuf::io::ZeroCopyOutputStream
::google::protobuf::io::ZeroCopyOutputStream ZeroCopyOutputStream
Definition: config_protobuf.h:96
GRPC_CUSTOM_ZEROCOPYINPUTSTREAM
#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM
Definition: config_protobuf.h:61
GRPC_CUSTOM_DESCRIPTORPOOL
#define GRPC_CUSTOM_DESCRIPTORPOOL
Definition: config_protobuf.h:40
grpc::protobuf::io::ZeroCopyInputStream
::google::protobuf::io::ZeroCopyInputStream ZeroCopyInputStream
Definition: config_protobuf.h:97
grpc::protobuf::FileDescriptorProto
::google::protobuf::FileDescriptorProto FileDescriptorProto
Definition: config_protobuf.h:83
grpc::protobuf::io::CodedInputStream
::google::protobuf::io::CodedInputStream CodedInputStream
Definition: config_protobuf.h:98
grpc::protobuf::FileDescriptor
::google::protobuf::FileDescriptor FileDescriptor
Definition: config_protobuf.h:82
GRPC_CUSTOM_DESCRIPTORDATABASE
#define GRPC_CUSTOM_DESCRIPTORDATABASE
Definition: config_protobuf.h:51
GRPC_CUSTOM_MESSAGELITE
#define GRPC_CUSTOM_MESSAGELITE
Definition: config_protobuf.h:32
GRPC_CUSTOM_FIELDDESCRIPTOR
#define GRPC_CUSTOM_FIELDDESCRIPTOR
Definition: config_protobuf.h:41
GRPC_CUSTOM_METHODDESCRIPTOR
#define GRPC_CUSTOM_METHODDESCRIPTOR
Definition: config_protobuf.h:44
GRPC_CUSTOM_CODEDINPUTSTREAM
#define GRPC_CUSTOM_CODEDINPUTSTREAM
Definition: config_protobuf.h:63
GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE
#define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE
Definition: config_protobuf.h:52
grpc::protobuf::ServiceDescriptor
::google::protobuf::ServiceDescriptor ServiceDescriptor
Definition: config_protobuf.h:85
grpc::protobuf::DescriptorPool
::google::protobuf::DescriptorPool DescriptorPool
Definition: config_protobuf.h:79
GRPC_CUSTOM_UTIL_STATUS
#define GRPC_CUSTOM_UTIL_STATUS
Definition: config_protobuf.h:69
grpc::protobuf::DescriptorDatabase
::google::protobuf::DescriptorDatabase DescriptorDatabase
Definition: config_protobuf.h:80
GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
Definition: config_protobuf.h:59
grpc::protobuf::util::Status
::google::protobuf::util::Status Status
Definition: config_protobuf.h:90
grpc::protobuf::SimpleDescriptorDatabase
::google::protobuf::SimpleDescriptorDatabase SimpleDescriptorDatabase
Definition: config_protobuf.h:86
GRPC_CUSTOM_MESSAGE
#define GRPC_CUSTOM_MESSAGE
Definition: config_protobuf.h:31
GRPC_CUSTOM_SOURCELOCATION
#define GRPC_CUSTOM_SOURCELOCATION
Definition: config_protobuf.h:46
GRPC_CUSTOM_DESCRIPTOR
#define GRPC_CUSTOM_DESCRIPTOR
Definition: config_protobuf.h:39
grpc::protobuf::Descriptor
::google::protobuf::Descriptor Descriptor
Definition: config_protobuf.h:78
grpc::protobuf::SourceLocation
::google::protobuf::SourceLocation SourceLocation
Definition: config_protobuf.h:87
grpc::protobuf::Message
::google::protobuf::Message Message
Definition: config_protobuf.h:75
GRPC_CUSTOM_JSONUTIL
#define GRPC_CUSTOM_JSONUTIL
Definition: config_protobuf.h:68
grpc::protobuf::MethodDescriptor
::google::protobuf::MethodDescriptor MethodDescriptor
Definition: config_protobuf.h:84
grpc::protobuf::MessageLite
::google::protobuf::MessageLite MessageLite
Definition: config_protobuf.h:76