protected static class GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>> extends AbstractParser<T>
Parser
implementation that delegates to the default instance.
For use by generated code only.
Constructor and Description |
---|
DefaultInstanceBasedParser(T defaultInstance) |
Modifier and Type | Method and Description |
---|---|
T |
parsePartialFrom(byte[] input,
int offset,
int length,
ExtensionRegistryLite extensionRegistry)
Like
Parser.parseFrom(ByteString, ExtensionRegistryLite) , but does not throw an exception if
the message is missing required fields. |
T |
parsePartialFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry)
Like
Parser.parseFrom(CodedInputStream input, ExtensionRegistryLite) , but does not throw an
exception if the message is missing required fields. |
parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialDelimitedFrom, parsePartialDelimitedFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom
public DefaultInstanceBasedParser(T defaultInstance)
public T parsePartialFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
Parser
Parser.parseFrom(CodedInputStream input, ExtensionRegistryLite)
, but does not throw an
exception if the message is missing required fields. Instead, a partial message is returned.InvalidProtocolBufferException
public T parsePartialFrom(byte[] input, int offset, int length, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
Parser
Parser.parseFrom(ByteString, ExtensionRegistryLite)
, but does not throw an exception if
the message is missing required fields. Instead, a partial message is returned.parsePartialFrom
in interface Parser<T extends GeneratedMessageLite<T,?>>
parsePartialFrom
in class AbstractParser<T extends GeneratedMessageLite<T,?>>
InvalidProtocolBufferException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.