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

Classes

class  Generator
 

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)
 
std::string EscapeDollor (const string &to_escape)
 
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)

Definition at line 593 of file php_generator.cc.

◆ ClassNamePrefix() [1/2]

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

Definition at line 203 of file php_generator.cc.

◆ ClassNamePrefix() [2/2]

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

Definition at line 153 of file php_generator.cc.

◆ ConstantNamePrefix()

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

Definition at line 216 of file php_generator.cc.

◆ DefaultForField() [1/2]

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

Definition at line 304 of file php_generator.cc.

◆ 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 
)

Definition at line 142 of file php_generator.cc.

◆ EnumOrMessageSuffix()

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

Definition at line 542 of file php_generator.cc.

◆ EscapeDollor()

std::string google::protobuf::compiler::php::EscapeDollor ( const string to_escape)

Definition at line 589 of file php_generator.cc.

◆ EscapePhpdoc()

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

Definition at line 1410 of file php_generator.cc.

◆ FilenameToClassname()

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

Definition at line 1046 of file php_generator.cc.

◆ FirstLineOf()

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

Definition at line 1497 of file php_generator.cc.

◆ FullClassName()

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

Definition at line 260 of file php_generator.cc.

◆ GenerateAddFileToPool()

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

Definition at line 932 of file php_generator.cc.

◆ GeneratedClassFileName()

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

Definition at line 387 of file php_generator.cc.

◆ GeneratedClassName() [1/3]

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

Definition at line 180 of file php_generator.cc.

◆ GeneratedClassName() [2/3]

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

Definition at line 184 of file php_generator.cc.

◆ GeneratedClassName() [3/3]

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

Definition at line 188 of file php_generator.cc.

◆ GeneratedClassNameImpl() [1/2]

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

Definition at line 164 of file php_generator.cc.

◆ GeneratedClassNameImpl() [2/2]

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

Definition at line 175 of file php_generator.cc.

◆ GeneratedMetadataFileName()

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

Definition at line 328 of file php_generator.cc.

◆ GenerateDocCommentBody()

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

Definition at line 1489 of file php_generator.cc.

◆ GenerateDocCommentBodyForLocation()

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

Definition at line 1452 of file php_generator.cc.

◆ GeneratedServiceFileName()

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

Definition at line 411 of file php_generator.cc.

◆ GenerateEnumDocComment()

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

Definition at line 1621 of file php_generator.cc.

◆ GenerateEnumFile()

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

Definition at line 1131 of file php_generator.cc.

◆ GenerateEnumToPool()

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

Definition at line 822 of file php_generator.cc.

◆ GenerateEnumValueDocComment()

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

Definition at line 1631 of file php_generator.cc.

◆ GenerateField()

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

Definition at line 623 of file php_generator.cc.

◆ GenerateFieldAccessor()

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

Definition at line 656 of file php_generator.cc.

◆ GenerateFieldDocComment()

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

Definition at line 1560 of file php_generator.cc.

◆ GenerateFile()

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

Definition at line 1391 of file php_generator.cc.

◆ GenerateHead()

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

Definition at line 1037 of file php_generator.cc.

◆ GenerateMessageConstructorDocComment()

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

Definition at line 1519 of file php_generator.cc.

◆ GenerateMessageDocComment()

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

Definition at line 1508 of file php_generator.cc.

◆ GenerateMessageFile()

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

Definition at line 1235 of file php_generator.cc.

◆ GenerateMessageToPool()

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

Definition at line 851 of file php_generator.cc.

◆ GenerateMetadataFile()

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

Definition at line 1057 of file php_generator.cc.

◆ GenerateOneofField()

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

Definition at line 648 of file php_generator.cc.

◆ GenerateServiceDocComment()

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

Definition at line 1550 of file php_generator.cc.

◆ GenerateServiceFile()

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

Definition at line 1344 of file php_generator.cc.

◆ GenerateServiceMethod()

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

Definition at line 841 of file php_generator.cc.

◆ GenerateServiceMethodDocComment()

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

Definition at line 1641 of file php_generator.cc.

◆ GenerateUseDeclaration()

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

Definition at line 1021 of file php_generator.cc.

◆ GenerateWrapperFieldGetterDocComment()

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

Definition at line 1586 of file php_generator.cc.

◆ GenerateWrapperFieldSetterDocComment()

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

Definition at line 1603 of file php_generator.cc.

◆ Indent()

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

Definition at line 614 of file php_generator.cc.

◆ IntToString()

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

Definition at line 422 of file php_generator.cc.

◆ IsWrapperType()

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

Definition at line 61 of file php_generator.h.

◆ LabelForField() [1/2]

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

Definition at line 428 of file php_generator.cc.

◆ 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 
)

Definition at line 270 of file php_generator.cc.

◆ LegacyGenerateClassFile()

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

Definition at line 1094 of file php_generator.cc.

◆ LegacyGeneratedClassFileName()

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

Definition at line 399 of file php_generator.cc.

◆ LegacyGeneratedClassName()

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

Definition at line 193 of file php_generator.cc.

◆ Outdent()

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

Definition at line 618 of file php_generator.cc.

◆ PhpGetterTypeName()

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

Definition at line 511 of file php_generator.cc.

◆ PhpName()

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

Definition at line 279 of file php_generator.cc.

◆ PhpSetterTypeName()

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

Definition at line 461 of file php_generator.cc.

◆ ReservedNamePrefix()

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

Definition at line 116 of file php_generator.cc.

◆ RootPhpNamespace()

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

Definition at line 244 of file php_generator.cc.

◆ TypeName() [1/2]

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

Definition at line 437 of file php_generator.cc.

◆ 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 
)

Definition at line 555 of file php_generator.cc.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09