Summary
In this chapter, we got more practical experience with Protobuf. We learned how to interact with Protobuf in Python and we touched upon as many Protobuf concepts as possible, including maps, repeated, oneofs, nested types, and field options. Then, we learned how to serialize/deserialize data to/from a file. Finally, we linked everything to a CLI, which has the add
and list
commands.
In the next chapter, we will create a protoc
plugin in Go that lets us generate functions for data validation. With these functions, we will check whether the phone number and email address provided by the user are correct.