/external/tensorflow/tensorflow/core/framework/ |
D | types_test.cc | 39 const auto* enum_descriptor = DataType_descriptor(); in TEST() local 45 << enum_descriptor->FindValueByNumber(e_ref - 1)->name() in TEST() 50 string enum_name = enum_descriptor->FindValueByNumber(e)->name(); in TEST() 51 string enum_ref_name = enum_descriptor->FindValueByNumber(e_ref)->name(); in TEST() 68 << "Should define " << enum_descriptor->FindValueByNumber(e)->name() in TEST() 72 << enum_descriptor->FindValueByNumber(e_ref)->name() in TEST() 82 << enum_descriptor->FindValueByNumber(e)->name() << " = " << e; in TEST()
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 421 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in PrintTopLevelEnums() local 422 PrintEnum(enum_descriptor); in PrintTopLevelEnums() 425 "name", enum_descriptor.name(), in PrintTopLevelEnums() 427 ModuleLevelDescriptorName(enum_descriptor)); in PrintTopLevelEnums() 430 for (int j = 0; j < enum_descriptor.value_count(); ++j) { in PrintTopLevelEnums() 431 const EnumValueDescriptor& value_descriptor = *enum_descriptor.value(j); in PrintTopLevelEnums() 455 void Generator::PrintEnum(const EnumDescriptor& enum_descriptor) const { in PrintEnum() 458 ModuleLevelDescriptorName(enum_descriptor); in PrintEnum() 460 m["name"] = enum_descriptor.name(); in PrintEnum() 461 m["full_name"] = enum_descriptor.full_name(); in PrintEnum() [all …]
|
D | python_generator.h | 79 void PrintEnum(const EnumDescriptor& enum_descriptor) const;
|
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor_pool.cc | 281 const EnumDescriptor* enum_descriptor = in FindEnumTypeByName() local 283 if (enum_descriptor == NULL) { in FindEnumTypeByName() 288 return PyEnumDescriptor_FromDescriptor(enum_descriptor); in FindEnumTypeByName() 367 const EnumDescriptor* enum_descriptor = in AddEnumDescriptor() local 369 if (!enum_descriptor) { in AddEnumDescriptor() 372 if (enum_descriptor != in AddEnumDescriptor() 373 self->pool->FindEnumTypeByName(enum_descriptor->full_name())) { in AddEnumDescriptor() 376 enum_descriptor->full_name().c_str()); in AddEnumDescriptor()
|
D | descriptor.cc | 967 namespace enum_descriptor { namespace 1094 enum_descriptor::Methods, // tp_getset 1096 enum_descriptor::Getters, // tp_getset 1101 const EnumDescriptor* enum_descriptor) { in PyEnumDescriptor_FromDescriptor() argument 1103 &PyEnumDescriptor_Type, enum_descriptor, NULL); in PyEnumDescriptor_FromDescriptor() 1509 const EnumDescriptor* enum_descriptor) { in AddEnumValues() argument 1510 for (int i = 0; i < enum_descriptor->value_count(); ++i) { in AddEnumValues() 1511 const EnumValueDescriptor* value = enum_descriptor->value(i); in AddEnumValues()
|
D | repeated_scalar_container.cc | 165 const EnumDescriptor* enum_descriptor = field_descriptor->enum_type(); in AssignItem() local 167 enum_descriptor->FindValueByNumber(value); in AssignItem() 408 const EnumDescriptor* enum_descriptor = field_descriptor->enum_type(); in Append() local 410 enum_descriptor->FindValueByNumber(value); in Append()
|
D | descriptor_containers.h | 75 namespace enum_descriptor {
|
D | message.cc | 152 const EnumDescriptor* enum_descriptor = descriptor->enum_type(i); in AddDescriptors() local 154 PyEnumDescriptor_FromDescriptor(enum_descriptor)); in AddDescriptors() 165 cls, enum_descriptor->name().c_str(), wrapped.get()) == -1) { in AddDescriptors() 170 for (int j = 0; j < enum_descriptor->value_count(); ++j) { in AddDescriptors() 172 enum_descriptor->value(j); in AddDescriptors() 927 const EnumDescriptor* enum_descriptor = descriptor.enum_type(); in CheckAndGetInteger() local 928 if (enum_descriptor == NULL) { in CheckAndGetInteger() 938 enum_descriptor->FindValueByName(string(enum_label, size)); in CheckAndGetInteger() 2394 const EnumDescriptor* enum_descriptor = field_descriptor->enum_type(); in CheckAndGetInteger() local 2396 enum_descriptor->FindValueByNumber(value); in CheckAndGetInteger()
|
D | map_container.cc | 288 const EnumDescriptor* enum_descriptor = field_descriptor->enum_type(); in PythonToMapValueRef() local 290 enum_descriptor->FindValueByNumber(value); in PythonToMapValueRef()
|
D | descriptor_containers.cc | 1286 namespace enum_descriptor { namespace
|
/external/protobuf/python/google/protobuf/ |
D | symbol_database.py | 100 def RegisterEnumDescriptor(self, enum_descriptor): argument 109 self.pool.AddEnumDescriptor(enum_descriptor) 110 return enum_descriptor
|
D | text_format.py | 1202 enum_descriptor = field.enum_type 1207 enum_value = enum_descriptor.values_by_name.get(value, None) 1211 enum_descriptor.full_name, value)) 1214 enum_value = enum_descriptor.values_by_number.get(number, None) 1218 enum_descriptor.full_name, number))
|
/external/perfetto/src/perfetto_cmd/ |
D | pbtxt_to_pb.cc | 299 const EnumDescriptorProto* enum_descriptor = name_to_enum_[type_name]; in IdentifierField() local 300 PERFETTO_CHECK(enum_descriptor); in IdentifierField() 304 enum_descriptor->value()) { in IdentifierField() 618 for (const EnumDescriptorProto& enum_descriptor : descriptor->enum_type()) { in AddNestedDescriptors() local 619 const std::string name = prefix + "." + enum_descriptor.name(); in AddNestedDescriptors() 620 (*name_to_enum)[name] = &enum_descriptor; in AddNestedDescriptors() 646 for (const auto& enum_descriptor : file_descriptor.enum_type()) { in PbtxtToPb() local 648 "." + file_descriptor.package() + "." + enum_descriptor.name(); in PbtxtToPb() 649 name_to_enum[name] = &enum_descriptor; in PbtxtToPb()
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_enum_field.cc | 86 const EnumDescriptor* enum_descriptor, 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/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_helpers.cc | 155 string ClassName(const EnumDescriptor* enum_descriptor, bool qualified) { in ClassName() argument 156 if (enum_descriptor->containing_type() == NULL) { in ClassName() 158 return "::" + DotsToColons(enum_descriptor->full_name()); in ClassName() 160 return enum_descriptor->name(); in ClassName() 163 string result = ClassName(enum_descriptor->containing_type(), qualified); in ClassName() 165 result += enum_descriptor->name(); in ClassName()
|
D | cpp_helpers.h | 68 string ClassName(const EnumDescriptor* enum_descriptor, bool qualified);
|
/external/python/apitools/apitools/base/protorpclite/ |
D | descriptor.py | 291 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/google/protobuf/internal/ |
D | descriptor_test.py | 143 enum_descriptor = message_descriptor.enum_types_by_name["AnEnum"] 161 enum_options = enum_descriptor.GetOptions() 330 enum_descriptor = unittest_custom_options_pb2.AggregateEnum.DESCRIPTOR 331 enum_value_descriptor = enum_descriptor.values_by_name["VALUE"] 359 enum_descriptor.GetOptions().Extensions[
|
/external/protobuf/ruby/ext/google/protobuf_c/ |
D | message.c | 530 VALUE enum_descriptor(VALUE self) { in enum_descriptor() function 555 rb_define_singleton_method(mod, "descriptor", enum_descriptor, 0); in build_module_from_enumdesc()
|
/external/protobuf/src/google/protobuf/compiler/js/ |
D | js_generator.cc | 249 const EnumDescriptor* enum_descriptor) { in GetPath() argument 251 options, enum_descriptor->file(), in GetPath() 252 enum_descriptor->containing_type()) + enum_descriptor->name(); in GetPath()
|
/external/protobuf/src/google/protobuf/ |
D | descriptor.cc | 274 const EnumDescriptor* enum_descriptor; member 300 CONSTRUCTOR(EnumDescriptor , ENUM , enum_descriptor ) in CONSTRUCTOR() 313 case ENUM : return enum_descriptor ->file(); in CONSTRUCTOR() 1247 return (result.type == Symbol::ENUM) ? result.enum_descriptor : NULL; in FindEnumTypeByName() 1427 return result.enum_descriptor; in FindEnumTypeByName() 1490 return result.enum_descriptor; in FindEnumTypeByName() 4906 field->enum_type_ = type.enum_descriptor; in CrossLinkField()
|
/external/tensorflow/tensorflow/lite/toco/ |
D | import_tensorflow.cc | 788 const auto* enum_descriptor = tensorflow::DataType_descriptor(); in ConvertSpaceToDepthOperator() local 790 << enum_descriptor->FindValueByNumber(dtype)->name() << ". " in ConvertSpaceToDepthOperator()
|