Home
last modified time | relevance | path

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

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DUnknownFieldSetLiteTest.java52 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); in testDefaultInstance() local
54 assertEquals(0, unknownFields.getSerializedSize()); in testDefaultInstance()
55 assertEquals(ByteString.EMPTY, toByteString(unknownFields)); in testDefaultInstance()
85 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.newInstance(); in testMergeVarintField() local
86 unknownFields.mergeVarintField(10, 2); in testMergeVarintField()
89 CodedInputStream.newInstance(toByteString(unknownFields).toByteArray()); in testMergeVarintField()
126 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.newInstance(); in testMutableCopyOf() local
127 unknownFields.mergeVarintField(10, 2); in testMutableCopyOf()
128 unknownFields = UnknownFieldSetLite.mutableCopyOf(unknownFields, unknownFields); in testMutableCopyOf()
129 unknownFields.checkMutable(); in testMutableCopyOf()
[all …]
DUnknownFieldSetTest.java59 unknownFields = emptyMessage.getUnknownFields(); in setUp()
65 return unknownFields.getField(field.getNumber()); in getField()
80 unknownFields.asMap().entrySet()) { in getBizarroData()
100 UnknownFieldSet unknownFields; field in UnknownFieldSetTest
202 UnknownFieldSet.newBuilder().mergeFrom(unknownFields).clear().build(); in testClear()
213 int fieldNumber = unknownFields.asMap().keySet().iterator().next(); in testClearField()
215 UnknownFieldSet.newBuilder().mergeFrom(unknownFields).clearField(fieldNumber).build(); in testClearField()
223 UnknownFieldSet.newBuilder(unknownFields) in testParseKnownAndUnknown()
260 assertEquals(unknownFields.asMap().size(), in testUnknownExtensions()
375 .addGroup(unknownFields) in testEqualsAndHashCode()
DWireFormatTest.java442 UnknownFieldSet unknownFields = messageSet.getUnknownFields(); in testParseMessageSetWithFlag() local
443 assertEquals(1, unknownFields.asMap().size()); in testParseMessageSetWithFlag()
444 assertTrue(unknownFields.hasField(UNKNOWN_TYPE_ID)); in testParseMessageSetWithFlag()
446 UnknownFieldSet.Field field = unknownFields.getField(UNKNOWN_TYPE_ID); in testParseMessageSetWithFlag()
DAbstractMessageTest.java190 public Builder setUnknownFields(UnknownFieldSet unknownFields) { in setUnknownFields() argument
191 wrappedBuilder.setUnknownFields(unknownFields); in setUnknownFields()
DCodedInputStreamTest.java342 UnknownFieldSet.Builder unknownFields = UnknownFieldSet.newBuilder(); in testSkipWholeMessage() local
350 unknownFields.mergeFieldFrom(tag, input1); in testSkipWholeMessage()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDynamicMessage.java54 private final UnknownFieldSet unknownFields; field in DynamicMessage
68 UnknownFieldSet unknownFields) { in DynamicMessage() argument
72 this.unknownFields = unknownFields; in DynamicMessage()
226 return unknownFields; in getUnknownFields()
253 unknownFields.writeAsMessageSetTo(output); in writeTo()
256 unknownFields.writeTo(output); in writeTo()
267 size += unknownFields.getSerializedSizeAsMessageSet(); in getSerializedSize()
270 size += unknownFields.getSerializedSize(); in getSerializedSize()
333 private UnknownFieldSet unknownFields;
339 this.unknownFields = UnknownFieldSet.getDefaultInstance();
[all …]
DMessageReflection.java78 final UnknownFieldSet unknownFields = message.getUnknownFields(); in writeMessageTo() local
80 unknownFields.writeAsMessageSetTo(output); in writeMessageTo()
82 unknownFields.writeTo(output); in writeMessageTo()
107 final UnknownFieldSet unknownFields = message.getUnknownFields(); in getSerializedSize() local
109 size += unknownFields.getSerializedSizeAsMessageSet(); in getSerializedSize()
111 size += unknownFields.getSerializedSize(); in getSerializedSize()
730 UnknownFieldSet.Builder unknownFields, in mergeFieldFrom() argument
738 input, unknownFields, extensionRegistry, type, target); in mergeFieldFrom()
798 return unknownFields.mergeFieldFrom(tag, input); in mergeFieldFrom()
850 unknownFields.mergeVarintField(fieldNumber, rawValue); in mergeFieldFrom()
[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()
395 private UnknownFieldSet unknownFields = field in GeneratedMessage.Builder
450 unknownFields = UnknownFieldSet.getDefaultInstance(); in clear()
603 public BuilderType setUnknownFields(final UnknownFieldSet unknownFields) { in setUnknownFields() argument
604 this.unknownFields = unknownFields; in setUnknownFields()
611 final UnknownFieldSet unknownFields) { in mergeUnknownFields() argument
[all …]
DAbstractMessage.java404 final UnknownFieldSet.Builder unknownFields = in mergeFrom() local
414 if (!MessageReflection.mergeFieldFrom(input, unknownFields, in mergeFrom()
423 setUnknownFields(unknownFields.build()); in mergeFrom()
428 public BuilderType mergeUnknownFields(final UnknownFieldSet unknownFields) { in mergeUnknownFields() argument
431 .mergeFrom(unknownFields) in mergeUnknownFields()
DMessage.java244 Builder setUnknownFields(UnknownFieldSet unknownFields); in setUnknownFields() argument
250 Builder mergeUnknownFields(UnknownFieldSet unknownFields); in mergeUnknownFields() argument
DGeneratedMessageLite.java66 protected UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); field in GeneratedMessageLite
173 if (unknownFields == UnknownFieldSetLite.getDefaultInstance()) { in ensureUnknownFieldsInitialized()
174 unknownFields = UnknownFieldSetLite.newInstance(); in ensureUnknownFieldsInitialized()
190 return unknownFields.mergeFieldFrom(tag, input); in parseUnknownField()
198 unknownFields.mergeVarintField(tag, value); in mergeVarintField()
206 unknownFields.mergeLengthDelimitedField(fieldNumber, value); in mergeLengthDelimitedField()
215 unknownFields.makeImmutable(); in makeImmutable()
293 unknownFields = visitor.visitUnknownFields(unknownFields, other.unknownFields); in visit()
302 protected final void mergeUnknownFields(UnknownFieldSetLite unknownFields) { in mergeUnknownFields() argument
303 this.unknownFields = UnknownFieldSetLite.mutableCopyOf(this.unknownFields, unknownFields); in mergeUnknownFields()
DMessageLiteToString.java152 if (((GeneratedMessageLite<?, ?>) messageLite).unknownFields != null) { in reflectivePrintWithIndent()
153 ((GeneratedMessageLite<?, ?>) messageLite).unknownFields.printWithIndent(buffer, indent); in reflectivePrintWithIndent()
DMapEntry.java358 public Builder<K, V> setUnknownFields(UnknownFieldSet unknownFields) { in setUnknownFields() argument
DTextFormat.java455 private void printUnknownFields(final UnknownFieldSet unknownFields, in printUnknownFields() argument
459 unknownFields.asMap().entrySet()) { in printUnknownFields()
/external/protobuf/javanano/src/main/java/com/google/protobuf/nano/
DExtension.java182 final T getValueFrom(List<UnknownFieldData> unknownFields) { in getValueFrom() argument
183 if (unknownFields == null) { in getValueFrom()
186 return repeated ? getRepeatedValueFrom(unknownFields) : getSingularValueFrom(unknownFields); in getValueFrom()
189 private T getRepeatedValueFrom(List<UnknownFieldData> unknownFields) { in getRepeatedValueFrom() argument
192 for (int i = 0; i < unknownFields.size(); i++) { in getRepeatedValueFrom()
193 UnknownFieldData data = unknownFields.get(i); in getRepeatedValueFrom()
211 private T getSingularValueFrom(List<UnknownFieldData> unknownFields) { in getSingularValueFrom() argument
213 if (unknownFields.isEmpty()) { in getSingularValueFrom()
216 UnknownFieldData lastData = unknownFields.get(unknownFields.size() - 1); in getSingularValueFrom()
/external/protobuf/objectivec/Tests/
DGPBMessageTests+Serialization.m131 XCTAssertEqual([foo.unknownFields countOfFields], 0U);
142 XCTAssertEqual([foo.unknownFields countOfFields], 0U);
166 GPBUnknownFieldSet *unknownFields = msg.unknownFields;
168 XCTAssertEqual([unknownFields countOfFields], 3U);
169 XCTAssertTrue([unknownFields hasField:Message2_FieldNumber_OptionalEnum]);
171 [unknownFields hasField:Message2_FieldNumber_RepeatedEnumArray]);
172 XCTAssertTrue([unknownFields hasField:Message2_FieldNumber_OneofEnum]);
175 [unknownFields getField:Message2_FieldNumber_OptionalEnum];
180 field = [unknownFields getField:Message2_FieldNumber_RepeatedEnumArray];
184 field = [unknownFields getField:Message2_FieldNumber_OneofEnum];
[all …]
DGPBUnknownFieldSetTest.m60 unknownFields_ = emptyMessage_.unknownFields;
183 XCTAssertEqual(destination.unknownFields.countOfFields, (NSUInteger)1);
185 GPBUnknownField* field2 = [destination.unknownFields getField:123456];
213 message.unknownFields.countOfFields);
DGPBWireFormatTests.m160 XCTAssertEqual([raw.unknownFields countOfFields], (NSUInteger)0);
229 XCTAssertEqual([messageSet.unknownFields countOfFields], (NSUInteger)1);
230 GPBUnknownField* unknownField = [messageSet.unknownFields getField:kUnknownTypeId];
DGPBMessageTests.m414 GPBUnknownFieldSet *unknownFields =
419 [unknownFields addField:field];
422 [unknownFields addField:field];
424 [message setUnknownFields:unknownFields];
914 XCTAssertNil(message.optionalNestedMessage.unknownFields);
917 GPBUnknownFieldSet *unknownFields =
919 message.optionalNestedMessage.unknownFields = unknownFields;
924 [message.optionalNestedMessage setUnknownFields:unknownFields];
DGPBCodedInputStreamTests.m199 GPBUnknownFieldSet* unknownFields =
208 [unknownFields mergeFieldFrom:tag input:input1];
/external/protobuf/objectivec/
DGPBMessage.h80 @property(nonatomic, copy, nullable) GPBUnknownFieldSet *unknownFields;
DGPBMessage.m1942 - (GPBUnknownFieldSet *)unknownFields { method
1946 - (void)setUnknownFields:(GPBUnknownFieldSet *)unknownFields {
1947 if (unknownFields != unknownFields_) {
1949 unknownFields_ = [unknownFields copy];
1995 GPBUnknownFieldSet *unknownFields = GetOrMakeUnknownFields(self);
1996 [unknownFields mergeMessageSetMessage:typeId data:rawBytes];
2039 GPBUnknownFieldSet *unknownFields = GetOrMakeUnknownFields(self);
2040 return [unknownFields mergeFieldFrom:tag input:input];
2047 GPBUnknownFieldSet *unknownFields = GetOrMakeUnknownFields(self);
2048 [unknownFields addUnknownMapEntry:fieldNum value:data];
[all …]
DGPBUtilities.m1499 GPBTextFormatForUnknownFieldSet(message.unknownFields, lineIndent);
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java705 final com.google.protobuf.UnknownFieldSet unknownFields) { in setUnknownFields() argument
710 final com.google.protobuf.UnknownFieldSet unknownFields) { in mergeUnknownFields() argument