Go to the documentation of this file.
37 return FEATURE_PROTO3_OPTIONAL;
44 if (
file->service_count() == 0) {
48 std::vector<std::pair<std::string, std::string> >
options;
51 bool generate_server =
false;
57 generate_server =
true;
64 for (
int i = 0;
i <
file->service_count();
i++) {
66 if (generate_server) {
86 std::unique_ptr<grpc::protobuf::io::ZeroCopyOutputStream>
output(
89 coded_out.WriteRaw(
code.data(),
code.size());
93 int main(
int argc,
char* argv[]) {
std::string GenerateFile(const FileDescriptor *file, const Parameters ¶ms)
GRPC_CUSTOM_FILEDESCRIPTOR FileDescriptor
bool Generate(const grpc::protobuf::FileDescriptor *file, const std::string ¶meter, grpc::protobuf::compiler::GeneratorContext *context, std::string *error) const override
std::string GenerateFile(const FileDescriptor *file, const ServiceDescriptor *service, const std::string &class_suffix, bool is_server)
std::string GetPHPServiceFilename(const grpc::protobuf::FileDescriptor *file, const grpc::protobuf::ServiceDescriptor *service, const std::string &class_suffix, bool is_server)
int main(int argc, char *argv[])
GRPC_CUSTOM_GENERATORCONTEXT GeneratorContext
static void ParseGeneratorParameter(const string ¶meter, std::vector< std::pair< string, string > > *options)
GRPC_CUSTOM_CODEGENERATOR CodeGenerator
uint64_t GetSupportedFeatures() const override
unsigned __int64 uint64_t
GRPC_CUSTOM_CODEDOUTPUTSTREAM CodedOutputStream
void GenerateService(const grpc::protobuf::FileDescriptor *file, const grpc::protobuf::ServiceDescriptor *service, const std::string &class_suffix, bool is_server, grpc::protobuf::compiler::GeneratorContext *context) const
static int PluginMain(int argc, char *argv[], const CodeGenerator *generator)
void ParseGeneratorParameter(const std::string &text, std::vector< std::pair< std::string, std::string > > *output)
grpc::ClientContext context
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:43