Go to the documentation of this file.
35 #ifndef GOOGLE_PROTOBUF_COMPILER_CSHARP_HELPERS_H__
36 #define GOOGLE_PROTOBUF_COMPILER_CSHARP_HELPERS_H__
39 #include <google/protobuf/port.h>
40 #include <google/protobuf/stubs/common.h>
41 #include <google/protobuf/descriptor.pb.h>
42 #include <google/protobuf/descriptor.h>
43 #include <google/protobuf/compiler/code_generator.h>
44 #include <google/protobuf/io/printer.h>
46 #include <google/protobuf/port_def.inc>
54 class FieldGeneratorBase;
94 bool preserve_period);
133 return descriptor->name() ==
"google/protobuf/descriptor.proto";
142 return name ==
"google.protobuf.FileOptions" ||
143 name ==
"google.protobuf.MessageOptions" ||
144 name ==
"google.protobuf.FieldOptions" ||
145 name ==
"google.protobuf.OneofOptions" ||
146 name ==
"google.protobuf.EnumOptions" ||
147 name ==
"google.protobuf.EnumValueOptions" ||
148 name ==
"google.protobuf.ServiceOptions" ||
149 name ==
"google.protobuf.MethodOptions";
154 descriptor->message_type()->file()->name() ==
"google/protobuf/wrappers.proto";
193 #include <google/protobuf/port_undef.inc>
195 #endif // GOOGLE_PROTOBUF_COMPILER_CSHARP_HELPERS_H__
std::string GetFieldConstantName(const FieldDescriptor *field)
std::string GetClassName(const Descriptor *descriptor)
bool RequiresPresenceBit(const FieldDescriptor *descriptor)
std::string StringToBase64(const std::string &input)
std::string GetFullExtensionName(const FieldDescriptor *descriptor)
std::string StripDotProto(const std::string &proto_file)
int GetFixedSize(FieldDescriptor::Type type)
CSharpType GetCSharpType(FieldDescriptor::Type type)
bool IsDescriptorOptionMessage(const Descriptor *descriptor)
std::string UnderscoresToPascalCase(const std::string &input)
bool IsProto2(const FileDescriptor *descriptor)
std::string GetFieldName(const FieldDescriptor *descriptor)
bool IsDescriptorProto(const FileDescriptor *descriptor)
std::string GetReflectionClassUnqualifiedName(const FileDescriptor *descriptor)
std::string GetPropertyName(const FieldDescriptor *descriptor)
uint GetGroupEndTag(const Descriptor *descriptor)
const FieldDescriptor * field
std::string FileDescriptorToBase64(const FileDescriptor *descriptor)
bool IsNullable(const FieldDescriptor *descriptor)
bool IsMapEntryMessage(const Descriptor *descriptor)
bool IsWrapperType(const FieldDescriptor *descriptor)
std::string GetExtensionClassUnqualifiedName(const FileDescriptor *descriptor)
std::string UnderscoresToCamelCase(const std::string &input, bool cap_next_letter, bool preserve_period)
bool SupportsPresenceApi(const FieldDescriptor *descriptor)
std::string GetEnumValueName(const std::string &enum_name, const std::string &enum_value_name)
FieldGeneratorBase * CreateFieldGenerator(const FieldDescriptor *descriptor, int presenceIndex, const Options *options)
static const char descriptor[1336]
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:07