Home
last modified time | relevance | path

Searched refs:buildPartial (Results 1 – 25 of 38) sorted by relevance

12

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DGeneratedMessageTest.java914 .setO(TestRequiredOptimizedForSize.newBuilder().buildPartial()) in testOptionalFieldWithRequiredSubfieldsOptimizedForSize()
915 .buildPartial(); in testOptionalFieldWithRequiredSubfieldsOptimizedForSize()
920 .setO(TestRequiredOptimizedForSize.newBuilder().setX(5).buildPartial()) in testOptionalFieldWithRequiredSubfieldsOptimizedForSize()
921 .buildPartial(); in testOptionalFieldWithRequiredSubfieldsOptimizedForSize()
929 TestRequiredOptimizedForSize.newBuilder().buildPartial()); in testUninitializedExtensionInOptimizedForSize()
931 assertFalse(builder.buildPartial().isInitialized()); in testUninitializedExtensionInOptimizedForSize()
936 TestRequiredOptimizedForSize.newBuilder().setX(10).buildPartial()); in testUninitializedExtensionInOptimizedForSize()
938 assertTrue(builder.buildPartial().isInitialized()); in testUninitializedExtensionInOptimizedForSize()
1002 TestAllTypes expected = builder.buildPartial(); in testSerializePartial()
1122 builder.buildPartial(); in testInvalidations()
[all …]
DSingleFieldBuilderV3Test.java51 assertEquals(TestAllTypes.getDefaultInstance(), builder.getBuilder().buildPartial()); in testBasicUseAndInvalidations()
119 builder.mergeFrom(TestAllTypes.newBuilder().setOptionalDouble(4.0).buildPartial()); in testMerge()
124 builder.setMessage(TestAllTypes.newBuilder().setOptionalInt32(10).buildPartial()); in testMerge()
125 builder.mergeFrom(TestAllTypes.newBuilder().setOptionalDouble(5.0).buildPartial()); in testMerge()
DMessageTest.java214 TestRequired message = TestRequired.newBuilder().buildPartial(); in testBuildPartial()
249 .buildPartial(); in testBuildNestedPartial()
268 .buildPartial() in testParseNestedUnititialized()
301 DynamicMessage message = DynamicMessage.newBuilder(TestRequired.getDescriptor()).buildPartial(); in testDynamicBuildPartial()
DAbstractMessageTest.java131 public AbstractMessageWrapper buildPartial() { in buildPartial() method in AbstractMessageTest.AbstractMessageWrapper.Builder
132 return new AbstractMessageWrapper(wrappedBuilder.buildPartial()); in buildPartial()
142 return clone().buildPartial().isInitialized(); in isInitialized()
282 ByteString bytes = builder.buildPartial().toByteString(); in testParsingUninitialized()
286 abstractMessageBuilder.mergeFrom(bytes).buildPartial(); in testParsingUninitialized()
298 dynamicMessageBuilder.mergeFrom(bytes).buildPartial(); in testParsingUninitialized()
DFieldPresenceTest.java455 assertFalse(builder.buildPartial().isInitialized()); in testIsInitialized()
459 assertTrue(builder.buildPartial().isInitialized()); in testIsInitialized()
464 assertFalse(builder.buildPartial().isInitialized()); in testIsInitialized()
468 assertTrue(builder.buildPartial().isInitialized()); in testIsInitialized()
473 assertFalse(builder.buildPartial().isInitialized()); in testIsInitialized()
477 assertTrue(builder.buildPartial().isInitialized()); in testIsInitialized()
DProto2MessageLiteFactory.java471 results.add(builder.buildPartial()); in newMessagesMissingRequiredFields()
478 results.add(builder.buildPartial()); in newMessagesMissingRequiredFields()
485 results.add(builder.buildPartial()); in newMessagesMissingRequiredFields()
492 results.add(builder.buildPartial()); in newMessagesMissingRequiredFields()
DProto2MessageFactory.java468 results.add(builder.buildPartial()); in newMessagesMissingRequiredFields()
475 results.add(builder.buildPartial()); in newMessagesMissingRequiredFields()
482 results.add(builder.buildPartial()); in newMessagesMissingRequiredFields()
489 results.add(builder.buildPartial()); in newMessagesMissingRequiredFields()
DNestedBuildersTest.java155 Vehicle vehicle = vehicleBuilder.buildPartial(); in testGettingBuilderMarksFieldAsHaving()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DGeneratedMessageTest.java650 TestRequiredOptimizedForSize.newBuilder().buildPartial() in testOptionalFieldWithRequiredSubfieldsOptimizedForSize()
651 ).buildPartial(); in testOptionalFieldWithRequiredSubfieldsOptimizedForSize()
655 TestRequiredOptimizedForSize.newBuilder().setX(5).buildPartial() in testOptionalFieldWithRequiredSubfieldsOptimizedForSize()
656 ).buildPartial(); in testOptionalFieldWithRequiredSubfieldsOptimizedForSize()
664 TestRequiredOptimizedForSize.newBuilder().buildPartial()); in testUninitializedExtensionInOptimizedForSize()
666 assertFalse(builder.buildPartial().isInitialized()); in testUninitializedExtensionInOptimizedForSize()
670 TestRequiredOptimizedForSize.newBuilder().setX(10).buildPartial()); in testUninitializedExtensionInOptimizedForSize()
672 assertTrue(builder.buildPartial().isInitialized()); in testUninitializedExtensionInOptimizedForSize()
738 TestAllTypes expected = builder.buildPartial(); in testSerializePartial()
781 TestAllTypes message = builder.buildPartial(); in testBaseMessageOrBuilder()
[all …]
DAbstractMessageTest.java112 public AbstractMessageWrapper buildPartial() { in buildPartial() method in AbstractMessageTest.AbstractMessageWrapper.Builder
113 return new AbstractMessageWrapper(wrappedBuilder.buildPartial()); in buildPartial()
119 return clone().buildPartial().isInitialized(); in isInitialized()
235 ByteString bytes = builder.buildPartial().toByteString(); in testParsingUninitialized()
239 abstractMessageBuilder.mergeFrom(bytes).buildPartial(); in testParsingUninitialized()
251 dynamicMessageBuilder.mergeFrom(bytes).buildPartial(); in testParsingUninitialized()
DMessageTest.java215 TestRequired message = TestRequired.newBuilder().buildPartial(); in testBuildPartial()
250 .buildPartial(); in testBuildNestedPartial()
269 .buildPartial().toByteString(); in testParseNestedUnititialized()
303 .buildPartial(); in testDynamicBuildPartial()
DNestedBuildersTest.java183 Vehicle vehicle = vehicleBuilder.buildPartial(); in testGettingBuilderMarksFieldAsHaving()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DDynamicMessage.java293 throw e.setUnfinishedMessage(builder.buildPartial()); in getParserForType()
295 throw new InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); in getParserForType()
297 return builder.buildPartial(); in getParserForType()
404 return buildPartial();
421 return buildPartial();
425 public DynamicMessage buildPartial() {
DMessageReflection.java451 return subBuilder.buildPartial(); in parseGroup()
475 return subBuilder.buildPartial(); in parseMessage()
499 return subBuilder.buildPartial(); in parseMessageFromBytes()
546 return builder.buildPartial(); in finish()
647 return subBuilder.buildPartial(); in parseGroup()
665 return subBuilder.buildPartial(); in parseMessage()
683 return subBuilder.buildPartial(); in parseMessageFromBytes()
DMessageLite.java152 MessageLite buildPartial(); in buildPartial() method
DSingleFieldBuilder.java101 message = (MType) builder.buildPartial(); in getMessage()
DSingleFieldBuilderV3.java101 message = (MType) builder.buildPartial(); in getMessage()
DGeneratedMessageLite.java385 builder.mergeFrom(buildPartial()); in clone()
390 public MessageType buildPartial() { in buildPartial() method in GeneratedMessageLite.Builder
403 MessageType result = buildPartial(); in build()
946 public final MessageType buildPartial() { in buildPartial() method in GeneratedMessageLite.ExtendableBuilder
952 return super.buildPartial(); in buildPartial()
1351 return defaultInstance.newBuilderForType().mergeFrom(asBytes).buildPartial(); in readResolve()
1378 .buildPartial(); in readResolveFallback()
DUnknownFieldSet.java349 public UnknownFieldSet buildPartial() { in buildPartial() method in UnknownFieldSet.Builder
1067 throw e.setUnfinishedMessage(builder.buildPartial()); in parsePartialFrom()
1069 throw new InvalidProtocolBufferException(e).setUnfinishedMessage(builder.buildPartial()); in parsePartialFrom()
1071 return builder.buildPartial(); in parsePartialFrom()
DMessage.java135 Message buildPartial(); in buildPartial() method
DMapEntry.java296 MapEntry<K, V> result = buildPartial(); in build()
304 public MapEntry<K, V> buildPartial() { in buildPartial() method in MapEntry.Builder
DMapEntryLite.java129 return (T) subBuilder.buildPartial(); in parseField()
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java147 throw e.setUnfinishedMessage(builder.buildPartial());
150 e.getMessage()).setUnfinishedMessage(builder.buildPartial());
152 return builder.buildPartial();
401 com.google.protobuf.jruby.SentinelOuterClass.Sentinel result = buildPartial(); in build()
408 public com.google.protobuf.jruby.SentinelOuterClass.Sentinel buildPartial() { in buildPartial() method in SentinelOuterClass.Sentinel.Builder
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskTreeTest.java148 .mergeFrom(builder.buildPartial().toByteArray()); in merge()
156 builder.mergeFrom(newBuilder.buildPartial()); in merge()
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java294 destination.setField(field, childBuilder.buildPartial()); in merge()

12