Home
last modified time | relevance | path

Searched refs:HasField (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dtype_resolver_util_test.cc80 bool HasField(const Type& type, const string& name) { in HasField() function in google::protobuf::util::__anonb745a2840111::DescriptorPoolTypeResolverTest
84 bool HasField(const Type& type, Field::Cardinality cardinality, in HasField() function in google::protobuf::util::__anonb745a2840111::DescriptorPoolTypeResolverTest
164 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
166 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
168 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
170 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
172 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
174 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
176 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
178 EXPECT_TRUE(HasField(type, Field::CARDINALITY_OPTIONAL, in TEST_F()
[all …]
Dfield_mask_util.cc384 if (source_reflection->HasField(source, field)) { \ in MergeMessage()
406 if (source_reflection->HasField(source, field)) { in MergeMessage()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dtest_util.py388 test_case.assertTrue(message.HasField('optional_int32'))
389 test_case.assertTrue(message.HasField('optional_int64'))
390 test_case.assertTrue(message.HasField('optional_uint32'))
391 test_case.assertTrue(message.HasField('optional_uint64'))
392 test_case.assertTrue(message.HasField('optional_sint32'))
393 test_case.assertTrue(message.HasField('optional_sint64'))
394 test_case.assertTrue(message.HasField('optional_fixed32'))
395 test_case.assertTrue(message.HasField('optional_fixed64'))
396 test_case.assertTrue(message.HasField('optional_sfixed32'))
397 test_case.assertTrue(message.HasField('optional_sfixed64'))
[all …]
Dmessage_test.py570 self.assertFalse(msg.HasField(attribute))
579 self.assertFalse(m.HasField('oneof_uint32'))
584 self.assertTrue(m.HasField('oneof_uint32'))
585 self.assertFalse(m.HasField('oneof_string'))
589 self.assertTrue(m.HasField('oneof_string'))
590 self.assertFalse(m.HasField('oneof_uint32'))
598 self.assertTrue(m.HasField('oneof_uint32'))
602 self.assertFalse(m.HasField('oneof_uint32'))
603 self.assertTrue(m.HasField('oneof_string'))
608 self.assertTrue(m.HasField('oneof_string'))
[all …]
Dreflection_test.py129 self.assertFalse(proto.HasField("optional_float"))
213 self.assertFalse(proto.HasField("optional_nested_message"))
253 self.assertTrue(not proto.HasField('optional_int32'))
257 self.assertTrue(not proto.HasField('optional_int32'))
260 self.assertTrue(proto.HasField('optional_int32'))
263 self.assertTrue(not proto.HasField('optional_int32'))
308 self.assertTrue(not composite_field.HasField(scalar_field_name))
310 self.assertTrue(not proto.HasField(composite_field_name))
321 self.assertTrue(composite_field.HasField(scalar_field_name))
322 self.assertTrue(proto.HasField(composite_field_name))
[all …]
Dpython_message.py295 field_descriptor.GetOptions().HasField("packed") and
826 def HasField(self, field_name): function
834 return HasField(self, self._oneofs[field].name)
844 cls.HasField = HasField
1184 if not self.HasField(field.name):
1274 if nested_field is not None and self.HasField(nested_field.name):
Dwell_known_types_test.py491 self.assertTrue(nested_dst.HasField('payload'))
494 self.assertTrue(nested_dst.HasField('payload'))
500 self.assertFalse(nested_dst.HasField('payload'))
Dunknown_fields_test.py299 self.assertFalse(self.missing_message.HasField('optional_nested_enum'))
Dwell_known_types.py607 if source.HasField(name):
Dtext_format_test.py942 self.assertTrue(message.HasField('optionalgroup'))
949 self.assertTrue(message.HasField('optionalgroup'))
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dno_field_presence_test.cc291 EXPECT_EQ(false, r->HasField(message, field)); in TEST()
297 EXPECT_EQ(false, r->HasField( in TEST()
311 EXPECT_EQ(true, r->HasField(message, field)); in TEST()
324 EXPECT_EQ(false, r->HasField(message, field_int32)); in TEST()
325 EXPECT_EQ(false, r->HasField(message, field_double)); in TEST()
326 EXPECT_EQ(false, r->HasField(message, field_string)); in TEST()
329 EXPECT_EQ(true, r->HasField(message, field_int32)); in TEST()
331 EXPECT_EQ(false, r->HasField(message, field_int32)); in TEST()
334 EXPECT_EQ(true, r->HasField(message, field_double)); in TEST()
336 EXPECT_EQ(false, r->HasField(message, field_double)); in TEST()
[all …]
Ddynamic_message_unittest.cc271 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); in TEST_F()
273 EXPECT_EQ(true, refl->HasField(*message, optional_int32)); in TEST_F()
275 EXPECT_EQ(false, refl->HasField(*message, optional_int32)); in TEST_F()
277 EXPECT_EQ(false, refl->HasField(*message, optional_msg)); in TEST_F()
279 EXPECT_EQ(true, refl->HasField(*message, optional_msg)); in TEST_F()
281 EXPECT_EQ(false, refl->HasField(*message, optional_msg)); in TEST_F()
284 EXPECT_EQ(false, refl->HasField(*proto3_prototype_, optional_msg)); in TEST_F()
Dtest_util.cc2556 EXPECT_TRUE(reflection->HasField( in ExpectOneofSetViaReflection()
2558 EXPECT_TRUE(reflection->HasField( in ExpectOneofSetViaReflection()
2560 EXPECT_TRUE(reflection->HasField( in ExpectOneofSetViaReflection()
2562 EXPECT_TRUE(reflection->HasField( in ExpectOneofSetViaReflection()
2637 EXPECT_TRUE(reflection->HasField(message, F("optional_int32" ))); in ExpectAllFieldsSetViaReflection1()
2638 EXPECT_TRUE(reflection->HasField(message, F("optional_int64" ))); in ExpectAllFieldsSetViaReflection1()
2639 EXPECT_TRUE(reflection->HasField(message, F("optional_uint32" ))); in ExpectAllFieldsSetViaReflection1()
2640 EXPECT_TRUE(reflection->HasField(message, F("optional_uint64" ))); in ExpectAllFieldsSetViaReflection1()
2641 EXPECT_TRUE(reflection->HasField(message, F("optional_sint32" ))); in ExpectAllFieldsSetViaReflection1()
2642 EXPECT_TRUE(reflection->HasField(message, F("optional_sint64" ))); in ExpectAllFieldsSetViaReflection1()
[all …]
Dreflection_ops.cc148 if (!reflection->HasField(message, descriptor->field(i))) { in IsInitialized()
234 if (!reflection->HasField(message, descriptor->field(i))) { in FindInitializationErrors()
Dwire_format.cc833 } else if (message_reflection->HasField(message, field)) { in SerializeFieldWithCachedSizes()
1005 } else if (message_reflection->HasField(message, field)) { in FieldByteSize()
1033 } else if (message_reflection->HasField(message, field)) { in FieldDataOnlyByteSize()
Dmap_test.cc2589 EXPECT_FALSE(entry_message1->GetReflection()->HasField(*entry_message1, key)); in TEST()
2591 entry_message1->GetReflection()->HasField(*entry_message1, value)); in TEST()
2595 EXPECT_FALSE(entry_message2->GetReflection()->HasField(*entry_message2, key)); in TEST()
2597 entry_message2->GetReflection()->HasField(*entry_message2, value)); in TEST()
2600 EXPECT_FALSE(entry_message1->GetReflection()->HasField(*entry_message1, key)); in TEST()
2602 entry_message1->GetReflection()->HasField(*entry_message1, value)); in TEST()
Dgenerated_message_reflection.h219 bool HasField(const Message& message, const FieldDescriptor* field) const;
Dmessage.h423 virtual bool HasField(const Message& message,
Dgenerated_message_reflection.cc748 bool GeneratedMessageReflection::HasField(const Message& message, in HasField() function in google::protobuf::internal::GeneratedMessageReflection
750 USAGE_CHECK_MESSAGE_TYPE(HasField); in HasField()
751 USAGE_CHECK_SINGULAR(HasField); in HasField()
Dtext_format.cc490 if (!field->is_repeated() && reflection->HasField(*message, field)) { in ConsumeField()
1692 } else if (reflection->HasField(message, field)) { in PrintField()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Dmessage.py234 def HasField(self, field_name): member in Message
Ddescriptor_pool.py478 if field_desc.HasField('oneof_index'):
613 if not field_proto.HasField('type'):
632 elif field_proto.HasField('default_value'):
Ddescriptor.py973 if field_proto.HasField('type_name'):
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Dmessage.h237 PyObject* HasField(CMessage* self, PyObject* arg);
Dmessage.cc774 reflection->HasField(*message, field)) { in CheckAndGetInteger()
1352 message->GetReflection()->HasField(*message, field_descriptor); in CheckAndGetInteger()
1410 PyObject* HasField(CMessage* self, PyObject* arg) { in CheckAndGetInteger() function
1441 if (message->GetReflection()->HasField(*message, field_descriptor)) { in CheckAndGetInteger()
2275 !message->GetReflection()->HasField(*message, field_descriptor)) { in CheckAndGetInteger()
2327 cmsg->read_only = !reflection->HasField(*self->message, field_descriptor); in CheckAndGetInteger()
2597 { "HasField", (PyCFunction)HasField, METH_O, in CheckAndGetInteger()

12