Lines Matching refs:FieldDescriptor
109 PyObject* cls, const FieldDescriptor* field_descriptor) {
191 const google::protobuf::FieldDescriptor* field = descriptor->extension(i);
413 const FieldDescriptor* field_descriptor,
433 const FieldDescriptor* field_descriptor) {
441 static int VisitCompositeField(const FieldDescriptor* descriptor,
444 if (descriptor->label() == FieldDescriptor::LABEL_REPEATED) {
445 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
463 } else if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
492 const FieldDescriptor* descriptor =
505 const FieldDescriptor* descriptor = cmessage::GetExtensionDescriptor(key);
652 bool AllowInvalidUTF8(const FieldDescriptor* field) { return false; }
654 PyObject* CheckString(PyObject* arg, const FieldDescriptor* descriptor) {
655 GOOGLE_DCHECK(descriptor->type() == FieldDescriptor::TYPE_STRING ||
656 descriptor->type() == FieldDescriptor::TYPE_BYTES);
657 if (descriptor->type() == FieldDescriptor::TYPE_STRING) {
679 if (descriptor->type() == FieldDescriptor::TYPE_STRING) {
698 const FieldDescriptor* descriptor,
725 PyObject* ToStringObject(const FieldDescriptor* descriptor, string value) {
726 if (descriptor->type() != FieldDescriptor::TYPE_STRING) {
742 bool CheckFieldBelongsToMessage(const FieldDescriptor* field_descriptor,
768 const FieldDescriptor* field) {
780 const FieldDescriptor* existing_field =
782 if (existing_field->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) {
809 const FieldDescriptor* parent_field) {
888 // Retrieve a C++ FieldDescriptor for a message attribute.
892 static const FieldDescriptor* GetFieldDescriptor(
900 const FieldDescriptor *field_descriptor =
909 // Retrieve a C++ FieldDescriptor for an extension handle.
910 const FieldDescriptor* GetExtensionDescriptor(PyObject* extension) {
924 static PyObject* GetIntegerEnumValue(const FieldDescriptor& descriptor,
955 const FieldDescriptor* field_descriptor,
1057 const FieldDescriptor* descriptor = GetFieldDescriptor(self, name);
1070 const FieldDescriptor* value_descriptor =
1072 if (value_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
1096 } else if (descriptor->label() == FieldDescriptor::LABEL_REPEATED) {
1101 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
1130 } else if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) {
1163 } else if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
1181 if (descriptor->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) {
1288 const FieldDescriptor* field_descriptor) {
1341 CMessage* self, const FieldDescriptor* field_descriptor) {
1346 if (field_descriptor->label() == FieldDescriptor::LABEL_REPEATED) {
1356 const FieldDescriptor* FindFieldWithOneofs(
1360 const FieldDescriptor* field_descriptor =
1375 bool CheckHasPresence(const FieldDescriptor* field_descriptor, bool in_oneof) {
1376 if (field_descriptor->label() == FieldDescriptor::LABEL_REPEATED) {
1398 if (field_descriptor->cpp_type() != FieldDescriptor::CPPTYPE_MESSAGE) {
1426 const FieldDescriptor* field_descriptor =
1445 field_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_ENUM) {
1465 const FieldDescriptor* descriptor = GetExtensionDescriptor(extension);
1477 const FieldDescriptor* descriptor = GetExtensionDescriptor(extension);
1537 const FieldDescriptor* field_descriptor) {
1558 const FieldDescriptor* field_descriptor) {
1576 const FieldDescriptor* field_descriptor,
1610 const FieldDescriptor* field_descriptor) {
1620 const FieldDescriptor* field_descriptor,
1630 const FieldDescriptor* descriptor) {
1655 const FieldDescriptor* field_descriptor =
1684 if (field_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_ENUM &&
1957 const FieldDescriptor* descriptor =
1978 const FieldDescriptor* existing_extension_descriptor =
2010 const FieldDescriptor* existing_extension_descriptor =
2036 descriptor->type() == FieldDescriptor::TYPE_MESSAGE &&
2037 descriptor->label() == FieldDescriptor::LABEL_OPTIONAL) {
2070 const FieldDescriptor* field_in_oneof =
2084 vector<const FieldDescriptor*> fields;
2227 const FieldDescriptor* field_descriptor) {
2236 case FieldDescriptor::CPPTYPE_INT32: {
2241 case FieldDescriptor::CPPTYPE_INT64: {
2246 case FieldDescriptor::CPPTYPE_UINT32: {
2251 case FieldDescriptor::CPPTYPE_UINT64: {
2256 case FieldDescriptor::CPPTYPE_FLOAT: {
2261 case FieldDescriptor::CPPTYPE_DOUBLE: {
2266 case FieldDescriptor::CPPTYPE_BOOL: {
2271 case FieldDescriptor::CPPTYPE_STRING: {
2276 case FieldDescriptor::CPPTYPE_ENUM: {
2310 CMessage* self, const FieldDescriptor* field_descriptor) {
2338 const FieldDescriptor* field_descriptor,
2347 case FieldDescriptor::CPPTYPE_INT32: {
2352 case FieldDescriptor::CPPTYPE_INT64: {
2357 case FieldDescriptor::CPPTYPE_UINT32: {
2362 case FieldDescriptor::CPPTYPE_UINT64: {
2367 case FieldDescriptor::CPPTYPE_FLOAT: {
2372 case FieldDescriptor::CPPTYPE_DOUBLE: {
2377 case FieldDescriptor::CPPTYPE_BOOL: {
2382 case FieldDescriptor::CPPTYPE_STRING: {
2389 case FieldDescriptor::CPPTYPE_ENUM: {
2418 const FieldDescriptor* field_descriptor,
2651 const FieldDescriptor* field_descriptor = GetFieldDescriptor(self, name);
2660 const FieldDescriptor* value_type = entry_type->FindFieldByName("value");
2661 if (value_type->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
2682 if (field_descriptor->label() == FieldDescriptor::LABEL_REPEATED) {
2684 if (field_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
2706 if (field_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
2727 const FieldDescriptor* field_descriptor = GetFieldDescriptor(self, name);
2730 if (field_descriptor->label() == FieldDescriptor::LABEL_REPEATED) {
2736 if (field_descriptor->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) {
3037 PyModule_AddObject(m, "FieldDescriptor", reinterpret_cast<PyObject*>(