Go to file
Mike Kruskal 232ecf4a6f Bump protobuf to latest upb version.
PiperOrigin-RevId: 502022138
2023-01-14 00:11:12 -08:00
.github Add messaging about second approvals to merge directly to Mergeable check. 2023-01-04 16:04:18 -08:00
build_defs Bump protobuf to latest upb version. 2023-01-14 00:11:12 -08:00
cmake Allow selection of system default C++ version. 2023-01-11 12:38:37 -08:00
conformance Bump protobuf to latest upb version. 2023-01-14 00:11:12 -08:00
csharp Changes required for internal Google syncing of C# runtime. 2023-01-10 06:55:57 -08:00
docs Fix broken "Programming Languages" list in third_party.md. 2022-12-19 11:13:04 -08:00
editors Sync from Piper @acozzette/proto_github_202203101748 2022-03-10 18:36:42 +00:00
examples Correct the link name for BUILD.bazel file (#10662) 2022-09-27 12:41:03 -07:00
java Expect fail when serialize inf and nan for Value.number_value in json format. fixes #11259 2023-01-09 15:57:42 -08:00
kokoro Migrate docker images to the new Artifact Registry location. 2023-01-12 16:09:59 -08:00
objectivec Drop the assert. 2023-01-12 08:32:15 -08:00
php Bump protobuf to latest upb version. 2023-01-14 00:11:12 -08:00
pkg Add missing test utility to CMake rules. 2023-01-10 19:43:18 -08:00
python Soft deprecate python MessageFactory 2023-01-13 03:18:24 -08:00
ruby Bump protobuf to latest upb version. 2023-01-14 00:11:12 -08:00
src Bump protobuf to latest upb version. 2023-01-14 00:11:12 -08:00
third_party Add bazel php:release target for PECL tgz using generated package.xml (#10845) 2022-11-01 13:44:10 -04:00
toolchain Enable the Copybara sync for all files. 2022-11-01 10:19:37 -07:00
.bazelignore Clean up leftover benchmark cruft (#10480) 2022-08-29 16:05:04 -04:00
.bazelrc Add sanitized builds to Kokoro (#10706) 2022-10-06 10:50:18 -07:00
.gitignore Bazelify ruby runtime (#10525) 2023-01-03 12:12:47 -08:00
.gitmodules Add submodule for utf8_range 2022-10-10 12:53:16 -07:00
.readthedocs.yml python: publish sphinx docs to read the docs 2020-02-28 13:36:50 -06:00
BUILD.bazel Bazelify ruby runtime (#10525) 2023-01-03 12:12:47 -08:00
CHANGES.txt Remove CHANGES.txt, except for unreleased changes staged for 22.0. 2022-12-20 09:45:04 -08:00
CMakeLists.txt Allow selection of system default C++ version. 2023-01-11 12:38:37 -08:00
CODE_OF_CONDUCT.md Add a code of conduct based on https://www.contributor-covenant.org/ and https://github.com/carbon-language/carbon-lang/blob/trunk/CODE_OF_CONDUCT.md 2022-12-01 09:29:45 -08:00
CONTRIBUTING.md Sync from Piper @441896533 2022-04-14 17:36:14 -07:00
CONTRIBUTORS.txt Sync from Piper @427369078 2022-02-08 20:53:31 -08:00
LICENSE Cleanup LICENSE file. 2018-03-26 15:03:41 -07:00
Protobuf-C++.podspec Main 202212161220 (#11340) 2022-12-16 21:47:18 -08:00
Protobuf.podspec Main 202212161220 (#11340) 2022-12-16 21:47:18 -08:00
README.md Standardize link formatting in documentation. 2022-11-23 13:54:32 -08:00
SECURITY.md Sync from Piper @391414001 2021-08-17 17:26:34 -07:00
WORKSPACE Bazelify ruby runtime (#10525) 2023-01-03 12:12:47 -08:00
appveyor.bat Sync from Piper @425656941 2022-02-01 18:24:53 +00: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 Sync from Piper @484138213 2022-10-26 20:10:29 -07:00
generate_descriptor_proto.sh Sync from Piper @467099277 2022-08-11 20:55:01 -07:00
global.json Sync from Piper @425656941 2022-02-01 18:24:53 +00:00
google3_export_generated_files.sh Bump protobuf to latest upb version. 2023-01-14 00:11:12 -08:00
maven_install.json Adding new kotlin dependency 2022-08-12 13:16:40 -07:00
protobuf.bzl Bazelify ruby runtime (#10525) 2023-01-03 12:12:47 -08:00
protobuf_deps.bzl Bump protobuf to latest upb version. 2023-01-14 00:11:12 -08:00
protobuf_release.bzl Sync from Piper @446230931 2022-05-03 17:41:54 +00:00
protobuf_version.bzl Main 202212161220 (#11340) 2022-12-16 21:47:18 -08:00
push_auto_update.sh Regenerate stale files before every test that requires them. 2022-12-20 18:44:28 -08:00
regenerate_stale_files.sh Fix broken staleness GHA jobs. 2022-12-21 12:50:23 -08:00
version.json Update version.json to: 21.13-dev 2022-12-16 12:22:20 -05:00

README.md

Protocol Buffers - Google's data interchange format

Copyright 2008 Google Inc.

Protocol Buffers documentation

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 GitHub release page.

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 repository.

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
Javascript protocolbuffers/protobuf-javascript

Quick Start

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

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

Documentation

The complete documentation is available via the Protocol Buffers documentation.

Developer Community

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