public final class SquareProtoParser extends Object implements DescriptorParser
Constructor and Description |
---|
SquareProtoParser(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
Map<String,FileDescriptor> |
parse(FileDescriptorSource fileDescriptorSource)
Parses a set of .proto files but does not resolve type dependencies and does not detect semantic errors like
duplicate type definitions.
|
public SquareProtoParser(Configuration configuration)
public Map<String,FileDescriptor> parse(FileDescriptorSource fileDescriptorSource) throws DescriptorParserException
DescriptorParser
FileDescriptorSource
parameter does not include a progress callback
parsing will stop on first encountered error. If a callback exists all files will be processed; only one error per
file is reported and parsing will continue with the next file.parse
in interface DescriptorParser
fileDescriptorSource
- the set of descriptors to parseFileDescriptor
objects keyed by with their namesDescriptorParserException
- if parsing errors were encountered and no progress callback was specified in the
FileDescriptorSource
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.