# Protobuf.Tutorial **Repository Path**: hexu1985/Protobuf.Tutorial ## Basic Information - **Project Name**: Protobuf.Tutorial - **Description**: Google Protobuffer使用简介 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-26 - **Last Updated**: 2025-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Protobuf Tutorial ## Table of contents ### [Protobuf入门](getting_started) - [protobuf概述](getting_started/addressbook) - [源码编译protobuf(cmake)](getting_started/build_by_cmake) ### [Protobuf 类型与编码](data_type_and_encoding) - [protobuf 类型与编码概述](data_type_and_encoding/summarize) - [Base 128 Varint编码](data_type_and_encoding/base_128_varint) - [ZigZag编码](data_type_and_encoding/zig_zag) - [Lenght-delimited编码](data_type_and_encoding/length_delimited) - [Non-varint编码数字类型](data_type_and_encoding/non_varint_numbers) - [repeated类型](data_type_and_encoding/repeated_elements) - [嵌套子类型](data_type_and_encoding/submessages) - [map类型](data_type_and_encoding/map_elements) - [any类型](data_type_and_encoding/any) - [one_of类型](data_type_and_encoding/one_of) ### 快速安装protobuf开放环境 ubuntu环境下可以通过apt安装protobuf,安装的版本无法进行指定 ``` $ sudo apt update $ sudo apt install libprotobuf-dev protobuf-compiler ``` 检查是否安装成功。 ``` $ protoc --version ``` ### 参考资料: - 项目链接 https://github.com/google/protobuf - pythontutorial https://developers.google.com/protocol-buffers/docs/pythontutorial - python-generated https://developers.google.com/protocol-buffers/docs/reference/python-generated#extension - 语言指南 https://developers.google.com/protocol-buffers/docs/proto3 - API文档 https://protobuf.com.cn/ - API文档 https://alovn.cn/docs/protobuf/ - Protobuf API文档 https://developers.google.com/protocol-buffers/docs/reference/python/?hl=zh-cn - gRPC官方文档中文版 https://doc.oschina.net/grpc