2017 © Pedro Peláez
 

library protobuf

image

google/protobuf

  • Monday, July 30, 2018
  • by stanley-cheung
  • Repository
  • 1876 Watchers
  • 27955 Stars
  • 790,876 Installations
  • C++
  • 52 Dependents
  • 4 Suggesters
  • 7820 Forks
  • 424 Open issues
  • 89 Versions
  • 35 % Grown

The README.md

Protocol Buffers - Google's data interchange format

OpenSSF Scorecard, (*1)

Copyright 2023 Google LLC, (*2)

Overview

Protocol Buffers (a.k.a., protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data. You can learn more about it in protobuf's documentation., (*3)

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., (*4)

Working With Protobuf Source Code

Most users will find working from supported releases to be the easiest path., (*5)

If you choose to work from the head revision of the main branch your build will occasionally be broken by source-incompatible changes and insufficiently-tested (and therefore broken) behavior., (*6)

If you are using C++ or otherwise need to build protobuf from source as a part of your project, you should pin to a release commit on a release branch., (*7)

This is because even release branches can experience some instability in between release commits., (*8)

Bazel with Bzlmod

Protobuf supports Bzlmod with Bazel 7 +. Users should specify a dependency on protobuf in their MODULE.bazel file as follows., (*9)

bazel_dep(name = "protobuf", version = <VERSION>)

Users can optionally override the repo name, such as for compatibility with WORKSPACE., (*10)

bazel_dep(name = "protobuf", version = <VERSION>, repo_name = "com_google_protobuf")

Bazel with WORKSPACE

Users can also add the following to their legacy WORKSPACE file., (*11)

Note that the protobuf_extra_deps.bzl is added in the v30.x release., (*12)

http_archive(
    name = "com_google_protobuf",
    strip_prefix = "protobuf-VERSION",
    sha256 = ...,
    url = ...,
)

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

load("@com_google_protobuf//:protobuf_extra_deps.bzl", "protobuf_extra_deps")

protobuf_extra_deps();

Protobuf Compiler Installation

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

For non-C++ users, the simplest way to install the protocol compiler is to download a pre-built binary from our GitHub release page., (*14)

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., (*15)

If you are looking for an old version that is not available in the release page, check out the Maven repository., (*16)

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., (*17)

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

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:, (*19)

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., (*20)

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

Documentation

The complete documentation is available at the Protocol Buffers doc site., (*22)

Support Policy

Read about our version support policy to stay current on support timeframes for the language libraries., (*23)

Developer Community

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

The Versions

30/07 2018

dev-3.0.0-pre

dev-3.0.0-pre

  Sources   Download

30/07 2018

dev-jsbinsplit

dev-jsbinsplit

  Sources   Download

30/07 2018

3.0.x-dev

3.0.9999999.9999999-dev

  Sources   Download

30/07 2018

dev-3.0.0-beta-3

dev-3.0.0-beta-3

  Sources   Download

30/07 2018

dev-3.0.0-beta-4

dev-3.0.0-beta-4

  Sources   Download

30/07 2018

2.7.0.x-dev

2.7.0.9999999-dev

  Sources   Download

30/07 2018

dev-package-json

dev-package-json

  Sources   Download

30/07 2018

dev-test_jenkins

dev-test_jenkins

  Sources   Download

30/07 2018

dev-objc-framework-fix

dev-objc-framework-fix

  Sources   Download

28/07 2018

dev-aarch64-build

dev-aarch64-build https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

27/07 2018

3.6.x-dev

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

27/07 2018

dev-master

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

19/07 2018

3.5.x-dev

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

21/06 2018

dev-csharp3.6.0

dev-csharp3.6.0 https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

19/06 2018

dev-php-generated-dev

dev-php-generated-dev https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

19/06 2018

dev-issuetemplates

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

15/06 2018

dev-kokoro-osx

dev-kokoro-osx https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

08/06 2018

v3.6.0.1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

06/06 2018

v3.6.0

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

30/05 2018

v3.6.0rc2

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

24/05 2018

v3.6.0rc1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

07/05 2018

dev-python_deps

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

01/05 2018

dev-integrate_base

dev-integrate_base

  Sources   Download

01/05 2018

dev-csharp_remove_beta_notice

dev-csharp_remove_beta_notice

  Sources   Download

01/05 2018

dev-integrate

dev-integrate

  Sources   Download

01/05 2018

dev-test_jenkins2

dev-test_jenkins2

  Sources   Download

01/05 2018

dev-benchmarks

dev-benchmarks

  Sources   Download

01/05 2018

dev-rubypackagecap

dev-rubypackagecap

  Sources   Download

06/03 2018

v3.5.2

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

05/03 2018

v3.0.0-alpha-3.1

3.0.0.0-alpha3.1

  Sources   Download

05/03 2018

v3.0.0

3.0.0.0

  Sources   Download

05/03 2018

v3.0.0-alpha-1

3.0.0.0-alpha1

  Sources   Download

05/03 2018

v3.0.0-alpha-2

3.0.0.0-alpha2

  Sources   Download

05/03 2018

v3.0.0-alpha-3

3.0.0.0-alpha3

  Sources   Download

05/03 2018

v2.6.1

2.6.1.0

  Sources   Download

05/03 2018

v2.6.1rc1

2.6.1.0-RC1

  Sources   Download

05/03 2018

v3.0.0-beta-3.3

3.0.0.0-beta3.3

  Sources   Download

05/03 2018

v3.0.0-beta-4

3.0.0.0-beta4

  Sources   Download

05/03 2018

v3.0.2

3.0.2.0

  Sources   Download

05/03 2018

v2.5.0

2.5.0.0

  Sources   Download

05/03 2018

v2.6.0

2.6.0.0

  Sources   Download

05/03 2018

v3.0.0-beta-3.1

3.0.0.0-beta3.1

  Sources   Download

05/03 2018

v3.0.0-beta-3.2

3.0.0.0-beta3.2

  Sources   Download

05/03 2018

v2.4.1

2.4.1.0

  Sources   Download

05/03 2018

v3.0.0-beta-1

3.0.0.0-beta1

  Sources   Download

05/03 2018

v3.0.0-beta-1.1

3.0.0.0-beta1.1

  Sources   Download

05/03 2018

v3.0.0-beta-2

3.0.0.0-beta2

  Sources   Download

05/03 2018

v3.0.0-beta-3

3.0.0.0-beta3

  Sources   Download

05/03 2018

v3.0.0-alpha-4

3.0.0.0-alpha4

  Sources   Download

05/03 2018

v3.0.0-alpha-4.1

3.0.0.0-alpha4.1

  Sources   Download

07/02 2018

dev-cython_protobuf

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

31/01 2018

dev-Cython

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

05/01 2018

3.5.1.1-dev

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

05/01 2018

v3.5.1.1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

21/12 2017

v3.5.1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

20/12 2017

dev-jieluo

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

06/12 2017

3.5.0.1-dev

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

06/12 2017

v3.5.0.1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

27/11 2017

dev-anandolee-patch-1

dev-anandolee-patch-1 https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

13/11 2017

v3.5.0

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

20/10 2017

3.4.x-dev

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

14/09 2017

v3.4.1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

13/09 2017

dev-revert-3604-3.4.x

dev-revert-3604-3.4.x https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

16/08 2017

v3.4.0

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

12/08 2017

v3.4.0rc3

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

10/08 2017

v3.4.0rc2

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

07/08 2017

v3.4.0rc1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

22/06 2017

3.3.x-dev

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

22/06 2017

v3.3.2

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

19/06 2017

dev-javalite

dev-javalite

  Sources   Download

13/05 2017

v3.3.1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

27/04 2017

v3.3.0

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

24/04 2017

v3.3.0rc1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

04/04 2017

3.2.x-dev

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

04/04 2017

v3.2.1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

31/03 2017

dev-down

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

31/03 2017

dev-xiaofeng

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

28/01 2017

v3.2.0

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

28/01 2017

v3.2.0-alpha-1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

19/01 2017

v3.2.0rc2

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

12/01 2017

dev-javabench

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

11/01 2017

v3.2.0-rc.1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

29/11 2016

3.1.x-dev

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

01/10 2016

dev-java_experimental

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

26/09 2016

dev-jtattermusch-patch-2

dev-jtattermusch-patch-2 https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

24/09 2016

v3.1.0

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

24/09 2016

v3.1.0-alpha-1

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

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

22/09 2016

dev-jtattermusch-patch-1

dev-jtattermusch-patch-1 https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto

19/09 2016

dev-revert-2138-extension_tweak_to_3_1_branch

dev-revert-2138-extension_tweak_to_3_1_branch https://developers.google.com/protocol-buffers/

proto library for PHP

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5.0

 

The Development Requires

proto