temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 1 | Protocol Buffers - Google's data interchange format |
Feng Xiao | 17007a6 | 2014-08-28 14:39:49 -0700 | [diff] [blame] | 2 | =================================================== |
| 3 | |
Colin Cross | 11fb7ae | 2018-11-04 17:34:26 -0800 | [diff] [blame] | 4 | [](https://travis-ci.org/google/protobuf) [](https://ci.appveyor.com/project/protobuf/protobuf) |
Feng Xiao | 0c7f624 | 2014-12-12 17:22:35 -0800 | [diff] [blame] | 5 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 6 | Copyright 2008 Google Inc. |
Feng Xiao | 17007a6 | 2014-08-28 14:39:49 -0700 | [diff] [blame] | 7 | |
Feng Xiao | e9c00d9 | 2014-08-26 16:16:00 -0700 | [diff] [blame] | 8 | https://developers.google.com/protocol-buffers/ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 9 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 10 | Overview |
| 11 | -------- |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 12 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 13 | Protocol Buffers (a.k.a., protobuf) are Google's language-neutral, |
| 14 | platform-neutral, extensible mechanism for serializing structured data. You |
Sylvain Baubeau | e5ec85e | 2016-01-25 21:41:31 +0100 | [diff] [blame] | 15 | can find [protobuf's documentation on the Google Developers site](https://developers.google.com/protocol-buffers/). |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 16 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 17 | This README file contains protobuf installation instructions. To install |
| 18 | protobuf, you need to install the protocol compiler (used to compile .proto |
| 19 | files) and the protobuf runtime for your chosen programming language. |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 20 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 21 | Protocol Compiler Installation |
| 22 | ------------------------------ |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 23 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 24 | The protocol compiler is written in C++. If you are using C++, please follow |
| 25 | the [C++ Installation Instructions](src/README.md) to install protoc along |
| 26 | with the C++ runtime. |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 27 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 28 | For non-C++ users, the simplest way to install the protocol compiler is to |
| 29 | download a pre-built binary from our release page: |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 30 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 31 | [https://github.com/google/protobuf/releases](https://github.com/google/protobuf/releases) |
Feng Xiao | de00052 | 2014-08-28 11:18:51 -0700 | [diff] [blame] | 32 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 33 | In the downloads section of each release, you can find pre-built binaries in |
| 34 | zip packages: protoc-$VERSION-$PLATFORM.zip. It contains the protoc binary |
| 35 | as well as a set of standard .proto files distributed along with protobuf. |
Feng Xiao | de00052 | 2014-08-28 11:18:51 -0700 | [diff] [blame] | 36 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 37 | If you are looking for an old version that is not available in the release |
| 38 | page, check out the maven repo here: |
Feng Xiao | de00052 | 2014-08-28 11:18:51 -0700 | [diff] [blame] | 39 | |
Colin Cross | 11fb7ae | 2018-11-04 17:34:26 -0800 | [diff] [blame] | 40 | [http://repo1.maven.org/maven2/com/google/protobuf/protoc/](http://repo1.maven.org/maven2/com/google/protobuf/protoc/) |
Feng Xiao | de00052 | 2014-08-28 11:18:51 -0700 | [diff] [blame] | 41 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 42 | These pre-built binaries are only provided for released versions. If you want |
| 43 | to use the github master version at HEAD, or you need to modify protobuf code, |
| 44 | or you are using C++, it's recommended to build your own protoc binary from |
| 45 | source. |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 46 | |
Sylvain Baubeau | e5ec85e | 2016-01-25 21:41:31 +0100 | [diff] [blame] | 47 | If you would like to build protoc binary from source, see the [C++ Installation |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 48 | Instructions](src/README.md). |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 49 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 50 | Protobuf Runtime Installation |
| 51 | ----------------------------- |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 52 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 53 | Protobuf supports several different programming languages. For each programming |
| 54 | language, you can find instructions in the corresponding source directory about |
| 55 | how to install protobuf runtime for that specific language: |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 56 | |
Colin Cross | 11fb7ae | 2018-11-04 17:34:26 -0800 | [diff] [blame] | 57 | | Language | Source | |
| 58 | |--------------------------------------|-------------------------------------------------------| |
| 59 | | C++ (include C++ runtime and protoc) | [src](src) | |
| 60 | | Java | [java](java) | |
| 61 | | Python | [python](python) | |
| 62 | | Objective-C | [objectivec](objectivec) | |
| 63 | | C# | [csharp](csharp) | |
| 64 | | JavaNano | [javanano](javanano) | |
| 65 | | JavaScript | [js](js) | |
| 66 | | Ruby | [ruby](ruby) | |
| 67 | | Go | [golang/protobuf](https://github.com/golang/protobuf) | |
| 68 | | PHP | TBD | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 69 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 70 | |
Colin Cross | 11fb7ae | 2018-11-04 17:34:26 -0800 | [diff] [blame] | 71 | Usage |
| 72 | ----- |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 73 | |
| 74 | The complete documentation for Protocol Buffers is available via the |
| 75 | web at: |
| 76 | |
Colin Cross | 11fb7ae | 2018-11-04 17:34:26 -0800 | [diff] [blame] | 77 | https://developers.google.com/protocol-buffers/ |