Home
last modified time | relevance | path

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

/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc454 const FieldDescriptor& extension_field = *file_->extension(i); in PrintTopLevelExtensions() local
455 string constant_name = extension_field.name() + "_FIELD_NUMBER"; in PrintTopLevelExtensions()
459 "number", SimpleItoa(extension_field.number())); in PrintTopLevelExtensions()
460 printer_->Print("$name$ = ", "name", extension_field.name()); in PrintTopLevelExtensions()
461 PrintFieldDescriptor(extension_field, is_extension); in PrintTopLevelExtensions()
920 const FieldDescriptor& extension_field) const { in FixForeignFieldsInExtension()
921 GOOGLE_CHECK(extension_field.is_extension()); in FixForeignFieldsInExtension()
924 FixForeignFieldsInField(extension_field.extension_scope(), extension_field, in FixForeignFieldsInExtension()
933 *extension_field.containing_type()); in FixForeignFieldsInExtension()
934 m["field"] = FieldReferencingExpression(extension_field.extension_scope(), in FixForeignFieldsInExtension()
[all …]
Dpython_generator.h123 const FieldDescriptor& extension_field) const;
/external/protobuf/python/google/protobuf/internal/
Dcpp_message.py423 for extension_name, extension_field in extension_dict.iteritems():
425 dictionary[extension_name] = extension_field
661 for extension_name, extension_field in extension_dict.iteritems():
663 setattr(cls, constant_name, extension_field.number)
Dpython_message.py240 for extension_name, extension_field in extension_dict.iteritems():
242 dictionary[extension_name] = extension_field
549 for extension_name, extension_field in extension_dict.iteritems():
551 setattr(cls, constant_name, extension_field.number)
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc1521 PyObject* extension_field = PyDict_GetItemString(extensions_by_name, in CheckAndGetInteger() local
1523 if (extension_field == NULL) { in CheckAndGetInteger()
1537 PyObject* extension = PyObject_GetItem(extensions, extension_field); in CheckAndGetInteger()
1542 Py_INCREF(extension_field); in CheckAndGetInteger()
1543 PyTuple_SET_ITEM(t.get(), 0, extension_field); in CheckAndGetInteger()
1990 PyObject* extension_field; in CheckAndGetInteger() local
1992 while (PyDict_Next(extension_dict, &pos, &extension_name, &extension_field)) { in CheckAndGetInteger()
1994 extension_name, extension_field) == -1) { in CheckAndGetInteger()
1998 PyObject_GetAttrString(extension_field, "_cdescriptor")); in CheckAndGetInteger()
2004 Py_INCREF(extension_field); in CheckAndGetInteger()
[all …]
/external/nanopb-c/generator/google/protobuf/internal/
Dpython_message.py228 for extension_name, extension_field in extension_dict.iteritems():
230 dictionary[extension_name] = extension_field
523 for extension_name, extension_field in extension_dict.iteritems():
525 setattr(cls, constant_name, extension_field.number)