Functions
grpc_php_generator Namespace Reference

Functions

std::string GenerateFile (const FileDescriptor *file, const ServiceDescriptor *service, const std::string &class_suffix, bool is_server)
 
std::string GenerateFile (const grpc::protobuf::FileDescriptor *file, const grpc::protobuf::ServiceDescriptor *service, const std::string &class_suffix, bool is_server=false)
 
template<typename DescriptorType >
std::string GetPHPComments (const DescriptorType *desc, std::string prefix)
 
std::string GetPHPServiceClassname (const grpc::protobuf::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)
 
std::string ReplaceAll (std::string s, const std::string &search, const std::string &replace)
 

Function Documentation

◆ GenerateFile() [1/2]

std::string grpc_php_generator::GenerateFile ( const FileDescriptor file,
const ServiceDescriptor *  service,
const std::string &  class_suffix,
bool  is_server 
)

Definition at line 313 of file src/compiler/php_generator.cc.

◆ GenerateFile() [2/2]

std::string grpc_php_generator::GenerateFile ( const grpc::protobuf::FileDescriptor file,
const grpc::protobuf::ServiceDescriptor service,
const std::string &  class_suffix,
bool  is_server = false 
)

◆ GetPHPComments()

template<typename DescriptorType >
std::string grpc_php_generator::GetPHPComments ( const DescriptorType *  desc,
std::string  prefix 
)
inline

Definition at line 70 of file php_generator_helpers.h.

◆ GetPHPServiceClassname()

std::string grpc_php_generator::GetPHPServiceClassname ( const grpc::protobuf::ServiceDescriptor service,
const std::string &  class_suffix,
bool  is_server 
)
inline

Definition at line 29 of file php_generator_helpers.h.

◆ GetPHPServiceFilename()

std::string grpc_php_generator::GetPHPServiceFilename ( const grpc::protobuf::FileDescriptor file,
const grpc::protobuf::ServiceDescriptor service,
const std::string &  class_suffix,
bool  is_server 
)
inline

Definition at line 48 of file php_generator_helpers.h.

◆ ReplaceAll()

std::string grpc_php_generator::ReplaceAll ( std::string  s,
const std::string &  search,
const std::string &  replace 
)
inline

Definition at line 38 of file php_generator_helpers.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40