#ifndef GRPC_INTERNAL_COMPILER_PYTHON_GENERATOR_HELPERS_H
#define GRPC_INTERNAL_COMPILER_PYTHON_GENERATOR_HELPERS_H
#include <cstring>
#include <fstream>
#include <iostream>
#include <vector>
#include "src/compiler/config.h"
#include "src/compiler/generator_helpers.h"
#include "src/compiler/python_generator.h"
#include "src/compiler/python_private_generator.h"
Descriptor;
FileDescriptor;
MethodDescriptor;
ServiceDescriptor;
GeneratorContext;
CodedOutputStream;
Printer;
StringOutputStream;
ZeroCopyOutputStream;
StringReplace;
StripProto;
vector;
namespace grpc_python_generator {
namespace {
DescriptorVector;
StringVector;
static std::string StripModulePrefixes(
const std::string& raw_module_name,
const std::vector<std::string>& prefixes_to_filter) { … }
std::string ModuleName(const std::string& filename,
const std::string& import_prefix,
const std::vector<std::string>& prefixes_to_filter) { … }
std::string ModuleAlias(const std::string& filename,
const std::string& import_prefix,
const std::vector<std::string>& prefixes_to_filter) { … }
bool GetModuleAndMessagePath(
const Descriptor* type, std::string* out, std::string generator_file_name,
bool generate_in_pb2_grpc, std::string& import_prefix,
const std::vector<std::string>& prefixes_to_filter) { … }
template <typename DescriptorType>
StringVector get_all_comments(const DescriptorType* descriptor) { … }
inline void Split(const std::string& s, char delim,
std::vector<std::string>* append_to) { … }
}
}
#endif