Home
last modified time | relevance | path

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

/nanopb-2.7.6/tests/regression/issue_487/
DSConscript2 # Problem in default_value() with nested messages
/nanopb-2.7.6/generator/
Dnanopb_generator.py507 self.default = desc.default_value
1331 defval = self.default_value(dependencies)
1410 def default_value(self, dependencies): member in Message
1445 defvals = [v for n,v in enumtype.values if n.parts[-1] == field.default_value]
1451 field.default_value = str(defvals[0])
1470 setattr(msg, field.name, field.default_value)
1472 setattr(msg, field.name, codecs.escape_decode(field.default_value)[0])
1474 setattr(msg, field.name, float(field.default_value))
1476 setattr(msg, field.name, field.default_value == 'true')
1478 setattr(msg, field.name, int(field.default_value))
/nanopb-2.7.6/
Dpb_decode.c533 if (field->submsg_desc->default_value != NULL || in decode_static_field()
898 (field->submsg_desc->default_value != NULL || in pb_field_set_to_default()
946 if (iter->descriptor->default_value) in pb_message_set_to_defaults()
948 defstream = pb_istream_from_buffer(iter->descriptor->default_value, (size_t)-1); in pb_message_set_to_defaults()
Dpb_encode.c268 else if (field->descriptor->default_value) in pb_check_proto3_default_value()
Dpb.h283 const pb_byte_t *default_value; member
/nanopb-2.7.6/spm_headers/nanopb/
Dpb.h283 const pb_byte_t *default_value; member
/nanopb-2.7.6/docs/
Dreference.md241 const pb_byte_t *default_value;
251 |`default_value` | Default values for this message as an encoded protobuf message.
/nanopb-2.7.6/generator/proto/google/protobuf/
Ddescriptor.proto201 optional string default_value = 7; field