Home
last modified time | relevance | path

Searched refs:newBuilder (Results 1 – 25 of 125) sorted by relevance

12345

/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskTreeTest.java97 TestAllTypes.newBuilder() in testMerge()
99 .setOptionalNestedMessage(NestedMessage.newBuilder().setBb(5678)) in testMerge()
101 .addRepeatedNestedMessage(NestedMessage.newBuilder().setBb(8765)) in testMerge()
104 NestedTestAllTypes.newBuilder() in testMerge()
106 .setChild(NestedTestAllTypes.newBuilder().setPayload(value)) in testMerge()
122 NestedTestAllTypes.Builder builder = NestedTestAllTypes.newBuilder(); in testMerge()
124 NestedTestAllTypes.Builder expected = NestedTestAllTypes.newBuilder(); in testMerge()
128 builder = NestedTestAllTypes.newBuilder(); in testMerge()
132 expected = NestedTestAllTypes.newBuilder(); in testMerge()
133 expected.getPayloadBuilder().setOptionalNestedMessage(NestedMessage.newBuilder().setBb(5678)); in testMerge()
[all …]
DJsonFormatTest.java148 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testAllFields()
201 TestAllTypes message = TestAllTypes.newBuilder() in testUnknownEnumValues()
213 TestMap.Builder mapBuilder = TestMap.newBuilder(); in testUnknownEnumValues()
229 TestAllTypes message = TestAllTypes.newBuilder() in testSpecialFloatValues()
247 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParserAcceptStringForNumbericField()
272 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParserAcceptFloatingPointValueForIntegerField()
300 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in assertRejects()
318 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in assertAccepts()
366 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParserAcceptNull()
409 builder = TestAllTypes.newBuilder(); in testParserAcceptNull()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDynamicMessageTest.java63 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors()
71 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild()
91 DynamicMessage.newBuilder(TestEmptyMessage.getDescriptor()); in testUnknownFields()
92 builder.setUnknownFields(UnknownFieldSet.newBuilder() in testUnknownFields()
93 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build()) in testUnknownFields()
94 .addField(2, UnknownFieldSet.Field.newBuilder().addFixed32(1).build()) in testUnknownFields()
99 Message.Builder newBuilder = builder.clone(); in testUnknownFields() local
100 assertEquals(2, newBuilder.getUnknownFields().asMap().size()); in testUnknownFields()
102 newBuilder.clear(); in testUnknownFields()
103 assertTrue(newBuilder.getUnknownFields().asMap().isEmpty()); in testUnknownFields()
[all …]
DMessageTest.java54 TestAllTypes.newBuilder()
62 TestAllTypes.newBuilder()
65 .setOptionalForeignMessage(ForeignMessage.newBuilder().setC(3).build())
81 TestAllTypes.newBuilder(MERGE_DEST) in testMergeFrom()
94 TestAllTypes.newBuilder(MERGE_DEST) in testMergeFromDynamic()
95 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testMergeFromDynamic()
104 DynamicMessage.newBuilder(MERGE_DEST) in testDynamicMergeFrom()
105 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testDynamicMergeFrom()
117 TestRequired.newBuilder().setA(1).setB(2).setC(3).build();
120 TestRequired.Builder builder = TestRequired.newBuilder(); in testRequired()
[all …]
DTextFormatTest.java126 TextFormat.Parser.newBuilder()
132 TextFormat.Parser.newBuilder().build();
172 return UnknownFieldSet.newBuilder() in makeUnknownFieldSet()
174 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet()
180 UnknownFieldSet.newBuilder() in makeUnknownFieldSet()
182 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet()
188 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet()
194 UnknownFieldSet.Field.newBuilder() in makeUnknownFieldSet()
206 TestEmptyMessage.newBuilder() in testPrintUnknownFields()
236 final Object value = NestedMessage.newBuilder().setBb(42).build(); in testPrintField()
[all …]
DGeneratedMessageTest.java94 TestAllTypes.newBuilder().getDefaultInstanceForType()); in testDefaultInstance()
98 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testMessageOrBuilder()
105 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testUsingBuilderMultipleTimes()
113 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes()
114 builder.addRepeatedForeignMessage(ForeignMessage.newBuilder().setC(1)); in testUsingBuilderMultipleTimes()
132 builder.setOptionalForeignMessage(ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes()
133 builder.setRepeatedForeignMessage(0, ForeignMessage.newBuilder().setC(2)); in testUsingBuilderMultipleTimes()
159 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testProtosShareRepeatedArraysIfDidntChange()
172 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testRepeatedArraysAreImmutable()
229 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testSettersRejectNull()
[all …]
DLazyMessageLiteTest.java62 LazyNestedInnerMessageLite nested = LazyNestedInnerMessageLite.newBuilder() in testSetValues()
65 LazyInnerMessageLite inner = LazyInnerMessageLite.newBuilder() in testSetValues()
69 LazyMessageLite outer = LazyMessageLite.newBuilder() in testSetValues()
95 LazyMessageLite outer = LazyMessageLite.newBuilder() in testSetRepeatedValues()
97 .addRepeatedInner(LazyInnerMessageLite.newBuilder().setNum(119)) in testSetRepeatedValues()
98 .addRepeatedInner(LazyInnerMessageLite.newBuilder().setNum(122)) in testSetRepeatedValues()
111 LazyInnerMessageLite inner = LazyInnerMessageLite.newBuilder() in testAddAll()
117 LazyMessageLite outer = LazyMessageLite.newBuilder() in testAddAll()
127 LazyMessageLite outer = LazyMessageLite.newBuilder() in testGetDefaultValues()
148 LazyInnerMessageLite inner = LazyInnerMessageLite.newBuilder() in testClearValues()
[all …]
DUnknownFieldSetTest.java72 UnknownFieldSet.Builder bizarroFields = UnknownFieldSet.newBuilder(); in getBizarroData()
75 UnknownFieldSet.Field.newBuilder().addVarint(1).build(); in getBizarroData()
77 UnknownFieldSet.Field.newBuilder().addFixed32(1).build(); in getBizarroData()
160 TestEmptyMessage.newBuilder().mergeFrom(emptyMessage).build(); in testCopyFrom()
167 TestEmptyMessage.newBuilder() in testMergeFrom()
169 UnknownFieldSet.newBuilder() in testMergeFrom()
171 UnknownFieldSet.Field.newBuilder() in testMergeFrom()
174 UnknownFieldSet.Field.newBuilder() in testMergeFrom()
179 TestEmptyMessage.newBuilder() in testMergeFrom()
181 UnknownFieldSet.newBuilder() in testMergeFrom()
[all …]
DLiteEqualsAndHashTest.java61 Foo foo1a = Foo.newBuilder() in testEquals()
63 .addBar(Bar.newBuilder().setName("foo1")) in testEquals()
65 Foo foo1b = Foo.newBuilder() in testEquals()
67 .addBar(Bar.newBuilder().setName("foo1")) in testEquals()
69 Foo foo2 = Foo.newBuilder() in testEquals()
71 .addBar(Bar.newBuilder().setName("foo2")) in testEquals()
83 Bar bar = Bar.newBuilder().setName("bar").build(); in testEquals()
84 BarPrime barPrime = BarPrime.newBuilder().setName("bar").build(); in testEquals()
89 TestOneofEquals.Builder builder = TestOneofEquals.newBuilder(); in testOneofEquals()
99 Foo fooWithOnlyValue = Foo.newBuilder() in testEqualsAndHashCodeWithUnknownFields()
[all …]
DLiteTest.java91 TestAllTypesLite.newBuilder() in testLite()
95 TestAllTypesLite.NestedMessage.newBuilder().setBb(7)) in testLite()
114 TestAllExtensionsLite.newBuilder() in testLiteExtensions()
120 TestAllTypesLite.NestedMessage.newBuilder().setBb(7).build()) in testLiteExtensions()
144 TestAllTypesLite.Builder expected = TestAllTypesLite.newBuilder() in testClone()
149 TestAllExtensionsLite.Builder expected2 = TestAllExtensionsLite.newBuilder() in testClone()
158 TestAllTypesLite.newBuilder() in testAddAll()
171 TestAllTypesLite.Builder builder = TestAllTypesLite.newBuilder(); in testSanityCopyOnWrite()
287 ForeignMessageLite foreignMessage = ForeignMessageLite.newBuilder() in testSanityCopyOnWrite()
308 ForeignMessageLite.newBuilder() in testSanityCopyOnWrite()
[all …]
DTestUtilLite.java155 TestAllTypesLite.Builder builder = TestAllTypesLite.newBuilder(); in getAllLiteSetBuilder()
165 TestAllExtensionsLite.Builder builder = TestAllExtensionsLite.newBuilder(); in getAllLiteExtensionsSet()
171 TestPackedExtensionsLite.Builder builder = TestPackedExtensionsLite.newBuilder(); in getLitePackedExtensionsSet()
198 TestAllTypesLite.OptionalGroup.newBuilder().setA(117).build()); in setAllFields()
200 TestAllTypesLite.NestedMessage.newBuilder().setBb(118).build()); in setAllFields()
202 ForeignMessageLite.newBuilder().setC(119).build()); in setAllFields()
204 ImportMessageLite.newBuilder().setD(120).build()); in setAllFields()
206 PublicImportMessageLite.newBuilder().setE(126).build()); in setAllFields()
208 TestAllTypesLite.NestedMessage.newBuilder().setBb(127).build()); in setAllFields()
236 TestAllTypesLite.RepeatedGroup.newBuilder().setA(217).build()); in setAllFields()
[all …]
DCheckUtf8Test.java56 StringWrapper.newBuilder().setReqBytes(UTF8_BYTE_STRING).getReq()); in testBuildRequiredStringWithGoodUtf8()
61 BytesWrapper.newBuilder().setReq(UTF8_BYTE_STRING).build().toByteString(); in testParseRequiredStringWithGoodUtf8()
67 StringWrapper.newBuilder().setReqBytes(NON_UTF8_BYTE_STRING); in testBuildRequiredStringWithBadUtf8()
76 StringWrapper.newBuilder().setOptBytes(NON_UTF8_BYTE_STRING); in testBuildOptionalStringWithBadUtf8()
85 StringWrapper.newBuilder().addRepBytes(NON_UTF8_BYTE_STRING); in testBuildRepeatedStringWithBadUtf8()
94 BytesWrapper.newBuilder().setReq(NON_UTF8_BYTE_STRING).build().toByteString(); in testParseRequiredStringWithBadUtf8()
105 StringWrapperSize.newBuilder().setReqBytes(NON_UTF8_BYTE_STRING); in testBuildRequiredStringWithBadUtf8Size()
114 StringWrapperSize.newBuilder().setOptBytes(NON_UTF8_BYTE_STRING); in testBuildOptionalStringWithBadUtf8Size()
123 StringWrapperSize.newBuilder().addRepBytes(NON_UTF8_BYTE_STRING); in testBuildRepeatedStringWithBadUtf8Size()
132 BytesWrapperSize.newBuilder().setReq(NON_UTF8_BYTE_STRING).build().toByteString(); in testParseRequiredStringWithBadUtf8Size()
DNestedBuildersTest.java50 Vehicle.Builder vehicleBuilder = Vehicle.newBuilder(); in testMessagesAndBuilders()
93 Vehicle.Builder vehicleBuilder = Vehicle.newBuilder(); in testMessagesAreCached()
136 Vehicle.Builder vehicleBuilder = Vehicle.newBuilder(); in testRemove_WithNestedBuilders()
150 Vehicle.Builder vehicleBuilder = Vehicle.newBuilder(); in testRemove_WithNestedMessages()
151 vehicleBuilder.addWheel(Wheel.newBuilder() in testRemove_WithNestedMessages()
154 vehicleBuilder.addWheel(Wheel.newBuilder() in testRemove_WithNestedMessages()
164 Vehicle vehicle1 = Vehicle.newBuilder() in testMerge()
165 .addWheel(Wheel.newBuilder().setRadius(1).build()) in testMerge()
166 .addWheel(Wheel.newBuilder().setRadius(2).build()) in testMerge()
169 Vehicle vehicle2 = Vehicle.newBuilder() in testMerge()
[all …]
DWireFormatTest.java266 TestFieldOrderings.newBuilder() in testInterleavedFieldsAndExtensions()
277 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testInterleavedFieldsAndExtensions()
298 TestFieldOrderings.newBuilder() in testParseMultipleExtensionRanges()
315 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testParseMultipleExtensionRangesDynamic()
347 TestMessageSet.newBuilder() in testSerializeMessageSetWithFlag()
350 TestMessageSetExtension1.newBuilder().setI(123).build()) in testSerializeMessageSetWithFlag()
353 TestMessageSetExtension2.newBuilder().setStr("foo").build()) in testSerializeMessageSetWithFlag()
355 UnknownFieldSet.newBuilder() in testSerializeMessageSetWithFlag()
357 UnknownFieldSet.Field.newBuilder() in testSerializeMessageSetWithFlag()
405 RawMessageSet.newBuilder() in testParseMessageSetWithFlag()
[all …]
DDescriptorsTest.java452 FileDescriptorProto fileDescriptorProto = FileDescriptorProto.newBuilder() in testDescriptorValidatorException()
454 .addMessageType(DescriptorProto.newBuilder() in testDescriptorValidatorException()
456 .addField(FieldDescriptorProto.newBuilder() in testDescriptorValidatorException()
484 FileDescriptorProto fileDescriptorProto = FileDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
486 .addMessageType(DescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
488 .addField(FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
495 .addMessageType(DescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
497 .addField(FieldDescriptorProto.newBuilder() in testDescriptorComplexCrosslink()
530 FileDescriptorProto fooProto = FileDescriptorProto.newBuilder() in testDependencyOrder()
532 FileDescriptorProto barProto = FileDescriptorProto.newBuilder() in testDependencyOrder()
[all …]
DAbstractMessageTest.java217 TestAllTypes.newBuilder(TestUtil.getAllSet())) in testClear()
224 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder()) in testCopy()
249 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder()); in testParsing()
256 TestRequiredForeign.Builder builder = TestRequiredForeign.newBuilder(); in testParsingUninitialized()
260 new AbstractMessageWrapper.Builder(TestRequiredForeign.newBuilder()); in testParsingUninitialized()
271 Message.Builder dynamicMessageBuilder = DynamicMessage.newBuilder( in testParsingUninitialized()
296 new AbstractMessageWrapper.Builder(TestPackedTypes.newBuilder()); in testPackedParsing()
315 new AbstractMessageWrapper.Builder(TestUnpackedTypes.newBuilder()); in testParsePackedToUnpacked()
324 new AbstractMessageWrapper.Builder(TestPackedTypes.newBuilder()); in testParseUnpackedToPacked()
332 new AbstractMessageWrapper.Builder(TestUnpackedTypes.newBuilder()); in testUnpackedParsing()
[all …]
DParserTest.java127 assertParsePartial(TestRequired.parser(), TestRequired.newBuilder().setA(1).buildPartial()); in testParsePartial()
226 TestOptimizedForSize.Builder builder = TestOptimizedForSize.newBuilder(); in testOptimizeForSize()
227 builder.setI(12).setMsg(ForeignMessage.newBuilder().setC(34).build()); in testOptimizeForSize()
230 TestRequiredOptimizedForSize.newBuilder().setX(78).build()); in testOptimizeForSize()
257 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testParsingMerge()
267 TestParsingMerge.RepeatedFieldsGenerator.Group1.newBuilder() in testParsingMerge()
270 TestParsingMerge.RepeatedFieldsGenerator.Group1.newBuilder() in testParsingMerge()
273 TestParsingMerge.RepeatedFieldsGenerator.Group1.newBuilder() in testParsingMerge()
276 TestParsingMerge.RepeatedFieldsGenerator.Group2.newBuilder() in testParsingMerge()
279 TestParsingMerge.RepeatedFieldsGenerator.Group2.newBuilder() in testParsingMerge()
[all …]
DMapForProto2Test.java69 1, MessageValue.newBuilder().setValue(11).build()); in setMapValues()
71 2, MessageValue.newBuilder().setValue(22).build()); in setMapValues()
73 3, MessageValue.newBuilder().setValue(33).build()); in setMapValues()
140 1, MessageValue.newBuilder().setValue(111).build()); in updateMapValues()
143 4, MessageValue.newBuilder().setValue(44).build()); in updateMapValues()
192 TestMap.Builder builder = TestMap.newBuilder(); in testMutableMapLifecycle()
256 TestMap.Builder builder = TestMap.newBuilder(); in testMutableMapLifecycle_collections()
302 TestMap.Builder builder = TestMap.newBuilder(); in testGettersAndSetters()
323 TestMap.Builder sourceBuilder = TestMap.newBuilder(); in testPutAll()
327 TestMap.Builder destination = TestMap.newBuilder(); in testPutAll()
[all …]
DUnknownFieldSetLiteTest.java59 Foo foo = Foo.newBuilder() in testMergeFieldFrom()
72 Foo foo = Foo.newBuilder() in testSerializedSize()
156 Foo foo = Foo.newBuilder() in testRoundTrips()
158 .setExtension(Bar.fooExt, Bar.newBuilder() in testRoundTrips()
164 .setExtension(LiteEqualsAndHash.myGroup, LiteEqualsAndHash.MyGroup.newBuilder() in testRoundTrips()
196 output.writeGroupNoTag(Foo.newBuilder().setValue(11).build()); in testMissingStartGroupTag()
212 output.writeGroupNoTag(Foo.newBuilder().setValue(11).build()); in testMissingEndGroupTag()
227 output.writeGroupNoTag(Foo.newBuilder().setValue(11).build()); in testMismatchingGroupTags()
240 Foo foo = Foo.newBuilder() in testTruncatedInput()
242 .setExtension(Bar.fooExt, Bar.newBuilder() in testTruncatedInput()
[all …]
DAnyTest.java43 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testAnyGeneratedApi()
47 TestAny container = TestAny.newBuilder() in testAnyGeneratedApi()
79 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testCustomTypeUrls()
83 TestAny container = TestAny.newBuilder() in testCustomTypeUrls()
96 container = TestAny.newBuilder() in testCustomTypeUrls()
109 container = TestAny.newBuilder() in testCustomTypeUrls()
124 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testCachedUnpackResult()
128 TestAny container = TestAny.newBuilder() in testCachedUnpackResult()
DMapTest.java70 1, MessageValue.newBuilder().setValue(11).build()); in setMapValues()
72 2, MessageValue.newBuilder().setValue(22).build()); in setMapValues()
74 3, MessageValue.newBuilder().setValue(33).build()); in setMapValues()
141 1, MessageValue.newBuilder().setValue(111).build()); in updateMapValues()
144 4, MessageValue.newBuilder().setValue(44).build()); in updateMapValues()
193 TestMap.Builder builder = TestMap.newBuilder(); in testMutableMapLifecycle()
257 TestMap.Builder builder = TestMap.newBuilder(); in testMutableMapLifecycle_collections()
303 TestMap.Builder builder = TestMap.newBuilder(); in testGettersAndSetters()
324 TestMap.Builder sourceBuilder = TestMap.newBuilder(); in testPutAll()
328 TestMap.Builder destination = TestMap.newBuilder(); in testPutAll()
[all …]
DFieldPresenceTest.java106 assertFalse(TestAllTypes.newBuilder().build().hasOptionalNestedMessage()); in testHasMethod()
107 assertFalse(TestAllTypes.newBuilder().hasOptionalNestedMessage()); in testHasMethod()
146 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testOneofEquals()
160 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testFieldPresence()
169 TestAllTypes.Builder a = TestAllTypes.newBuilder(); in testFieldPresence()
174 TestAllTypes.Builder b = TestAllTypes.newBuilder(); in testFieldPresence()
187 TestAllTypes empty = TestAllTypes.newBuilder().build(); in testFieldPresence()
202 TestAllTypes message = TestAllTypes.newBuilder().build(); in testFieldPresenceByReflection()
210 message = TestAllTypes.newBuilder() in testFieldPresenceByReflection()
223 message = TestAllTypes.newBuilder() in testFieldPresenceByReflection()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java47 assertCacheBuilderEquivalence(CacheBuilder.newBuilder(), CacheBuilder.from(spec)); in testParse_empty()
61 CacheBuilder.newBuilder().initialCapacity(10), CacheBuilder.from(spec)); in testParse_initialCapacity()
83 CacheBuilder.newBuilder().maximumSize(9000), CacheBuilder.from(spec)); in testParse_maximumSize()
105 CacheBuilder.newBuilder().maximumWeight(9000), CacheBuilder.from(spec)); in testParse_maximumWeight()
137 CacheBuilder.newBuilder().concurrencyLevel(32), CacheBuilder.from(spec)); in testParse_concurrencyLevel()
160 CacheBuilder.newBuilder().weakKeys(), CacheBuilder.from(spec)); in testParse_weakKeys()
192 CacheBuilder.newBuilder().softValues(), CacheBuilder.from(spec)); in testParse_softValues()
215 CacheBuilder.newBuilder().weakValues(), CacheBuilder.from(spec)); in testParse_weakValues()
269 CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.DAYS), CacheBuilder.from(spec)); in testParse_writeExpirationDays()
277 CacheBuilder.newBuilder().expireAfterWrite(150L, TimeUnit.HOURS), CacheBuilder.from(spec)); in testParse_writeExpirationHours()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DHttpUrlTest.java428 assertEquals("http://[::1]/", base.newBuilder().host("[::1]").build().toString()); in hostIPv6Builder()
429 assertEquals("http://[::1]/", base.newBuilder().host("[::0001]").build().toString()); in hostIPv6Builder()
430 assertEquals("http://[::1]/", base.newBuilder().host("::1").build().toString()); in hostIPv6Builder()
431 assertEquals("http://[::1]/", base.newBuilder().host("::0001").build().toString()); in hostIPv6Builder()
672 .newBuilder() in changingSchemeChangesDefaultPort()
677 .newBuilder() in changingSchemeChangesDefaultPort()
682 .newBuilder() in changingSchemeChangesDefaultPort()
785 assertEquals("/a/b/c/", base.newBuilder().addPathSegment("").build().encodedPath()); in composeWithAddSegment()
787 base.newBuilder().addPathSegment("").addPathSegment("d").build().encodedPath()); in composeWithAddSegment()
788 assertEquals("/a/b/", base.newBuilder().addPathSegment("..").build().encodedPath()); in composeWithAddSegment()
[all …]
/external/protobuf/conformance/
DConformanceJava.java58 return Conformance.ConformanceResponse.newBuilder().setParseError(e.getMessage()).build(); in doTest()
64 Conformance.TestAllTypes.Builder builder = Conformance.TestAllTypes.newBuilder(); in doTest()
69 return Conformance.ConformanceResponse.newBuilder().setParseError(e.getMessage()).build(); in doTest()
87 …return Conformance.ConformanceResponse.newBuilder().setProtobufPayload(testMessage.toByteString())… in doTest()
91 return Conformance.ConformanceResponse.newBuilder().setJsonPayload( in doTest()
94 return Conformance.ConformanceResponse.newBuilder().setSerializeError( in doTest()
129 typeRegistry = TypeRegistry.newBuilder().add( in run()

12345