GRPC C++  1.4.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 #define GRPC_OPEN_SOURCE_PROTO
38 
39 #ifndef GRPC_CUSTOM_PROTOBUF_INT64
40 #include <google/protobuf/stubs/common.h>
41 #define GRPC_CUSTOM_PROTOBUF_INT64 ::google::protobuf::int64
42 #endif
43 
44 #ifndef GRPC_CUSTOM_MESSAGE
45 #ifdef GRPC_USE_PROTO_LITE
46 #include <google/protobuf/message_lite.h>
47 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::MessageLite
48 #else
49 #include <google/protobuf/message.h>
50 #define GRPC_CUSTOM_MESSAGE ::google::protobuf::Message
51 #endif
52 #endif
53 
54 #ifndef GRPC_CUSTOM_DESCRIPTOR
55 #include <google/protobuf/descriptor.h>
56 #include <google/protobuf/descriptor.pb.h>
57 #define GRPC_CUSTOM_DESCRIPTOR ::google::protobuf::Descriptor
58 #define GRPC_CUSTOM_DESCRIPTORPOOL ::google::protobuf::DescriptorPool
59 #define GRPC_CUSTOM_FIELDDESCRIPTOR ::google::protobuf::FieldDescriptor
60 #define GRPC_CUSTOM_FILEDESCRIPTOR ::google::protobuf::FileDescriptor
61 #define GRPC_CUSTOM_FILEDESCRIPTORPROTO ::google::protobuf::FileDescriptorProto
62 #define GRPC_CUSTOM_METHODDESCRIPTOR ::google::protobuf::MethodDescriptor
63 #define GRPC_CUSTOM_SERVICEDESCRIPTOR ::google::protobuf::ServiceDescriptor
64 #define GRPC_CUSTOM_SOURCELOCATION ::google::protobuf::SourceLocation
65 #endif
66 
67 #ifndef GRPC_CUSTOM_DESCRIPTORDATABASE
68 #include <google/protobuf/descriptor_database.h>
69 #define GRPC_CUSTOM_DESCRIPTORDATABASE ::google::protobuf::DescriptorDatabase
70 #define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE \
71  ::google::protobuf::SimpleDescriptorDatabase
72 #endif
73 
74 #ifndef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
75 #include <google/protobuf/io/coded_stream.h>
76 #include <google/protobuf/io/zero_copy_stream.h>
77 #define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM \
78  ::google::protobuf::io::ZeroCopyOutputStream
79 #define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM \
80  ::google::protobuf::io::ZeroCopyInputStream
81 #define GRPC_CUSTOM_CODEDINPUTSTREAM ::google::protobuf::io::CodedInputStream
82 #endif
83 
84 namespace grpc {
85 namespace protobuf {
86 
89 
100 
101 namespace io {
105 } // namespace io
106 
107 } // namespace protobuf
108 } // namespace grpc
109 
110 #endif // GRPCXX_IMPL_CODEGEN_CONFIG_PROTOBUF_H
#define GRPC_CUSTOM_SOURCELOCATION
Definition: config_protobuf.h:64
#define GRPC_CUSTOM_METHODDESCRIPTOR
Definition: config_protobuf.h:62
#define GRPC_CUSTOM_SERVICEDESCRIPTOR
Definition: config_protobuf.h:63
#define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE
Definition: config_protobuf.h:70
#define GRPC_CUSTOM_MESSAGE
Definition: config_protobuf.h:50
#define GRPC_CUSTOM_CODEDINPUTSTREAM
Definition: config_protobuf.h:81
::google::protobuf::MethodDescriptor MethodDescriptor
Definition: config_protobuf.h:96
#define GRPC_CUSTOM_FIELDDESCRIPTOR
Definition: config_protobuf.h:59
::google::protobuf::SimpleDescriptorDatabase SimpleDescriptorDatabase
Definition: config_protobuf.h:98
::google::protobuf::SourceLocation SourceLocation
Definition: config_protobuf.h:99
::google::protobuf::io::ZeroCopyInputStream ZeroCopyInputStream
Definition: config_protobuf.h:103
#define GRPC_CUSTOM_PROTOBUF_INT64
Definition: config_protobuf.h:41
::google::protobuf::FileDescriptor FileDescriptor
Definition: config_protobuf.h:94
#define GRPC_CUSTOM_DESCRIPTOR
Definition: config_protobuf.h:57
::google::protobuf::int64 int64
Definition: config_protobuf.h:88
::google::protobuf::FileDescriptorProto FileDescriptorProto
Definition: config_protobuf.h:95
#define GRPC_CUSTOM_FILEDESCRIPTOR
Definition: config_protobuf.h:60
::google::protobuf::FieldDescriptor FieldDescriptor
Definition: config_protobuf.h:93
#define GRPC_CUSTOM_FILEDESCRIPTORPROTO
Definition: config_protobuf.h:61
::google::protobuf::DescriptorDatabase DescriptorDatabase
Definition: config_protobuf.h:92
#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM
Definition: config_protobuf.h:79
::google::protobuf::ServiceDescriptor ServiceDescriptor
Definition: config_protobuf.h:97
::google::protobuf::Descriptor Descriptor
Definition: config_protobuf.h:90
::google::protobuf::io::ZeroCopyOutputStream ZeroCopyOutputStream
Definition: config_protobuf.h:102
#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
Definition: config_protobuf.h:77
#define GRPC_CUSTOM_DESCRIPTORPOOL
Definition: config_protobuf.h:58
#define GRPC_CUSTOM_DESCRIPTORDATABASE
Definition: config_protobuf.h:69
::google::protobuf::DescriptorPool DescriptorPool
Definition: config_protobuf.h:91
::google::protobuf::Message Message
Definition: config_protobuf.h:87
::google::protobuf::io::CodedInputStream CodedInputStream
Definition: config_protobuf.h:104