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, parsePartialFrompublic DefaultInstanceBasedParser(T defaultInstance)
public T parsePartialFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
ParserParser.parseFrom(CodedInputStream input, ExtensionRegistryLite), but does not throw an
exception if the message is missing required fields. Instead, a partial message is returned.InvalidProtocolBufferExceptionpublic T parsePartialFrom(byte[] input, int offset, int length, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
ParserParser.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,?>>InvalidProtocolBufferExceptionCopyright © 2008–2021. All rights reserved.