Classes | Enumerations | Functions | Variables
google::protobuf::compiler::csharp Namespace Reference

Classes

class  EnumFieldGenerator
 
class  EnumGenerator
 
class  EnumOneofFieldGenerator
 
class  FieldGeneratorBase
 
class  Generator
 
class  MapFieldGenerator
 
class  MessageFieldGenerator
 
class  MessageGenerator
 
class  MessageOneofFieldGenerator
 
struct  Options
 
class  PrimitiveFieldGenerator
 
class  PrimitiveOneofFieldGenerator
 
class  ReflectionClassGenerator
 
class  RepeatedEnumFieldGenerator
 
class  RepeatedMessageFieldGenerator
 
class  RepeatedPrimitiveFieldGenerator
 
class  SourceGeneratorBase
 
class  WrapperFieldGenerator
 
class  WrapperOneofFieldGenerator
 

Enumerations

enum  CSharpType {
  CSHARPTYPE_INT32 = 1, CSHARPTYPE_INT64 = 2, CSHARPTYPE_UINT32 = 3, CSHARPTYPE_UINT64 = 4,
  CSHARPTYPE_FLOAT = 5, CSHARPTYPE_DOUBLE = 6, CSHARPTYPE_BOOL = 7, CSHARPTYPE_STRING = 8,
  CSHARPTYPE_BYTESTRING = 9, CSHARPTYPE_MESSAGE = 10, CSHARPTYPE_ENUM = 11, MAX_CSHARPTYPE = 11
}
 

Functions

bool AllPrintableAscii (const std::string &text)
 
bool CompareFieldNumbers (const FieldDescriptor *d1, const FieldDescriptor *d2)
 
FieldGeneratorBaseCreateFieldGenerator (const FieldDescriptor *descriptor, int presenceIndex, const Options *options)
 
std::string FileDescriptorToBase64 (const FileDescriptor *descriptor)
 
void GenerateFile (const FileDescriptor *file, io::Printer *printer, const Options *options)
 
std::string GetClassName (const Descriptor *descriptor)
 
std::string GetClassName (const EnumDescriptor *descriptor)
 
CSharpType GetCSharpType (FieldDescriptor::Type type)
 
std::string GetEnumValueName (const std::string &enum_name, const std::string &enum_value_name)
 
std::string GetExtensionClassUnqualifiedName (const FileDescriptor *descriptor)
 
std::string GetFieldConstantName (const FieldDescriptor *field)
 
std::string GetFieldName (const FieldDescriptor *descriptor)
 
std::string GetFileNameBase (const FileDescriptor *descriptor)
 
std::string GetFileNamespace (const FileDescriptor *descriptor)
 
int GetFixedSize (FieldDescriptor::Type type)
 
std::string GetFullExtensionName (const FieldDescriptor *descriptor)
 
uint GetGroupEndTag (const Descriptor *descriptor)
 
std::string GetOutputFile (const FileDescriptor *descriptor, const std::string file_extension, const bool generate_directories, const std::string base_namespace, string *error)
 
string PROTOC_EXPORT GetOutputFile (const FileDescriptor *descriptor, const string file_extension, const bool generate_directories, const string base_namespace, string *error)
 
std::string GetPropertyName (const FieldDescriptor *descriptor)
 
std::string GetReflectionClassName (const FileDescriptor *descriptor)
 
std::string GetReflectionClassUnqualifiedName (const FileDescriptor *descriptor)
 
bool IsDescriptorOptionMessage (const Descriptor *descriptor)
 
bool IsDescriptorProto (const FileDescriptor *descriptor)
 
bool IsMapEntryMessage (const Descriptor *descriptor)
 
bool IsNullable (const FieldDescriptor *descriptor)
 
bool IsProto2 (const FileDescriptor *descriptor)
 
bool IsWrapperType (const FieldDescriptor *descriptor)
 
std::string ShoutyToPascalCase (const std::string &input)
 
std::string StringToBase64 (const std::string &input)
 
std::string StripDotProto (const std::string &proto_file)
 
std::string ToCSharpName (const std::string &name, const FileDescriptor *file)
 
std::string TryRemovePrefix (const std::string &prefix, const std::string &value)
 
std::string UnderscoresToCamelCase (const std::string &input, bool cap_next_letter)
 
std::string UnderscoresToCamelCase (const std::string &input, bool cap_next_letter, bool preserve_period)
 
std::string UnderscoresToPascalCase (const std::string &input)
 
template<typename DescriptorType >
static void WriteDocCommentBody (io::Printer *printer, const DescriptorType *descriptor)
 
void WriteDocCommentBodyImpl (io::Printer *printer, SourceLocation location)
 
void WriteEnumDocComment (io::Printer *printer, const EnumDescriptor *enumDescriptor)
 
void WriteEnumValueDocComment (io::Printer *printer, const EnumValueDescriptor *value)
 
void WriteMessageDocComment (io::Printer *printer, const Descriptor *message)
 
void WriteMethodDocComment (io::Printer *printer, const MethodDescriptor *method)
 
void WritePropertyDocComment (io::Printer *printer, const FieldDescriptor *field)
 

Variables

static const char base64_chars []
 

Enumeration Type Documentation

◆ CSharpType

Enumerator
CSHARPTYPE_INT32 
CSHARPTYPE_INT64 
CSHARPTYPE_UINT32 
CSHARPTYPE_UINT64 
CSHARPTYPE_FLOAT 
CSHARPTYPE_DOUBLE 
CSHARPTYPE_BOOL 
CSHARPTYPE_STRING 
CSHARPTYPE_BYTESTRING 
CSHARPTYPE_MESSAGE 
CSHARPTYPE_ENUM 
MAX_CSHARPTYPE 

Definition at line 56 of file csharp_helpers.h.

Function Documentation

◆ AllPrintableAscii()

bool google::protobuf::compiler::csharp::AllPrintableAscii ( const std::string text)

Definition at line 296 of file csharp_field_base.cc.

◆ CompareFieldNumbers()

bool google::protobuf::compiler::csharp::CompareFieldNumbers ( const FieldDescriptor d1,
const FieldDescriptor d2 
)

Definition at line 57 of file csharp_message.cc.

◆ CreateFieldGenerator()

FieldGeneratorBase * google::protobuf::compiler::csharp::CreateFieldGenerator ( const FieldDescriptor descriptor,
int  presenceIndex,
const Options options 
)

Definition at line 479 of file csharp_helpers.cc.

◆ FileDescriptorToBase64()

std::string google::protobuf::compiler::csharp::FileDescriptorToBase64 ( const FileDescriptor descriptor)

Definition at line 471 of file csharp_helpers.cc.

◆ GenerateFile()

void google::protobuf::compiler::csharp::GenerateFile ( const FileDescriptor file,
io::Printer printer,
const Options options 
)

Definition at line 51 of file csharp_generator.cc.

◆ GetClassName() [1/2]

string PROTOC_EXPORT google::protobuf::compiler::csharp::GetClassName ( const Descriptor descriptor)

Definition at line 333 of file csharp_helpers.cc.

◆ GetClassName() [2/2]

std::string google::protobuf::compiler::csharp::GetClassName ( const EnumDescriptor descriptor)

Definition at line 337 of file csharp_helpers.cc.

◆ GetCSharpType()

CSharpType google::protobuf::compiler::csharp::GetCSharpType ( FieldDescriptor::Type  type)

Definition at line 63 of file csharp_helpers.cc.

◆ GetEnumValueName()

std::string PROTOC_EXPORT google::protobuf::compiler::csharp::GetEnumValueName ( const std::string enum_name,
const std::string enum_value_name 
)

Definition at line 274 of file csharp_helpers.cc.

◆ GetExtensionClassUnqualifiedName()

std::string google::protobuf::compiler::csharp::GetExtensionClassUnqualifiedName ( const FileDescriptor descriptor)

Definition at line 136 of file csharp_helpers.cc.

◆ GetFieldConstantName()

std::string google::protobuf::compiler::csharp::GetFieldConstantName ( const FieldDescriptor field)

Definition at line 352 of file csharp_helpers.cc.

◆ GetFieldName()

std::string google::protobuf::compiler::csharp::GetFieldName ( const FieldDescriptor descriptor)

Definition at line 344 of file csharp_helpers.cc.

◆ GetFileNameBase()

std::string google::protobuf::compiler::csharp::GetFileNameBase ( const FileDescriptor descriptor)

Definition at line 123 of file csharp_helpers.cc.

◆ GetFileNamespace()

string PROTOC_EXPORT google::protobuf::compiler::csharp::GetFileNamespace ( const FileDescriptor descriptor)

Definition at line 114 of file csharp_helpers.cc.

◆ GetFixedSize()

int google::protobuf::compiler::csharp::GetFixedSize ( FieldDescriptor::Type  type)

Definition at line 407 of file csharp_helpers.cc.

◆ GetFullExtensionName()

std::string google::protobuf::compiler::csharp::GetFullExtensionName ( const FieldDescriptor descriptor)

Definition at line 324 of file csharp_helpers.cc.

◆ GetGroupEndTag()

uint google::protobuf::compiler::csharp::GetGroupEndTag ( const Descriptor descriptor)

Definition at line 285 of file csharp_helpers.cc.

◆ GetOutputFile() [1/2]

std::string google::protobuf::compiler::csharp::GetOutputFile ( const FileDescriptor descriptor,
const std::string  file_extension,
const bool  generate_directories,
const std::string  base_namespace,
string error 
)

Definition at line 371 of file csharp_helpers.cc.

◆ GetOutputFile() [2/2]

string PROTOC_EXPORT google::protobuf::compiler::csharp::GetOutputFile ( const FileDescriptor descriptor,
const string  file_extension,
const bool  generate_directories,
const string  base_namespace,
string error 
)

◆ GetPropertyName()

std::string google::protobuf::compiler::csharp::GetPropertyName ( const FieldDescriptor descriptor)

Definition at line 356 of file csharp_helpers.cc.

◆ GetReflectionClassName()

string PROTOC_EXPORT google::protobuf::compiler::csharp::GetReflectionClassName ( const FileDescriptor descriptor)

Definition at line 315 of file csharp_helpers.cc.

◆ GetReflectionClassUnqualifiedName()

std::string google::protobuf::compiler::csharp::GetReflectionClassUnqualifiedName ( const FileDescriptor descriptor)

Definition at line 130 of file csharp_helpers.cc.

◆ IsDescriptorOptionMessage()

bool google::protobuf::compiler::csharp::IsDescriptorOptionMessage ( const Descriptor descriptor)
inline

Definition at line 136 of file csharp_helpers.h.

◆ IsDescriptorProto()

bool google::protobuf::compiler::csharp::IsDescriptorProto ( const FileDescriptor descriptor)
inline

Definition at line 131 of file csharp_helpers.h.

◆ IsMapEntryMessage()

bool google::protobuf::compiler::csharp::IsMapEntryMessage ( const Descriptor descriptor)
inline

Definition at line 121 of file csharp_helpers.h.

◆ IsNullable()

bool google::protobuf::compiler::csharp::IsNullable ( const FieldDescriptor descriptor)

Definition at line 529 of file csharp_helpers.cc.

◆ IsProto2()

bool google::protobuf::compiler::csharp::IsProto2 ( const FileDescriptor descriptor)
inline

Definition at line 156 of file csharp_helpers.h.

◆ IsWrapperType()

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

Definition at line 151 of file csharp_helpers.h.

◆ ShoutyToPascalCase()

std::string google::protobuf::compiler::csharp::ShoutyToPascalCase ( const std::string input)

Definition at line 197 of file csharp_helpers.cc.

◆ StringToBase64()

std::string google::protobuf::compiler::csharp::StringToBase64 ( const std::string input)

Definition at line 440 of file csharp_helpers.cc.

◆ StripDotProto()

std::string google::protobuf::compiler::csharp::StripDotProto ( const std::string proto_file)

Definition at line 109 of file csharp_helpers.cc.

◆ ToCSharpName()

std::string google::protobuf::compiler::csharp::ToCSharpName ( const std::string name,
const FileDescriptor file 
)

Definition at line 298 of file csharp_helpers.cc.

◆ TryRemovePrefix()

std::string google::protobuf::compiler::csharp::TryRemovePrefix ( const std::string prefix,
const std::string value 
)

Definition at line 227 of file csharp_helpers.cc.

◆ UnderscoresToCamelCase() [1/2]

std::string google::protobuf::compiler::csharp::UnderscoresToCamelCase ( const std::string input,
bool  cap_next_letter 
)
inline

Definition at line 95 of file csharp_helpers.h.

◆ UnderscoresToCamelCase() [2/2]

std::string google::protobuf::compiler::csharp::UnderscoresToCamelCase ( const std::string input,
bool  cap_next_letter,
bool  preserve_period 
)

Definition at line 143 of file csharp_helpers.cc.

◆ UnderscoresToPascalCase()

std::string google::protobuf::compiler::csharp::UnderscoresToPascalCase ( const std::string input)

Definition at line 183 of file csharp_helpers.cc.

◆ WriteDocCommentBody()

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

Definition at line 85 of file csharp_doc_comment.cc.

◆ WriteDocCommentBodyImpl()

void google::protobuf::compiler::csharp::WriteDocCommentBodyImpl ( io::Printer printer,
SourceLocation  location 
)

Definition at line 49 of file csharp_doc_comment.cc.

◆ WriteEnumDocComment()

void google::protobuf::compiler::csharp::WriteEnumDocComment ( io::Printer printer,
const EnumDescriptor enumDescriptor 
)

Definition at line 101 of file csharp_doc_comment.cc.

◆ WriteEnumValueDocComment()

void google::protobuf::compiler::csharp::WriteEnumValueDocComment ( io::Printer printer,
const EnumValueDescriptor value 
)

Definition at line 104 of file csharp_doc_comment.cc.

◆ WriteMessageDocComment()

void google::protobuf::compiler::csharp::WriteMessageDocComment ( io::Printer printer,
const Descriptor message 
)

Definition at line 93 of file csharp_doc_comment.cc.

◆ WriteMethodDocComment()

void google::protobuf::compiler::csharp::WriteMethodDocComment ( io::Printer printer,
const MethodDescriptor method 
)

Definition at line 108 of file csharp_doc_comment.cc.

◆ WritePropertyDocComment()

void google::protobuf::compiler::csharp::WritePropertyDocComment ( io::Printer printer,
const FieldDescriptor field 
)

Definition at line 97 of file csharp_doc_comment.cc.

Variable Documentation

◆ base64_chars

const char google::protobuf::compiler::csharp::base64_chars[]
static
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Definition at line 437 of file csharp_helpers.cc.



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