Skip to content

Codegen: Generate Go code from provisioning.proto #7467

Description

@wbreza

Summary

Run protoc to generate Go code from provisioning.proto into pkg/azdext/. This produces the type-safe Go structs, interfaces, and client/server stubs needed by all downstream components.

Parent Epic

Part of #7465 — Provisioning Providers in the AZD Extension Framework

Context

The project uses protoc with protoc-gen-go and protoc-gen-go-grpc plugins to generate Go code from .proto files. Generated files are placed in pkg/azdext/ alongside the existing generated code for service targets and framework services.

Detailed Requirements

  1. Run protoc with the same configuration used for service_target.proto and framework_service.proto
  2. Output files:
    • pkg/azdext/provisioning.pb.go — message types, serialization
    • pkg/azdext/provisioning_grpc.pb.go — gRPC service interfaces and stubs
  3. Verify generated code compiles cleanly
  4. Verify ProvisioningServiceServer and ProvisioningServiceClient interfaces are generated
  5. Verify UnimplementedProvisioningServiceServer struct is available for embedding
  6. Verify RegisterProvisioningServiceServer() function is generated

Acceptance Criteria

  • pkg/azdext/provisioning.pb.go generated with all message types
  • pkg/azdext/provisioning_grpc.pb.go generated with server/client interfaces
  • Generated code compiles without errors
  • Package imports align with existing pkg/azdext/ code
  • UnimplementedProvisioningServiceServer struct available
  • RegisterProvisioningServiceServer() function available

Dependencies

Files

  • Create: pkg/azdext/provisioning.pb.go (generated)
  • Create: pkg/azdext/provisioning_grpc.pb.go (generated)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions