- Fix: Enum duplicate scope check now correctly checks name instead of tag value.
- Fix: Avoid NPE on deprecated, packed, and default field methods.
- Fix: Extend declarations that are nested in other types are now properly supported.
- Fix: Special-case Google's protobuf descriptors from the enum value constraint.
- New:
ScalarTypes
class with constants for each scalar type andisScalarType
method. - New: Field values are now validated to be unique in their message.
- New: Enum values are now validated to be unique in their parent scope.
- New:
Option.findByName
convenience method for pulling options out of a list. - Fix: Correct parsing problem where the character immediately after a
;
was ignored.
- New: Support for public imports.
- New:
toString
emits valid proto syntax. - New: Services and enums now support type-level options.
- New: Tag values are now checked to be valid.
- New: All models now have public constructors.
- New:
Type
now includes options list and documentation. - Options are now always presented as a list. Use
Option.optionsToMap
convenience method to convert them into a tree structure. - Fix:
equals
andhashCode
for all models now properly checks all values.
- New: Field options are available directly as a list.
- New: Parse options defined on enum values.
- Fix: Correctly parse option maps the lack commas.
- Fix: Preserve leading whitespace on comments.
- Fix: Disallow tag values less than or equal to zero.
- Fix: Properly aggregate repeated option values.
- Fix: Preserve square brackets in option names which denote extensions.
- New: Support for values as lists.
- New: Convenience methods for parsing from a
Reader
orInputStream
.
- New: Support for message options.
- Fix: Properly parse escapes in quoted strings.
- New: Support for fully-qualified names and extensions.
- Fields on messages inside of extensions are now parsed properly.
- Package is now
com.squareup.protoparser
.
- New: Parse RPC service definitions.
Initial release.