GRPC C++  1.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
config_protobuf.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2015, Google Inc.
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are
8  * met:
9  *
10  * * Redistributions of source code must retain the above copyright
11  * notice, this list of conditions and the following disclaimer.
12  * * Redistributions in binary form must reproduce the above
13  * copyright notice, this list of conditions and the following disclaimer
14  * in the documentation and/or other materials provided with the
15  * distribution.
16  * * Neither the name of Google Inc. nor the names of its
17  * contributors may be used to endorse or promote products derived from
18  * this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
33 
34 #ifndef GRPCXX_IMPL_CODEGEN_CONFIG_PROTOBUF_H
35 #define GRPCXX_IMPL_CODEGEN_CONFIG_PROTOBUF_H
36 
37 #ifndef GRPC_CUSTOM_PROTOBUF_INT64
38 #include <google/protobuf/stubs/common.h>
39 #define GRPC_CUSTOM_PROTOBUF_INT64 ::google::protobuf::int64
40 #endif
41 
42 #ifndef GRPC_CUSTOM_MESSAGE
43 #ifdef GRPC_USE_PROTO_LITE
44 #include <google/protobuf/message_lite.h>
45 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite
46 #else
47 #include <google/protobuf/message.h>
48 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message
49 #endif
50 #endif
51 
52 #ifndef GRPC_CUSTOM_DESCRIPTOR
53 #include <google/protobuf/descriptor.h>
54 #include <google/protobuf/descriptor.pb.h>
55 #define GRPC_CUSTOM_DESCRIPTOR ::google::protobuf::Descriptor
56 #define GRPC_CUSTOM_DESCRIPTORPOOL ::google::protobuf::DescriptorPool
57 #define GRPC_CUSTOM_FIELDDESCRIPTOR ::google::protobuf::FieldDescriptor
58 #define GRPC_CUSTOM_FILEDESCRIPTOR ::google::protobuf::FileDescriptor
59 #define GRPC_CUSTOM_FILEDESCRIPTORPROTO ::google::protobuf::FileDescriptorProto
60 #define GRPC_CUSTOM_METHODDESCRIPTOR ::google::protobuf::MethodDescriptor
61 #define GRPC_CUSTOM_SERVICEDESCRIPTOR ::google::protobuf::ServiceDescriptor
62 #define GRPC_CUSTOM_SOURCELOCATION ::google::protobuf::SourceLocation
63 #endif
64 
65 #ifndef GRPC_CUSTOM_DESCRIPTORDATABASE
66 #include <google/protobuf/descriptor_database.h>
67 #define GRPC_CUSTOM_DESCRIPTORDATABASE ::google::protobuf::DescriptorDatabase
68 #define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE \
69  ::google::protobuf::SimpleDescriptorDatabase
70 #endif
71 
72 #ifndef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
73 #include <google/protobuf/io/coded_stream.h>
74 #include <google/protobuf/io/zero_copy_stream.h>
75 #define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM \
76  ::google::protobuf::io::ZeroCopyOutputStream
77 #define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM \
78  ::google::protobuf::io::ZeroCopyInputStream
79 #define GRPC_CUSTOM_CODEDINPUTSTREAM ::google::protobuf::io::CodedInputStream
80 #endif
81 
82 namespace grpc {
83 namespace protobuf {
84 
87 
98 
99 namespace io {
103 } // namespace io
104 
105 } // namespace protobuf
106 } // namespace grpc
107 
108 #endif // GRPCXX_IMPL_CODEGEN_CONFIG_PROTOBUF_H
#define GRPC_CUSTOM_SOURCELOCATION
Definition: config_protobuf.h:62
#define GRPC_CUSTOM_METHODDESCRIPTOR
Definition: config_protobuf.h:60
#define GRPC_CUSTOM_SERVICEDESCRIPTOR
Definition: config_protobuf.h:61
#define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE
Definition: config_protobuf.h:68
#define GRPC_CUSTOM_MESSAGE
Definition: config_protobuf.h:48
#define GRPC_CUSTOM_CODEDINPUTSTREAM
Definition: config_protobuf.h:79
::google::protobuf::MethodDescriptor MethodDescriptor
Definition: config_protobuf.h:94
#define GRPC_CUSTOM_FIELDDESCRIPTOR
Definition: config_protobuf.h:57
::google::protobuf::SimpleDescriptorDatabase SimpleDescriptorDatabase
Definition: config_protobuf.h:96
::google::protobuf::SourceLocation SourceLocation
Definition: config_protobuf.h:97
::google::protobuf::io::ZeroCopyInputStream ZeroCopyInputStream
Definition: config_protobuf.h:101
#define GRPC_CUSTOM_PROTOBUF_INT64
Definition: config_protobuf.h:39
::google::protobuf::FileDescriptor FileDescriptor
Definition: config_protobuf.h:92
#define GRPC_CUSTOM_DESCRIPTOR
Definition: config_protobuf.h:55
::google::protobuf::int64 int64
Definition: config_protobuf.h:86
::google::protobuf::FileDescriptorProto FileDescriptorProto
Definition: config_protobuf.h:93
#define GRPC_CUSTOM_FILEDESCRIPTOR
Definition: config_protobuf.h:58
::google::protobuf::FieldDescriptor FieldDescriptor
Definition: config_protobuf.h:91
#define GRPC_CUSTOM_FILEDESCRIPTORPROTO
Definition: config_protobuf.h:59
::google::protobuf::DescriptorDatabase DescriptorDatabase
Definition: config_protobuf.h:90
#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM
Definition: config_protobuf.h:77
::google::protobuf::ServiceDescriptor ServiceDescriptor
Definition: config_protobuf.h:95
::google::protobuf::Descriptor Descriptor
Definition: config_protobuf.h:88
::google::protobuf::io::ZeroCopyOutputStream ZeroCopyOutputStream
Definition: config_protobuf.h:100
#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
Definition: config_protobuf.h:75
#define GRPC_CUSTOM_DESCRIPTORPOOL
Definition: config_protobuf.h:56
#define GRPC_CUSTOM_DESCRIPTORDATABASE
Definition: config_protobuf.h:67
::google::protobuf::DescriptorPool DescriptorPool
Definition: config_protobuf.h:89
::google::protobuf::Message Message
Definition: config_protobuf.h:85
::google::protobuf::io::CodedInputStream CodedInputStream
Definition: config_protobuf.h:102