No description
Find a file
Maciej Litwiniuk ff5007f929 Add example in ruby (#11717)
examples directory was missing an example in ruby, this PR aims to fix this.

Closes #11717

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11717 from mlitwiniuk:ruby_example 14a5d1a34a
PiperOrigin-RevId: 514756892
2023-03-07 09:33:59 -08:00
.github Deprecate SupportsUnknownEnumValues on Message reflection. Use FieldDescriptor or EnumDescriptor instead. 2023-03-06 21:19:29 -08:00
build_defs Add release tests for statically linked binaries 2023-03-06 10:26:21 -08:00
ci Modify release artifacts for protoc to statically link system libraries. 2023-02-28 14:13:48 -08:00
cmake Add release tests for statically linked binaries 2023-03-06 10:26:21 -08:00
conformance Internal Code Change 2023-03-06 23:44:12 -08:00
csharp Auto-generate files after cl/514587333 2023-03-07 03:01:08 +00:00
docs Update third_party.md add protobuf-decoder-explainer (#11830) 2023-02-07 16:41:27 -08:00
editors [editors/emacs] Fix protobuf-mode definition (#9572) 2022-03-03 09:16:46 -08:00
examples Add example in ruby (#11717) 2023-03-07 09:33:59 -08:00
java Remove unnecessary has bits from proto2 Java. 2023-03-07 09:26:46 -08:00
objectivec Internal change 2023-02-24 10:33:07 -08:00
php Parallelize the build of the PHP extension 2023-03-06 07:10:14 -08:00
pkg Fix released protoc path 2023-03-06 15:55:28 -08:00
python Deprecate SupportsUnknownEnumValues on Message reflection. Use FieldDescriptor or EnumDescriptor instead. 2023-03-06 21:19:29 -08:00
ruby Ruby: Implement Write Barriers (#11793) 2023-02-23 13:45:45 -08:00
rust Add support for proto dependencies to rust_proto_library 2023-03-07 06:51:52 -08:00
src Remove unnecessary has bits from proto2 Java. 2023-03-07 09:26:46 -08:00
third_party Bump to Abseil 20230125.rc3 for cmake builds (#11663) 2023-01-25 09:41:06 -08:00
toolchain Add libm linkage to toolchains 2023-03-01 15:00:24 -08:00
.bazelignore Clean up leftover benchmark cruft (#10480) 2022-08-29 16:05:04 -04:00
.bazelrc Modify release artifacts for protoc to statically link system libraries. 2023-02-28 14:13:48 -08:00
.gitignore Migrate to composite GHA actions (#11718) 2023-02-01 11:34:03 -08:00
.gitmodules Breaking change: Migrate to Abseil's logging library. 2023-01-24 21:51:03 -08:00
.readthedocs.yml python: publish sphinx docs to read the docs 2020-02-28 13:36:50 -06: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
BUILD.bazel Add release tests for statically linked binaries 2023-03-06 10:26:21 -08:00
CMakeLists.txt Add release tests for statically linked binaries 2023-03-06 10:26:21 -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 Squashed 'third_party/utf8_range/' content from commit 72c943dea 2023-01-19 16:02:55 -08:00
CONTRIBUTORS.txt Match service argument names to abstract interface (#9418) 2022-02-03 09:14:44 -08: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 Migrate remaining macOS tests to GHA actions 2023-02-02 15:54:29 -08:00
global.json Update .NET SDKs to LTS versions 2021-11-10 08:49:53 +13:00
google3_export_generated_files.sh Bump protobuf to latest upb version. 2023-01-14 00:11:12 -08:00
LICENSE Squashed 'third_party/utf8_range/' content from commit 72c943dea 2023-01-19 16:02:55 -08:00
maven_install.json Adding new kotlin dependency 2022-08-12 13:16:40 -07:00
Protobuf-C++.podspec Open-source some of our string_view tests. 2023-02-16 14:19:33 -08:00
protobuf.bzl Add missing mnemonic on a couple of proto compilation actions. 2023-01-17 11:00:10 -08:00
Protobuf.podspec Open-source some of our string_view tests. 2023-02-16 14:19:33 -08:00
protobuf_deps.bzl Bump upb version to fix ruby flakes 2023-02-02 20:49:50 -08: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 Open-source some of our string_view tests. 2023-02-16 14:19:33 -08:00
README.md Updates links to use the new protobuf.dev site, and adds a link to the new version support page. 2023-02-09 15:01:54 -08:00
regenerate_stale_files.sh [ObjC] Set up a stateless test for the WKTs. 2023-02-10 14:12:37 -08:00
SECURITY.md grammar nit 2021-08-13 14:50:07 -04:00
update_subtrees.sh Merge branch 'main' into utf8_range_dep 2023-01-19 18:11:34 -08:00
version.json Undo ruby major version bump based on discussions with cloud team. 2023-01-31 12:13:23 -08:00
WORKSPACE Implement a minimal, internal, experimental rust_proto_library rule. 2023-03-06 14:11:18 -08:00

Protocol Buffers - Google's data interchange format

Copyright 2008 Google Inc.

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.

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 at the Protocol Buffers doc site.

Support Policy

Read about our version support policy to stay current on support timeframes for the language libraries.

Developer Community

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