Home
last modified time | relevance | path

Searched refs:toBuilder (Results 1 – 25 of 52) sorted by relevance

123

/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLazyStringEndToEndTest.java99 assertSame(optional, proto.toBuilder().getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed()
105 assertSame(repeated0, proto.toBuilder().getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed()
106 assertSame(repeated1, proto.toBuilder().getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed()
DNestedBuildersTest.java176 Vehicle vehicle3 = vehicle1.toBuilder().build(); in testMerge()
DAbstractMessageTest.java98 public Builder toBuilder() { in toBuilder() method in AbstractMessageTest.AbstractMessageWrapper
99 return new Builder(wrappedMessage.toBuilder()); in toBuilder()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyStringEndToEndTest.java116 assertSame(optional, proto.toBuilder().getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed()
122 assertSame(repeated0, proto.toBuilder().getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed()
123 assertSame(repeated1, proto.toBuilder().getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed()
DMapLiteTest.java155 mapBuilder = map.toBuilder(); in testUpdateMapValues()
308 builder = message.toBuilder(); in testGettersAndSetters()
313 builder = message.toBuilder(); in testGettersAndSetters()
318 builder = message.toBuilder(); in testGettersAndSetters()
415 builder = message.toBuilder(); in testSerializeAndParse()
422 builder = message.toBuilder(); in testSerializeAndParse()
541 builder = message.toBuilder(); in testUnknownEnumValues()
625 builder = message.toBuilder().putInt32ToInt32Field(4, 44); in testCount()
DMapForProto2LiteTest.java148 mapBuilder = map.toBuilder(); in testUpdateMapValues()
296 builder = message.toBuilder(); in testGettersAndSetters()
301 builder = message.toBuilder(); in testGettersAndSetters()
306 builder = message.toBuilder(); in testGettersAndSetters()
371 builder = message.toBuilder(); in testSerializeAndParse()
378 builder = message.toBuilder(); in testSerializeAndParse()
571 builder = message.toBuilder().putInt32ToInt32Field(4, 44); in testCount()
DMapForProto2Test.java225 usingMutableMapBuilder = usingMutableMap.toBuilder(); in testUpdateMapValues()
230 usingAccessorsBuilder = usingAccessors.toBuilder(); in testUpdateMapValues()
442 builder = message.toBuilder(); in testGettersAndSetters()
447 builder = message.toBuilder(); in testGettersAndSetters()
452 builder = message.toBuilder(); in testGettersAndSetters()
519 builder = message.toBuilder(); in testSerializeAndParse()
526 builder = message.toBuilder(); in testSerializeAndParse()
752 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testReflectionApi()
940 builder = message.toBuilder().putInt32ToInt32Field(4, 44); in testCount()
DMapTest.java228 usingMutableMapBuilder = usingMutableMap.toBuilder(); in testUpdateMapValues()
233 usingAccessorsBuilder = usingAccessors.toBuilder(); in testUpdateMapValues()
432 builder = message.toBuilder(); in testGettersAndSetters()
437 builder = message.toBuilder(); in testGettersAndSetters()
442 builder = message.toBuilder(); in testGettersAndSetters()
539 builder = message.toBuilder(); in testSerializeAndParse()
546 builder = message.toBuilder(); in testSerializeAndParse()
843 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testReflectionApi()
951 builder = message.toBuilder(); in testUnknownEnumValues()
985 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testUnknownEnumValuesInReflectionApi()
[all …]
DFieldPresenceTest.java139 assertTrue(proto.toBuilder().hasOptionalInt32()); in testHasMethodForProto3Optional()
170 assertTrue(proto.toBuilder().hasField(fieldDescriptor)); in assertProto3OptionalReflection()
194 assertTrue(dynamicProto.toBuilder().hasField(fieldDescriptor)); in assertProto3OptionalReflection()
363 .toBuilder() in testFieldPresenceDynamicMessage()
DLiteEqualsAndHashTest.java103 Foo fooWithValueAndExtension = fooWithOnlyValue.toBuilder() in testEqualsAndHashCodeWithUnknownFields()
DLazyFieldTest.java109 TestAllTypes.Builder builder = TestUtil.getAllSet().toBuilder(); in changeValue()
DAnyTest.java63 TestAny.Builder containerBuilder = container.toBuilder(); in testAnyGeneratedApi()
DAbstractSchemaTest.java152 msg = (T) msg.toBuilder().build(); in testRequiredFields()
DNestedBuildersTest.java148 Vehicle vehicle3 = vehicle1.toBuilder().build(); in testMerge()
DAbstractMessageTest.java114 public Builder toBuilder() { in toBuilder() method in AbstractMessageTest.AbstractMessageWrapper
115 return new Builder(wrappedMessage.toBuilder()); in toBuilder()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DLazyFieldLite.java287 setValue(this.value.toBuilder().mergeFrom(other.value).build()); in merge()
323 setValue(value.toBuilder().mergeFrom(input, extensionRegistry).build()); in mergeFrom()
333 return value.toBuilder().mergeFrom(otherBytes, extensionRegistry).build(); in mergeValueAndBytes()
DUnknownFieldSetSchema.java105 return ((GeneratedMessageV3) message).unknownFields.toBuilder(); in getBuilderFromMessage()
120 return message.toBuilder().mergeFrom(other).build(); in merge()
DMessageLite.java130 Builder toBuilder(); in toBuilder() method
DMessage.java101 Builder toBuilder(); in toBuilder() method
DMapEntry.java173 public Builder<K, V> toBuilder() { in toBuilder() method in MapEntry
351 ((Message) metadata.defaultValue).toBuilder().mergeFrom((Message) value).build(); in setField()
/third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskTreeTest.java329 NestedTestAllTypes clearedSource = source.toBuilder().clearPayload().build(); in testMergeImpl()
360 builder = source.toBuilder(); in testMergeImpl()
363 builder = source.toBuilder(); in testMergeImpl()
371 builder = source.toBuilder(); in testMergeImpl()
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java292 Message.Builder childBuilder = ((Message) destination.getField(field)).toBuilder(); in merge()
318 .toBuilder() in merge()
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/
DRangeTableTest.java156 RangeTable.Builder builder = table.toBuilder(); in testBareRangeAddition()
172 RangeTable.Builder builder = table.toBuilder(); in testAssignAndUnassign()
187 RangeTable.Builder builder = table.toBuilder(); in testAssignAndRemove()
/third_party/flutter/flutter/packages/flutter_tools/lib/src/build_runner/
Dbuild_runner.dart187 builder.outputLocation = outputLocation.toBuilder();
191 builder.outputLocation = outputLocation.toBuilder();
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/table/
DRangeTable.java356 return build().toBuilder(); in copy()
413 public Builder toBuilder() { in toBuilder() method in RangeTable
747 .toBuilder() in simplifyIndexTable()

123