GRPC C++  1.13.0-dev
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_PROTOBUF_INT64
25 #include <google/protobuf/stubs/common.h>
26 #define GRPC_CUSTOM_PROTOBUF_INT64 ::google::protobuf::int64
27 #endif
28 
29 #ifndef GRPC_CUSTOM_MESSAGE
30 #ifdef GRPC_USE_PROTO_LITE
31 #include <google/protobuf/message_lite.h>
32 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite
33 #else
34 #include <google/protobuf/message.h>
35 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message
36 #endif
37 #endif
38 
39 #ifndef GRPC_CUSTOM_DESCRIPTOR
40 #include <google/protobuf/descriptor.h>
41 #include <google/protobuf/descriptor.pb.h>
42 #define GRPC_CUSTOM_DESCRIPTOR ::google::protobuf::Descriptor
43 #define GRPC_CUSTOM_DESCRIPTORPOOL ::google::protobuf::DescriptorPool
44 #define GRPC_CUSTOM_FIELDDESCRIPTOR ::google::protobuf::FieldDescriptor
45 #define GRPC_CUSTOM_FILEDESCRIPTOR ::google::protobuf::FileDescriptor
46 #define GRPC_CUSTOM_FILEDESCRIPTORPROTO ::google::protobuf::FileDescriptorProto
47 #define GRPC_CUSTOM_METHODDESCRIPTOR ::google::protobuf::MethodDescriptor
48 #define GRPC_CUSTOM_SERVICEDESCRIPTOR ::google::protobuf::ServiceDescriptor
49 #define GRPC_CUSTOM_SOURCELOCATION ::google::protobuf::SourceLocation
50 #endif
51 
52 #ifndef GRPC_CUSTOM_DESCRIPTORDATABASE
53 #include <google/protobuf/descriptor_database.h>
54 #define GRPC_CUSTOM_DESCRIPTORDATABASE ::google::protobuf::DescriptorDatabase
55 #define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE \
56  ::google::protobuf::SimpleDescriptorDatabase
57 #endif
58 
59 #ifndef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
60 #include <google/protobuf/io/coded_stream.h>
61 #include <google/protobuf/io/zero_copy_stream.h>
62 #define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM \
63  ::google::protobuf::io::ZeroCopyOutputStream
64 #define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM \
65  ::google::protobuf::io::ZeroCopyInputStream
66 #define GRPC_CUSTOM_CODEDINPUTSTREAM ::google::protobuf::io::CodedInputStream
67 #endif
68 
69 namespace grpc {
70 namespace protobuf {
71 
74 
85 
86 namespace io {
90 } // namespace io
91 
92 } // namespace protobuf
93 } // namespace grpc
94 
95 #endif // GRPCPP_IMPL_CODEGEN_CONFIG_PROTOBUF_H
#define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE
Definition: config_protobuf.h:55
#define GRPC_CUSTOM_SERVICEDESCRIPTOR
Definition: config_protobuf.h:48
#define GRPC_CUSTOM_FILEDESCRIPTORPROTO
Definition: config_protobuf.h:46
#define GRPC_CUSTOM_FILEDESCRIPTOR
Definition: config_protobuf.h:45
#define GRPC_CUSTOM_MESSAGE
Definition: config_protobuf.h:35
#define GRPC_CUSTOM_METHODDESCRIPTOR
Definition: config_protobuf.h:47
::google::protobuf::MethodDescriptor MethodDescriptor
Definition: config_protobuf.h:81
::google::protobuf::SimpleDescriptorDatabase SimpleDescriptorDatabase
Definition: config_protobuf.h:83
::google::protobuf::SourceLocation SourceLocation
Definition: config_protobuf.h:84
::google::protobuf::io::ZeroCopyInputStream ZeroCopyInputStream
Definition: config_protobuf.h:88
#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
Definition: config_protobuf.h:62
#define GRPC_CUSTOM_DESCRIPTORDATABASE
Definition: config_protobuf.h:54
An Alarm posts the user provided tag to its associated completion queue upon expiry or cancellation...
Definition: alarm.h:31
#define GRPC_CUSTOM_DESCRIPTORPOOL
Definition: config_protobuf.h:43
#define GRPC_CUSTOM_CODEDINPUTSTREAM
Definition: config_protobuf.h:66
::google::protobuf::FileDescriptor FileDescriptor
Definition: config_protobuf.h:79
::google::protobuf::int64 int64
Definition: config_protobuf.h:73
::google::protobuf::FileDescriptorProto FileDescriptorProto
Definition: config_protobuf.h:80
#define GRPC_CUSTOM_SOURCELOCATION
Definition: config_protobuf.h:49
::google::protobuf::FieldDescriptor FieldDescriptor
Definition: config_protobuf.h:78
#define GRPC_CUSTOM_PROTOBUF_INT64
Definition: config_protobuf.h:26
#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM
Definition: config_protobuf.h:64
::google::protobuf::DescriptorDatabase DescriptorDatabase
Definition: config_protobuf.h:77
::google::protobuf::ServiceDescriptor ServiceDescriptor
Definition: config_protobuf.h:82
#define GRPC_CUSTOM_DESCRIPTOR
Definition: config_protobuf.h:42
#define GRPC_CUSTOM_FIELDDESCRIPTOR
Definition: config_protobuf.h:44
::google::protobuf::Descriptor Descriptor
Definition: config_protobuf.h:75
::google::protobuf::io::ZeroCopyOutputStream ZeroCopyOutputStream
Definition: config_protobuf.h:87
::google::protobuf::DescriptorPool DescriptorPool
Definition: config_protobuf.h:76
::google::protobuf::Message Message
Definition: config_protobuf.h:72
::google::protobuf::io::CodedInputStream CodedInputStream
Definition: config_protobuf.h:89