Go to file
Mike Kruskal 7b091c5b2f
Upgrade to MSVC 2017 (#10437)
2022-08-22 14:29:12 -07:00
.github Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
benchmarks Specify that the python benchmark requires python 3 (#10402) 2022-08-12 15:44:13 -07:00
build_defs Sync from Piper @467099277 2022-08-11 20:55:01 -07:00
cmake Update abseil-cpp.cmake (#10436) 2022-08-22 13:51:28 -07:00
conformance Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
csharp Remove all autotools usage (#10132) 2022-08-10 22:51:29 -07:00
docs Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
editors [editors/emacs] Fix protobuf-mode definition (#9572) 2022-03-03 09:16:46 -08:00
examples Sync from Piper @467099277 2022-08-11 20:55:01 -07:00
java Adding new kotlin dependency 2022-08-12 13:16:40 -07:00
kokoro Upgrade to MSVC 2017 (#10437) 2022-08-22 14:29:12 -07:00
objectivec Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
php Bumping Abseil version to latest LTS (#10433) 2022-08-21 00:54:31 -07:00
pkg Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
protoc-artifacts Remove all autotools usage (#10132) 2022-08-10 22:51:29 -07:00
python Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
ruby Sync from Piper @467234621 2022-08-12 10:08:25 -07:00
src Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
third_party Add a real dependency on Abseil (#10416) 2022-08-16 16:31:35 -07:00
toolchain Remove all autotools usage (#10132) 2022-08-10 22:51:29 -07:00
.bazelignore Update CMake configuration to add a dependency on Abseil (#10401) 2022-08-12 16:41:00 -07:00
.bazelrc Upgrade third_party/googletest submodule to current main branch (#10393) 2022-08-11 18:22:15 -07:00
.gitignore Remove all autotools usage (#10132) 2022-08-10 22:51:29 -07:00
.gitmodules Add a real dependency on Abseil (#10416) 2022-08-16 16:31:35 -07:00
.readthedocs.yml python: publish sphinx docs to read the docs 2020-02-28 13:36:50 -06:00
BUILD.bazel Fixing reordered proto library includes 2022-08-12 10:44:59 -07:00
CHANGES.txt Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
CMakeLists.txt Add a real dependency on Abseil (#10416) 2022-08-16 16:31:35 -07:00
CONTRIBUTING.md Replace master with main in URLs & docs 2022-04-12 10:25:08 -07:00
CONTRIBUTORS.txt Match service argument names to abstract interface (#9418) 2022-02-03 09:14:44 -08:00
LICENSE Cleanup LICENSE file. 2018-03-26 15:03:41 -07:00
Protobuf-C++.podspec Updating version.json and repo version numbers to: 21.5 2022-08-09 09:24:45 -07:00
Protobuf.podspec Updating version.json and repo version numbers to: 21.5 2022-08-09 09:24:45 -07:00
README.md Remove all autotools usage (#10132) 2022-08-10 22:51:29 -07:00
SECURITY.md grammar nit 2021-08-13 14:50:07 -04:00
WORKSPACE Sync from Piper @467099277 2022-08-11 20:55:01 -07:00
appveyor.bat Update .NET SDKs to LTS versions 2021-11-10 08:49:53 +13:00
appveyor.yml Upgrade to MSVC 2017 (#10437) 2022-08-22 14:29:12 -07:00
fix_permissions.sh Set execute bit on files if and only if they begin with (#!). (#7347) 2020-04-01 15:28:25 -07:00
generate_changelog.py Remove the JavaScript implementation (#9874) 2022-04-28 12:08:26 -07:00
generate_descriptor_proto.sh Sync from Piper @467099277 2022-08-11 20:55:01 -07:00
global.json Update .NET SDKs to LTS versions 2021-11-10 08:49:53 +13:00
maven_install.json Adding new kotlin dependency 2022-08-12 13:16:40 -07:00
protobuf.bzl Integrate from Piper for C++, Java, and Python (#10429) 2022-08-20 14:22:08 -07:00
protobuf_deps.bzl Bumping Abseil version to latest LTS (#10433) 2022-08-21 00:54:31 -07:00
protobuf_release.bzl Update protobuf_version.bzl to separate protoc and per-language java major version (#9900) 2022-05-03 11:58:31 -04:00
protobuf_version.bzl Updating version.json and repo version numbers to: 21.5 2022-08-09 09:24:45 -07:00
version.json Update version.json to: 21.6-dev 2022-08-09 22:22:11 +00:00

README.md

Protocol Buffers - Google's data interchange format

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/protocolbuffers/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 main 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:

Language Source
C++ (include C++ runtime and protoc) src
Java java
Python python
Objective-C objectivec
C# csharp
Ruby ruby
Go protocolbuffers/protobuf-go
PHP php
Dart dart-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/

Developer Community

To be alerted to upcoming changes in Protocol Buffers and connect with protobuf developers and users, join the Google Group.