Lines Matching refs:message2
488 protobuf::Message* message2) { in CrossOver() argument
491 std::unique_ptr<protobuf::Message> message2_copy(message2->New()); in CrossOver()
492 message2_copy->CopyFrom(*message2); in CrossOver()
494 CrossOverImpl(message1, message2); in CrossOver()
496 InitializeAndTrim(message2, kMaxInitializeDepth); in CrossOver()
497 assert(!keep_initialized_ || message2->IsInitialized()); in CrossOver()
508 protobuf::Message* message2) { in CrossOverImpl() argument
509 const Descriptor* descriptor = message2->GetDescriptor(); in CrossOverImpl()
510 const Reflection* reflection = message2->GetReflection(); in CrossOverImpl()
519 int field_size2 = reflection->FieldSize(*message2, field); in CrossOverImpl()
522 FieldInstance destination(message2, field, field_size2++); in CrossOverImpl()
526 assert(field_size2 == reflection->FieldSize(*message2, field)); in CrossOverImpl()
531 reflection->SwapElements(message2, field, j, j + k); in CrossOverImpl()
545 CrossOverImpl(reflection->GetRepeatedMessage(*message2, field, r), in CrossOverImpl()
546 reflection->MutableRepeatedMessage(message2, field, k)); in CrossOverImpl()
551 reflection->RemoveLast(message2, field); in CrossOverImpl()
552 assert(keep == reflection->FieldSize(*message2, field)); in CrossOverImpl()
557 DeleteField()(FieldInstance(message2, field)); in CrossOverImpl()
558 } else if (!reflection->HasField(*message2, field)) { in CrossOverImpl()
561 CopyField()(source, FieldInstance(message2, field)); in CrossOverImpl()
565 reflection->MutableMessage(message2, field)); in CrossOverImpl()
571 CopyField()(source, FieldInstance(message2, field)); in CrossOverImpl()
573 DeleteField()(FieldInstance(message2, field)); in CrossOverImpl()