Re-apply merge of tag v3.5.2

v3.5.2 was previously merged in Ia1b9174f7e3ac5c2d86ea7370d5c6c3ef1a37300
and then reverted as part of Ia04c0b15ebd45e8c7e02edaa6e1f10aeb11ef337,
which leaves v3.5.2 in the history but v3.0.0-beta3 in the tree.  Reapply
the merge to v3.5.2 so that v3.9.1 can be merged on top of it.

Bug: 117607748
Test: m checkbuild
Change-Id: I77a2c0638b00487d3acfbf3c0d634f26caf5b9be
1481 files changed
tree: e36cd8f11ed469ce2f02f515df5cd4862e494a4d
  1. android/
  2. benchmarks/
  3. cmake/
  4. config/
  5. conformance/
  6. csharp/
  7. docs/
  8. editors/
  9. examples/
  10. java/
  11. javamicro/
  12. javanano/
  13. jenkins/
  14. js/
  15. kokoro/
  16. m4/
  17. more_tests/
  18. objectivec/
  19. php/
  20. protoc-artifacts/
  21. python/
  22. ruby/
  23. src/
  24. third_party/
  25. util/
  26. .gitignore
  27. .gitmodules
  28. .travis.yml
  29. Android.bp
  30. appveyor.bat
  31. appveyor.yml
  32. autogen.sh
  33. BUILD
  34. build.gradle
  35. CHANGES.txt
  36. CleanSpec.mk
  37. composer.json
  38. configure.ac
  39. CONTRIBUTORS.txt
  40. generate_changelog.py
  41. generate_descriptor_proto.sh
  42. gmock.BUILD
  43. LICENSE
  44. Makefile.am
  45. MODULE_LICENSE_APACHE2
  46. NOTICE
  47. OWNERS
  48. post_process_dist.sh
  49. protobuf-lite.pc.in
  50. protobuf.bzl
  51. protobuf.pc.in
  52. Protobuf.podspec
  53. README.android
  54. README.md
  55. README.version
  56. six.BUILD
  57. tests.sh
  58. update_file_lists.sh
  59. WORKSPACE
README.md

Protocol Buffers - Google's data interchange format

Build Status Build status Build Status Build Status Build Status

Copyright 2008 Google Inc.

https://developers.google.com/protocol-buffers/

Overview

Protocol Buffers (a.k.a., protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data. You can find protobuf's documentation on the Google Developers site.

This README file contains protobuf installation instructions. To install protobuf, you need to install the protocol compiler (used to compile .proto files) and the protobuf runtime for your chosen programming language.

Protocol Compiler Installation

The protocol compiler is written in C++. If you are using C++, please follow the C++ Installation Instructions to install protoc along with the C++ runtime.

For non-C++ users, the simplest way to install the protocol compiler is to download a pre-built binary from our release page:

https://github.com/google/protobuf/releases

In the downloads section of each release, you can find pre-built binaries in zip packages: protoc-$VERSION-$PLATFORM.zip. It contains the protoc binary as well as a set of standard .proto files distributed along with protobuf.

If you are looking for an old version that is not available in the release page, check out the maven repo here:

https://repo1.maven.org/maven2/com/google/protobuf/protoc/

These pre-built binaries are only provided for released versions. If you want to use the github master version at HEAD, or you need to modify protobuf code, or you are using C++, it's recommended to build your own protoc binary from source.

If you would like to build protoc binary from source, see the C++ Installation Instructions.

Protobuf Runtime Installation

Protobuf supports several different programming languages. For each programming language, you can find instructions in the corresponding source directory about how to install protobuf runtime for that specific language:

LanguageSource
C++ (include C++ runtime and protoc)src
Javajava
Pythonpython
Objective-Cobjectivec
C#csharp
JavaNanojavanano
JavaScriptjs
Rubyruby
Gogolang/protobuf
PHPphp
Dartdart-lang/protobuf

Quick Start

The best way to learn how to use protobuf is to follow the tutorials in our developer guide:

https://developers.google.com/protocol-buffers/docs/tutorials

If you want to learn from code examples, take a look at the examples in the examples directory.

Documentation

The complete documentation for Protocol Buffers is available via the web at:

https://developers.google.com/protocol-buffers/