Home
last modified time | relevance | path

Searched refs:unknownFields (Results 1 – 25 of 41) sorted by relevance

12

/third_party/protobuf/csharp/src/Google.Protobuf/
DUnknownFieldSet.cs275 public static UnknownFieldSet MergeFieldFrom(UnknownFieldSet unknownFields, in MergeFieldFrom() argument
281 return MergeFieldFrom(unknownFields, ref ctx); in MergeFieldFrom()
299 public static UnknownFieldSet MergeFieldFrom(UnknownFieldSet unknownFields, in MergeFieldFrom() argument
305 return unknownFields; in MergeFieldFrom()
307 if (unknownFields == null) in MergeFieldFrom()
309 unknownFields = new UnknownFieldSet(); in MergeFieldFrom()
311 if (!unknownFields.MergeFieldFrom(ref ctx)) in MergeFieldFrom()
315 return unknownFields; in MergeFieldFrom()
341 public static UnknownFieldSet MergeFrom(UnknownFieldSet unknownFields, in MergeFrom() argument
346 return unknownFields; in MergeFrom()
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DUnknownFieldSchema.java81 final boolean mergeOneFieldFrom(B unknownFields, Reader reader) throws IOException { in mergeOneFieldFrom() argument
86 addVarint(unknownFields, fieldNumber, reader.readInt64()); in mergeOneFieldFrom()
89 addFixed32(unknownFields, fieldNumber, reader.readFixed32()); in mergeOneFieldFrom()
92 addFixed64(unknownFields, fieldNumber, reader.readFixed64()); in mergeOneFieldFrom()
95 addLengthDelimited(unknownFields, fieldNumber, reader.readBytes()); in mergeOneFieldFrom()
104 addGroup(unknownFields, fieldNumber, toImmutable(subFields)); in mergeOneFieldFrom()
113 final void mergeFrom(B unknownFields, Reader reader) throws IOException { in mergeFrom() argument
116 || !mergeOneFieldFrom(unknownFields, reader)) { in mergeFrom()
122 abstract void writeTo(T unknownFields, Writer writer) throws IOException; in writeTo() argument
124 abstract void writeAsMessageSetTo(T unknownFields, Writer writer) throws IOException; in writeAsMessageSetTo() argument
DDynamicMessage.java55 private final UnknownFieldSet unknownFields; field in DynamicMessage
70 UnknownFieldSet unknownFields) { in DynamicMessage() argument
74 this.unknownFields = unknownFields; in DynamicMessage()
222 return unknownFields; in getUnknownFields()
248 unknownFields.writeAsMessageSetTo(output); in writeTo()
251 unknownFields.writeTo(output); in writeTo()
262 size += unknownFields.getSerializedSizeAsMessageSet(); in getSerializedSize()
265 size += unknownFields.getSerializedSize(); in getSerializedSize()
323 private UnknownFieldSet unknownFields;
329 this.unknownFields = UnknownFieldSet.getDefaultInstance();
[all …]
DUnknownFieldSetLiteSchema.java84 ((GeneratedMessageLite<?, ?>) message).unknownFields = fields; in setToMessage()
89 return ((GeneratedMessageLite<?, ?>) message).unknownFields; in getFromMessage()
94 UnknownFieldSetLite unknownFields = getFromMessage(message); in getBuilderFromMessage() local
97 if (unknownFields == UnknownFieldSetLite.getDefaultInstance()) { in getBuilderFromMessage()
98 unknownFields = UnknownFieldSetLite.newInstance(); in getBuilderFromMessage()
99 setToMessage(message, unknownFields); in getBuilderFromMessage()
101 return unknownFields; in getBuilderFromMessage()
DMessageSetSchema.java135 UnknownFieldSetLite unknownFields = ((GeneratedMessageLite) message).unknownFields; in mergeFrom() local
136 if (unknownFields == UnknownFieldSetLite.getDefaultInstance()) { in mergeFrom()
137 unknownFields = UnknownFieldSetLite.newInstance(); in mergeFrom()
138 ((GeneratedMessageLite) message).unknownFields = unknownFields; in mergeFrom()
162 startTag, data, position, limit, unknownFields, registers); in mergeFrom()
215 unknownFields.storeField( in mergeFrom()
242 UB unknownFields = unknownFieldSchema.getBuilderFromMessage(message); in mergeFromHelper() local
256 unknownFields)) { in mergeFromHelper()
263 unknownFieldSchema.setBuilderToMessage(message, unknownFields); in mergeFromHelper()
280 UB unknownFields) in parseMessageSetItemOrUnknownField() argument
[all …]
DMessageReflection.java76 final UnknownFieldSet unknownFields = message.getUnknownFields(); in writeMessageTo() local
78 unknownFields.writeAsMessageSetTo(output); in writeMessageTo()
80 unknownFields.writeTo(output); in writeMessageTo()
103 final UnknownFieldSet unknownFields = message.getUnknownFields(); in getSerializedSize() local
105 size += unknownFields.getSerializedSizeAsMessageSet(); in getSerializedSize()
107 size += unknownFields.getSerializedSize(); in getSerializedSize()
726 UnknownFieldSet.Builder unknownFields, in mergeFieldFrom() argument
734 input, unknownFields, extensionRegistry, type, target); in mergeFieldFrom()
789 if (unknownFields != null) { in mergeFieldFrom()
790 return unknownFields.mergeFieldFrom(tag, input); in mergeFieldFrom()
[all …]
DArrayDecoders.java853 UnknownFieldSetLite unknownFields = message.unknownFields; in decodeExtension() local
854 if (unknownFields == UnknownFieldSetLite.getDefaultInstance()) { in decodeExtension()
855 unknownFields = null; in decodeExtension()
857 unknownFields = in decodeExtension()
862 unknownFields, in decodeExtension()
864 if (unknownFields != null) { in decodeExtension()
865 message.unknownFields = unknownFields; in decodeExtension()
881 UnknownFieldSetLite unknownFields = ((GeneratedMessageLite) message).unknownFields; in decodeExtension() local
882 if (unknownFields == UnknownFieldSetLite.getDefaultInstance()) { in decodeExtension()
883 unknownFields = UnknownFieldSetLite.newInstance(); in decodeExtension()
[all …]
DSchemaUtil.java907 UB unknownFields, in filterUnknownEnumList() argument
910 return unknownFields; in filterUnknownEnumList()
924 unknownFields = storeUnknownEnum(number, enumValue, unknownFields, unknownFieldSchema); in filterUnknownEnumList()
934 unknownFields = storeUnknownEnum(number, enumValue, unknownFields, unknownFieldSchema); in filterUnknownEnumList()
939 return unknownFields; in filterUnknownEnumList()
947 UB unknownFields, in filterUnknownEnumList() argument
950 return unknownFields; in filterUnknownEnumList()
964 unknownFields = storeUnknownEnum(number, enumValue, unknownFields, unknownFieldSchema); in filterUnknownEnumList()
974 unknownFields = storeUnknownEnum(number, enumValue, unknownFields, unknownFieldSchema); in filterUnknownEnumList()
979 return unknownFields; in filterUnknownEnumList()
[all …]
DUnknownFieldSetSchema.java95 return ((GeneratedMessageV3) message).unknownFields; in getFromMessage()
100 ((GeneratedMessageV3) message).unknownFields = fields; in setToMessage()
105 return ((GeneratedMessageV3) message).unknownFields.toBuilder(); in getBuilderFromMessage()
110 ((GeneratedMessageV3) message).unknownFields = builder.build(); in setBuilderToMessage()
DTextFormat.java750 final UnknownFieldSet unknownFields, final TextGenerator generator) throws IOException { in printUnknownFields() argument
751 for (Map.Entry<Integer, UnknownFieldSet.Field> entry : unknownFields.asMap().entrySet()) { in printUnknownFields()
1708 private void checkUnknownFields(final List<UnknownField> unknownFields) throws ParseException { in checkUnknownFields() argument
1709 if (unknownFields.isEmpty()) { in checkUnknownFields()
1714 for (UnknownField field : unknownFields) { in checkUnknownFields()
1726 for (UnknownField field : unknownFields) { in checkUnknownFields()
1739 String[] lineColumn = unknownFields.get(firstErrorIndex).message.split(":"); in checkUnknownFields()
1756 List<UnknownField> unknownFields = new ArrayList<UnknownField>(); in merge() local
1759 mergeField(tokenizer, extensionRegistry, target, unknownFields); in merge()
1762 checkUnknownFields(unknownFields); in merge()
[all …]
DAbstractMessage.java428 final UnknownFieldSet.Builder unknownFields = in mergeFrom() local
439 input, unknownFields, extensionRegistry, getDescriptorForType(), builderAdapter, tag)) { in mergeFrom()
444 if (unknownFields != null) { in mergeFrom()
445 setUnknownFields(unknownFields.build()); in mergeFrom()
451 public BuilderType mergeUnknownFields(final UnknownFieldSet unknownFields) { in mergeUnknownFields() argument
453 UnknownFieldSet.newBuilder(getUnknownFields()).mergeFrom(unknownFields).build()); in mergeUnknownFields()
DMessageSchema.java3868 UB unknownFields = null; in mergeFromHelper() local
3888 unknownFields = in mergeFromHelper()
3894 unknownFields, in mergeFromHelper()
3903 if (unknownFields == null) { in mergeFromHelper()
3904 unknownFields = unknownFieldSchema.getBuilderFromMessage(message); in mergeFromHelper()
3907 if (unknownFieldSchema.mergeOneFieldFrom(unknownFields, reader)) { in mergeFromHelper()
3989 unknownFields = in mergeFromHelper()
3991 number, enumValue, unknownFields, unknownFieldSchema); in mergeFromHelper()
4088 unknownFields = in mergeFromHelper()
4093 unknownFields, in mergeFromHelper()
[all …]
DGeneratedMessageV3.java91 protected UnknownFieldSet unknownFields; field in GeneratedMessageV3
94 unknownFields = UnknownFieldSet.getDefaultInstance(); in GeneratedMessageV3()
98 unknownFields = builder.getUnknownFields(); in GeneratedMessageV3()
313 UnknownFieldSet.Builder unknownFields, in parseUnknownField() argument
320 return unknownFields.mergeFieldFrom(tag, input); in parseUnknownField()
329 UnknownFieldSet.Builder unknownFields, in parseUnknownFieldProto3() argument
333 return parseUnknownField(input, unknownFields, extensionRegistry, tag); in parseUnknownFieldProto3()
550 private UnknownFieldSet unknownFields =
607 unknownFields = UnknownFieldSet.getDefaultInstance();
759 private BuilderType setUnknownFieldsInternal(final UnknownFieldSet unknownFields) {
[all …]
DGeneratedMessage.java73 protected UnknownFieldSet unknownFields; field in GeneratedMessage
76 unknownFields = UnknownFieldSet.getDefaultInstance(); in GeneratedMessage()
80 unknownFields = builder.getUnknownFields(); in GeneratedMessage()
272 UnknownFieldSet.Builder unknownFields, in parseUnknownField() argument
275 return unknownFields.mergeFieldFrom(tag, input); in parseUnknownField()
394 private UnknownFieldSet unknownFields =
451 unknownFields = UnknownFieldSet.getDefaultInstance();
604 public BuilderType setUnknownFields(final UnknownFieldSet unknownFields) {
605 this.unknownFields = unknownFields;
612 final UnknownFieldSet unknownFields) {
[all …]
DMessage.java235 Builder setUnknownFields(UnknownFieldSet unknownFields); in setUnknownFields() argument
238 Builder mergeUnknownFields(UnknownFieldSet unknownFields); in mergeUnknownFields() argument
DExtensionSchemaLite.java74 UB unknownFields, in parseExtension() argument
179 unknownFields = in parseExtension()
184 unknownFields, in parseExtension()
202 fieldNumber, number, unknownFields, unknownFieldSchema); in parseExtension()
288 return unknownFields; in parseExtension()
DExtensionSchemaFull.java92 UB unknownFields, in parseExtension() argument
203 unknownFields = in parseExtension()
205 fieldNumber, number, unknownFields, unknownFieldSchema); in parseExtension()
224 fieldNumber, number, unknownFields, unknownFieldSchema); in parseExtension()
304 return unknownFields; in parseExtension()
DGeneratedMessageLite.java66 protected UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); field in GeneratedMessageLite
141 if (unknownFields == UnknownFieldSetLite.getDefaultInstance()) { in ensureUnknownFieldsInitialized()
142 unknownFields = UnknownFieldSetLite.newInstance(); in ensureUnknownFieldsInitialized()
158 return unknownFields.mergeFieldFrom(tag, input); in parseUnknownField()
164 unknownFields.mergeVarintField(tag, value); in mergeVarintField()
170 unknownFields.mergeLengthDelimitedField(fieldNumber, value); in mergeLengthDelimitedField()
331 protected final void mergeUnknownFields(UnknownFieldSetLite unknownFields) { in mergeUnknownFields() argument
332 this.unknownFields = UnknownFieldSetLite.mutableCopyOf(this.unknownFields, unknownFields); in mergeUnknownFields()
/third_party/protobuf/objectivec/Tests/
DGPBUtilitiesTests.m237 // Give it unknownFields.
238 message.unknownFields = UnknownFieldsSetHelper(777);
248 optionalGroup.unknownFields = UnknownFieldsSetHelper(779);
256 nestedMessage.unknownFields = UnknownFieldsSetHelper(778);
264 repeatedGroup.unknownFields = UnknownFieldsSetHelper(780);
272 nestedMessage.unknownFields = UnknownFieldsSetHelper(781);
281 XCTAssertNotNil(message.unknownFields);
290 XCTAssertNotNil(optionalGroup.unknownFields);
299 XCTAssertNotNil(nestedMessage.unknownFields);
309 XCTAssertNotNil(repeatedGroup.unknownFields);
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DUnknownFieldSetTest.java63 unknownFields = emptyMessage.getUnknownFields(); in setUp()
69 return unknownFields.getField(field.getNumber()); in getField()
81 for (Map.Entry<Integer, UnknownFieldSet.Field> entry : unknownFields.asMap().entrySet()) { in getBizarroData()
101 UnknownFieldSet unknownFields; field in UnknownFieldSetTest
337 UnknownFieldSet.Builder builder = UnknownFieldSet.newBuilder().mergeFrom(unknownFields); in testAsMap()
346 UnknownFieldSet fields = UnknownFieldSet.newBuilder().mergeFrom(unknownFields).clear().build(); in testClear()
357 int fieldNumber = unknownFields.asMap().keySet().iterator().next(); in testClearField()
359 UnknownFieldSet.newBuilder().mergeFrom(unknownFields).clearField(fieldNumber).build(); in testClearField()
367 UnknownFieldSet.newBuilder(unknownFields) in testParseKnownAndUnknown()
402 assertEquals(unknownFields.asMap().size(), message.getUnknownFields().asMap().size()); in testUnknownExtensions()
[all …]
DDiscardUnknownFieldsTest.java100 UnknownFieldSet unknownFields = UnknownFieldSet.newBuilder().mergeFrom(payload).build(); in assertUnknownFieldsInUnknownFieldSetArePreserve() local
101 Message built = message.newBuilderForType().setUnknownFields(unknownFields).build(); in assertUnknownFieldsInUnknownFieldSetArePreserve()
DWireFormatTest.java380 UnknownFieldSet unknownFields = messageSet.getUnknownFields(); in testParseMessageSetWithFlag() local
381 assertEquals(1, unknownFields.asMap().size()); in testParseMessageSetWithFlag()
382 assertTrue(unknownFields.hasField(UNKNOWN_TYPE_ID)); in testParseMessageSetWithFlag()
384 UnknownFieldSet.Field field = unknownFields.getField(UNKNOWN_TYPE_ID); in testParseMessageSetWithFlag()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DUnknownFieldSetTest.java56 unknownFields = emptyMessage.getUnknownFields(); in setUp()
62 return unknownFields.getField(field.getNumber()); in getField()
77 unknownFields.asMap().entrySet()) { in getBizarroData()
97 UnknownFieldSet unknownFields; field in UnknownFieldSetTest
199 UnknownFieldSet.newBuilder().mergeFrom(unknownFields).clear().build(); in testClear()
213 UnknownFieldSet.newBuilder(unknownFields) in testParseKnownAndUnknown()
250 assertEquals(unknownFields.asMap().size(), in testUnknownExtensions()
365 .addGroup(unknownFields) in testEqualsAndHashCode()
DWireFormatTest.java376 UnknownFieldSet unknownFields = messageSet.getUnknownFields(); in testParseMessageSetWithFlag() local
377 assertEquals(1, unknownFields.asMap().size()); in testParseMessageSetWithFlag()
378 assertTrue(unknownFields.hasField(UNKNOWN_TYPE_ID)); in testParseMessageSetWithFlag()
380 UnknownFieldSet.Field field = unknownFields.getField(UNKNOWN_TYPE_ID); in testParseMessageSetWithFlag()
/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DUnknownFieldSetTest.cs58 UnknownFieldSet unknownFields = new UnknownFieldSet(); in EmptyUnknownFieldSet()
59 Assert.AreEqual(0, unknownFields.CalculateSize()); in EmptyUnknownFieldSet()
65 UnknownFieldSet unknownFields = new UnknownFieldSet(); in MergeUnknownFieldSet()
68 unknownFields.AddOrReplaceField(1, field); in MergeUnknownFieldSet()
71 UnknownFieldSet.MergeFrom(otherUnknownFields, unknownFields); in MergeUnknownFieldSet()

12