Home
last modified time | relevance | path

Searched refs:unknown_field (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/python/google/protobuf/pyext/
Dunknown_fields.cc197 namespace unknown_field { namespace
235 const UnknownField* unknown_field = GetUnknownField(self); in GetFieldNumber() local
236 if (unknown_field == NULL) { in GetFieldNumber()
239 return PyInt_FromLong(unknown_field->number()); in GetFieldNumber()
244 const UnknownField* unknown_field = GetUnknownField(self); in GetWireType() local
245 if (unknown_field == NULL) { in GetWireType()
252 switch (unknown_field->type()) { in GetWireType()
320 unknown_field::Dealloc, // tp_dealloc
345 unknown_field::Getters, // tp_getset
/external/protobuf/python/google/protobuf/internal/
Dunknown_fields_test.py187 for unknown_field in unknown_fields:
188 if unknown_field.field_number == field_descriptor.number:
189 self.assertEqual(expected_type, unknown_field.wire_type)
193 unknown_field.data[0].field_number)
194 self.assertEqual(expected_value[1], unknown_field.data[0].wire_type)
195 self.assertEqual(expected_value[2], unknown_field.data[0].data)
198 self.assertIn(unknown_field.data, expected_value)
200 self.assertEqual(expected_value, unknown_field.data)
337 unknown_field = destination.UnknownFields()[0]
340 unknown_field.data # pylint: disable=pointless-statement
Dcontainers.py747 unknown_field = _UnknownField(field_number, wire_type, data)
748 self._values.append(unknown_field)
749 return unknown_field
/external/protobuf/src/google/protobuf/
Dunknown_field_set_unittest.cc90 const UnknownField& unknown_field = unknown_fields_->field(i); in GetBizarroData() local
91 if (unknown_field.type() == UnknownField::TYPE_VARINT) { in GetBizarroData()
92 bizarro_unknown_fields->AddFixed32(unknown_field.number(), 1); in GetBizarroData()
94 bizarro_unknown_fields->AddVarint(unknown_field.number(), 1); in GetBizarroData()
Ddescriptor.cc6688 const UnknownField* unknown_field = &unknown_fields.field(i); in ExamineIfOptionIsSet() local
6693 if (unknown_field->type() == UnknownField::TYPE_LENGTH_DELIMITED) { in ExamineIfOptionIsSet()
6696 unknown_field->length_delimited()) && in ExamineIfOptionIsSet()
6707 if (unknown_field->type() == UnknownField::TYPE_GROUP) { in ExamineIfOptionIsSet()
6710 debug_msg_name, unknown_field->group())) { in ExamineIfOptionIsSet()
/external/python/apitools/apitools/base/py/
Dencoding_helper.py437 for unknown_field in message.all_unrecognized_fields():
442 value, _ = message.get_unrecognized_field_info(unknown_field)
450 new_pair_key = str(unknown_field)
453 pair_type.key, unknown_field)
/external/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc1820 const UnknownField* unknown_field = in PrintValue() local
1823 PrintUnknownFieldValue(unknown_field); in PrintValue()
1828 const UnknownField* unknown_field) { in PrintUnknownFieldValue() argument
1829 GOOGLE_CHECK(unknown_field != NULL) << " Cannot print NULL unknown_field."; in PrintUnknownFieldValue()
1832 switch (unknown_field->type()) { in PrintUnknownFieldValue()
1834 output = StrCat(unknown_field->varint()); in PrintUnknownFieldValue()
1838 "0x", strings::Hex(unknown_field->fixed32(), strings::ZERO_PAD_8)); in PrintUnknownFieldValue()
1842 "0x", strings::Hex(unknown_field->fixed64(), strings::ZERO_PAD_16)); in PrintUnknownFieldValue()
1846 "\"%s\"", CEscape(unknown_field->length_delimited()).c_str()); in PrintUnknownFieldValue()
Dmessage_differencer.h669 virtual void PrintUnknownFieldValue(const UnknownField* unknown_field);
/external/protobuf/ruby/tests/
Dgenerated_code_proto2.proto79 optional int32 unknown_field = 89; field
Dgenerated_code.proto84 int32 unknown_field = 89; field
/external/rust/crates/serde/src/de/
Dimpls.rs1888 _ => Err(Error::unknown_field(value, FIELDS)), in deserialize()
1901 Err(Error::unknown_field(&value, FIELDS)) in deserialize()
2026 _ => Err(Error::unknown_field(value, FIELDS)), in deserialize()
2039 Err(Error::unknown_field(&value, FIELDS)) in deserialize()
2228 _ => Err(Error::unknown_field(value, FIELDS)), in deserialize()
2241 Err(Error::unknown_field(&value, FIELDS)) in deserialize()
Dmod.rs263 fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self {
/external/rust/crates/serde_derive/src/
Dde.rs2158 _serde::__private::Err(_serde::de::Error::unknown_field(__value, FIELDS)) in deserialize_identifier()