Home
last modified time | relevance | path

Searched refs:UnknownField (Results 1 – 18 of 18) sorted by relevance

/third_party/protobuf/src/google/protobuf/
Dunknown_field_set.h70 class UnknownField; // below variable
131 inline const UnknownField& field(int index) const;
135 inline UnknownField* mutable_field(int index);
147 void AddField(const UnknownField& field);
179 friend class UnknownField;
206 std::vector<UnknownField> fields_;
230 class PROTOBUF_EXPORT UnknownField {
280 void DeepCopy(const UnknownField& other);
325 inline const UnknownField& UnknownFieldSet::field(int index) const { in field()
328 inline UnknownField* UnknownFieldSet::mutable_field(int index) { in mutable_field()
[all …]
Dunknown_field_set.cc109 size_t total_size = sizeof(fields_) + sizeof(UnknownField) * fields_.size(); in SpaceUsedExcludingSelfLong()
112 const UnknownField& field = (fields_)[i]; in SpaceUsedExcludingSelfLong()
114 case UnknownField::TYPE_LENGTH_DELIMITED: in SpaceUsedExcludingSelfLong()
119 case UnknownField::TYPE_GROUP: in SpaceUsedExcludingSelfLong()
134 UnknownField field; in AddVarint()
136 field.SetType(UnknownField::TYPE_VARINT); in AddVarint()
142 UnknownField field; in AddFixed32()
144 field.SetType(UnknownField::TYPE_FIXED32); in AddFixed32()
150 UnknownField field; in AddFixed64()
152 field.SetType(UnknownField::TYPE_FIXED64); in AddFixed64()
[all …]
Dunknown_field_set_unittest.cc73 const UnknownField* GetField(const std::string& name) { in GetField()
92 const UnknownField& unknown_field = unknown_fields_->field(i); in GetBizarroData()
93 if (unknown_field.type() == UnknownField::TYPE_VARINT) { in GetBizarroData()
147 const UnknownField* field = GetField("optional_int32"); in TEST_F()
150 ASSERT_EQ(UnknownField::TYPE_VARINT, field->type()); in TEST_F()
155 const UnknownField* field = GetField("optional_fixed32"); in TEST_F()
158 ASSERT_EQ(UnknownField::TYPE_FIXED32, field->type()); in TEST_F()
163 const UnknownField* field = GetField("optional_fixed64"); in TEST_F()
166 ASSERT_EQ(UnknownField::TYPE_FIXED64, field->type()); in TEST_F()
171 const UnknownField* field = GetField("optional_string"); in TEST_F()
[all …]
Dwire_format.cc198 const UnknownField& field = unknown_fields.field(i); in InternalSerializeUnknownFieldsToArray()
202 case UnknownField::TYPE_VARINT: in InternalSerializeUnknownFieldsToArray()
206 case UnknownField::TYPE_FIXED32: in InternalSerializeUnknownFieldsToArray()
210 case UnknownField::TYPE_FIXED64: in InternalSerializeUnknownFieldsToArray()
214 case UnknownField::TYPE_LENGTH_DELIMITED: in InternalSerializeUnknownFieldsToArray()
218 case UnknownField::TYPE_GROUP: in InternalSerializeUnknownFieldsToArray()
236 const UnknownField& field = unknown_fields.field(i); in InternalSerializeUnknownMessageSetItemsToArray()
240 if (field.type() == UnknownField::TYPE_LENGTH_DELIMITED) { in InternalSerializeUnknownMessageSetItemsToArray()
272 const UnknownField& field = unknown_fields.field(i); in ComputeUnknownFieldsSize()
275 case UnknownField::TYPE_VARINT: in ComputeUnknownFieldsSize()
[all …]
Dreflection_ops_unittest.cc164 ASSERT_EQ(UnknownField::TYPE_VARINT, in TEST()
167 ASSERT_EQ(UnknownField::TYPE_VARINT, in TEST()
Dtext_format.cc2454 const UnknownField& field = unknown_fields.field(i); in PrintUnknownFields()
2458 case UnknownField::TYPE_VARINT: in PrintUnknownFields()
2468 case UnknownField::TYPE_FIXED32: { in PrintUnknownFields()
2480 case UnknownField::TYPE_FIXED64: { in PrintUnknownFields()
2492 case UnknownField::TYPE_LENGTH_DELIMITED: { in PrintUnknownFields()
2533 case UnknownField::TYPE_GROUP: in PrintUnknownFields()
Ddescriptor.h126 class UnknownField; variable
Dwire_format_unittest.cc576 ASSERT_EQ(UnknownField::TYPE_LENGTH_DELIMITED, in TEST()
Ddescriptor.cc6827 const UnknownField* unknown_field = &unknown_fields.field(i); in ExamineIfOptionIsSet()
6832 if (unknown_field->type() == UnknownField::TYPE_LENGTH_DELIMITED) { in ExamineIfOptionIsSet()
6846 if (unknown_field->type() == UnknownField::TYPE_GROUP) { in ExamineIfOptionIsSet()
/third_party/protobuf/csharp/src/Google.Protobuf/
DUnknownFieldSet.cs52 private readonly IDictionary<int, UnknownField> fields;
59 this.fields = new Dictionary<int, UnknownField>(); in UnknownFieldSet()
92 foreach (KeyValuePair<int, UnknownField> entry in fields) in WriteTo()
104 foreach (KeyValuePair<int, UnknownField> entry in fields) in CalculateSize()
121 IDictionary<int, UnknownField> otherFields = otherSet.fields; in Equals()
126 foreach (KeyValuePair<int, UnknownField> leftEntry in fields) in Equals()
128 UnknownField rightValue; in Equals()
147 foreach (KeyValuePair<int, UnknownField> field in fields) in GetHashCode()
160 private UnknownField lastField;
162 private UnknownField GetOrAddField(int number) in GetOrAddField()
[all …]
DUnknownField.cs52 internal sealed class UnknownField class
63 public UnknownField() in UnknownField() method in Google.Protobuf.UnknownField
76 UnknownField otherField = other as UnknownField; in Equals()
199 internal UnknownField MergeFrom(UnknownField other) in MergeFrom()
236 internal UnknownField AddVarint(ulong value) in AddVarint()
245 internal UnknownField AddFixed32(uint value) in AddFixed32()
254 internal UnknownField AddFixed64(ulong value) in AddFixed64()
263 internal UnknownField AddLengthDelimited(ByteString value) in AddLengthDelimited()
269 internal UnknownField AddGroup(UnknownFieldSet value) in AddGroup()
/third_party/protobuf/python/google/protobuf/pyext/
Dunknown_fields.cc216 const UnknownField* GetUnknownField(PyUnknownFieldRef* self) { in GetUnknownField()
235 const UnknownField* unknown_field = GetUnknownField(self); in GetFieldNumber()
244 const UnknownField* unknown_field = GetUnknownField(self); in GetWireType()
253 case UnknownField::TYPE_VARINT: in GetWireType()
256 case UnknownField::TYPE_FIXED32: in GetWireType()
259 case UnknownField::TYPE_FIXED64: in GetWireType()
262 case UnknownField::TYPE_LENGTH_DELIMITED: in GetWireType()
265 case UnknownField::TYPE_GROUP: in GetWireType()
273 const UnknownField* field = GetUnknownField(self); in GetData()
279 case UnknownField::TYPE_VARINT: in GetData()
[all …]
Dunknown_fields.h44 class UnknownField; variable
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormat.java1692 static final class UnknownField { class in TextFormat.Parser
1700 UnknownField(String message, Type type) { in UnknownField() method in TextFormat.Parser.UnknownField
1708 private void checkUnknownFields(final List<UnknownField> unknownFields) throws ParseException { in checkUnknownFields()
1714 for (UnknownField field : unknownFields) { in checkUnknownFields()
1726 for (UnknownField field : unknownFields) { in checkUnknownFields()
1727 if (field.type == UnknownField.Type.FIELD) { in checkUnknownFields()
1756 List<UnknownField> unknownFields = new ArrayList<UnknownField>(); in merge()
1771 List<UnknownField> unknownFields) in mergeField()
1787 List<UnknownField> unknownFields) in mergeField()
1821 unknownFields.add(new UnknownField(message, UnknownField.Type.EXTENSION)); in mergeField()
[all …]
/third_party/protobuf/src/google/protobuf/util/
Dmessage_differencer.cc1206 typedef std::pair<int, const UnknownField*> IndexUnknownFieldPair;
1294 const UnknownField* current_repeated = NULL; in CompareUnknownFields()
1313 const UnknownField* focus_field; in CompareUnknownFields()
1338 case UnknownField::TYPE_VARINT: in CompareUnknownFields()
1342 case UnknownField::TYPE_FIXED32: in CompareUnknownFields()
1346 case UnknownField::TYPE_FIXED64: in CompareUnknownFields()
1350 case UnknownField::TYPE_LENGTH_DELIMITED: in CompareUnknownFields()
1354 case UnknownField::TYPE_GROUP: in CompareUnknownFields()
1828 const UnknownField* unknown_field = in PrintValue()
1836 const UnknownField* unknown_field) { in PrintUnknownFieldValue()
[all …]
Dmessage_differencer.h182 UnknownField::Type unknown_field_type;
685 virtual void PrintUnknownFieldValue(const UnknownField* unknown_field);
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DUnknownFieldSetTest.cs66 UnknownField field = new UnknownField(); in MergeUnknownFieldSet()
/third_party/protobuf/
DMakefile.am270 csharp/src/Google.Protobuf/UnknownField.cs \