Home
last modified time | relevance | path

Searched refs:has_default_value (Results 1 – 20 of 20) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Ddescriptor_pool_test.py157 self.assertTrue(msg2.fields_by_name['int_with_default'].has_default_value)
162 msg2.fields_by_name['double_with_default'].has_default_value)
167 msg2.fields_by_name['string_with_default'].has_default_value)
171 self.assertTrue(msg2.fields_by_name['bool_with_default'].has_default_value)
174 self.assertTrue(msg2.fields_by_name['enum_with_default'].has_default_value)
182 self.assertTrue(msg2.fields_by_name['bytes_with_default'].has_default_value)
448 test.assertTrue(field_desc.has_default_value)
472 test.assertFalse(field_desc.has_default_value)
493 test.assertTrue(field_desc.has_default_value)
513 test.assertFalse(field_desc.has_default_value)
Dgenerator_test.py124 [(f.name, f.has_default_value)
Dpython_message.py410 if field.has_default_value and field.default_value != []:
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Ddescriptor.py500 has_default_value=True, containing_oneof=None): argument
510 has_default_value=True, containing_oneof=None): argument
527 self.has_default_value = has_default_value
987 options=field_proto.options, has_default_value=False)
Ddescriptor_pool.py561 has_default_value=False,
630 field_desc.has_default_value = False
633 field_desc.has_default_value = True
651 field_desc.has_default_value = False
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/csharp/
Dcsharp_field_base.h84 bool has_default_value();
Dcsharp_field_base.cc80 if (has_default_value()) { in SetCommonFieldVariables()
212 bool FieldGeneratorBase::has_default_value() { in has_default_value() function in google::protobuf::compiler::csharp::FieldGeneratorBase
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Ddescriptor_unittest.cc860 EXPECT_FALSE(foo_->has_default_value()); in TEST_F()
861 EXPECT_FALSE(bar_->has_default_value()); in TEST_F()
862 EXPECT_FALSE(baz_->has_default_value()); in TEST_F()
863 EXPECT_FALSE(qux_->has_default_value()); in TEST_F()
2283 ASSERT_TRUE(message->field(0)->has_default_value()); in TEST_F()
2284 ASSERT_TRUE(message->field(1)->has_default_value()); in TEST_F()
2285 ASSERT_TRUE(message->field(2)->has_default_value()); in TEST_F()
2286 ASSERT_TRUE(message->field(3)->has_default_value()); in TEST_F()
2287 ASSERT_TRUE(message->field(4)->has_default_value()); in TEST_F()
2288 ASSERT_TRUE(message->field(5)->has_default_value()); in TEST_F()
[all …]
Ddescriptor.h559 bool has_default_value() const;
1701 PROTOBUF_DEFINE_ACCESSOR(FieldDescriptor, has_default_value, bool) in PROTOBUF_DEFINE_STRING_ACCESSOR()
Ddescriptor.cc1682 GOOGLE_CHECK(has_default_value()) << "No default value"; in DefaultValueAsString()
1880 if (has_default_value()) { in CopyTo()
2388 if (has_default_value()) { in DebugString()
4264 result->has_default_value_ = proto.has_default_value(); in BuildFieldOrExtension()
4265 if (proto.has_default_value() && result->is_repeated()) { in BuildFieldOrExtension()
4272 if (proto.has_default_value()) { in BuildFieldOrExtension()
4869 proto.has_default_value(); in CrossLinkField()
4911 if (field->has_default_value()) { in CrossLinkField()
4931 if (field->has_default_value()) { in CrossLinkField()
5224 if (field->has_default_value()) { in ValidateProto3Field()
Ddescriptor.pb.cc4370 if (has_default_value()) { in Clear()
4639 if (has_default_value()) { in SerializeWithCachedSizes()
4730 if (has_default_value()) { in InternalSerializeWithCachedSizesToArray()
4817 if (has_default_value()) { in ByteSize()
4902 if (from.has_default_value()) { in MergeFrom()
5214 bool FieldDescriptorProto::has_default_value() const { in has_default_value() function in google::protobuf::FieldDescriptorProto
Ddescriptor.pb.h1166 bool has_default_value() const;
5084 inline bool FieldDescriptorProto::has_default_value() const { in has_default_value() function
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dtype_resolver_util.cc163 if (descriptor->has_default_value()) { in ConvertFieldDescriptor()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/objectivec/
Dobjectivec_helpers.cc737 const bool has_default_value = field->has_default_value(); in DefaultValue() local
739 if (!has_default_value || default_string.length() == 0) { in DefaultValue()
Dobjectivec_field.cc89 if (descriptor->has_default_value()) in SetCommonFieldVariables()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/
Djava_helpers.cc444 if (field->has_default_value()) { in DefaultValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/python/
Dpython_generator.cc1093 m["has_default_value"] = field.has_default_value() ? "True" : "False"; in PrintFieldDescriptor()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/js/
Djs_generator.cc2036 if (field->has_default_value()) { in GenerateClassFieldToObject()
2047 } else if (field->is_optional() && !field->has_default_value()) { in GenerateClassFieldToObject()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Ddescriptor.cc731 return PyBool_FromLong(_GetDescriptor(self)->has_default_value()); in HasDefaultValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/
Dparser.cc1068 if (field->has_default_value()) { in ParseDefaultAssignment()