Home
last modified time | relevance | path

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

1234

/external/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()
/external/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()
/external/grpc-grpc-java/protobuf-lite/src/main/java/io/grpc/protobuf/lite/
DProtoLiteUtils.java128 parser = (Parser<T>) defaultInstance.getParserForType(); in MessageMarshaller()
252 return (T) defaultInstance.getParserForType().parseFrom(serialized, globalRegistry); in parseBytes()
/external/dagger2/java/dagger/internal/codegen/serialization/
DProtoSerialization.java50 message = defaultInstance.getParserForType().parseFrom(bytes); in fromAnnotationValue()
/external/protobuf/benchmarks/java/src/main/java/com/google/protobuf/
DProtoCaliperBenchmark.java193 benchmarkMessageType.getDefaultInstance().getParserForType().parseFrom( in deserializeFromByteArray()
206 benchmarkMessageType.getDefaultInstance().getParserForType().parseFrom( in deserializeFromMemoryStream()
/external/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
/external/grpc-grpc-java/services/src/generated/test/java/io/grpc/reflection/testing/
DNestedTypeOuter.java618 public com.google.protobuf.Parser<Inner> getParserForType() { in getParserForType() method in NestedTypeOuter.Middle.Inner
932 public com.google.protobuf.Parser<Middle> getParserForType() { in getParserForType() method in NestedTypeOuter.Middle
1246 public com.google.protobuf.Parser<NestedTypeOuter> getParserForType() { in getParserForType() method in NestedTypeOuter
DEmptyMessage.java379 public com.google.protobuf.Parser<EmptyMessage> getParserForType() { in getParserForType() method in EmptyMessage
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/channelz/v1/
DGetTopChannelsRequest.java459 public com.google.protobuf.Parser<GetTopChannelsRequest> getParserForType() { in getParserForType() method in GetTopChannelsRequest
DGetChannelRequest.java455 public com.google.protobuf.Parser<GetChannelRequest> getParserForType() { in getParserForType() method in GetChannelRequest
DGetSubchannelRequest.java455 public com.google.protobuf.Parser<GetSubchannelRequest> getParserForType() { in getParserForType() method in GetSubchannelRequest
DGetServersRequest.java459 public com.google.protobuf.Parser<GetServersRequest> getParserForType() { in getParserForType() method in GetServersRequest
DGetSocketRequest.java455 public com.google.protobuf.Parser<GetSocketRequest> getParserForType() { in getParserForType() method in GetSocketRequest
DGetServerSocketsRequest.java518 public com.google.protobuf.Parser<GetServerSocketsRequest> getParserForType() { in getParserForType() method in GetServerSocketsRequest

1234