Advanced Protobuf Features

Learn about the option of advanced features in Protobuf.

We'll cover the following

Previously, we encountered the option keyword while overriding the C# namespace for auto-generated code stubs based on our Protobuf files. However, this keyword can do a lot more than this. It can be applied at the file level, object level, and field level, depending on what option we want to use.

There are many different configuration options available in Protobuf. Some of them are no longer used and exist for legacy reasons, but there are several that are pretty useful. These are the options we'll focus on in this lesson.

Adding options to Protobuf files

We'll use the following interactive code widget to apply all of our code changes.

Get hands-on with 1400+ tech skills courses.