Home
last modified time | relevance | path

Searched refs:has_presence (Results 1 – 8 of 8) sorted by relevance

/third_party/protobuf/src/google/protobuf/
Dproto3_arena_unittest.cc223 EXPECT_FALSE(f->has_presence()) << f->full_name(); in TEST()
227 EXPECT_TRUE(f->has_presence()) << f->full_name(); in TEST()
480 EXPECT_FALSE(d->FindFieldByName("optional_int32")->has_presence()); in TEST()
481 EXPECT_TRUE(d->FindFieldByName("oneof_nested_message")->has_presence()); in TEST()
Ddescriptor.h714 bool has_presence() const;
2201 inline bool FieldDescriptor::has_presence() const { in has_presence() function
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_field.cc98 (!descriptor->is_repeated() && !descriptor->has_presence()); in SetCommonFieldVariables()
258 return descriptor_->has_presence() && !descriptor_->real_containing_oneof(); in WantsHasProperty()
/third_party/protobuf/docs/
Dimplementing_proto3_presence.md252 return field->has_presence();
255 // return field->has_presence && !field->real_containing_oneof()
313 1. Add a `FieldDescriptor::has_presence()` method returning `bool`
323 `has_presence()` function instead.
326 Message fields will always return `true` for `has_presence()`, so this method
/third_party/grpc/third_party/upb/upbc/
Dmessage_layout.cc27 return field->has_presence() && !field->real_containing_oneof() && in HasHasbit()
/third_party/protobuf/src/google/protobuf/compiler/php/
Dphp_generator.cc632 field->has_presence() ? "null" : DefaultForField(field); in GenerateField()
668 } else if (field->has_presence()) { in GenerateFieldAccessor()
/third_party/protobuf/python/google/protobuf/pyext/
Dmessage.cc1430 if (!field_descriptor->has_presence()) { in CheckHasPresence()
/third_party/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc1423 return field->has_presence(); in HasFieldPresence()