Searched refs:new_message (Results 1 – 6 of 6) sorted by relevance
54 DescriptorProto *new_message) { in StripMessage() argument55 for (int i = new_message->mutable_field()->size() - 1; i >= 0; i--) { in StripMessage()58 new_message->mutable_field()->DeleteSubrange(i, 1); in StripMessage()61 for (int i = new_message->mutable_extension()->size() - 1; i >= 0; i--) { in StripMessage()62 auto field_type_name = new_message->mutable_extension(i)->type_name(); in StripMessage()66 new_message->mutable_extension()->DeleteSubrange(i, 1); in StripMessage()69 for (int i = 0; i < new_message->mutable_nested_type()->size(); i++) { in StripMessage()71 new_message->mutable_nested_type(i)); in StripMessage()
107 $new_message = new $message_name();108 $new_message->mergeFromString($payloads->offsetGet($i));109 array_push($message_list, $new_message);
1537 CMessage* new_message = cmessage::NewEmptyMessage(self->GetMessageClass()); in InternalReparentFields() local1538 if (new_message == nullptr) { in InternalReparentFields()1541 new_message->message = self->message->New(); in InternalReparentFields()1542 ScopedPyObjectPtr holder(reinterpret_cast<PyObject*>(new_message)); in InternalReparentFields()1543 new_message->child_submessages = new CMessage::SubMessagesMap(); in InternalReparentFields()1544 new_message->composite_fields = new CMessage::CompositeFieldsMap(); in InternalReparentFields()1554 Py_INCREF(new_message); in InternalReparentFields()1556 to_release->parent = new_message; in InternalReparentFields()1558 new_message->child_submessages->emplace(to_release->message, to_release); in InternalReparentFields()1563 Py_INCREF(new_message); in InternalReparentFields()[all …]
185 ScopedPyObjectPtr new_message(Add(self, NULL, NULL)); in Extend() local186 if (new_message == NULL) { in Extend()189 CMessage* new_cmessage = reinterpret_cast<CMessage*>(new_message.get()); in Extend()
281 proto3_preserve_unknown_enum_unittest::MyMessage new_message; in TEST() local284 const Reflection* new_reflection = new_message.GetReflection(); in TEST()
448 new_message = missing_enum_values_pb2.TestEnumValues()449 new_message.ParseFromString(self.missing_message.SerializeToString())450 self.assertEqual(self.message, new_message)