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 |
---|
GeneratedMessageLite.DefaultInstanceBasedParser(T defaultInstance) |
Modifier and Type | Method and Description |
---|---|
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, parsePartialDelimitedFrom, parsePartialDelimitedFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom, parsePartialFrom
public GeneratedMessageLite.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