/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | UnknownFieldSetLiteTest.java | 52 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 …]
|
D | UnknownFieldSetTest.java | 59 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()
|
D | WireFormatTest.java | 442 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()
|
D | AbstractMessageTest.java | 190 public Builder setUnknownFields(UnknownFieldSet unknownFields) { in setUnknownFields() argument 191 wrappedBuilder.setUnknownFields(unknownFields); in setUnknownFields()
|
D | CodedInputStreamTest.java | 342 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/ |
D | DynamicMessage.java | 54 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 …]
|
D | MessageReflection.java | 78 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 …]
|
D | GeneratedMessage.java | 73 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 …]
|
D | AbstractMessage.java | 404 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()
|
D | Message.java | 244 Builder setUnknownFields(UnknownFieldSet unknownFields); in setUnknownFields() argument 250 Builder mergeUnknownFields(UnknownFieldSet unknownFields); in mergeUnknownFields() argument
|
D | GeneratedMessageLite.java | 66 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()
|
D | MessageLiteToString.java | 152 if (((GeneratedMessageLite<?, ?>) messageLite).unknownFields != null) { in reflectivePrintWithIndent() 153 ((GeneratedMessageLite<?, ?>) messageLite).unknownFields.printWithIndent(buffer, indent); in reflectivePrintWithIndent()
|
D | MapEntry.java | 358 public Builder<K, V> setUnknownFields(UnknownFieldSet unknownFields) { in setUnknownFields() argument
|
D | TextFormat.java | 455 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/ |
D | Extension.java | 182 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/ |
D | GPBMessageTests+Serialization.m | 131 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 …]
|
D | GPBUnknownFieldSetTest.m | 60 unknownFields_ = emptyMessage_.unknownFields; 183 XCTAssertEqual(destination.unknownFields.countOfFields, (NSUInteger)1); 185 GPBUnknownField* field2 = [destination.unknownFields getField:123456]; 213 message.unknownFields.countOfFields);
|
D | GPBWireFormatTests.m | 160 XCTAssertEqual([raw.unknownFields countOfFields], (NSUInteger)0); 229 XCTAssertEqual([messageSet.unknownFields countOfFields], (NSUInteger)1); 230 GPBUnknownField* unknownField = [messageSet.unknownFields getField:kUnknownTypeId];
|
D | GPBMessageTests.m | 414 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];
|
D | GPBCodedInputStreamTests.m | 199 GPBUnknownFieldSet* unknownFields = 208 [unknownFields mergeFieldFrom:tag input:input1];
|
/external/protobuf/objectivec/ |
D | GPBMessage.h | 80 @property(nonatomic, copy, nullable) GPBUnknownFieldSet *unknownFields;
|
D | GPBMessage.m | 1942 - (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 …]
|
D | GPBUtilities.m | 1499 GPBTextFormatForUnknownFieldSet(message.unknownFields, lineIndent);
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | SentinelOuterClass.java | 705 final com.google.protobuf.UnknownFieldSet unknownFields) { in setUnknownFields() argument 710 final com.google.protobuf.UnknownFieldSet unknownFields) { in mergeUnknownFields() argument
|