Home
last modified time | relevance | path

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

/external/protobuf/python/google/protobuf/internal/
Dtest_util.py357 test_case.assertTrue(message.HasField('optional_int32'))
358 test_case.assertTrue(message.HasField('optional_int64'))
359 test_case.assertTrue(message.HasField('optional_uint32'))
360 test_case.assertTrue(message.HasField('optional_uint64'))
361 test_case.assertTrue(message.HasField('optional_sint32'))
362 test_case.assertTrue(message.HasField('optional_sint64'))
363 test_case.assertTrue(message.HasField('optional_fixed32'))
364 test_case.assertTrue(message.HasField('optional_fixed64'))
365 test_case.assertTrue(message.HasField('optional_sfixed32'))
366 test_case.assertTrue(message.HasField('optional_sfixed64'))
[all …]
Dreflection_test.py206 self.assertTrue(not proto.HasField('optional_int32'))
210 self.assertTrue(not proto.HasField('optional_int32'))
213 self.assertTrue(proto.HasField('optional_int32'))
216 self.assertTrue(not proto.HasField('optional_int32'))
261 self.assertTrue(not composite_field.HasField(scalar_field_name))
263 self.assertTrue(not proto.HasField(composite_field_name))
274 self.assertTrue(composite_field.HasField(scalar_field_name))
275 self.assertTrue(proto.HasField(composite_field_name))
282 self.assertTrue(not composite_field.HasField(scalar_field_name))
283 self.assertTrue(not proto.HasField(composite_field_name))
[all …]
Dtext_format_test.py246 self.assertTrue(message.HasField('optionalgroup'))
253 self.assertTrue(message.HasField('optionalgroup'))
/external/protobuf/src/google/protobuf/
Dtest_util.cc2276 EXPECT_TRUE(reflection->HasField(message, F("optional_int32" ))); in ExpectAllFieldsSetViaReflection1()
2277 EXPECT_TRUE(reflection->HasField(message, F("optional_int64" ))); in ExpectAllFieldsSetViaReflection1()
2278 EXPECT_TRUE(reflection->HasField(message, F("optional_uint32" ))); in ExpectAllFieldsSetViaReflection1()
2279 EXPECT_TRUE(reflection->HasField(message, F("optional_uint64" ))); in ExpectAllFieldsSetViaReflection1()
2280 EXPECT_TRUE(reflection->HasField(message, F("optional_sint32" ))); in ExpectAllFieldsSetViaReflection1()
2281 EXPECT_TRUE(reflection->HasField(message, F("optional_sint64" ))); in ExpectAllFieldsSetViaReflection1()
2282 EXPECT_TRUE(reflection->HasField(message, F("optional_fixed32" ))); in ExpectAllFieldsSetViaReflection1()
2283 EXPECT_TRUE(reflection->HasField(message, F("optional_fixed64" ))); in ExpectAllFieldsSetViaReflection1()
2284 EXPECT_TRUE(reflection->HasField(message, F("optional_sfixed32"))); in ExpectAllFieldsSetViaReflection1()
2285 EXPECT_TRUE(reflection->HasField(message, F("optional_sfixed64"))); in ExpectAllFieldsSetViaReflection1()
[all …]
Dreflection_ops.cc142 if (!reflection->HasField(message, descriptor->field(i))) { in IsInitialized()
227 if (!reflection->HasField(message, descriptor->field(i))) { in FindInitializationErrors()
Dwire_format.cc755 } else if (message_reflection->HasField(message, field)) { in SerializeFieldWithCachedSizes()
919 } else if (message_reflection->HasField(message, field)) { in FieldByteSize()
947 } else if (message_reflection->HasField(message, field)) { in FieldDataOnlyByteSize()
Dgenerated_message_reflection.cc414 bool GeneratedMessageReflection::HasField(const Message& message, in HasField() function in google::protobuf::internal::GeneratedMessageReflection
416 USAGE_CHECK_MESSAGE_TYPE(HasField); in HasField()
417 USAGE_CHECK_SINGULAR(HasField); in HasField()
Dgenerated_message_reflection_unittest.cc368 reflection->HasField( in TEST()
Dmessage.h399 virtual bool HasField(const Message& message,
Dgenerated_message_reflection.h140 bool HasField(const Message& message, const FieldDescriptor* field) const;
Dtext_format.cc291 !field->is_repeated() && reflection->HasField(*message, field)) { in ConsumeField()
940 } else if (reflection->HasField(message, field)) { in PrintField()
/external/protobuf/examples/
Dlist_people.py13 if person.HasField('email'):
/external/protobuf/python/google/protobuf/
Dmessage.py217 def HasField(self, field_name): member in Message
Dreflection.py643 def HasField(self, field_name): function
655 cls.HasField = HasField
909 if not self.HasField(field.name):