Classes | Functions
google::protobuf::compiler::php Namespace Reference

Classes

class  Generator
 
struct  Options
 

Functions

std::string BinaryToHex (const string &binary)
 
std::string ClassNamePrefix (const string &classname)
 
template<typename DescriptorType >
std::string ClassNamePrefix (const string &classname, const DescriptorType *desc)
 
std::string ConstantNamePrefix (const string &classname)
 
std::string DefaultForField (const FieldDescriptor *field)
 
std::string DefaultForField (FieldDescriptor *field)
 
template<typename DescriptorType >
std::string DescriptorFullName (const DescriptorType *desc, bool is_descriptor)
 
std::string EnumOrMessageSuffix (const FieldDescriptor *field, bool is_descriptor)
 
static string EscapePhpdoc (const string &input)
 
std::string FilenameToClassname (const string &filename)
 
static string FirstLineOf (const string &value)
 
template<typename DescriptorType >
std::string FullClassName (const DescriptorType *desc, bool is_descriptor)
 
void GenerateAddFileToPool (const FileDescriptor *file, bool is_descriptor, io::Printer *printer)
 
template<typename DescriptorType >
std::string GeneratedClassFileName (const DescriptorType *desc, bool is_descriptor)
 
std::string GeneratedClassName (const Descriptor *desc)
 
std::string GeneratedClassName (const EnumDescriptor *desc)
 
std::string GeneratedClassName (const ServiceDescriptor *desc)
 
template<typename DescriptorType >
std::string GeneratedClassNameImpl (const DescriptorType *desc)
 
std::string GeneratedClassNameImpl (const ServiceDescriptor *desc)
 
std::string GeneratedMetadataFileName (const FileDescriptor *file, bool is_descriptor)
 
template<typename DescriptorType >
static void GenerateDocCommentBody (io::Printer *printer, const DescriptorType *descriptor)
 
static void GenerateDocCommentBodyForLocation (io::Printer *printer, const SourceLocation &location, bool trailingNewline, int indentCount)
 
std::string GeneratedServiceFileName (const ServiceDescriptor *service, bool is_descriptor)
 
void GenerateEnumDocComment (io::Printer *printer, const EnumDescriptor *enum_, int is_descriptor)
 
void GenerateEnumFile (const FileDescriptor *file, const EnumDescriptor *en, bool is_descriptor, GeneratorContext *generator_context)
 
void GenerateEnumToPool (const EnumDescriptor *en, io::Printer *printer)
 
void GenerateEnumValueDocComment (io::Printer *printer, const EnumValueDescriptor *value)
 
void GenerateField (const FieldDescriptor *field, io::Printer *printer, bool is_descriptor)
 
void GenerateFieldAccessor (const FieldDescriptor *field, bool is_descriptor, io::Printer *printer)
 
void GenerateFieldDocComment (io::Printer *printer, const FieldDescriptor *field, int is_descriptor, int function_type)
 
void GenerateFile (const FileDescriptor *file, bool is_descriptor, GeneratorContext *generator_context)
 
void GenerateHead (const FileDescriptor *file, io::Printer *printer)
 
void GenerateMessageConstructorDocComment (io::Printer *printer, const Descriptor *message, int is_descriptor)
 
void GenerateMessageDocComment (io::Printer *printer, const Descriptor *message, int is_descriptor)
 
void GenerateMessageFile (const FileDescriptor *file, const Descriptor *message, bool is_descriptor, GeneratorContext *generator_context)
 
void GenerateMessageToPool (const string &name_prefix, const Descriptor *message, io::Printer *printer)
 
void GenerateMetadataFile (const FileDescriptor *file, bool is_descriptor, GeneratorContext *generator_context)
 
void GenerateOneofField (const OneofDescriptor *oneof, io::Printer *printer)
 
void GenerateServiceDocComment (io::Printer *printer, const ServiceDescriptor *service)
 
void GenerateServiceFile (const FileDescriptor *file, const ServiceDescriptor *service, bool is_descriptor, GeneratorContext *generator_context)
 
void GenerateServiceMethod (const MethodDescriptor *method, io::Printer *printer)
 
void GenerateServiceMethodDocComment (io::Printer *printer, const MethodDescriptor *method)
 
void GenerateUseDeclaration (bool is_descriptor, io::Printer *printer)
 
void GenerateWrapperFieldGetterDocComment (io::Printer *printer, const FieldDescriptor *field)
 
void GenerateWrapperFieldSetterDocComment (io::Printer *printer, const FieldDescriptor *field)
 
void Indent (io::Printer *printer)
 
std::string IntToString (int32 value)
 
bool IsWrapperType (const FieldDescriptor *descriptor)
 
std::string LabelForField (const FieldDescriptor *field)
 
std::string LabelForField (FieldDescriptor *field)
 
template<typename DescriptorType >
std::string LegacyFullClassName (const DescriptorType *desc, bool is_descriptor)
 
template<typename DescriptorType >
void LegacyGenerateClassFile (const FileDescriptor *file, const DescriptorType *desc, bool is_descriptor, GeneratorContext *generator_context)
 
template<typename DescriptorType >
std::string LegacyGeneratedClassFileName (const DescriptorType *desc, bool is_descriptor)
 
template<typename DescriptorType >
std::string LegacyGeneratedClassName (const DescriptorType *desc)
 
void Outdent (io::Printer *printer)
 
std::string PhpGetterTypeName (const FieldDescriptor *field, bool is_descriptor)
 
std::string PhpName (const std::string &full_name, bool is_descriptor)
 
std::string PhpSetterTypeName (const FieldDescriptor *field, bool is_descriptor)
 
std::string ReservedNamePrefix (const string &classname, const FileDescriptor *file)
 
template<typename DescriptorType >
std::string RootPhpNamespace (const DescriptorType *desc, bool is_descriptor)
 
std::string TypeName (const FieldDescriptor *field)
 
std::string TypeName (FieldDescriptor *field)
 
std::string UnderscoresToCamelCase (const string &name, bool cap_first_letter)
 

Function Documentation

◆ BinaryToHex()

std::string google::protobuf::compiler::php::BinaryToHex ( const string &  binary)

◆ ClassNamePrefix() [1/2]

std::string google::protobuf::compiler::php::ClassNamePrefix ( const string &  classname)

◆ ClassNamePrefix() [2/2]

template<typename DescriptorType >
std::string google::protobuf::compiler::php::ClassNamePrefix ( const string &  classname,
const DescriptorType *  desc 
)

◆ ConstantNamePrefix()

std::string google::protobuf::compiler::php::ConstantNamePrefix ( const string &  classname)

◆ DefaultForField() [1/2]

std::string google::protobuf::compiler::php::DefaultForField ( const FieldDescriptor field)

◆ DefaultForField() [2/2]

std::string google::protobuf::compiler::php::DefaultForField ( FieldDescriptor field)

◆ DescriptorFullName()

template<typename DescriptorType >
std::string google::protobuf::compiler::php::DescriptorFullName ( const DescriptorType *  desc,
bool  is_descriptor 
)

◆ EnumOrMessageSuffix()

std::string google::protobuf::compiler::php::EnumOrMessageSuffix ( const FieldDescriptor field,
bool  is_descriptor 
)

◆ EscapePhpdoc()

static string google::protobuf::compiler::php::EscapePhpdoc ( const string &  input)
static

◆ FilenameToClassname()

std::string google::protobuf::compiler::php::FilenameToClassname ( const string &  filename)

◆ FirstLineOf()

static string google::protobuf::compiler::php::FirstLineOf ( const string &  value)
static

◆ FullClassName()

template<typename DescriptorType >
std::string google::protobuf::compiler::php::FullClassName ( const DescriptorType *  desc,
bool  is_descriptor 
)

◆ GenerateAddFileToPool()

void google::protobuf::compiler::php::GenerateAddFileToPool ( const FileDescriptor file,
bool  is_descriptor,
io::Printer printer 
)

◆ GeneratedClassFileName()

template<typename DescriptorType >
std::string google::protobuf::compiler::php::GeneratedClassFileName ( const DescriptorType *  desc,
bool  is_descriptor 
)

◆ GeneratedClassName() [1/3]

PROTOC_EXPORT std::string google::protobuf::compiler::php::GeneratedClassName ( const Descriptor desc)

◆ GeneratedClassName() [2/3]

PROTOC_EXPORT std::string google::protobuf::compiler::php::GeneratedClassName ( const EnumDescriptor desc)

◆ GeneratedClassName() [3/3]

PROTOC_EXPORT std::string google::protobuf::compiler::php::GeneratedClassName ( const ServiceDescriptor desc)

◆ GeneratedClassNameImpl() [1/2]

template<typename DescriptorType >
std::string google::protobuf::compiler::php::GeneratedClassNameImpl ( const DescriptorType *  desc)

◆ GeneratedClassNameImpl() [2/2]

std::string google::protobuf::compiler::php::GeneratedClassNameImpl ( const ServiceDescriptor desc)

◆ GeneratedMetadataFileName()

std::string google::protobuf::compiler::php::GeneratedMetadataFileName ( const FileDescriptor file,
bool  is_descriptor 
)

◆ GenerateDocCommentBody()

template<typename DescriptorType >
static void google::protobuf::compiler::php::GenerateDocCommentBody ( io::Printer printer,
const DescriptorType *  descriptor 
)
static

◆ GenerateDocCommentBodyForLocation()

static void google::protobuf::compiler::php::GenerateDocCommentBodyForLocation ( io::Printer printer,
const SourceLocation location,
bool  trailingNewline,
int  indentCount 
)
static

◆ GeneratedServiceFileName()

std::string google::protobuf::compiler::php::GeneratedServiceFileName ( const ServiceDescriptor service,
bool  is_descriptor 
)

◆ GenerateEnumDocComment()

void google::protobuf::compiler::php::GenerateEnumDocComment ( io::Printer printer,
const EnumDescriptor enum_,
int  is_descriptor 
)

◆ GenerateEnumFile()

void google::protobuf::compiler::php::GenerateEnumFile ( const FileDescriptor file,
const EnumDescriptor en,
bool  is_descriptor,
GeneratorContext generator_context 
)

◆ GenerateEnumToPool()

void google::protobuf::compiler::php::GenerateEnumToPool ( const EnumDescriptor en,
io::Printer printer 
)

◆ GenerateEnumValueDocComment()

void google::protobuf::compiler::php::GenerateEnumValueDocComment ( io::Printer printer,
const EnumValueDescriptor value 
)

◆ GenerateField()

void google::protobuf::compiler::php::GenerateField ( const FieldDescriptor field,
io::Printer printer,
bool  is_descriptor 
)

◆ GenerateFieldAccessor()

void google::protobuf::compiler::php::GenerateFieldAccessor ( const FieldDescriptor field,
bool  is_descriptor,
io::Printer printer 
)

◆ GenerateFieldDocComment()

void google::protobuf::compiler::php::GenerateFieldDocComment ( io::Printer printer,
const FieldDescriptor field,
int  is_descriptor,
int  function_type 
)

◆ GenerateFile()

void google::protobuf::compiler::php::GenerateFile ( const FileDescriptor file,
bool  is_descriptor,
GeneratorContext generator_context 
)

◆ GenerateHead()

void google::protobuf::compiler::php::GenerateHead ( const FileDescriptor file,
io::Printer printer 
)

◆ GenerateMessageConstructorDocComment()

void google::protobuf::compiler::php::GenerateMessageConstructorDocComment ( io::Printer printer,
const Descriptor message,
int  is_descriptor 
)

◆ GenerateMessageDocComment()

void google::protobuf::compiler::php::GenerateMessageDocComment ( io::Printer printer,
const Descriptor message,
int  is_descriptor 
)

◆ GenerateMessageFile()

void google::protobuf::compiler::php::GenerateMessageFile ( const FileDescriptor file,
const Descriptor message,
bool  is_descriptor,
GeneratorContext generator_context 
)

◆ GenerateMessageToPool()

void google::protobuf::compiler::php::GenerateMessageToPool ( const string &  name_prefix,
const Descriptor message,
io::Printer printer 
)

◆ GenerateMetadataFile()

void google::protobuf::compiler::php::GenerateMetadataFile ( const FileDescriptor file,
bool  is_descriptor,
GeneratorContext generator_context 
)

◆ GenerateOneofField()

void google::protobuf::compiler::php::GenerateOneofField ( const OneofDescriptor oneof,
io::Printer printer 
)

◆ GenerateServiceDocComment()

void google::protobuf::compiler::php::GenerateServiceDocComment ( io::Printer printer,
const ServiceDescriptor service 
)

◆ GenerateServiceFile()

void google::protobuf::compiler::php::GenerateServiceFile ( const FileDescriptor file,
const ServiceDescriptor service,
bool  is_descriptor,
GeneratorContext generator_context 
)

◆ GenerateServiceMethod()

void google::protobuf::compiler::php::GenerateServiceMethod ( const MethodDescriptor method,
io::Printer printer 
)

◆ GenerateServiceMethodDocComment()

void google::protobuf::compiler::php::GenerateServiceMethodDocComment ( io::Printer printer,
const MethodDescriptor method 
)

◆ GenerateUseDeclaration()

void google::protobuf::compiler::php::GenerateUseDeclaration ( bool  is_descriptor,
io::Printer printer 
)

◆ GenerateWrapperFieldGetterDocComment()

void google::protobuf::compiler::php::GenerateWrapperFieldGetterDocComment ( io::Printer printer,
const FieldDescriptor field 
)

◆ GenerateWrapperFieldSetterDocComment()

void google::protobuf::compiler::php::GenerateWrapperFieldSetterDocComment ( io::Printer printer,
const FieldDescriptor field 
)

◆ Indent()

void google::protobuf::compiler::php::Indent ( io::Printer printer)

◆ IntToString()

std::string google::protobuf::compiler::php::IntToString ( int32  value)

◆ IsWrapperType()

bool google::protobuf::compiler::php::IsWrapperType ( const FieldDescriptor descriptor)
inline

◆ LabelForField() [1/2]

std::string google::protobuf::compiler::php::LabelForField ( const FieldDescriptor field)

◆ LabelForField() [2/2]

std::string google::protobuf::compiler::php::LabelForField ( FieldDescriptor field)

◆ LegacyFullClassName()

template<typename DescriptorType >
std::string google::protobuf::compiler::php::LegacyFullClassName ( const DescriptorType *  desc,
bool  is_descriptor 
)

◆ LegacyGenerateClassFile()

template<typename DescriptorType >
void google::protobuf::compiler::php::LegacyGenerateClassFile ( const FileDescriptor file,
const DescriptorType *  desc,
bool  is_descriptor,
GeneratorContext generator_context 
)

◆ LegacyGeneratedClassFileName()

template<typename DescriptorType >
std::string google::protobuf::compiler::php::LegacyGeneratedClassFileName ( const DescriptorType *  desc,
bool  is_descriptor 
)

◆ LegacyGeneratedClassName()

template<typename DescriptorType >
std::string google::protobuf::compiler::php::LegacyGeneratedClassName ( const DescriptorType *  desc)

◆ Outdent()

void google::protobuf::compiler::php::Outdent ( io::Printer printer)

◆ PhpGetterTypeName()

std::string google::protobuf::compiler::php::PhpGetterTypeName ( const FieldDescriptor field,
bool  is_descriptor 
)

◆ PhpName()

std::string google::protobuf::compiler::php::PhpName ( const std::string &  full_name,
bool  is_descriptor 
)

◆ PhpSetterTypeName()

std::string google::protobuf::compiler::php::PhpSetterTypeName ( const FieldDescriptor field,
bool  is_descriptor 
)

◆ ReservedNamePrefix()

std::string google::protobuf::compiler::php::ReservedNamePrefix ( const string &  classname,
const FileDescriptor file 
)

◆ RootPhpNamespace()

template<typename DescriptorType >
std::string google::protobuf::compiler::php::RootPhpNamespace ( const DescriptorType *  desc,
bool  is_descriptor 
)

◆ TypeName() [1/2]

std::string google::protobuf::compiler::php::TypeName ( const FieldDescriptor field)

◆ TypeName() [2/2]

std::string google::protobuf::compiler::php::TypeName ( FieldDescriptor field)

◆ UnderscoresToCamelCase()

std::string google::protobuf::compiler::php::UnderscoresToCamelCase ( const string &  name,
bool  cap_first_letter 
)


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