Home
last modified time | relevance | path

Searched refs:unknown_fields (Results 1 – 25 of 57) sorted by relevance

123

/third_party/protobuf/src/google/protobuf/
Dunknown_field_set_unittest.cc197 WireFormat::ComputeUnknownFieldsSize(empty_message_.unknown_fields()); in TEST_F()
205 empty_message_.unknown_fields(), target); in TEST_F()
212 WireFormat::SerializeUnknownFields(empty_message_.unknown_fields(), in TEST_F()
275 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
276 EXPECT_GT(other_message.unknown_fields().field_count(), 0); in TEST_F()
288 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
291 EXPECT_GT(empty_message_.unknown_fields().field_count(), 0); in TEST_F()
378 ASSERT_EQ(1, destination.unknown_fields().field_count()); in TEST_F()
380 destination.unknown_fields().field(0).type()); in TEST_F()
381 EXPECT_EQ(654321, destination.unknown_fields().field(0).varint()); in TEST_F()
[all …]
Dwire_format.h151 UnknownFieldSet* unknown_fields);
156 UnknownFieldSet* unknown_fields);
164 UnknownFieldSet* unknown_fields,
168 static void SerializeUnknownFields(const UnknownFieldSet& unknown_fields, in SerializeUnknownFields() argument
171 unknown_fields, output->Cur(), output->EpsCopy())); in SerializeUnknownFields()
179 const UnknownFieldSet& unknown_fields, uint8* target) { in SerializeUnknownFieldsToArray() argument
181 target, static_cast<int>(ComputeUnknownFieldsSize(unknown_fields)), in SerializeUnknownFieldsToArray()
183 return InternalSerializeUnknownFieldsToArray(unknown_fields, target, in SerializeUnknownFieldsToArray()
187 const UnknownFieldSet& unknown_fields, uint8* target,
193 const UnknownFieldSet& unknown_fields, io::CodedOutputStream* output) { in SerializeUnknownMessageSetItems() argument
[all …]
Dreflection_ops_unittest.cc163 ASSERT_EQ(2, message1.unknown_fields().field_count()); in TEST()
165 message1.unknown_fields().field(0).type()); in TEST()
166 EXPECT_EQ(1, message1.unknown_fields().field(0).varint()); in TEST()
168 message1.unknown_fields().field(1).type()); in TEST()
169 EXPECT_EQ(2, message1.unknown_fields().field(1).varint()); in TEST()
253 EXPECT_EQ(0, message.unknown_fields().field_count()); in TEST()
286 EXPECT_EQ(1, message.unknown_fields().field_count()); in TEST()
288 message.optional_nested_message().unknown_fields().field_count()); in TEST()
290 message.repeated_nested_message(0).unknown_fields().field_count()); in TEST()
296 EXPECT_EQ(0, message.unknown_fields().field_count()); in TEST()
[all …]
Dmetadata_lite.h87 PROTOBUF_ALWAYS_INLINE const T& unknown_fields( in unknown_fields() function
90 return PtrValue<Container<T>>()->unknown_fields; in unknown_fields()
99 return &PtrValue<Container<T>>()->unknown_fields; in mutable_unknown_fields()
121 DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); in MergeFrom()
163 T unknown_fields; member
176 return &(container->unknown_fields); in mutable_unknown_fields_slow()
Dpreserve_unknown_enum_test.cc267 ASSERT_EQ(message.unknown_fields().field_count(), 3); in TEST()
268 EXPECT_EQ(message.unknown_fields().field(0).number(), in TEST()
270 EXPECT_EQ(message.unknown_fields().field(0).varint(), 4242); in TEST()
271 EXPECT_EQ(message.unknown_fields().field(1).number(), in TEST()
273 EXPECT_EQ(message.unknown_fields().field(1).varint(), 4242); in TEST()
274 EXPECT_EQ(message.unknown_fields().field(2).number(), in TEST()
276 EXPECT_EQ(message.unknown_fields().field(2).varint(), 4242); in TEST()
Dwire_format.cc88 UnknownFieldSet* unknown_fields) { in SkipField() argument
97 if (unknown_fields != NULL) unknown_fields->AddVarint(number, value); in SkipField()
103 if (unknown_fields != NULL) unknown_fields->AddFixed64(number, value); in SkipField()
109 if (unknown_fields == NULL) { in SkipField()
112 if (!input->ReadString(unknown_fields->AddLengthDelimited(number), in SkipField()
121 if (!SkipMessage(input, (unknown_fields == NULL) in SkipField()
123 : unknown_fields->AddGroup(number))) { in SkipField()
141 if (unknown_fields != NULL) unknown_fields->AddFixed32(number, value); in SkipField()
151 UnknownFieldSet* unknown_fields) { in SkipMessage() argument
166 if (!SkipField(input, tag, unknown_fields)) return false; in SkipMessage()
[all …]
Dtext_format_unittest.cc265 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F() local
267 unknown_fields->AddVarint(5, 1); in TEST_F()
268 unknown_fields->AddFixed32(5, 2); in TEST_F()
269 unknown_fields->AddFixed64(5, 3); in TEST_F()
270 unknown_fields->AddLengthDelimited(5, "4"); in TEST_F()
271 unknown_fields->AddGroup(5)->AddVarint(10, 5); in TEST_F()
273 unknown_fields->AddVarint(8, 1); in TEST_F()
274 unknown_fields->AddVarint(8, 2); in TEST_F()
275 unknown_fields->AddVarint(8, 3); in TEST_F()
296 UnknownFieldSet* unknown_fields = message.mutable_unknown_fields(); in TEST_F() local
[all …]
Dgenerated_message_table_driven.cc86 UnknownFieldSet* unknown_fields = in ParseExtension() local
89 return extensions->ParseField(tag, input, prototype, unknown_fields); in ParseExtension()
Dunknown_field_set.h199 const auto& unknown_fields = message.unknown_fields(); in InternalMergeFromMessage() local
200 io::ArrayInputStream array_stream(unknown_fields.data(), in InternalMergeFromMessage()
201 unknown_fields.size()); in InternalMergeFromMessage()
Dextension_set_heavy.cc63 explicit MessageSetFieldSkipper(UnknownFieldSet* unknown_fields) in MessageSetFieldSkipper() argument
64 : UnknownFieldSetFieldSkipper(unknown_fields) {} in MessageSetFieldSkipper()
374 UnknownFieldSet* unknown_fields) { in ParseField() argument
375 UnknownFieldSetFieldSkipper skipper(unknown_fields); in ParseField()
389 UnknownFieldSet* unknown_fields) { in ParseMessageSet() argument
390 MessageSetFieldSkipper skipper(unknown_fields); in ParseMessageSet()
Dtext_format.h79 static bool PrintUnknownFields(const UnknownFieldSet& unknown_fields,
89 static bool PrintUnknownFieldsToString(const UnknownFieldSet& unknown_fields,
251 bool PrintUnknownFields(const UnknownFieldSet& unknown_fields,
256 bool PrintUnknownFieldsToString(const UnknownFieldSet& unknown_fields,
405 void PrintUnknownFields(const UnknownFieldSet& unknown_fields,
Ddescriptor.cc3424 const UnknownFieldSet& unknown_fields);
3429 UnknownFieldSet* unknown_fields);
3434 UnknownFieldSet* unknown_fields);
3439 UnknownFieldSet* unknown_fields);
3441 UnknownFieldSet* unknown_fields);
3443 UnknownFieldSet* unknown_fields);
3445 UnknownFieldSet* unknown_fields);
4193 const UnknownFieldSet& unknown_fields = orig_options.unknown_fields(); in AllocateOptionsImpl() local
4194 if (!unknown_fields.empty()) { in AllocateOptionsImpl()
4198 for (int i = 0; i < unknown_fields.field_count(); ++i) { in AllocateOptionsImpl()
[all …]
Dtext_format.cc1894 const UnknownFieldSet& unknown_fields, std::string* output) const { in PrintUnknownFieldsToString() argument
1899 return PrintUnknownFields(unknown_fields, &output_stream); in PrintUnknownFieldsToString()
1917 const UnknownFieldSet& unknown_fields, in PrintUnknownFields() argument
1921 PrintUnknownFields(unknown_fields, &generator, kUnknownFieldRecursionLimit); in PrintUnknownFields()
2001 UnknownFieldSet unknown_fields; in Print() local
2005 unknown_fields.ParseFromZeroCopyStream(&input); in Print()
2007 PrintUnknownFields(unknown_fields, generator, kUnknownFieldRecursionLimit); in Print()
2425 const UnknownFieldSet& unknown_fields, io::ZeroCopyOutputStream* output) { in PrintUnknownFields() argument
2426 return Printer().PrintUnknownFields(unknown_fields, output); in PrintUnknownFields()
2435 const UnknownFieldSet& unknown_fields, std::string* output) { in PrintUnknownFieldsToString() argument
[all …]
Darena_unittest.cc357 EXPECT_TRUE(arena_message_3->unknown_fields().empty()); in TEST()
381 EXPECT_EQ(0, arena1_message->unknown_fields().field_count()); in TEST()
382 EXPECT_EQ(1, arena2_message->unknown_fields().field_count()); in TEST()
383 EXPECT_EQ(42, arena2_message->unknown_fields().field(0).varint()); in TEST()
393 EXPECT_EQ(1, arena1_message->unknown_fields().field_count()); in TEST()
394 EXPECT_EQ(1, arena2_message->unknown_fields().field_count()); in TEST()
395 EXPECT_EQ(84, arena1_message->unknown_fields().field(0).varint()); in TEST()
396 EXPECT_EQ(42, arena2_message->unknown_fields().field(0).varint()); in TEST()
Dwrappers.pb.cc415 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
610 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
805 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
1002 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
1199 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
1396 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
1593 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
1800 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
2004 …_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_… in _InternalSerialize()
Ddescriptor.pb.h358 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
359 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
511 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
512 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
905 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
906 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
1089 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
1090 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
1253 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
1254 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
[all …]
Dwire_format_unittest.cc449 EXPECT_EQ(0, raw.unknown_fields().field_count()); in TEST()
575 ASSERT_EQ(1, message_set.unknown_fields().field_count()); in TEST()
577 message_set.unknown_fields().field(0).type()); in TEST()
578 EXPECT_EQ("bar", message_set.unknown_fields().field(0).length_delimited()); in TEST()
1203 UnknownFieldSet unknown_fields; in TEST_F() local
1204 EXPECT_FALSE(WireFormat::SkipMessage(&coded_input, &unknown_fields)); in TEST_F()
/third_party/protobuf/python/google/protobuf/internal/
Dunknown_fields_test.py106 unknown_fields = proto.UnknownFields()
107 self.assertEqual(len(unknown_fields), 1)
110 self.assertEqual(unknown_fields[0].field_number, item.type_id)
111 self.assertEqual(unknown_fields[0].wire_type,
113 d = unknown_fields[0].data
196 def CheckUnknownField(self, name, unknown_fields, expected_value): argument
200 for unknown_field in unknown_fields:
218 unknown_fields = self.empty_message.UnknownFields()
221 unknown_fields,
228 unknown_fields,
[all …]
/third_party/protobuf/python/google/protobuf/pyext/
Dunknown_fields.cc51 namespace unknown_fields { namespace
98 return unknown_fields::NewPyUnknownFieldRef(self, index); in Item()
163 unknown_fields::Dealloc, // tp_dealloc
170 &unknown_fields::SqMethods, // tp_as_sequence
Dunknown_fields.h79 namespace unknown_fields {
/third_party/libphonenumber/cpp/src/phonenumbers/
Dphonenumber.pb.cc403 …target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID:… in _InternalSerialize()
404 …static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal… in _InternalSerialize()
497 …total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::G… in ByteSizeLong()
Dphonemetadata.pb.cc356 …target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID:… in _InternalSerialize()
357 …static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal… in _InternalSerialize()
436 …total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::G… in ByteSizeLong()
713 …target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID:… in _InternalSerialize()
714 …static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal… in _InternalSerialize()
764 …total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::G… in ByteSizeLong()
1887 …target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID:… in _InternalSerialize()
1888 …static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal… in _InternalSerialize()
2127 …total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::G… in ByteSizeLong()
2410 …target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID:… in _InternalSerialize()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_file.cc89 UnknownFieldSet unknown_fields; in CollectExtensions() local
90 unknown_fields.MergeFrom(reflection->GetUnknownFields(message)); in CollectExtensions()
91 if (unknown_fields.field_count() > 0) return false; in CollectExtensions()
/third_party/protobuf/src/google/protobuf/compiler/
Dplugin.pb.h140 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
141 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
341 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
342 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
563 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
564 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
763 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { in unknown_fields() function
764 …return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAM… in unknown_fields()
/third_party/protobuf/ruby/ext/google/protobuf_c/
Dencode_decode.c887 if (msg->unknown_fields == NULL) { in unknown_field_handler()
888 msg->unknown_fields = malloc(sizeof(stringsink)); in unknown_field_handler()
889 stringsink_init(msg->unknown_fields); in unknown_field_handler()
892 stringsink_string(msg->unknown_fields, NULL, buf, size, NULL); in unknown_field_handler()
1593 stringsink* unknown = msg->unknown_fields; in putmsg()
1706 stringsink* unknown = msg->unknown_fields; in discard_unknown()
1709 msg->unknown_fields = NULL; in discard_unknown()

123