Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/framework/
Dtypes_test.cc38 const auto* enum_descriptor = DataType_descriptor(); in TEST() local
44 << enum_descriptor->FindValueByNumber(e_ref - 1)->name() in TEST()
49 string enum_name = enum_descriptor->FindValueByNumber(e)->name(); in TEST()
50 string enum_ref_name = enum_descriptor->FindValueByNumber(e_ref)->name(); in TEST()
67 << "Should define " << enum_descriptor->FindValueByNumber(e)->name() in TEST()
71 << enum_descriptor->FindValueByNumber(e_ref)->name() in TEST()
81 << enum_descriptor->FindValueByNumber(e)->name() << " = " << e; in TEST()
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc467 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in PrintTopLevelEnums() local
468 PrintEnum(enum_descriptor); in PrintTopLevelEnums()
472 "name", ResolveKeyword(enum_descriptor.name()), "descriptor_name", in PrintTopLevelEnums()
473 ModuleLevelDescriptorName(enum_descriptor)); in PrintTopLevelEnums()
476 for (int j = 0; j < enum_descriptor.value_count(); ++j) { in PrintTopLevelEnums()
477 const EnumValueDescriptor& value_descriptor = *enum_descriptor.value(j); in PrintTopLevelEnums()
501 void Generator::PrintEnum(const EnumDescriptor& enum_descriptor) const { in PrintEnum()
504 ModuleLevelDescriptorName(enum_descriptor); in PrintEnum()
506 m["name"] = enum_descriptor.name(); in PrintEnum()
507 m["full_name"] = enum_descriptor.full_name(); in PrintEnum()
[all …]
Dpython_generator.h83 void PrintEnum(const EnumDescriptor& enum_descriptor) const;
/external/protobuf/python/google/protobuf/
Dsymbol_database.py93 def RegisterEnumDescriptor(self, enum_descriptor): argument
102 self.pool.AddEnumDescriptor(enum_descriptor)
103 return enum_descriptor
Dtext_format.py1754 enum_descriptor = field.enum_type
1759 enum_value = enum_descriptor.values_by_name.get(value, None)
1762 (enum_descriptor.full_name, value))
1770 enum_value = enum_descriptor.values_by_number.get(number, None)
1773 (enum_descriptor.full_name, number))
/external/rust/crates/protobuf/src/
Denums.rs20 self.enum_descriptor().value_by_number(self.value()) in descriptor()
24 fn enum_descriptor(&self) -> &'static EnumDescriptor { in enum_descriptor() method
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_enum_field.cc86 const EnumDescriptor* enum_descriptor, std::vector<string>* canonical_values) { in LoadEnumValues() argument
87 string enum_class_name = ClassName(params, enum_descriptor); in LoadEnumValues()
88 for (int i = 0; i < enum_descriptor->value_count(); i++) { in LoadEnumValues()
89 const EnumValueDescriptor* value = enum_descriptor->value(i); in LoadEnumValues()
91 enum_descriptor->FindValueByNumber(value->number()); in LoadEnumValues()
/external/perfetto/src/perfetto_cmd/
Dpbtxt_to_pb.cc352 const EnumDescriptorProto* enum_descriptor = name_to_enum_[type_name]; in IdentifierField() local
353 PERFETTO_CHECK(enum_descriptor); in IdentifierField()
357 enum_descriptor->value()) { in IdentifierField()
684 for (const EnumDescriptorProto& enum_descriptor : descriptor->enum_type()) { in AddNestedDescriptors() local
685 const std::string name = prefix + "." + enum_descriptor.name(); in AddNestedDescriptors()
686 (*name_to_enum)[name] = &enum_descriptor; in AddNestedDescriptors()
712 for (const auto& enum_descriptor : file_descriptor.enum_type()) { in PbtxtToPb() local
714 "." + file_descriptor.package() + "." + enum_descriptor.name(); in PbtxtToPb()
715 name_to_enum[name] = &enum_descriptor; in PbtxtToPb()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_pool.cc325 const EnumDescriptor* enum_descriptor = in FindEnumTypeByName() local
327 if (enum_descriptor == NULL) { in FindEnumTypeByName()
332 return PyEnumDescriptor_FromDescriptor(enum_descriptor); in FindEnumTypeByName()
521 const EnumDescriptor* enum_descriptor = in AddEnumDescriptor() local
523 if (!enum_descriptor) { in AddEnumDescriptor()
526 if (enum_descriptor != in AddEnumDescriptor()
528 enum_descriptor->full_name())) { in AddEnumDescriptor()
531 enum_descriptor->full_name().c_str()); in AddEnumDescriptor()
Drepeated_scalar_container.cc165 const EnumDescriptor* enum_descriptor = field_descriptor->enum_type(); in AssignItem() local
167 enum_descriptor->FindValueByNumber(value); in AssignItem()
397 const EnumDescriptor* enum_descriptor = field_descriptor->enum_type(); in Subscript() local
399 enum_descriptor->FindValueByNumber(value); in Subscript()
Ddescriptor.cc1052 namespace enum_descriptor { namespace
1186 enum_descriptor::Methods, // tp_methods
1188 enum_descriptor::Getters, // tp_getset
1193 const EnumDescriptor* enum_descriptor) { in PyEnumDescriptor_FromDescriptor() argument
1195 &PyEnumDescriptor_Type, enum_descriptor, NULL); in PyEnumDescriptor_FromDescriptor()
1885 const EnumDescriptor* enum_descriptor) { in AddEnumValues() argument
1886 for (int i = 0; i < enum_descriptor->value_count(); ++i) { in AddEnumValues()
1887 const EnumValueDescriptor* value = enum_descriptor->value(i); in AddEnumValues()
Ddescriptor_containers.h76 namespace enum_descriptor {
Dmessage.cc139 const EnumDescriptor* enum_descriptor = descriptor->enum_type(i); in AddDescriptors() local
141 PyEnumDescriptor_FromDescriptor(enum_descriptor)); in AddDescriptors()
152 cls, enum_descriptor->name().c_str(), wrapped.get()) == -1) { in AddDescriptors()
157 for (int j = 0; j < enum_descriptor->value_count(); ++j) { in AddDescriptors()
159 enum_descriptor->value(j); in AddDescriptors()
950 const EnumDescriptor* enum_descriptor = descriptor.enum_type(); in GetIntegerEnumValue() local
951 if (enum_descriptor == NULL) { in GetIntegerEnumValue()
961 enum_descriptor->FindValueByName(string(enum_label, size)); in GetIntegerEnumValue()
2323 const EnumDescriptor* enum_descriptor = field_descriptor->enum_type(); in InternalSetNonOneofScalar() local
2325 enum_descriptor->FindValueByNumber(value); in InternalSetNonOneofScalar()
Dmap_container.cc284 const EnumDescriptor* enum_descriptor = field_descriptor->enum_type(); in PythonToMapValueRef() local
286 enum_descriptor->FindValueByNumber(value); in PythonToMapValueRef()
Ddescriptor_containers.cc1313 namespace enum_descriptor { namespace
/external/python/apitools/apitools/base/protorpclite/
Ddescriptor.py291 enum_descriptor = EnumDescriptor()
292 enum_descriptor.name = enum_definition.definition_name().split('.')[-1]
300 enum_descriptor.values = values
302 return enum_descriptor
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Ddescriptor_test.py143 enum_descriptor = message_descriptor.enum_types_by_name["AnEnum"]
161 enum_options = enum_descriptor.GetOptions()
325 enum_descriptor = unittest_custom_options_pb2.AggregateEnum.DESCRIPTOR
326 enum_value_descriptor = enum_descriptor.values_by_name["VALUE"]
354 enum_descriptor.GetOptions().Extensions[
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_test.py147 enum_descriptor = message_descriptor.enum_types_by_name['AnEnum']
170 enum_options = enum_descriptor.GetOptions()
191 self.assertTrue(enum_descriptor.has_options)
352 enum_descriptor = unittest_custom_options_pb2.AggregateEnum.DESCRIPTOR
353 enum_value_descriptor = enum_descriptor.values_by_name["VALUE"]
381 enum_descriptor.GetOptions().Extensions[
440 enum_descriptor = message_descriptor.enum_types_by_name['NestedEnum']
457 enum_descriptor.has_options = False
625 enum_descriptor = unittest_pb2.DESCRIPTOR.enum_types_by_name[
627 self.assertEqual(None, enum_descriptor.containing_type)
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.cc310 std::string ClassName(const EnumDescriptor* enum_descriptor) { in ClassName() argument
311 if (enum_descriptor->containing_type() == nullptr) { in ClassName()
312 return ResolveKeyword(enum_descriptor->name()); in ClassName()
314 return ClassName(enum_descriptor->containing_type()) + "_" + in ClassName()
315 enum_descriptor->name(); in ClassName()
Dcpp_helpers.h100 std::string ClassName(const EnumDescriptor* enum_descriptor);
/external/protobuf/ruby/ext/google/protobuf_c/
Dmessage.c801 VALUE enum_descriptor(VALUE self) { in enum_descriptor() function
825 rb_define_singleton_method(mod, "descriptor", enum_descriptor, 0); in build_module_from_enumdesc()
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc226 const EnumDescriptor* enum_descriptor) { in GetEnumPathPrefix() argument
227 return GetPrefix(options, enum_descriptor->file(), in GetEnumPathPrefix()
228 enum_descriptor->containing_type()); in GetEnumPathPrefix()
234 const EnumDescriptor* enum_descriptor) { in GetEnumPath() argument
235 return GetEnumPathPrefix(options, enum_descriptor) + enum_descriptor->name(); in GetEnumPath()
/external/protobuf/src/google/protobuf/
Ddescriptor.cc96 const EnumDescriptor* enum_descriptor; member
120 CONSTRUCTOR(EnumDescriptor, ENUM, enum_descriptor) in CONSTRUCTOR()
138 return enum_descriptor->file(); in CONSTRUCTOR()
1466 return (result.type == Symbol::ENUM) ? result.enum_descriptor : nullptr; in FindEnumTypeByName()
1686 return result.enum_descriptor; in FindEnumTypeByName()
1748 return result.enum_descriptor; in FindEnumTypeByName()
5596 field->enum_type_ = type.enum_descriptor; in CrossLinkField()
7192 enum_type_ = result.enum_descriptor; in InternalTypeOnceInit()
/external/tensorflow/tensorflow/lite/toco/
Dimport_tensorflow.cc997 const auto* enum_descriptor = tensorflow::DataType_descriptor(); in ConvertDepthToSpaceOperator() local
999 << enum_descriptor->FindValueByNumber(dtype)->name() << ". " in ConvertDepthToSpaceOperator()
1020 const auto* enum_descriptor = tensorflow::DataType_descriptor(); in ConvertSpaceToDepthOperator() local
1022 << enum_descriptor->FindValueByNumber(dtype)->name() << ". " in ConvertSpaceToDepthOperator()
/external/protobuf/php/ext/google/protobuf/
Ddef.c274 DEFINE_CLASS(EnumDescriptor, enum_descriptor,