Home
last modified time | relevance | path

Searched refs:enum_descriptor (Results 1 – 6 of 6) sorted by relevance

/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.cc132 string ClassName(const EnumDescriptor* enum_descriptor, bool qualified) { in ClassName() argument
133 if (enum_descriptor->containing_type() == NULL) { in ClassName()
135 return DotsToColons(enum_descriptor->full_name()); in ClassName()
137 return enum_descriptor->name(); in ClassName()
140 string result = ClassName(enum_descriptor->containing_type(), qualified); in ClassName()
142 result += enum_descriptor->name(); in ClassName()
Dcpp_helpers.h61 string ClassName(const EnumDescriptor* enum_descriptor, bool qualified);
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc324 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in PrintTopLevelEnums() local
325 PrintEnum(enum_descriptor); in PrintTopLevelEnums()
328 for (int j = 0; j < enum_descriptor.value_count(); ++j) { in PrintTopLevelEnums()
329 const EnumValueDescriptor& value_descriptor = *enum_descriptor.value(j); in PrintTopLevelEnums()
353 void Generator::PrintEnum(const EnumDescriptor& enum_descriptor) const { in PrintEnum()
355 m["descriptor_name"] = ModuleLevelDescriptorName(enum_descriptor); in PrintEnum()
356 m["name"] = enum_descriptor.name(); in PrintEnum()
357 m["full_name"] = enum_descriptor.full_name(); in PrintEnum()
367 enum_descriptor.options().SerializeToString(&options_string); in PrintEnum()
371 for (int i = 0; i < enum_descriptor.value_count(); ++i) { in PrintEnum()
[all …]
Dpython_generator.h78 void PrintEnum(const EnumDescriptor& enum_descriptor) const;
/external/protobuf/python/google/protobuf/
Dtext_format.py262 enum_descriptor = field.enum_type
265 enum_value = enum_descriptor.values_by_number.get(number, None)
269 enum_descriptor.full_name, number))
272 enum_value = enum_descriptor.values_by_name.get(identifier, None)
276 enum_descriptor.full_name, identifier))
/external/protobuf/src/google/protobuf/
Ddescriptor.cc228 const EnumDescriptor* enum_descriptor; member
253 CONSTRUCTOR(EnumDescriptor , ENUM , enum_descriptor ) in CONSTRUCTOR()
265 case ENUM : return enum_descriptor ->file(); in CONSTRUCTOR()
933 return (result.type == Symbol::ENUM) ? result.enum_descriptor : NULL; in FindEnumTypeByName()
1098 return result.enum_descriptor; in FindEnumTypeByName()
1156 return result.enum_descriptor; in FindEnumTypeByName()
3475 field->enum_type_ = type.enum_descriptor; in CrossLinkField()