Protobuf Blueprint is an Intellij Idea plugin that allows you to generate Protocol Buffers code using simple format.
-
Using IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "Protobuf Blueprint" > Install Plugin
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
- Go to Tools -> Protobuf Blueprint to open plugin tool window.
- Follow the format hint in the plugin tool window to generate the code.
Break the line to complete the input.
Message:
Use PascalCase for message names.
message messageName messageName messageName
Enum:
Use PascalCase for enum name and CAPITALS_WITH_UNDERSCORES for enum values.
enum enumName enum_value enum_value enum_value
Service:
Use PascalCase for service name and rpc names.
service serviceName rpcName rpcName rpcName