Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

v0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@bufdev bufdev released this 22 Jun 18:55
· 291 commits to dev since this release

Added

  • A new command prototool create to auto-generate Protobuf files from a
    template. The generated files have the Protobuf package, go_package,
    java_multiple_files, java_outer_classname, and java_package values set
    depending on the location of your file and config settings. Make sure to
    update your Vim plugin setup as well if using the Vim integration. See the
    documentation for prototool create in the README.md for more details.

Changed

  • The values for java_multiple_files, java_outer_classname, and
    java_package that pass lint by default now reflect what is expected
    by the Google Cloud APIs file structure. See
    https://cloud.google.com/apis/design/file_structure for more details.
  • protobuf format will now automatically update the value of go_package,
    java_multiple_files, java_outer_classname, and java_package to match
    what is expected in the default Style Guide. This functionality can be
    suppressed with the flag --no-rewrite. See the documentation for
    prototool format in the README.md for more details.
  • Formatting configuration options are removed. We think there should be
    only one way to format, so we went with defaults of two spaces for indents,
    semicolons at the end of RPCs if there are no RPC options, and always
    having a newline at the end of a file.