version: v2
plugins:
  # Go stubs → gen/pii/v1/
  - remote: buf.build/protocolbuffers/go
    out: gen
    opt:
      - paths=source_relative

  # Go gRPC stubs → gen/pii/v1/
  - remote: buf.build/grpc/go
    out: gen
    opt:
      - paths=source_relative

  # Python stubs → services/pii/gen/
  - remote: buf.build/protocolbuffers/python
    out: services/pii/gen

  # Python gRPC stubs → services/pii/gen/
  - remote: buf.build/grpc/python
    out: services/pii/gen
