Home
last modified time | relevance | path

Searched refs:UnknownFieldSet (Results 1 – 25 of 36) sorted by relevance

12

/external/protobuf/java/src/test/java/com/google/protobuf/
DUnknownFieldSetTest.java61 UnknownFieldSet.Field getField(String name) { in getField()
71 UnknownFieldSet.Builder bizarroFields = UnknownFieldSet.newBuilder(); in getBizarroData()
73 UnknownFieldSet.Field varintField = in getBizarroData()
74 UnknownFieldSet.Field.newBuilder().addVarint(1).build(); in getBizarroData()
75 UnknownFieldSet.Field fixed32Field = in getBizarroData()
76 UnknownFieldSet.Field.newBuilder().addFixed32(1).build(); in getBizarroData()
78 for (Map.Entry<Integer, UnknownFieldSet.Field> entry : in getBizarroData()
99 UnknownFieldSet unknownFields;
104 UnknownFieldSet.Field field = getField("optional_int32"); in testVarint()
111 UnknownFieldSet.Field field = getField("optional_fixed32"); in testFixed32()
[all …]
DTextFormatTest.java168 private UnknownFieldSet makeUnknownFieldSet() { in makeUnknownFieldSet()
169 return UnknownFieldSet.newBuilder() in makeUnknownFieldSet()
171 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet()
177 UnknownFieldSet.newBuilder() in makeUnknownFieldSet()
179 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet()
185 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet()
191 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet()
896 TextFormat.printToUnicodeString(UnknownFieldSet.newBuilder() in testPrintToUnicodeString_unknown()
898 UnknownFieldSet.Field.newBuilder() in testPrintToUnicodeString_unknown()
DDynamicMessageTest.java92 builder.setUnknownFields(UnknownFieldSet.newBuilder() in testUnknownFields()
93 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build()) in testUnknownFields()
94 .addField(2, UnknownFieldSet.Field.newBuilder().addFixed32(1).build()) in testUnknownFields()
269 builder.setUnknownFields(UnknownFieldSet.newBuilder() in testToBuilder()
271 UnknownFieldSet.Field.newBuilder() in testToBuilder()
DWireFormatTest.java355 UnknownFieldSet.newBuilder() in testSerializeMessageSetWithFlag()
357 UnknownFieldSet.Field.newBuilder() in testSerializeMessageSetWithFlag()
442 UnknownFieldSet unknownFields = messageSet.getUnknownFields(); in testParseMessageSetWithFlag()
446 UnknownFieldSet.Field field = unknownFields.getField(UNKNOWN_TYPE_ID); in testParseMessageSetWithFlag()
DAbstractMessageTest.java91 public UnknownFieldSet getUnknownFields() { in getUnknownFields()
164 public UnknownFieldSet getUnknownFields() { in getUnknownFields()
167 public Builder setUnknownFields(UnknownFieldSet unknownFields) { in setUnknownFields()
/external/protobuf/src/google/protobuf/
Dunknown_field_set.cc47 UnknownFieldSet::UnknownFieldSet() in UnknownFieldSet() function in google::protobuf::UnknownFieldSet
50 UnknownFieldSet::~UnknownFieldSet() { in ~UnknownFieldSet()
55 void UnknownFieldSet::ClearFallback() { in ClearFallback()
63 void UnknownFieldSet::ClearAndFreeMemory() { in ClearAndFreeMemory()
71 void UnknownFieldSet::MergeFrom(const UnknownFieldSet& other) { in MergeFrom()
77 int UnknownFieldSet::SpaceUsedExcludingSelf() const { in SpaceUsedExcludingSelf()
99 int UnknownFieldSet::SpaceUsed() const { in SpaceUsed()
103 void UnknownFieldSet::AddVarint(int number, uint64 value) { in AddVarint()
112 void UnknownFieldSet::AddFixed32(int number, uint32 value) { in AddFixed32()
121 void UnknownFieldSet::AddFixed64(int number, uint64 value) { in AddFixed64()
[all …]
Dunknown_field_set.h74 class LIBPROTOBUF_EXPORT UnknownFieldSet {
76 UnknownFieldSet();
77 ~UnknownFieldSet();
89 void MergeFrom(const UnknownFieldSet& other);
92 inline void Swap(UnknownFieldSet* x);
119 UnknownFieldSet* AddGroup(int number);
150 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UnknownFieldSet);
177 inline const UnknownFieldSet& group() const;
184 inline UnknownFieldSet* mutable_group();
196 friend class UnknownFieldSet;
[all …]
Dwire_format.h60 class UnknownFieldSet; // unknown_field_set.h variable
134 UnknownFieldSet* unknown_fields);
139 UnknownFieldSet* unknown_fields);
142 static void SerializeUnknownFields(const UnknownFieldSet& unknown_fields,
150 const UnknownFieldSet& unknown_fields,
156 const UnknownFieldSet& unknown_fields,
164 const UnknownFieldSet& unknown_fields,
168 static int ComputeUnknownFieldsSize(const UnknownFieldSet& unknown_fields);
173 const UnknownFieldSet& unknown_fields);
252 UnknownFieldSet* unknown_fields);
[all …]
Dunknown_field_set_unittest.cc82 UnknownFieldSet* bizarro_unknown_fields = in GetBizarroData()
105 UnknownFieldSet* unknown_fields_;
420 UnknownFieldSet* unknown_fields = empty_message.mutable_unknown_fields(); in TEST_F()
438 const UnknownFieldSet& unknown_fields = message.unknown_fields(); in TEST_F()
468 const UnknownFieldSet& unknown_fields = message.unknown_fields(); in TEST_F()
491 UnknownFieldSet* unknown_fields = empty_message.mutable_unknown_fields(); in TEST_F()
507 UnknownFieldSet* group = unknown_fields->AddGroup(1); in TEST_F()
517 UnknownFieldSet unknown_fields; in TEST_F()
532 UnknownFieldSet unknown; in TEST_F()
554 UnknownFieldSet unknown_fields; in CheckDeleteByNumber()
Dtext_format.h71 static bool PrintUnknownFields(const UnknownFieldSet& unknown_fields,
78 static bool PrintUnknownFieldsToString(const UnknownFieldSet& unknown_fields,
135 bool PrintUnknownFields(const UnknownFieldSet& unknown_fields,
140 bool PrintUnknownFieldsToString(const UnknownFieldSet& unknown_fields,
256 void PrintUnknownFields(const UnknownFieldSet& unknown_fields,
Ddescriptor.pb.h169 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields()
173 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { in mutable_unknown_fields()
225 ::google::protobuf::UnknownFieldSet _unknown_fields_;
251 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields()
255 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { in mutable_unknown_fields()
433 ::google::protobuf::UnknownFieldSet _unknown_fields_;
469 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields()
473 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { in mutable_unknown_fields()
531 ::google::protobuf::UnknownFieldSet _unknown_fields_;
558 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields()
[all …]
Dwire_format.cc83 UnknownFieldSet* unknown_fields) { in SkipField()
143 UnknownFieldSet* unknown_fields) { in SkipMessage()
162 void WireFormat::SerializeUnknownFields(const UnknownFieldSet& unknown_fields, in SerializeUnknownFields()
201 const UnknownFieldSet& unknown_fields, in SerializeUnknownFieldsToArray()
236 const UnknownFieldSet& unknown_fields, in SerializeUnknownMessageSetItems()
261 const UnknownFieldSet& unknown_fields, in SerializeUnknownMessageSetItemsToArray()
294 const UnknownFieldSet& unknown_fields) { in ComputeUnknownFieldsSize()
342 const UnknownFieldSet& unknown_fields) { in ComputeUnknownMessageSetItemsSize()
418 UnknownFieldSet* unknown_fields) { in SkipMessageSetField()
Ddynamic_message.cc289 new(OffsetToPointer(type_info_->unknown_fields_offset)) UnknownFieldSet; in DynamicMessage()
364 reinterpret_cast<UnknownFieldSet*>( in ~DynamicMessage()
365 OffsetToPointer(type_info_->unknown_fields_offset))->~UnknownFieldSet(); in ~DynamicMessage()
631 size += sizeof(UnknownFieldSet); in GetPrototypeNoLock()
Dmessage.h134 class UnknownFieldSet; // unknown_field_set.h variable
365 virtual const UnknownFieldSet& GetUnknownFields(
370 virtual UnknownFieldSet* MutableUnknownFields(Message* message) const = 0;
Ddescriptor.cc2560 const UnknownFieldSet& unknown_fields);
2565 UnknownFieldSet* unknown_fields);
2570 UnknownFieldSet* unknown_fields);
2575 UnknownFieldSet* unknown_fields);
2577 UnknownFieldSet* unknown_fields);
2579 UnknownFieldSet* unknown_fields);
2581 UnknownFieldSet* unknown_fields);
4881 scoped_ptr<UnknownFieldSet> unknown_fields(new UnknownFieldSet()); in InterpretSingleOption()
4891 scoped_ptr<UnknownFieldSet> parent_unknown_fields(new UnknownFieldSet()); in InterpretSingleOption()
4940 const UnknownFieldSet& unknown_fields) { in ExamineIfOptionIsSet()
[all …]
Dtext_format.cc1378 const UnknownFieldSet& unknown_fields, in PrintUnknownFieldsToString()
1398 const UnknownFieldSet& unknown_fields, in PrintUnknownFields()
1608 const UnknownFieldSet& unknown_fields, in PrintUnknownFields()
1619 const UnknownFieldSet& unknown_fields, string* output) { in PrintUnknownFieldsToString()
1651 const UnknownFieldSet& unknown_fields, TextGenerator& generator) const { in PrintUnknownFields()
1694 UnknownFieldSet embedded_unknown_fields; in PrintUnknownFields()
/external/protobuf/java/src/main/java/com/google/protobuf/
DUnknownFieldSet.java59 public final class UnknownFieldSet implements MessageLite { class
60 private UnknownFieldSet() {} in UnknownFieldSet() method in UnknownFieldSet
71 public static Builder newBuilder(final UnknownFieldSet copyFrom) { in newBuilder()
76 public static UnknownFieldSet getDefaultInstance() { in getDefaultInstance()
79 public UnknownFieldSet getDefaultInstanceForType() { in getDefaultInstanceForType()
82 private static final UnknownFieldSet defaultInstance =
83 new UnknownFieldSet(Collections.<Integer, Field>emptyMap());
89 private UnknownFieldSet(final Map<Integer, Field> fields) { in UnknownFieldSet() method in UnknownFieldSet
100 return (other instanceof UnknownFieldSet) && in equals()
101 fields.equals(((UnknownFieldSet) other).fields); in equals()
[all …]
DDynamicMessage.java54 private final UnknownFieldSet unknownFields;
68 UnknownFieldSet unknownFields) { in DynamicMessage()
84 UnknownFieldSet.getDefaultInstance()); in getDefaultInstance()
215 public UnknownFieldSet getUnknownFields() { in getUnknownFields()
320 private UnknownFieldSet unknownFields;
326 this.unknownFields = UnknownFieldSet.getDefaultInstance();
340 unknownFields = UnknownFieldSet.getDefaultInstance();
547 public UnknownFieldSet getUnknownFields() {
551 public Builder setUnknownFields(UnknownFieldSet unknownFields) {
557 public Builder mergeUnknownFields(UnknownFieldSet unknownFields) {
[all …]
DAbstractMessage.java326 final UnknownFieldSet.Builder unknownFields = in mergeFrom()
327 UnknownFieldSet.newBuilder(getUnknownFields()); in mergeFrom()
349 public BuilderType mergeUnknownFields(final UnknownFieldSet unknownFields) { in mergeUnknownFields()
351 UnknownFieldSet.newBuilder(getUnknownFields()) in mergeUnknownFields()
DMessage.java208 Builder setUnknownFields(UnknownFieldSet unknownFields); in setUnknownFields()
214 Builder mergeUnknownFields(UnknownFieldSet unknownFields); in mergeUnknownFields()
DTextFormat.java80 public static void print(final UnknownFieldSet fields, in print()
100 public static void printUnicode(final UnknownFieldSet fields, in printUnicode()
125 public static String shortDebugString(final UnknownFieldSet fields) { in shortDebugString()
154 public static String printToString(final UnknownFieldSet fields) { in printToString()
182 public static String printToUnicodeString(final UnknownFieldSet fields) { in printToUnicodeString()
265 DEFAULT_PRINTER.printUnknownFields((UnknownFieldSet) value, generator); in printUnknownFieldValue()
439 private void printUnknownFields(final UnknownFieldSet unknownFields, in printUnknownFields()
442 for (Map.Entry<Integer, UnknownFieldSet.Field> entry : in printUnknownFields()
445 final UnknownFieldSet.Field field = entry.getValue(); in printUnknownFields()
454 for (final UnknownFieldSet value : field.getGroupList()) { in printUnknownFields()
DGeneratedMessage.java191 public UnknownFieldSet getUnknownFields() { in getUnknownFields()
202 UnknownFieldSet.Builder unknownFields, in parseUnknownField()
253 private UnknownFieldSet unknownFields =
254 UnknownFieldSet.getDefaultInstance();
308 unknownFields = UnknownFieldSet.getDefaultInstance(); in clear()
432 final UnknownFieldSet unknownFields) { in setUnknownFields()
440 final UnknownFieldSet unknownFields) { in mergeUnknownFields()
442 UnknownFieldSet.newBuilder(this.unknownFields) in mergeUnknownFields()
480 public final UnknownFieldSet getUnknownFields() { in getUnknownFields()
490 final UnknownFieldSet.Builder unknownFields, in parseUnknownField()
[all …]
DMessageOrBuilder.java142 UnknownFieldSet getUnknownFields(); in getUnknownFields()
DMessageReflection.java77 final UnknownFieldSet unknownFields = message.getUnknownFields(); in writeMessageTo()
104 final UnknownFieldSet unknownFields = message.getUnknownFields(); in getSerializedSize()
678 UnknownFieldSet.Builder unknownFields, in mergeFieldFrom()
815 UnknownFieldSet.Builder unknownFields, in mergeMessageSetExtensionFromCodedStream()
892 unknownFields.mergeField(typeId, UnknownFieldSet.Field.newBuilder() in mergeMessageSetExtensionFromCodedStream()
/external/protobuf/src/google/protobuf/compiler/
Dplugin.pb.h57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields()
61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { in mutable_unknown_fields()
143 ::google::protobuf::UnknownFieldSet _unknown_fields_;
171 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields()
175 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { in mutable_unknown_fields()
257 ::google::protobuf::UnknownFieldSet _unknown_fields_;
285 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { in unknown_fields()
289 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { in mutable_unknown_fields()
357 ::google::protobuf::UnknownFieldSet _unknown_fields_;

12