Package: io.kanro.idea.plugin.protobuf.aip
Config: Registered in main plugin.xml
Implements support for Google API Improvement Proposals (AIP) — a set of design guidelines for Google APIs. The AIP spec defines conventions for resource types, standard methods, and field behaviors that this module validates and assists with.
AipAnnotator validates AIP conventions in proto files:
- Resource definition correctness
- Standard method patterns (Create, Get, List, Update, Delete)
- Field behavior annotations
AipCompletionContributor provides:
- Resource type name completion
- AIP method pattern suggestions
- Standard field names for AIP resources
Resolves (google.api.resource_reference) type strings to their target resource definitions. This allows navigation from a resource reference in one proto file to the resource definition in another.
AddResourceImportFix— Auto-import missing resource type definitions
AipSpecMethod defines the standard AIP method patterns and their expected signatures.
| File | Purpose |
|---|---|
AipOptions.kt |
AIP option definitions and constants |
Extension.kt |
Extension declarations |
annotator/AipAnnotator.kt |
AIP convention validation |
completion/AipCompletionContributor.kt |
AIP-aware completion |
method/AipSpecMethod.kt |
Standard method patterns |
quickfix/AddResourceImportFix.kt |
Auto-import fix |
reference/AipResourceReference.kt |
Resource reference resolution |
reference/AipResourceResolver.kt |
Resource type resolver |