/third_party/protobuf/python/google/protobuf/internal/ |
D | descriptor_pool_test.py | 209 self.assertTrue(msg2.fields_by_name['int_with_default'].has_default_value) 214 msg2.fields_by_name['double_with_default'].has_default_value) 219 msg2.fields_by_name['string_with_default'].has_default_value) 223 self.assertTrue(msg2.fields_by_name['bool_with_default'].has_default_value) 226 self.assertTrue(msg2.fields_by_name['enum_with_default'].has_default_value) 234 self.assertTrue(msg2.fields_by_name['bytes_with_default'].has_default_value) 788 test.assertTrue(field_desc.has_default_value) 814 test.assertFalse(field_desc.has_default_value) 837 test.assertTrue(field_desc.has_default_value) 858 test.assertFalse(field_desc.has_default_value)
|
D | generator_test.py | 124 [(f.name, f.has_default_value)
|
D | python_message.py | 440 if field.has_default_value and field.default_value != []:
|
/third_party/protobuf/python/google/protobuf/ |
D | descriptor.py | 540 has_default_value=True, containing_oneof=None, json_name=None, argument 552 has_default_value=True, containing_oneof=None, json_name=None, argument 579 self.has_default_value = has_default_value 1133 options=_OptionsOrNone(field_proto), has_default_value=False,
|
D | descriptor_pool.py | 1001 has_default_value=False, 1073 field_desc.has_default_value = False 1076 field_desc.has_default_value = True 1096 field_desc.has_default_value = False
|
/third_party/protobuf/src/google/protobuf/ |
D | descriptor_unittest.cc | 1019 EXPECT_FALSE(foo_->has_default_value()); in TEST_F() 1020 EXPECT_FALSE(bar_->has_default_value()); in TEST_F() 1021 EXPECT_FALSE(baz_->has_default_value()); in TEST_F() 1022 EXPECT_FALSE(qux_->has_default_value()); in TEST_F() 2582 ASSERT_TRUE(message->field(0)->has_default_value()); in TEST_F() 2583 ASSERT_TRUE(message->field(1)->has_default_value()); in TEST_F() 2584 ASSERT_TRUE(message->field(2)->has_default_value()); in TEST_F() 2585 ASSERT_TRUE(message->field(3)->has_default_value()); in TEST_F() 2586 ASSERT_TRUE(message->field(4)->has_default_value()); in TEST_F() 2587 ASSERT_TRUE(message->field(5)->has_default_value()); in TEST_F() [all …]
|
D | descriptor.cc | 1983 GOOGLE_CHECK(has_default_value()) << "No default value"; in DefaultValueAsString() 2181 if (has_default_value()) { in CopyTo() 2720 if (has_default_value()) { in DebugString() 4821 result->has_default_value_ = proto.has_default_value(); in BuildFieldOrExtension() 4822 if (proto.has_default_value() && result->is_repeated()) { in BuildFieldOrExtension() 4829 if (proto.has_default_value()) { in BuildFieldOrExtension() 5632 proto.has_default_value(); in CrossLinkField() 5657 if (proto.has_default_value()) { in CrossLinkField() 5709 if (field->has_default_value()) { in CrossLinkField() 5729 if (field->has_default_value()) { in CrossLinkField() [all …]
|
D | descriptor.h | 721 bool has_default_value() const; 2038 PROTOBUF_DEFINE_ACCESSOR(FieldDescriptor, has_default_value, bool) in PROTOBUF_DEFINE_STRING_ACCESSOR()
|
D | descriptor.pb.h | 2016 bool has_default_value() const; 8427 inline bool FieldDescriptorProto::has_default_value() const { in has_default_value() function
|
/third_party/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_field_base.cc | 99 if (has_default_value() && !SupportsPresenceApi(descriptor_)) { in SetCommonFieldVariables() 266 bool FieldGeneratorBase::has_default_value() { in has_default_value() function in google::protobuf::compiler::csharp::FieldGeneratorBase
|
D | csharp_field_base.h | 92 bool has_default_value();
|
/third_party/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_helpers.cc | 837 const bool has_default_value = field->has_default_value(); in DefaultValue() local 839 if (!has_default_value || default_string.length() == 0) { in DefaultValue()
|
D | objectivec_field.cc | 88 if (descriptor->has_default_value()) in SetCommonFieldVariables()
|
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/ |
D | generator_test.py | 118 [(f.name, f.has_default_value)
|
D | descriptor_test.py | 80 has_default_value=False, default_value=0,
|
/third_party/protobuf/src/google/protobuf/util/ |
D | type_resolver_util.cc | 262 if (descriptor->has_default_value()) { in ConvertFieldDescriptor()
|
/third_party/protobuf/src/google/protobuf/compiler/ruby/ |
D | ruby_generator.cc | 218 if (field->has_default_value()) { in GenerateField()
|
/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_helpers.cc | 543 if (field->has_default_value()) { in DefaultValue()
|
/third_party/protobuf/src/google/protobuf/compiler/js/ |
D | js_generator.cc | 989 !field->has_default_value(); in ReturnsNullWhenUnset() 1032 field->has_default_value(); in SetterAcceptsNull() 2378 bool use_default = field->has_default_value(); in GenerateClassFieldToObject() 2747 if (untyped && !field->has_default_value()) { in GenerateClassField()
|
/third_party/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 1185 m["has_default_value"] = field.has_default_value() ? "True" : "False"; in PrintFieldDescriptor()
|
/third_party/protobuf/python/google/protobuf/pyext/ |
D | descriptor.cc | 794 return PyBool_FromLong(_GetDescriptor(self)->has_default_value()); in HasDefaultValue()
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | parser.cc | 1227 if (field->has_default_value()) { in ParseDefaultAssignment()
|