chromium/third_party/grpc/src/include/grpcpp/impl/codegen/config_protobuf.h

//
//
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//

#ifndef GRPCPP_IMPL_CODEGEN_CONFIG_PROTOBUF_H
#define GRPCPP_IMPL_CODEGEN_CONFIG_PROTOBUF_H

// IWYU pragma: private

#define GRPC_OPEN_SOURCE_PROTO

#ifndef GRPC_CUSTOM_MESSAGE
#ifdef GRPC_USE_PROTO_LITE
#include <google/protobuf/message_lite.h>
#define GRPC_CUSTOM_MESSAGE
#define GRPC_CUSTOM_MESSAGELITE
#else
#include <google/protobuf/message.h>
#define GRPC_CUSTOM_MESSAGE
#define GRPC_CUSTOM_MESSAGELITE
#endif
#endif

#ifndef GRPC_CUSTOM_DESCRIPTOR
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor.pb.h>
#define GRPC_CUSTOM_DESCRIPTOR
#define GRPC_CUSTOM_DESCRIPTORPOOL
#define GRPC_CUSTOM_FIELDDESCRIPTOR
#define GRPC_CUSTOM_FILEDESCRIPTOR
#define GRPC_CUSTOM_FILEDESCRIPTORPROTO
#define GRPC_CUSTOM_METHODDESCRIPTOR
#define GRPC_CUSTOM_SERVICEDESCRIPTOR
#define GRPC_CUSTOM_SOURCELOCATION
#endif

#ifndef GRPC_CUSTOM_DESCRIPTORDATABASE
#include <google/protobuf/descriptor_database.h>
#define GRPC_CUSTOM_DESCRIPTORDATABASE
#define GRPC_CUSTOM_SIMPLEDESCRIPTORDATABASE
#endif

#ifndef GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream.h>
#define GRPC_CUSTOM_ZEROCOPYOUTPUTSTREAM
#define GRPC_CUSTOM_ZEROCOPYINPUTSTREAM
#define GRPC_CUSTOM_CODEDINPUTSTREAM
#endif

#ifndef GRPC_CUSTOM_JSONUTIL
#include <google/protobuf/util/json_util.h>
#include <google/protobuf/util/type_resolver_util.h>
#define GRPC_CUSTOM_JSONUTIL
#define GRPC_CUSTOM_UTIL_STATUS
#endif

namespace grpc {
namespace protobuf {

Message;
MessageLite;

Descriptor;
DescriptorPool;
DescriptorDatabase;
FieldDescriptor;
FileDescriptor;
FileDescriptorProto;
MethodDescriptor;
ServiceDescriptor;
SimpleDescriptorDatabase;
SourceLocation;

namespace util {
Status;
}  // namespace util

// NOLINTNEXTLINE(misc-unused-alias-decls)
json;

namespace io {
ZeroCopyOutputStream;
ZeroCopyInputStream;
CodedInputStream;
}  // namespace io

}  // namespace protobuf
}  // namespace grpc

#endif  // GRPCPP_IMPL_CODEGEN_CONFIG_PROTOBUF_H