clients: regenerate Python + Go protos for alarm RPCs (PR E.1) #105

Merged
dohertj2 merged 1 commits from track-e1-proto-regen into main 2026-04-30 15:47:10 -04:00
Owner

Summary

Mechanical regen of client-side proto bindings following PR A.1 (#104). Ran the per-language scripts:

  • clients/python/generate-proto.ps1mxaccess_gateway_pb2.py + mxaccess_gateway_pb2_grpc.py
  • clients/go/generate-proto.ps1mxaccess_gateway.pb.go + mxaccess_gateway_grpc.pb.go + a whitespace diff in galaxy_repository.pb.go

The .NET binding regenerates on csproj rebuild via Grpc.Tools — its Generated/MxaccessGateway*.cs was committed as part of A.1. Java + Rust regen at build time via the gradle plugin / build.rs respectively; no committed output to refresh.

Verified the new types are wired into the regenerated bindings:

OnAlarmTransitionEvent.DESCRIPTOR.fields → alarm_full_reference, alarm_type_name, category, current_value, description, ...
AcknowledgeAlarmRequest.DESCRIPTOR.fields → alarm_full_reference, client_correlation_id, comment, operator_user, session_id
ActiveAlarmSnapshot.DESCRIPTOR.fields → alarm_full_reference, alarm_type_name, category, current_state, current_value, ...

Test plan

  • python generate-proto.ps1 runs clean
  • go generate-proto.ps1 runs clean
  • Python smoke-import of regenerated _pb2 module exposes the new types
  • Go diff shows new struct types: OnAlarmTransitionEvent, ActiveAlarmSnapshot, AcknowledgeAlarmRequest, AcknowledgeAlarmReply, QueryActiveAlarmsRequest

Follow-up

E.2 - E.6 layer hand-written SDK methods (alarm subscribe/ack/query verbs) on top of the regenerated types — independent per-language PRs.

## Summary Mechanical regen of client-side proto bindings following PR A.1 (#104). Ran the per-language scripts: - `clients/python/generate-proto.ps1` → `mxaccess_gateway_pb2.py` + `mxaccess_gateway_pb2_grpc.py` - `clients/go/generate-proto.ps1` → `mxaccess_gateway.pb.go` + `mxaccess_gateway_grpc.pb.go` + a whitespace diff in `galaxy_repository.pb.go` The .NET binding regenerates on csproj rebuild via Grpc.Tools — its `Generated/MxaccessGateway*.cs` was committed as part of A.1. Java + Rust regen at build time via the gradle plugin / build.rs respectively; no committed output to refresh. Verified the new types are wired into the regenerated bindings: ``` OnAlarmTransitionEvent.DESCRIPTOR.fields → alarm_full_reference, alarm_type_name, category, current_value, description, ... AcknowledgeAlarmRequest.DESCRIPTOR.fields → alarm_full_reference, client_correlation_id, comment, operator_user, session_id ActiveAlarmSnapshot.DESCRIPTOR.fields → alarm_full_reference, alarm_type_name, category, current_state, current_value, ... ``` ## Test plan - [x] `python generate-proto.ps1` runs clean - [x] `go generate-proto.ps1` runs clean - [x] Python smoke-import of regenerated `_pb2` module exposes the new types - [x] Go diff shows new struct types: `OnAlarmTransitionEvent`, `ActiveAlarmSnapshot`, `AcknowledgeAlarmRequest`, `AcknowledgeAlarmReply`, `QueryActiveAlarmsRequest` ## Follow-up E.2 - E.6 layer hand-written SDK methods (alarm subscribe/ack/query verbs) on top of the regenerated types — independent per-language PRs.
dohertj2 added 1 commit 2026-04-30 15:47:02 -04:00
Pure mechanical regen following PR A.1 (alarm-transition event family
+ AcknowledgeAlarm / QueryActiveAlarms public RPCs). Ran:

- clients/python/generate-proto.ps1 → mxaccess_gateway_pb2.py +
  mxaccess_gateway_pb2_grpc.py.
- clients/go/generate-proto.ps1 → mxaccess_gateway.pb.go +
  mxaccess_gateway_grpc.pb.go + galaxy_repository.pb.go (whitespace
  diff from upstream protoc minor version).

The .NET binding regenerates on csproj rebuild via Grpc.Tools — its
artifact (Generated/MxaccessGateway*.cs) was already updated as part
of A.1's commit. Java + Rust regen happens at build time via the
gradle plugin / build.rs respectively, with no committed output to
update.

Smoke-imported the regenerated Python descriptors:
  OnAlarmTransitionEvent.DESCRIPTOR.fields → alarm_full_reference,
    alarm_type_name, category, current_value, description, ...
  AcknowledgeAlarmRequest.DESCRIPTOR.fields → alarm_full_reference,
    client_correlation_id, comment, operator_user, session_id
  ActiveAlarmSnapshot.DESCRIPTOR.fields → alarm_full_reference,
    alarm_type_name, category, current_state, current_value, ...

PRs E.2 - E.6 layer hand-written SDK methods on top of the regenerated
types — those land per-language as separate PRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
dohertj2 merged commit 26d0e2c471 into main 2026-04-30 15:47:10 -04:00
dohertj2 deleted branch track-e1-proto-regen 2026-04-30 15:47:11 -04:00
Sign in to join this conversation.