HasField 234 third_party/protobuf/python/google/protobuf/pyext/python-proto2.cc CMETHOD(HasField, METH_O, HasField 602 third_party/protobuf/python/google/protobuf/pyext/python-proto2.cc if (!message->GetReflection()->HasField(*message, field_descriptor)) { HasField 1034 third_party/protobuf/python/google/protobuf/pyext/python-proto2.cc message->GetReflection()->HasField(*message, field_descriptor); HasField 1064 third_party/protobuf/python/google/protobuf/pyext/python-proto2.cc message->GetReflection()->HasField(*message, field_descriptor); HasField 404 third_party/protobuf/src/google/protobuf/generated_message_reflection.cc USAGE_CHECK_MESSAGE_TYPE(HasField); HasField 405 third_party/protobuf/src/google/protobuf/generated_message_reflection.cc USAGE_CHECK_SINGULAR(HasField); HasField 146 third_party/protobuf/src/google/protobuf/generated_message_reflection.h bool HasField(const Message& message, const FieldDescriptor* field) const; HasField 468 third_party/protobuf/src/google/protobuf/generated_message_reflection_unittest.cc reflection->HasField( HasField 379 third_party/protobuf/src/google/protobuf/message.h virtual bool HasField(const Message& message, HasField 146 third_party/protobuf/src/google/protobuf/reflection_ops.cc if (!reflection->HasField(message, descriptor->field(i))) { HasField 232 third_party/protobuf/src/google/protobuf/reflection_ops.cc if (!reflection->HasField(message, descriptor->field(i))) { HasField 2391 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_int32" ))); HasField 2392 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_int64" ))); HasField 2393 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_uint32" ))); HasField 2394 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_uint64" ))); HasField 2395 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_sint32" ))); HasField 2396 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_sint64" ))); HasField 2397 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_fixed32" ))); HasField 2398 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_fixed64" ))); HasField 2399 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_sfixed32"))); HasField 2400 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_sfixed64"))); HasField 2401 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_float" ))); HasField 2402 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_double" ))); HasField 2403 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_bool" ))); HasField 2404 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_string" ))); HasField 2405 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_bytes" ))); HasField 2407 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optionalgroup" ))); HasField 2408 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_nested_message" ))); HasField 2409 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_foreign_message" ))); HasField 2410 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_import_message" ))); HasField 2411 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_public_import_message"))); HasField 2412 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_lazy_message" ))); HasField 2415 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(sub_message->GetReflection()->HasField(*sub_message, group_a_)); HasField 2417 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(sub_message->GetReflection()->HasField(*sub_message, nested_b_)); HasField 2419 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(sub_message->GetReflection()->HasField(*sub_message, foreign_c_)); HasField 2421 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(sub_message->GetReflection()->HasField(*sub_message, import_d_)); HasField 2423 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(sub_message->GetReflection()->HasField(*sub_message, import_e_)); HasField 2425 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(sub_message->GetReflection()->HasField(*sub_message, nested_b_)); HasField 2427 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_nested_enum" ))); HasField 2428 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_foreign_enum"))); HasField 2429 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_import_enum" ))); HasField 2431 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_string_piece"))); HasField 2432 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("optional_cord"))); HasField 2608 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_int32" ))); HasField 2609 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_int64" ))); HasField 2610 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_uint32" ))); HasField 2611 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_uint64" ))); HasField 2612 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_sint32" ))); HasField 2613 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_sint64" ))); HasField 2614 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_fixed32" ))); HasField 2615 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_fixed64" ))); HasField 2616 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_sfixed32"))); HasField 2617 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_sfixed64"))); HasField 2618 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_float" ))); HasField 2619 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_double" ))); HasField 2620 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_bool" ))); HasField 2621 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_string" ))); HasField 2622 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_bytes" ))); HasField 2624 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_nested_enum" ))); HasField 2625 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_foreign_enum"))); HasField 2626 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_import_enum" ))); HasField 2628 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_string_piece"))); HasField 2629 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_TRUE(reflection->HasField(message, F("default_cord"))); HasField 2723 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_int32" ))); HasField 2724 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_int64" ))); HasField 2725 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_uint32" ))); HasField 2726 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_uint64" ))); HasField 2727 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_sint32" ))); HasField 2728 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_sint64" ))); HasField 2729 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_fixed32" ))); HasField 2730 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_fixed64" ))); HasField 2731 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_sfixed32"))); HasField 2732 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_sfixed64"))); HasField 2733 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_float" ))); HasField 2734 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_double" ))); HasField 2735 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_bool" ))); HasField 2736 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_string" ))); HasField 2737 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_bytes" ))); HasField 2739 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optionalgroup" ))); HasField 2740 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_nested_message" ))); HasField 2741 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_foreign_message"))); HasField 2742 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_import_message" ))); HasField 2743 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_public_import_message"))); HasField 2744 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_lazy_message"))); HasField 2746 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_nested_enum" ))); HasField 2747 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_foreign_enum"))); HasField 2748 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_import_enum" ))); HasField 2750 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_string_piece"))); HasField 2751 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("optional_cord"))); HasField 2775 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(sub_message->GetReflection()->HasField(*sub_message, group_a_)); HasField 2778 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(sub_message->GetReflection()->HasField(*sub_message, nested_b_)); HasField 2781 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(sub_message->GetReflection()->HasField(*sub_message, foreign_c_)); HasField 2784 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(sub_message->GetReflection()->HasField(*sub_message, import_d_)); HasField 2787 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(sub_message->GetReflection()->HasField(*sub_message, import_e_)); HasField 2790 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(sub_message->GetReflection()->HasField(*sub_message, nested_b_)); HasField 2834 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_int32" ))); HasField 2835 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_int64" ))); HasField 2836 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_uint32" ))); HasField 2837 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_uint64" ))); HasField 2838 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_sint32" ))); HasField 2839 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_sint64" ))); HasField 2840 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_fixed32" ))); HasField 2841 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_fixed64" ))); HasField 2842 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_sfixed32"))); HasField 2843 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_sfixed64"))); HasField 2844 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_float" ))); HasField 2845 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_double" ))); HasField 2846 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_bool" ))); HasField 2847 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_string" ))); HasField 2848 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_bytes" ))); HasField 2850 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_nested_enum" ))); HasField 2851 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_foreign_enum"))); HasField 2852 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_import_enum" ))); HasField 2854 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_string_piece"))); HasField 2855 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(message, F("default_cord"))); HasField 3042 third_party/protobuf/src/google/protobuf/test_util.cc EXPECT_FALSE(reflection->HasField(*message, F(fields[i]))); HasField 398 third_party/protobuf/src/google/protobuf/text_format.cc !field->is_repeated() && reflection->HasField(*message, field)) { HasField 1219 third_party/protobuf/src/google/protobuf/text_format.cc } else if (reflection->HasField(message, field)) { HasField 452 third_party/protobuf/src/google/protobuf/wire_format.cc } else if (message_reflection->HasField(message, field)) { HasField 616 third_party/protobuf/src/google/protobuf/wire_format.cc } else if (message_reflection->HasField(message, field)) { HasField 644 third_party/protobuf/src/google/protobuf/wire_format.cc } else if (message_reflection->HasField(message, field)) {