Home
last modified time | relevance | path

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

/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py209 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)
Dgenerator_test.py124 [(f.name, f.has_default_value)
Dpython_message.py440 if field.has_default_value and field.default_value != []:
/third_party/protobuf/python/google/protobuf/
Ddescriptor.py540 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,
Ddescriptor_pool.py1001 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/
Ddescriptor_unittest.cc1019 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 …]
Ddescriptor.cc1983 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 …]
Ddescriptor.h721 bool has_default_value() const;
2038 PROTOBUF_DEFINE_ACCESSOR(FieldDescriptor, has_default_value, bool) in PROTOBUF_DEFINE_STRING_ACCESSOR()
Ddescriptor.pb.h2016 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/
Dcsharp_field_base.cc99 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
Dcsharp_field_base.h92 bool has_default_value();
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_helpers.cc837 const bool has_default_value = field->has_default_value(); in DefaultValue() local
839 if (!has_default_value || default_string.length() == 0) { in DefaultValue()
Dobjectivec_field.cc88 if (descriptor->has_default_value()) in SetCommonFieldVariables()
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dgenerator_test.py118 [(f.name, f.has_default_value)
Ddescriptor_test.py80 has_default_value=False, default_value=0,
/third_party/protobuf/src/google/protobuf/util/
Dtype_resolver_util.cc262 if (descriptor->has_default_value()) { in ConvertFieldDescriptor()
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc218 if (field->has_default_value()) { in GenerateField()
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_helpers.cc543 if (field->has_default_value()) { in DefaultValue()
/third_party/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc989 !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/
Dpython_generator.cc1185 m["has_default_value"] = field.has_default_value() ? "True" : "False"; in PrintFieldDescriptor()
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc794 return PyBool_FromLong(_GetDescriptor(self)->has_default_value()); in HasDefaultValue()
/third_party/protobuf/src/google/protobuf/compiler/
Dparser.cc1227 if (field->has_default_value()) { in ParseDefaultAssignment()