Home
last modified time | relevance | path

Searched refs:getParserForType (Results 1 – 22 of 22) sorted by relevance

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DDiscardUnknownFieldsTest.java85 Message parsed = DiscardUnknownFieldsParser.wrap(message.getParserForType()).parseFrom(input); in assertReuseCodedInputStreamPreserve()
90 parsed = message.getParserForType().parseFrom(input); in assertReuseCodedInputStreamPreserve()
106 MessageLite parsed = message.getParserForType().parseFrom(payload); in assertUnknownFieldsPreserved()
114 Message parsed = DiscardUnknownFieldsParser.wrap(message.getParserForType()).parseFrom(payload); in assertUnknownFieldsExplicitlyDiscarded()
DParserLiteTest.java48 Parser<? extends MessageLite> parser = message.getParserForType(); in assertRoundTripEquals()
67 Parser<MessageLite> parser = (Parser<MessageLite>) message.getParserForType(); in assertRoundTripEquals()
109 .getParserForType() in testParseDelimitedToLite()
114 .getParserForType() in testParseDelimitedToLite()
DParserTest.java57 assertEquals(TestAllTypes.parser(), TestUtil.getAllSet().getParserForType()); in testGeneratedMessageParserSingleton()
67 Parser<? extends MessageLite> parser = message.getParserForType(); in assertRoundTripEquals()
86 Parser<MessageLite> parser = (Parser<MessageLite>) message.getParserForType(); in assertRoundTripEquals()
180 assertMessageEquals(normalMessage, normalMessage.getParserForType().parseDelimitedFrom(input)); in testParseDelimitedTo()
181 assertMessageEquals(normalMessage, normalMessage.getParserForType().parseDelimitedFrom(input)); in testParseDelimitedTo()
DCheckUtf8Test.java133 defaultInstance.getParserForType().parseFrom(data); in assertParseBadUtf8()
145 defaultInstance.getParserForType().parseFrom(new ByteArrayInputStream(data)); in assertParseBadUtf8()
DDynamicMessageTest.java182 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessageParsing()
195 message.getParserForType().parseFrom(rawBytes, TestUtil.getExtensionRegistry()); in testDynamicMessageExtensionParsing()
224 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessagePackedParsing()
DWireFormatLiteTest.java517 defaultInstance.getParserForType().parseFrom(data, offset, length); in assertInvalidWireFormat()
531 defaultInstance.getParserForType().parseFrom(input); in assertInvalidWireFormat()
635 MessageLite message2 = defaultInstance.getParserForType().parseFrom(data); in assertAccepted()
639 defaultInstance.getParserForType().parseFrom(new ByteArrayInputStream(data)); in assertAccepted()
DAbstractMessageTest.java227 public Parser<? extends Message> getParserForType() { in getParserForType() method in AbstractMessageTest.AbstractMessageWrapper
228 return wrappedMessage.getParserForType(); in getParserForType()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DParserTest.java60 TestUtil.getAllSet().getParserForType()); in testGeneratedMessageParserSingleton()
71 Parser<? extends MessageLite> parser = message.getParserForType(); in assertRoundTripEquals()
89 Parser<? extends MessageLite> parser = message.getParserForType(); in assertRoundTripEquals()
182 normalMessage.getParserForType().parseDelimitedFrom(input)); in testParseDelimitedTo()
DDynamicMessageTest.java190 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessageParsing()
202 Message message2 = message.getParserForType().parseFrom( in testDynamicMessageExtensionParsing()
234 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessagePackedParsing()
DAbstractMessageTest.java177 public Parser<? extends Message> getParserForType() { in getParserForType() method in AbstractMessageTest.AbstractMessageWrapper
178 return wrappedMessage.getParserForType(); in getParserForType()
/third_party/protobuf/benchmarks/java/src/main/java/com/google/protobuf/
DProtoCaliperBenchmark.java193 benchmarkMessageType.getDefaultInstance().getParserForType().parseFrom( in deserializeFromByteArray()
206 benchmarkMessageType.getDefaultInstance().getParserForType().parseFrom( in deserializeFromMemoryStream()
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DMessageLite.java80 Parser<? extends MessageLite> getParserForType(); in getParserForType() method
DMessage.java54 Parser<? extends Message> getParserForType(); in getParserForType() method
DLazyFieldLite.java417 defaultInstance.getParserForType().parseFrom(delayedBytes, extensionRegistry); in ensureInitialized()
DMapEntry.java163 public Parser<MapEntry<K, V>> getParserForType() { in getParserForType() method in MapEntry
DDynamicMessage.java283 public Parser<DynamicMessage> getParserForType() { in getParserForType() method in DynamicMessage
DUnknownFieldSet.java1078 public final Parser getParserForType() { in getParserForType() method in UnknownFieldSet
DGeneratedMessageLite.java73 public final Parser<MessageType> getParserForType() { in getParserForType() method in GeneratedMessageLite
DGeneratedMessage.java84 public Parser<? extends GeneratedMessage> getParserForType() { in getParserForType() method in GeneratedMessage
DGeneratedMessageV3.java102 public Parser<? extends GeneratedMessageV3> getParserForType() { in getParserForType() method in GeneratedMessageV3
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java157 public com.google.protobuf.Parser<Sentinel> getParserForType() { in getParserForType() method in SentinelOuterClass.Sentinel
/third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java891 DynamicMessage.getDefaultInstance(type).getParserForType().parseFrom(content); in printAny()