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 | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 4 | Copyright 2008 Google Inc. |
Feng Xiao | 17007a6 | 2014-08-28 14:39:49 -0700 | [diff] [blame] | 5 | |
Feng Xiao | e9c00d9 | 2014-08-26 16:16:00 -0700 | [diff] [blame] | 6 | https://developers.google.com/protocol-buffers/ |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 7 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 8 | Overview |
| 9 | -------- |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 10 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 11 | Protocol Buffers (a.k.a., protobuf) are Google's language-neutral, |
| 12 | platform-neutral, extensible mechanism for serializing structured data. You |
Sylvain Baubeau | e5ec85e | 2016-01-25 21:41:31 +0100 | [diff] [blame] | 13 | 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] | 14 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 15 | This README file contains protobuf installation instructions. To install |
| 16 | protobuf, you need to install the protocol compiler (used to compile .proto |
| 17 | files) and the protobuf runtime for your chosen programming language. |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 18 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 19 | Protocol Compiler Installation |
| 20 | ------------------------------ |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 21 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 22 | The protocol compiler is written in C++. If you are using C++, please follow |
| 23 | the [C++ Installation Instructions](src/README.md) to install protoc along |
| 24 | with the C++ runtime. |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 25 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 26 | For non-C++ users, the simplest way to install the protocol compiler is to |
| 27 | download a pre-built binary from our release page: |
Feng Xiao | 64d8652 | 2016-01-06 16:25:35 -0800 | [diff] [blame] | 28 | |
Feng Xiao | afe98de | 2018-08-22 11:55:30 -0700 | [diff] [blame] | 29 | [https://github.com/protocolbuffers/protobuf/releases](https://github.com/protocolbuffers/protobuf/releases) |
Feng Xiao | de00052 | 2014-08-28 11:18:51 -0700 | [diff] [blame] | 30 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 31 | In the downloads section of each release, you can find pre-built binaries in |
| 32 | zip packages: protoc-$VERSION-$PLATFORM.zip. It contains the protoc binary |
| 33 | 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] | 34 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 35 | If you are looking for an old version that is not available in the release |
| 36 | page, check out the maven repo here: |
Feng Xiao | de00052 | 2014-08-28 11:18:51 -0700 | [diff] [blame] | 37 | |
Maxwell Paul Brickner | d07efba | 2017-06-23 09:25:03 -0400 | [diff] [blame] | 38 | [https://repo1.maven.org/maven2/com/google/protobuf/protoc/](https://repo1.maven.org/maven2/com/google/protobuf/protoc/) |
Feng Xiao | de00052 | 2014-08-28 11:18:51 -0700 | [diff] [blame] | 39 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 40 | These pre-built binaries are only provided for released versions. If you want |
noahdietz | 5abf802 | 2022-04-12 10:25:08 -0700 | [diff] [blame] | 41 | to use the github main version at HEAD, or you need to modify protobuf code, |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 42 | or you are using C++, it's recommended to build your own protoc binary from |
| 43 | source. |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 44 | |
Sylvain Baubeau | e5ec85e | 2016-01-25 21:41:31 +0100 | [diff] [blame] | 45 | 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] | 46 | Instructions](src/README.md). |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 47 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 48 | Protobuf Runtime Installation |
| 49 | ----------------------------- |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 50 | |
Feng Xiao | d0e0114 | 2016-01-21 17:06:38 -0800 | [diff] [blame] | 51 | Protobuf supports several different programming languages. For each programming |
| 52 | language, you can find instructions in the corresponding source directory about |
| 53 | how to install protobuf runtime for that specific language: |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 54 | |
Joshua Haberman | 96ccf40 | 2021-05-20 10:06:36 -0700 | [diff] [blame] | 55 | | Language | Source | |
| 56 | |--------------------------------------|-------------------------------------------------------------| |
| 57 | | C++ (include C++ runtime and protoc) | [src](src) | |
| 58 | | Java | [java](java) | |
| 59 | | Python | [python](python) | |
| 60 | | Objective-C | [objectivec](objectivec) | |
| 61 | | C# | [csharp](csharp) | |
Joshua Haberman | 96ccf40 | 2021-05-20 10:06:36 -0700 | [diff] [blame] | 62 | | Ruby | [ruby](ruby) | |
| 63 | | Go | [protocolbuffers/protobuf-go](https://github.com/protocolbuffers/protobuf-go)| |
| 64 | | PHP | [php](php) | |
| 65 | | Dart | [dart-lang/protobuf](https://github.com/dart-lang/protobuf) | |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 66 | |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 67 | Quick Start |
| 68 | ----------- |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 69 | |
Feng Xiao | 74bf45f | 2017-09-08 15:44:09 -0700 | [diff] [blame] | 70 | The best way to learn how to use protobuf is to follow the tutorials in our |
| 71 | developer guide: |
| 72 | |
| 73 | https://developers.google.com/protocol-buffers/docs/tutorials |
| 74 | |
| 75 | If you want to learn from code examples, take a look at the examples in the |
| 76 | [examples](examples) directory. |
| 77 | |
| 78 | Documentation |
| 79 | ------------- |
temporal | 40ee551 | 2008-07-10 02:12:20 +0000 | [diff] [blame] | 80 | |
| 81 | The complete documentation for Protocol Buffers is available via the |
| 82 | web at: |
| 83 | |
Marc Abramowitz | 86208c5 | 2017-02-18 13:05:19 -0800 | [diff] [blame] | 84 | https://developers.google.com/protocol-buffers/ |