diff --git a/.github/workflows/golang.yaml b/.github/workflows/golang.yaml index b5a6b0a..29519b5 100644 --- a/.github/workflows/golang.yaml +++ b/.github/workflows/golang.yaml @@ -1,4 +1,4 @@ -name: Golang +name: Protobuf concurrency: group: ${{github.repository}}-${{ github.ref_name }}-proto @@ -29,8 +29,6 @@ jobs: - run: git config --global url.https://$GH_ACCESS_TOKEN@github.com/.insteadOf https://github.com/ - uses: bufbuild/buf-setup-action@v1 - uses: bufbuild/buf-lint-action@v1 - with: - input: "proto" # - uses: bufbuild/buf-breaking-action@v1 # with: # # The 'main' branch of the GitHub repository that defines the module. @@ -63,5 +61,6 @@ jobs: git add --all && git commit -m "Buf re-generated protos" || echo "No changes to commit" git push golang: + needs: proto uses: zaphiro-technologies/github-workflows/.github/workflows/golang.yaml@main secrets: inherit diff --git a/.gitignore b/.gitignore index d491f3c..0c809d2 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,6 @@ go.work */.DS_Store .DS_Store output.txt +/dist + +*.pyc diff --git a/.golangci.yaml b/.golangci.yaml index 71e0afc..d84294e 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -18,11 +18,10 @@ linters-settings: - whyNoLint - unnamedResult gofmt: - gofmt: simplify: false - rewrite-rules: - - pattern: 'interface{}' - replacement: 'any' + rewrite-rules: + - pattern: 'interface{}' + replacement: 'any' lll: line-length: 140 misspell: diff --git a/Makefile b/Makefile index d8ce4bb..9e232e1 100644 --- a/Makefile +++ b/Makefile @@ -20,18 +20,18 @@ cov: .PHONY: generate generate: - cd proto; buf generate + buf generate .PHONY: docs docs: - ../proto-gen-md-diagrams/proto-gen-md-diagrams -d proto -md true + ../proto-gen-md-diagrams/proto-gen-md-diagrams -d zaphiro -md true mkdir -p docs - # mv -f proto/**/*.md docs #why it works on my mac but not in the action? - mv -f proto/*/v1/*.md docs + # mv -f zaphiro/**/*.md docs #why it works on my mac but not in the action? + mv -f zaphiro/*/v1/*.md docs .PHONY: proto-lint proto-lint: - cd proto; buf lint + buf lint # Mandatory ci-test: cov diff --git a/README.md b/README.md index 442b046..a9ff1e5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ At the time being this repository includes the following Protocol Buffer packages: - _Grid_ package collects grid related messages, defined in - [`proto/grid/v1`](./proto/grid/v1/), which currently include: + [`zaphiro/grid/v1`](./zaphiro/grid/v1/), which currently include: - `Data` protocol buffer package, that includes the following messages - `Data`: a single measurement data - `DataSet`: a collection of measurement data. @@ -36,11 +36,12 @@ packages: inherited by: - `GridEvent`: a message that represent grid events. - _Platform_ package collects platform related messages, defined in - [`proto/platform/v1`](./proto/platform/v1/), which currently include: + [`zaphiro/platform/v1`](./zaphiro/platform/v1/), which currently include: - `Task`: a task to be performed by an service in the platform. - `Notification`: a notification produced by a service in the platform. - _C37118_ package collects messages related to the IEEE c37.118 standard, - defined in [`proto/c37118/v1`](./proto/c37118/v1/), which currently include: + defined in [`zaphiro/c37118/v1`](./zaphiro/c37118/v1/), which currently + include: - `Conf2Frame`: a Protocol Buffer used to store PMU configuration frames. - `Stat`: a Protocol Buffer used to store PMU measurement Stat. @@ -48,6 +49,27 @@ packages: All protocol buffers are documented in [docs](./docs). +### Installation + +Currently code is generated for: + +- [go](go) +- [python](python) + +#### Python + +Installation was tested with poetry: + +```bash +poetry add git+https://github.com/zaphiro-technologies/protobuf.git#v0.0.5 +``` + +#### Go + +```bash +go install github.com/zaphiro-technologies/protobuf/go@v0.0.5 +``` + ### Generate Code from Protocol Buffers ```bash diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index e395c15..08c7ab2 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,6 +1,10 @@ # ProtoBuf Release Notes -## 0.0.5-dev - 2024-03-13 +## 0.0.5-dev - 2024-03-22 + +### Features + +- Support python generation (PR #47 by @chicco785) ### Documentation @@ -8,10 +12,10 @@ ### Dependencies -- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (PR #44 by - @dependabot[bot]) - Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (PR #43 by @dependabot[bot]) +- Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (PR #44 by + @dependabot[bot]) ## 0.0.4-dev - 2024-02-21 diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 0000000..9e2b6b6 --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,8 @@ +version: v1 +plugins: + - plugin: buf.build/protocolbuffers/go:v1.31.0 + out: go + - plugin: buf.build/protocolbuffers/pyi:v26.0 + out: python + - plugin: buf.build/protocolbuffers/python:v26.0 + out: python diff --git a/proto/buf.yaml b/buf.yaml similarity index 99% rename from proto/buf.yaml rename to buf.yaml index 0c30fed..4589ad5 100644 --- a/proto/buf.yaml +++ b/buf.yaml @@ -1,4 +1,5 @@ version: v1 + breaking: use: - FILE diff --git a/docs/conf2.proto.md b/docs/conf2.proto.md index 506b16c..0ec8f2d 100644 --- a/docs/conf2.proto.md +++ b/docs/conf2.proto.md @@ -1,4 +1,4 @@ -# Package: c37118.v1 +# Package: zaphiro.c37118.v1 Messages describing PMU C37.118 Configurations. @@ -92,7 +92,7 @@ class Config { ## Message: Conf2Frame -**FQN**: c37118.v1.Conf2Frame +**FQN**: zaphiro.c37118.v1.Conf2Frame Configuration frame 2 Headers used in rabbitMQ: @@ -114,7 +114,7 @@ Headers used in rabbitMQ: ## Message: Conf2Header -**FQN**: c37118.v1.Conf2Header +**FQN**: zaphiro.c37118.v1.Conf2Header Configuration frame 2 header @@ -134,7 +134,7 @@ Configuration frame 2 header ## Message: Config -**FQN**: c37118.v1.Config +**FQN**: zaphiro.c37118.v1.Config Single PMU configuration according to Configuration frame 2 diff --git a/docs/data.proto.md b/docs/data.proto.md index a5e9188..63b9fb7 100644 --- a/docs/data.proto.md +++ b/docs/data.proto.md @@ -1,4 +1,4 @@ -# Package: grid.v1 +# Package: zaphiro.grid.v1 Messages to support data injection in the platform. @@ -24,7 +24,7 @@ Data are grouped into sets, where each id identifies a specific measurement. The ## Enum: DataType -**FQN**: grid.v1.DataType +**FQN**: zaphiro.grid.v1.DataType The collection of Data Types defined so far. They are useful to map measurements to their rappresentation. Some of the descriptions are taken from [here](https://github.com/3lbits/Grunnprofil/blob/main/DIGIN10/docs/MeasurementType.adoc) This is important since all measurements @@ -187,7 +187,7 @@ DataSet .. ` Data` ## Message: Data -**FQN**: grid.v1.Data +**FQN**: zaphiro.grid.v1.Data A single data. Headers used in rabbitMQ (only if not sent as part of `DataSet`): @@ -210,7 +210,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: DataSet -**FQN**: grid.v1.DataSet +**FQN**: zaphiro.grid.v1.DataSet A set of data. Headers used in rabbitMQ: diff --git a/docs/device_event.proto.md b/docs/device_event.proto.md index 7e584f0..f84d5f6 100644 --- a/docs/device_event.proto.md +++ b/docs/device_event.proto.md @@ -1,4 +1,4 @@ -# Package: grid.v1 +# Package: zaphiro.grid.v1 Messages to support device event detection in the platform. Device events are sub classes of Events. @@ -7,9 +7,9 @@ Messages to support device event detection in the platform. Device events are su ## Imports -| Import | Description | -|---------------------|-------------| -| grid/v1/event.proto | | +| Import | Description | +|-----------------------------|-------------| +| zaphiro/grid/v1/event.proto | | @@ -150,7 +150,7 @@ DataError --> `DeviceEvent` ## Message: DeviceEvent -**FQN**: grid.v1.DeviceEvent +**FQN**: zaphiro.grid.v1.DeviceEvent A device event. Headers used in rabbitMQ: @@ -177,7 +177,7 @@ Headers used in rabbitMQ: ## Message: CommunicationError -**FQN**: grid.v1.CommunicationError +**FQN**: zaphiro.grid.v1.CommunicationError @@ -191,7 +191,7 @@ Headers used in rabbitMQ: ## Message: TimeQuality -**FQN**: grid.v1.TimeQuality +**FQN**: zaphiro.grid.v1.TimeQuality @@ -205,7 +205,7 @@ Headers used in rabbitMQ: ## Message: SyncStatus -**FQN**: grid.v1.SyncStatus +**FQN**: zaphiro.grid.v1.SyncStatus @@ -219,7 +219,7 @@ Headers used in rabbitMQ: ## Message: Power -**FQN**: grid.v1.Power +**FQN**: zaphiro.grid.v1.Power @@ -233,7 +233,7 @@ Headers used in rabbitMQ: ## Message: Config -**FQN**: grid.v1.Config +**FQN**: zaphiro.grid.v1.Config @@ -247,7 +247,7 @@ Headers used in rabbitMQ: ## Message: Trigger -**FQN**: grid.v1.Trigger +**FQN**: zaphiro.grid.v1.Trigger @@ -261,7 +261,7 @@ Headers used in rabbitMQ: ## Message: DataError -**FQN**: grid.v1.DataError +**FQN**: zaphiro.grid.v1.DataError diff --git a/docs/event.proto.md b/docs/event.proto.md index aa4c77f..ebaf307 100644 --- a/docs/event.proto.md +++ b/docs/event.proto.md @@ -1,4 +1,4 @@ -# Package: grid.v1 +# Package: zaphiro.grid.v1 Messages to support event detection in the platform. @@ -23,7 +23,7 @@ The event detected may be originated from different sources: devices (e.g. a PMU ## Enum: EventStatus -**FQN**: grid.v1.EventStatus +**FQN**: zaphiro.grid.v1.EventStatus The collection of Event Status defined so far. @@ -39,7 +39,7 @@ The collection of Event Status defined so far. ## Enum: EventSourceType -**FQN**: grid.v1.EventSourceType +**FQN**: zaphiro.grid.v1.EventSourceType @@ -116,7 +116,7 @@ Event --> `EventStatus` ## Message: Event -**FQN**: grid.v1.Event +**FQN**: zaphiro.grid.v1.Event A generic event. Headers used in rabbitMQ (only if not sent as part of `DataSet`): diff --git a/docs/fault.proto.md b/docs/fault.proto.md index 1f997dd..660ba35 100644 --- a/docs/fault.proto.md +++ b/docs/fault.proto.md @@ -1,4 +1,4 @@ -# Package: grid.v1 +# Package: zaphiro.grid.v1 Messages describing faults. @@ -22,7 +22,7 @@ Messages describing faults. ## Enum: PhaseConnectedFaultKind -**FQN**: grid.v1.PhaseConnectedFaultKind +**FQN**: zaphiro.grid.v1.PhaseConnectedFaultKind The type of fault connection among phases. @@ -42,7 +42,7 @@ Messages describing faults. ## Enum: PhaseCode -**FQN**: grid.v1.PhaseCode +**FQN**: zaphiro.grid.v1.PhaseCode An unordered enumeration of phase identifiers. Allows designation of phases for both transmission and distribution equipment, circuits and loads. The enumeration, by itself, does not describe how the phases are connected together or connected to ground. Ground is not explicitly denoted as a phase. @@ -230,7 +230,7 @@ EquipmentFault --> `Fault` ## Message: Fault -**FQN**: grid.v1.Fault +**FQN**: zaphiro.grid.v1.Fault Abnormal condition causing current flow through conducting equipment, such as caused by equipment failure or short circuits from objects not typically modelled (for example, a tree falling on a line). @@ -261,7 +261,7 @@ Headers used in rabbitMQ: ## Message: LineFault -**FQN**: grid.v1.LineFault +**FQN**: zaphiro.grid.v1.LineFault A fault that occurs on an AC line segment at some point along the length. @@ -285,7 +285,7 @@ Headers used in rabbitMQ: ## Message: EquipmentFault -**FQN**: grid.v1.EquipmentFault +**FQN**: zaphiro.grid.v1.EquipmentFault A fault applied at the terminal, external to the equipment. This class is not used to specify faults internal to the equipment. diff --git a/docs/grid_event.proto.md b/docs/grid_event.proto.md index 20d1197..2e7e1c4 100644 --- a/docs/grid_event.proto.md +++ b/docs/grid_event.proto.md @@ -1,4 +1,4 @@ -# Package: grid.v1 +# Package: zaphiro.grid.v1 Messages to support grid event detection in the platform. Grid events are sub classes of Events. @@ -7,10 +7,10 @@ Messages to support grid event detection in the platform. Grid events are sub cl ## Imports -| Import | Description | -|---------------------|-------------| -| grid/v1/event.proto | | -| grid/v1/fault.proto | | +| Import | Description | +|-----------------------------|-------------| +| zaphiro/grid/v1/event.proto | | +| zaphiro/grid/v1/fault.proto | | @@ -279,7 +279,7 @@ TransientOscillation --> `PhaseEvent` ## Message: GridEvent -**FQN**: grid.v1.GridEvent +**FQN**: zaphiro.grid.v1.GridEvent A grid event. Headers used in rabbitMQ (only if not sent as part of `DataSet`): @@ -306,7 +306,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: VoltageEvent -**FQN**: grid.v1.VoltageEvent +**FQN**: zaphiro.grid.v1.VoltageEvent @@ -321,7 +321,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: CurrentEvent -**FQN**: grid.v1.CurrentEvent +**FQN**: zaphiro.grid.v1.CurrentEvent @@ -335,7 +335,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: PhaseEvent -**FQN**: grid.v1.PhaseEvent +**FQN**: zaphiro.grid.v1.PhaseEvent @@ -349,7 +349,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: FrequencyEvent -**FQN**: grid.v1.FrequencyEvent +**FQN**: zaphiro.grid.v1.FrequencyEvent @@ -363,7 +363,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: LineCongestion -**FQN**: grid.v1.LineCongestion +**FQN**: zaphiro.grid.v1.LineCongestion @@ -377,7 +377,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: TransformerCongestion -**FQN**: grid.v1.TransformerCongestion +**FQN**: zaphiro.grid.v1.TransformerCongestion @@ -391,7 +391,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: VoltageUnbalance -**FQN**: grid.v1.VoltageUnbalance +**FQN**: zaphiro.grid.v1.VoltageUnbalance @@ -405,7 +405,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: VoltageDip -**FQN**: grid.v1.VoltageDip +**FQN**: zaphiro.grid.v1.VoltageDip @@ -419,7 +419,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: VoltageInterruption -**FQN**: grid.v1.VoltageInterruption +**FQN**: zaphiro.grid.v1.VoltageInterruption @@ -433,7 +433,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: VoltageSwell -**FQN**: grid.v1.VoltageSwell +**FQN**: zaphiro.grid.v1.VoltageSwell @@ -447,7 +447,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: VoltageLimit -**FQN**: grid.v1.VoltageLimit +**FQN**: zaphiro.grid.v1.VoltageLimit @@ -461,7 +461,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: VoltageRapidChange -**FQN**: grid.v1.VoltageRapidChange +**FQN**: zaphiro.grid.v1.VoltageRapidChange @@ -475,7 +475,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: OverFrequency -**FQN**: grid.v1.OverFrequency +**FQN**: zaphiro.grid.v1.OverFrequency @@ -489,7 +489,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: UnderFrequency -**FQN**: grid.v1.UnderFrequency +**FQN**: zaphiro.grid.v1.UnderFrequency @@ -503,7 +503,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: SteadyOscillation -**FQN**: grid.v1.SteadyOscillation +**FQN**: zaphiro.grid.v1.SteadyOscillation @@ -517,7 +517,7 @@ Headers used in rabbitMQ (only if not sent as part of `DataSet`): ## Message: TransientOscillation -**FQN**: grid.v1.TransientOscillation +**FQN**: zaphiro.grid.v1.TransientOscillation diff --git a/docs/stat.proto.md b/docs/stat.proto.md index 116da81..b435f76 100644 --- a/docs/stat.proto.md +++ b/docs/stat.proto.md @@ -1,4 +1,4 @@ -# Package: c37118.v1 +# Package: zaphiro.c37118.v1 Messages to support stat data injection exchange in the platform. @@ -51,7 +51,7 @@ class Stat { ## Message: Stat -**FQN**: c37118.v1.Stat +**FQN**: zaphiro.c37118.v1.Stat A Stat of PMU data, check IEEE C37.118 standard for more details. Headers used in rabbitMQ: diff --git a/docs/task.proto.md b/docs/task.proto.md index 1593ff2..838bf05 100644 --- a/docs/task.proto.md +++ b/docs/task.proto.md @@ -1,4 +1,4 @@ -# Package: platform.v1 +# Package: zaphiro.platform.v1 Messages to support coordination among processes/services in the platform. @@ -25,7 +25,7 @@ services. ## Enum: TaskType -**FQN**: platform.v1.TaskType +**FQN**: zaphiro.platform.v1.TaskType The different type of tasks run by the real time processing. @@ -41,7 +41,7 @@ The different type of tasks run by the real time processing. ## Enum: NotificationType -**FQN**: platform.v1.NotificationType +**FQN**: zaphiro.platform.v1.NotificationType The different type of notifications generated by the real time processing. @@ -157,7 +157,7 @@ Notification --> `Parameter` ## Message: Parameter -**FQN**: platform.v1.Parameter +**FQN**: zaphiro.platform.v1.Parameter A parameter of a `Task` or `Notification` @@ -172,7 +172,7 @@ A parameter of a `Task` or `Notification` ## Message: Task -**FQN**: platform.v1.Task +**FQN**: zaphiro.platform.v1.Task A task message. Headers used in rabbitMQ: @@ -195,7 +195,7 @@ Headers used in rabbitMQ: ## Message: Notification -**FQN**: platform.v1.Notification +**FQN**: zaphiro.platform.v1.Notification A notification message. Headers used in rabbitMQ: diff --git a/docs/topology.proto.md b/docs/topology.proto.md index 016631f..defd003 100644 --- a/docs/topology.proto.md +++ b/docs/topology.proto.md @@ -1,4 +1,4 @@ -# Package: grid.v1 +# Package: zaphiro.grid.v1 Messages to support topology data exchange in the platform. @@ -104,7 +104,7 @@ ComputedTopology .. ` TopologicalNode` ## Message: Topology -**FQN**: grid.v1.Topology +**FQN**: zaphiro.grid.v1.Topology A topology computed information. Headers used in rabbitMQ: @@ -126,7 +126,7 @@ Headers used in rabbitMQ: ## Message: TopologicalNode -**FQN**: grid.v1.TopologicalNode +**FQN**: zaphiro.grid.v1.TopologicalNode A topology Node information. * To be used in ComputedTopology message. @@ -147,7 +147,7 @@ A topology Node information. ## Message: TopologicalIsland -**FQN**: grid.v1.TopologicalIsland +**FQN**: zaphiro.grid.v1.TopologicalIsland A topology Island information. * To be used in ComputedTopology message. @@ -163,7 +163,7 @@ A topology Island information. ## Message: ComputedTopology -**FQN**: grid.v1.ComputedTopology +**FQN**: zaphiro.grid.v1.ComputedTopology A processed topology information. Headers used in rabbitMQ: diff --git a/pkg/c37118/v1/conf2.pb.go b/go/c37118/v1/conf2.pb.go similarity index 78% rename from pkg/c37118/v1/conf2.pb.go rename to go/c37118/v1/conf2.pb.go index fa9130c..5860a6d 100644 --- a/pkg/c37118/v1/conf2.pb.go +++ b/go/c37118/v1/conf2.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: c37118/v1/conf2.proto +// source: zaphiro/c37118/v1/conf2.proto // //Messages describing PMU C37.118 Configurations. @@ -38,7 +38,7 @@ type Conf2Frame struct { func (x *Conf2Frame) Reset() { *x = Conf2Frame{} if protoimpl.UnsafeEnabled { - mi := &file_c37118_v1_conf2_proto_msgTypes[0] + mi := &file_zaphiro_c37118_v1_conf2_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -51,7 +51,7 @@ func (x *Conf2Frame) String() string { func (*Conf2Frame) ProtoMessage() {} func (x *Conf2Frame) ProtoReflect() protoreflect.Message { - mi := &file_c37118_v1_conf2_proto_msgTypes[0] + mi := &file_zaphiro_c37118_v1_conf2_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -64,7 +64,7 @@ func (x *Conf2Frame) ProtoReflect() protoreflect.Message { // Deprecated: Use Conf2Frame.ProtoReflect.Descriptor instead. func (*Conf2Frame) Descriptor() ([]byte, []int) { - return file_c37118_v1_conf2_proto_rawDescGZIP(), []int{0} + return file_zaphiro_c37118_v1_conf2_proto_rawDescGZIP(), []int{0} } func (x *Conf2Frame) GetHeader() *Conf2Header { @@ -105,7 +105,7 @@ type Conf2Header struct { func (x *Conf2Header) Reset() { *x = Conf2Header{} if protoimpl.UnsafeEnabled { - mi := &file_c37118_v1_conf2_proto_msgTypes[1] + mi := &file_zaphiro_c37118_v1_conf2_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -118,7 +118,7 @@ func (x *Conf2Header) String() string { func (*Conf2Header) ProtoMessage() {} func (x *Conf2Header) ProtoReflect() protoreflect.Message { - mi := &file_c37118_v1_conf2_proto_msgTypes[1] + mi := &file_zaphiro_c37118_v1_conf2_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -131,7 +131,7 @@ func (x *Conf2Header) ProtoReflect() protoreflect.Message { // Deprecated: Use Conf2Header.ProtoReflect.Descriptor instead. func (*Conf2Header) Descriptor() ([]byte, []int) { - return file_c37118_v1_conf2_proto_rawDescGZIP(), []int{1} + return file_zaphiro_c37118_v1_conf2_proto_rawDescGZIP(), []int{1} } func (x *Conf2Header) GetSYNC() uint32 { @@ -205,7 +205,7 @@ type Config struct { func (x *Config) Reset() { *x = Config{} if protoimpl.UnsafeEnabled { - mi := &file_c37118_v1_conf2_proto_msgTypes[2] + mi := &file_zaphiro_c37118_v1_conf2_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -218,7 +218,7 @@ func (x *Config) String() string { func (*Config) ProtoMessage() {} func (x *Config) ProtoReflect() protoreflect.Message { - mi := &file_c37118_v1_conf2_proto_msgTypes[2] + mi := &file_zaphiro_c37118_v1_conf2_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -231,7 +231,7 @@ func (x *Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Config.ProtoReflect.Descriptor instead. func (*Config) Descriptor() ([]byte, []int) { - return file_c37118_v1_conf2_proto_rawDescGZIP(), []int{2} + return file_zaphiro_c37118_v1_conf2_proto_rawDescGZIP(), []int{2} } func (x *Config) GetSTN() string { @@ -318,17 +318,19 @@ func (x *Config) GetCFGCNT() uint32 { return 0 } -var File_c37118_v1_conf2_proto protoreflect.FileDescriptor +var File_zaphiro_c37118_v1_conf2_proto protoreflect.FileDescriptor -var file_c37118_v1_conf2_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, - 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2e, - 0x76, 0x31, 0x22, 0x86, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x46, 0x72, 0x61, 0x6d, - 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, - 0x6e, 0x66, 0x32, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2e, 0x76, 0x31, 0x2e, 0x43, +var file_zaphiro_c37118_v1_conf2_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, + 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x11, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2e, + 0x76, 0x31, 0x22, 0x96, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x46, 0x72, 0x61, 0x6d, + 0x65, 0x12, 0x36, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x63, 0x33, 0x37, 0x31, + 0x31, 0x38, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x32, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x33, 0x0a, 0x07, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x7a, 0x61, 0x70, + 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x44, 0x41, 0x54, 0x41, 0x52, 0x41, 0x54, 0x45, 0x22, 0xb9, 0x01, 0x0a, 0x0b, @@ -366,26 +368,26 @@ var file_c37118_v1_conf2_proto_rawDesc = []byte{ } var ( - file_c37118_v1_conf2_proto_rawDescOnce sync.Once - file_c37118_v1_conf2_proto_rawDescData = file_c37118_v1_conf2_proto_rawDesc + file_zaphiro_c37118_v1_conf2_proto_rawDescOnce sync.Once + file_zaphiro_c37118_v1_conf2_proto_rawDescData = file_zaphiro_c37118_v1_conf2_proto_rawDesc ) -func file_c37118_v1_conf2_proto_rawDescGZIP() []byte { - file_c37118_v1_conf2_proto_rawDescOnce.Do(func() { - file_c37118_v1_conf2_proto_rawDescData = protoimpl.X.CompressGZIP(file_c37118_v1_conf2_proto_rawDescData) +func file_zaphiro_c37118_v1_conf2_proto_rawDescGZIP() []byte { + file_zaphiro_c37118_v1_conf2_proto_rawDescOnce.Do(func() { + file_zaphiro_c37118_v1_conf2_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_c37118_v1_conf2_proto_rawDescData) }) - return file_c37118_v1_conf2_proto_rawDescData + return file_zaphiro_c37118_v1_conf2_proto_rawDescData } -var file_c37118_v1_conf2_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_c37118_v1_conf2_proto_goTypes = []interface{}{ - (*Conf2Frame)(nil), // 0: c37118.v1.Conf2Frame - (*Conf2Header)(nil), // 1: c37118.v1.Conf2Header - (*Config)(nil), // 2: c37118.v1.Config +var file_zaphiro_c37118_v1_conf2_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_zaphiro_c37118_v1_conf2_proto_goTypes = []interface{}{ + (*Conf2Frame)(nil), // 0: zaphiro.c37118.v1.Conf2Frame + (*Conf2Header)(nil), // 1: zaphiro.c37118.v1.Conf2Header + (*Config)(nil), // 2: zaphiro.c37118.v1.Config } -var file_c37118_v1_conf2_proto_depIdxs = []int32{ - 1, // 0: c37118.v1.Conf2Frame.header:type_name -> c37118.v1.Conf2Header - 2, // 1: c37118.v1.Conf2Frame.configs:type_name -> c37118.v1.Config +var file_zaphiro_c37118_v1_conf2_proto_depIdxs = []int32{ + 1, // 0: zaphiro.c37118.v1.Conf2Frame.header:type_name -> zaphiro.c37118.v1.Conf2Header + 2, // 1: zaphiro.c37118.v1.Conf2Frame.configs:type_name -> zaphiro.c37118.v1.Config 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -393,13 +395,13 @@ var file_c37118_v1_conf2_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_c37118_v1_conf2_proto_init() } -func file_c37118_v1_conf2_proto_init() { - if File_c37118_v1_conf2_proto != nil { +func init() { file_zaphiro_c37118_v1_conf2_proto_init() } +func file_zaphiro_c37118_v1_conf2_proto_init() { + if File_zaphiro_c37118_v1_conf2_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_c37118_v1_conf2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_c37118_v1_conf2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Conf2Frame); i { case 0: return &v.state @@ -411,7 +413,7 @@ func file_c37118_v1_conf2_proto_init() { return nil } } - file_c37118_v1_conf2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_c37118_v1_conf2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Conf2Header); i { case 0: return &v.state @@ -423,7 +425,7 @@ func file_c37118_v1_conf2_proto_init() { return nil } } - file_c37118_v1_conf2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_c37118_v1_conf2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Config); i { case 0: return &v.state @@ -440,18 +442,18 @@ func file_c37118_v1_conf2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_c37118_v1_conf2_proto_rawDesc, + RawDescriptor: file_zaphiro_c37118_v1_conf2_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_c37118_v1_conf2_proto_goTypes, - DependencyIndexes: file_c37118_v1_conf2_proto_depIdxs, - MessageInfos: file_c37118_v1_conf2_proto_msgTypes, + GoTypes: file_zaphiro_c37118_v1_conf2_proto_goTypes, + DependencyIndexes: file_zaphiro_c37118_v1_conf2_proto_depIdxs, + MessageInfos: file_zaphiro_c37118_v1_conf2_proto_msgTypes, }.Build() - File_c37118_v1_conf2_proto = out.File - file_c37118_v1_conf2_proto_rawDesc = nil - file_c37118_v1_conf2_proto_goTypes = nil - file_c37118_v1_conf2_proto_depIdxs = nil + File_zaphiro_c37118_v1_conf2_proto = out.File + file_zaphiro_c37118_v1_conf2_proto_rawDesc = nil + file_zaphiro_c37118_v1_conf2_proto_goTypes = nil + file_zaphiro_c37118_v1_conf2_proto_depIdxs = nil } diff --git a/pkg/c37118/v1/stat.pb.go b/go/c37118/v1/stat.pb.go similarity index 76% rename from pkg/c37118/v1/stat.pb.go rename to go/c37118/v1/stat.pb.go index a76ac4a..6d6d0b0 100644 --- a/pkg/c37118/v1/stat.pb.go +++ b/go/c37118/v1/stat.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: c37118/v1/stat.proto +// source: zaphiro/c37118/v1/stat.proto // //Messages to support stat data injection exchange in the platform. @@ -43,7 +43,7 @@ type Stat struct { func (x *Stat) Reset() { *x = Stat{} if protoimpl.UnsafeEnabled { - mi := &file_c37118_v1_stat_proto_msgTypes[0] + mi := &file_zaphiro_c37118_v1_stat_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -56,7 +56,7 @@ func (x *Stat) String() string { func (*Stat) ProtoMessage() {} func (x *Stat) ProtoReflect() protoreflect.Message { - mi := &file_c37118_v1_stat_proto_msgTypes[0] + mi := &file_zaphiro_c37118_v1_stat_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -69,7 +69,7 @@ func (x *Stat) ProtoReflect() protoreflect.Message { // Deprecated: Use Stat.ProtoReflect.Descriptor instead. func (*Stat) Descriptor() ([]byte, []int) { - return file_c37118_v1_stat_proto_rawDescGZIP(), []int{0} + return file_zaphiro_c37118_v1_stat_proto_rawDescGZIP(), []int{0} } func (x *Stat) GetMeasuredAt() int64 { @@ -142,11 +142,12 @@ func (x *Stat) GetTriggerReason() uint32 { return 0 } -var File_c37118_v1_stat_proto protoreflect.FileDescriptor +var File_zaphiro_c37118_v1_stat_proto protoreflect.FileDescriptor -var file_c37118_v1_stat_proto_rawDesc = []byte{ - 0x0a, 0x14, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2e, 0x76, +var file_zaphiro_c37118_v1_stat_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, + 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x11, + 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x63, 0x33, 0x37, 0x31, 0x31, 0x38, 0x2e, 0x76, 0x31, 0x22, 0xb8, 0x02, 0x0a, 0x04, 0x53, 0x74, 0x61, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, @@ -172,22 +173,22 @@ var file_c37118_v1_stat_proto_rawDesc = []byte{ } var ( - file_c37118_v1_stat_proto_rawDescOnce sync.Once - file_c37118_v1_stat_proto_rawDescData = file_c37118_v1_stat_proto_rawDesc + file_zaphiro_c37118_v1_stat_proto_rawDescOnce sync.Once + file_zaphiro_c37118_v1_stat_proto_rawDescData = file_zaphiro_c37118_v1_stat_proto_rawDesc ) -func file_c37118_v1_stat_proto_rawDescGZIP() []byte { - file_c37118_v1_stat_proto_rawDescOnce.Do(func() { - file_c37118_v1_stat_proto_rawDescData = protoimpl.X.CompressGZIP(file_c37118_v1_stat_proto_rawDescData) +func file_zaphiro_c37118_v1_stat_proto_rawDescGZIP() []byte { + file_zaphiro_c37118_v1_stat_proto_rawDescOnce.Do(func() { + file_zaphiro_c37118_v1_stat_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_c37118_v1_stat_proto_rawDescData) }) - return file_c37118_v1_stat_proto_rawDescData + return file_zaphiro_c37118_v1_stat_proto_rawDescData } -var file_c37118_v1_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_c37118_v1_stat_proto_goTypes = []interface{}{ - (*Stat)(nil), // 0: c37118.v1.Stat +var file_zaphiro_c37118_v1_stat_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_zaphiro_c37118_v1_stat_proto_goTypes = []interface{}{ + (*Stat)(nil), // 0: zaphiro.c37118.v1.Stat } -var file_c37118_v1_stat_proto_depIdxs = []int32{ +var file_zaphiro_c37118_v1_stat_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -195,13 +196,13 @@ var file_c37118_v1_stat_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_c37118_v1_stat_proto_init() } -func file_c37118_v1_stat_proto_init() { - if File_c37118_v1_stat_proto != nil { +func init() { file_zaphiro_c37118_v1_stat_proto_init() } +func file_zaphiro_c37118_v1_stat_proto_init() { + if File_zaphiro_c37118_v1_stat_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_c37118_v1_stat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_c37118_v1_stat_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Stat); i { case 0: return &v.state @@ -218,18 +219,18 @@ func file_c37118_v1_stat_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_c37118_v1_stat_proto_rawDesc, + RawDescriptor: file_zaphiro_c37118_v1_stat_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_c37118_v1_stat_proto_goTypes, - DependencyIndexes: file_c37118_v1_stat_proto_depIdxs, - MessageInfos: file_c37118_v1_stat_proto_msgTypes, + GoTypes: file_zaphiro_c37118_v1_stat_proto_goTypes, + DependencyIndexes: file_zaphiro_c37118_v1_stat_proto_depIdxs, + MessageInfos: file_zaphiro_c37118_v1_stat_proto_msgTypes, }.Build() - File_c37118_v1_stat_proto = out.File - file_c37118_v1_stat_proto_rawDesc = nil - file_c37118_v1_stat_proto_goTypes = nil - file_c37118_v1_stat_proto_depIdxs = nil + File_zaphiro_c37118_v1_stat_proto = out.File + file_zaphiro_c37118_v1_stat_proto_rawDesc = nil + file_zaphiro_c37118_v1_stat_proto_goTypes = nil + file_zaphiro_c37118_v1_stat_proto_depIdxs = nil } diff --git a/pkg/grid/v1/FullGrid_TP.xml b/go/grid/v1/FullGrid_TP.xml similarity index 100% rename from pkg/grid/v1/FullGrid_TP.xml rename to go/grid/v1/FullGrid_TP.xml diff --git a/pkg/grid/v1/data.pb.go b/go/grid/v1/data.pb.go similarity index 55% rename from pkg/grid/v1/data.pb.go rename to go/grid/v1/data.pb.go index cb2ba1f..5f2a8f8 100644 --- a/pkg/grid/v1/data.pb.go +++ b/go/grid/v1/data.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: grid/v1/data.proto +// source: zaphiro/grid/v1/data.proto // //Messages to support data injection in the platform. @@ -185,11 +185,11 @@ func (x DataType) String() string { } func (DataType) Descriptor() protoreflect.EnumDescriptor { - return file_grid_v1_data_proto_enumTypes[0].Descriptor() + return file_zaphiro_grid_v1_data_proto_enumTypes[0].Descriptor() } func (DataType) Type() protoreflect.EnumType { - return &file_grid_v1_data_proto_enumTypes[0] + return &file_zaphiro_grid_v1_data_proto_enumTypes[0] } func (x DataType) Number() protoreflect.EnumNumber { @@ -198,7 +198,7 @@ func (x DataType) Number() protoreflect.EnumNumber { // Deprecated: Use DataType.Descriptor instead. func (DataType) EnumDescriptor() ([]byte, []int) { - return file_grid_v1_data_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_data_proto_rawDescGZIP(), []int{0} } type Data struct { @@ -206,15 +206,15 @@ type Data struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - DataType DataType `protobuf:"varint,1,opt,name=dataType,proto3,enum=grid.v1.DataType" json:"dataType,omitempty"` //The type of data see `DataType` enum. - MeasuredAt int64 `protobuf:"varint,2,opt,name=measuredAt,proto3" json:"measuredAt,omitempty"` //The time of measurement (Unix msec timestamp). - Value *uint64 `protobuf:"varint,3,opt,name=value,proto3,oneof" json:"value,omitempty"` //The data value casted to uint64. + DataType DataType `protobuf:"varint,1,opt,name=dataType,proto3,enum=zaphiro.grid.v1.DataType" json:"dataType,omitempty"` //The type of data see `DataType` enum. + MeasuredAt int64 `protobuf:"varint,2,opt,name=measuredAt,proto3" json:"measuredAt,omitempty"` //The time of measurement (Unix msec timestamp). + Value *uint64 `protobuf:"varint,3,opt,name=value,proto3,oneof" json:"value,omitempty"` //The data value casted to uint64. } func (x *Data) Reset() { *x = Data{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_data_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_data_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -227,7 +227,7 @@ func (x *Data) String() string { func (*Data) ProtoMessage() {} func (x *Data) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_data_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_data_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -240,7 +240,7 @@ func (x *Data) ProtoReflect() protoreflect.Message { // Deprecated: Use Data.ProtoReflect.Descriptor instead. func (*Data) Descriptor() ([]byte, []int) { - return file_grid_v1_data_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_data_proto_rawDescGZIP(), []int{0} } func (x *Data) GetDataType() DataType { @@ -276,7 +276,7 @@ type DataSet struct { func (x *DataSet) Reset() { *x = DataSet{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_data_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_data_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -289,7 +289,7 @@ func (x *DataSet) String() string { func (*DataSet) ProtoMessage() {} func (x *DataSet) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_data_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_data_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -302,7 +302,7 @@ func (x *DataSet) ProtoReflect() protoreflect.Message { // Deprecated: Use DataSet.ProtoReflect.Descriptor instead. func (*DataSet) Descriptor() ([]byte, []int) { - return file_grid_v1_data_proto_rawDescGZIP(), []int{1} + return file_zaphiro_grid_v1_data_proto_rawDescGZIP(), []int{1} } func (x *DataSet) GetProducerId() string { @@ -319,144 +319,147 @@ func (x *DataSet) GetData() map[string]*Data { return nil } -var File_grid_v1_data_proto protoreflect.FileDescriptor - -var file_grid_v1_data_proto_rawDesc = []byte{ - 0x0a, 0x12, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x7a, 0x0a, - 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, - 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, - 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x07, 0x44, 0x61, - 0x74, 0x61, 0x53, 0x65, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, - 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, - 0x63, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x53, 0x65, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x46, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0xf3, 0x0a, - 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x41, - 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, - 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, - 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, - 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x41, 0x55, 0x54, 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, 0x03, 0x12, - 0x15, 0x0a, 0x11, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4f, - 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x04, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, - 0x45, 0x10, 0x05, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, - 0x45, 0x5f, 0x4e, 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0x06, 0x12, 0x27, 0x0a, 0x23, +var File_zaphiro_grid_v1_data_proto protoreflect.FileDescriptor + +var file_zaphiro_grid_v1_data_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, + 0x31, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x7a, 0x61, + 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x82, 0x01, + 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, + 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, + 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x6d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x19, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x07, 0x44, 0x61, 0x74, 0x61, 0x53, 0x65, 0x74, 0x12, 0x1e, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x49, 0x64, 0x12, 0x36, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x7a, + 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x61, 0x74, 0x61, 0x53, 0x65, 0x74, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x4e, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, + 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0xf3, 0x0a, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x61, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1a, + 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, + 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x41, + 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x4e, 0x47, 0x4c, 0x45, 0x10, 0x02, 0x12, + 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x55, 0x54, + 0x4f, 0x4d, 0x41, 0x54, 0x49, 0x43, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x41, 0x54, 0x41, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x04, 0x12, + 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4e, + 0x46, 0x49, 0x47, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x05, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, - 0x54, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, - 0x49, 0x56, 0x45, 0x10, 0x07, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, + 0x54, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4e, 0x45, 0x47, 0x41, 0x54, + 0x49, 0x56, 0x45, 0x10, 0x06, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, - 0x4e, 0x43, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, - 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x10, 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x0a, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, - 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x52, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x0b, 0x12, 0x14, 0x0a, - 0x10, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x45, 0x52, 0x47, - 0x59, 0x10, 0x0c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x46, 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x0d, 0x12, 0x1a, 0x0a, 0x16, - 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x43, - 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, 0x41, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x4c, 0x49, - 0x4e, 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, 0x0f, 0x12, 0x1d, 0x0a, 0x19, - 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, - 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x10, 0x12, 0x1d, 0x0a, 0x19, 0x44, - 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x11, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, - 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x4c, - 0x41, 0x54, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x12, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, - 0x41, 0x47, 0x45, 0x10, 0x13, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x4f, 0x52, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, - 0x54, 0x10, 0x14, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x50, 0x48, 0x41, 0x53, 0x4f, 0x52, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, - 0x15, 0x12, 0x16, 0x0a, 0x12, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, - 0x4d, 0x55, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x16, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x41, 0x54, - 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4d, 0x55, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, - 0x51, 0x55, 0x41, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x17, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, - 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4d, 0x55, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, - 0x45, 0x52, 0x5f, 0x44, 0x45, 0x54, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x18, 0x12, 0x13, 0x0a, - 0x0f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, - 0x10, 0x19, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x1a, 0x12, 0x16, - 0x0a, 0x12, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, - 0x53, 0x55, 0x52, 0x45, 0x10, 0x1b, 0x12, 0x29, 0x0a, 0x25, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4f, 0x46, 0x5f, 0x43, 0x48, 0x41, 0x4e, - 0x47, 0x45, 0x5f, 0x4f, 0x46, 0x5f, 0x46, 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x10, - 0x1c, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, - 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x1d, 0x12, - 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x57, 0x49, - 0x54, 0x43, 0x48, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1e, 0x12, 0x1a, - 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x41, 0x50, 0x5f, - 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1f, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x41, - 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x45, 0x52, 0x41, 0x54, - 0x55, 0x52, 0x45, 0x10, 0x20, 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x41, - 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x21, 0x12, 0x21, 0x0a, - 0x1d, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, - 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x22, - 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x48, - 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, - 0x23, 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, - 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, - 0x5f, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x24, 0x12, 0x28, 0x0a, 0x24, 0x44, 0x41, 0x54, + 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, 0x07, 0x12, 0x23, + 0x0a, 0x1f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, + 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x5a, 0x45, 0x52, + 0x4f, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x09, 0x12, 0x1b, 0x0a, + 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, + 0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, + 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x53, 0x4f, 0x52, + 0x54, 0x49, 0x4e, 0x47, 0x10, 0x0b, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x45, 0x4e, 0x45, 0x52, 0x47, 0x59, 0x10, 0x0c, 0x12, 0x17, 0x0a, 0x13, + 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x52, 0x45, 0x51, 0x55, 0x45, + 0x4e, 0x43, 0x59, 0x10, 0x0d, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, + 0x0e, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, + 0x49, 0x4e, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, + 0x41, 0x47, 0x45, 0x10, 0x0f, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, + 0x50, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x10, 0x10, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4f, 0x50, 0x45, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x55, 0x4e, + 0x54, 0x10, 0x11, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x4c, 0x41, 0x54, 0x45, 0x4e, 0x43, 0x59, 0x10, + 0x12, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, + 0x48, 0x41, 0x53, 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, 0x13, 0x12, 0x1c, + 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, + 0x4f, 0x52, 0x5f, 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x14, 0x12, 0x1c, 0x0a, 0x18, + 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x4f, 0x52, + 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x10, 0x15, 0x12, 0x16, 0x0a, 0x12, 0x44, 0x41, + 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4d, 0x55, 0x5f, 0x53, 0x59, 0x4e, 0x43, + 0x10, 0x16, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x50, 0x4d, 0x55, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x51, 0x55, 0x41, 0x4c, 0x49, 0x54, 0x59, + 0x10, 0x17, 0x12, 0x22, 0x0a, 0x1e, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x50, 0x4d, 0x55, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x44, 0x45, 0x54, 0x45, + 0x43, 0x54, 0x45, 0x44, 0x10, 0x18, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x19, 0x12, 0x1a, 0x0a, 0x16, 0x44, + 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x46, + 0x41, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x1a, 0x12, 0x16, 0x0a, 0x12, 0x44, 0x41, 0x54, 0x41, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x53, 0x55, 0x52, 0x45, 0x10, 0x1b, 0x12, + 0x29, 0x0a, 0x25, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x41, 0x54, + 0x45, 0x5f, 0x4f, 0x46, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x4f, 0x46, 0x5f, 0x46, + 0x52, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x59, 0x10, 0x1c, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, + 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, + 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x1d, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x41, 0x54, 0x41, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x57, 0x49, 0x54, 0x43, 0x48, 0x5f, 0x50, 0x4f, 0x53, + 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x1e, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x41, 0x54, 0x41, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x41, 0x50, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, + 0x4e, 0x10, 0x1f, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x45, 0x52, 0x41, 0x54, 0x55, 0x52, 0x45, 0x10, 0x20, 0x12, 0x26, + 0x0a, 0x22, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x48, 0x52, 0x45, + 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, + 0x4f, 0x57, 0x45, 0x52, 0x10, 0x21, 0x12, 0x21, 0x0a, 0x1d, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, + 0x43, 0x55, 0x52, 0x52, 0x45, 0x4e, 0x54, 0x10, 0x22, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, - 0x53, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, - 0x52, 0x10, 0x25, 0x12, 0x1c, 0x0a, 0x18, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x10, - 0x26, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, - 0x4e, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x27, 0x12, 0x27, - 0x0a, 0x23, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, - 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4e, 0x45, 0x47, - 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0x28, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x41, 0x54, 0x41, 0x5f, + 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x23, 0x12, 0x26, 0x0a, 0x22, 0x44, 0x41, + 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, + 0x41, 0x53, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x5f, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, + 0x10, 0x24, 0x12, 0x28, 0x0a, 0x24, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, + 0x54, 0x48, 0x52, 0x45, 0x45, 0x5f, 0x50, 0x48, 0x41, 0x53, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x43, + 0x54, 0x49, 0x56, 0x45, 0x5f, 0x50, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x25, 0x12, 0x1c, 0x0a, 0x18, + 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x52, 0x49, 0x47, 0x47, 0x45, + 0x52, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x10, 0x26, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x41, + 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, + 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x27, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, - 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, 0x29, - 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4f, - 0x4c, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x5a, - 0x45, 0x52, 0x4f, 0x10, 0x2a, 0x12, 0x16, 0x0a, 0x12, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x52, 0x45, 0x54, 0x45, 0x10, 0x2b, 0x12, 0x14, 0x0a, - 0x10, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x41, 0x4e, 0x41, 0x4c, 0x4f, - 0x47, 0x10, 0x2c, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x4e, 0x45, 0x47, 0x41, 0x54, 0x49, 0x56, 0x45, 0x10, 0x28, + 0x12, 0x27, 0x0a, 0x23, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4f, + 0x4c, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x50, + 0x4f, 0x53, 0x49, 0x54, 0x49, 0x56, 0x45, 0x10, 0x29, 0x12, 0x23, 0x0a, 0x1f, 0x44, 0x41, 0x54, + 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4f, 0x4c, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x53, + 0x45, 0x51, 0x55, 0x45, 0x4e, 0x43, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x2a, 0x12, 0x16, + 0x0a, 0x12, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x44, 0x49, 0x53, 0x43, + 0x52, 0x45, 0x54, 0x45, 0x10, 0x2b, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x41, 0x4e, 0x41, 0x4c, 0x4f, 0x47, 0x10, 0x2c, 0x42, 0x0b, 0x5a, 0x09, + 0x2e, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( - file_grid_v1_data_proto_rawDescOnce sync.Once - file_grid_v1_data_proto_rawDescData = file_grid_v1_data_proto_rawDesc + file_zaphiro_grid_v1_data_proto_rawDescOnce sync.Once + file_zaphiro_grid_v1_data_proto_rawDescData = file_zaphiro_grid_v1_data_proto_rawDesc ) -func file_grid_v1_data_proto_rawDescGZIP() []byte { - file_grid_v1_data_proto_rawDescOnce.Do(func() { - file_grid_v1_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_grid_v1_data_proto_rawDescData) +func file_zaphiro_grid_v1_data_proto_rawDescGZIP() []byte { + file_zaphiro_grid_v1_data_proto_rawDescOnce.Do(func() { + file_zaphiro_grid_v1_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_grid_v1_data_proto_rawDescData) }) - return file_grid_v1_data_proto_rawDescData + return file_zaphiro_grid_v1_data_proto_rawDescData } -var file_grid_v1_data_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_grid_v1_data_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_grid_v1_data_proto_goTypes = []interface{}{ - (DataType)(0), // 0: grid.v1.DataType - (*Data)(nil), // 1: grid.v1.Data - (*DataSet)(nil), // 2: grid.v1.DataSet - nil, // 3: grid.v1.DataSet.DataEntry +var file_zaphiro_grid_v1_data_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_zaphiro_grid_v1_data_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_zaphiro_grid_v1_data_proto_goTypes = []interface{}{ + (DataType)(0), // 0: zaphiro.grid.v1.DataType + (*Data)(nil), // 1: zaphiro.grid.v1.Data + (*DataSet)(nil), // 2: zaphiro.grid.v1.DataSet + nil, // 3: zaphiro.grid.v1.DataSet.DataEntry } -var file_grid_v1_data_proto_depIdxs = []int32{ - 0, // 0: grid.v1.Data.dataType:type_name -> grid.v1.DataType - 3, // 1: grid.v1.DataSet.data:type_name -> grid.v1.DataSet.DataEntry - 1, // 2: grid.v1.DataSet.DataEntry.value:type_name -> grid.v1.Data +var file_zaphiro_grid_v1_data_proto_depIdxs = []int32{ + 0, // 0: zaphiro.grid.v1.Data.dataType:type_name -> zaphiro.grid.v1.DataType + 3, // 1: zaphiro.grid.v1.DataSet.data:type_name -> zaphiro.grid.v1.DataSet.DataEntry + 1, // 2: zaphiro.grid.v1.DataSet.DataEntry.value:type_name -> zaphiro.grid.v1.Data 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -464,13 +467,13 @@ var file_grid_v1_data_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_grid_v1_data_proto_init() } -func file_grid_v1_data_proto_init() { - if File_grid_v1_data_proto != nil { +func init() { file_zaphiro_grid_v1_data_proto_init() } +func file_zaphiro_grid_v1_data_proto_init() { + if File_zaphiro_grid_v1_data_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_grid_v1_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Data); i { case 0: return &v.state @@ -482,7 +485,7 @@ func file_grid_v1_data_proto_init() { return nil } } - file_grid_v1_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DataSet); i { case 0: return &v.state @@ -495,24 +498,24 @@ func file_grid_v1_data_proto_init() { } } } - file_grid_v1_data_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_zaphiro_grid_v1_data_proto_msgTypes[0].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_grid_v1_data_proto_rawDesc, + RawDescriptor: file_zaphiro_grid_v1_data_proto_rawDesc, NumEnums: 1, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_grid_v1_data_proto_goTypes, - DependencyIndexes: file_grid_v1_data_proto_depIdxs, - EnumInfos: file_grid_v1_data_proto_enumTypes, - MessageInfos: file_grid_v1_data_proto_msgTypes, + GoTypes: file_zaphiro_grid_v1_data_proto_goTypes, + DependencyIndexes: file_zaphiro_grid_v1_data_proto_depIdxs, + EnumInfos: file_zaphiro_grid_v1_data_proto_enumTypes, + MessageInfos: file_zaphiro_grid_v1_data_proto_msgTypes, }.Build() - File_grid_v1_data_proto = out.File - file_grid_v1_data_proto_rawDesc = nil - file_grid_v1_data_proto_goTypes = nil - file_grid_v1_data_proto_depIdxs = nil + File_zaphiro_grid_v1_data_proto = out.File + file_zaphiro_grid_v1_data_proto_rawDesc = nil + file_zaphiro_grid_v1_data_proto_goTypes = nil + file_zaphiro_grid_v1_data_proto_depIdxs = nil } diff --git a/pkg/grid/v1/data_test.go b/go/grid/v1/data_test.go similarity index 100% rename from pkg/grid/v1/data_test.go rename to go/grid/v1/data_test.go diff --git a/pkg/grid/v1/device_event.pb.go b/go/grid/v1/device_event.pb.go similarity index 63% rename from pkg/grid/v1/device_event.pb.go rename to go/grid/v1/device_event.pb.go index c4cb3b8..3e405cb 100644 --- a/pkg/grid/v1/device_event.pb.go +++ b/go/grid/v1/device_event.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: grid/v1/device_event.proto +// source: zaphiro/grid/v1/device_event.proto // //Messages to support device event detection in the platform. Device events are sub classes of Events. @@ -39,7 +39,7 @@ type DeviceEvent struct { func (x *DeviceEvent) Reset() { *x = DeviceEvent{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_device_event_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -52,7 +52,7 @@ func (x *DeviceEvent) String() string { func (*DeviceEvent) ProtoMessage() {} func (x *DeviceEvent) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_device_event_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -65,7 +65,7 @@ func (x *DeviceEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use DeviceEvent.ProtoReflect.Descriptor instead. func (*DeviceEvent) Descriptor() ([]byte, []int) { - return file_grid_v1_device_event_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_device_event_proto_rawDescGZIP(), []int{0} } func (x *DeviceEvent) GetEvent() *Event { @@ -121,7 +121,7 @@ type CommunicationError struct { func (x *CommunicationError) Reset() { *x = CommunicationError{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_device_event_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -134,7 +134,7 @@ func (x *CommunicationError) String() string { func (*CommunicationError) ProtoMessage() {} func (x *CommunicationError) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_device_event_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -147,7 +147,7 @@ func (x *CommunicationError) ProtoReflect() protoreflect.Message { // Deprecated: Use CommunicationError.ProtoReflect.Descriptor instead. func (*CommunicationError) Descriptor() ([]byte, []int) { - return file_grid_v1_device_event_proto_rawDescGZIP(), []int{1} + return file_zaphiro_grid_v1_device_event_proto_rawDescGZIP(), []int{1} } func (x *CommunicationError) GetEvent() *DeviceEvent { @@ -168,7 +168,7 @@ type TimeQuality struct { func (x *TimeQuality) Reset() { *x = TimeQuality{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_device_event_proto_msgTypes[2] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -181,7 +181,7 @@ func (x *TimeQuality) String() string { func (*TimeQuality) ProtoMessage() {} func (x *TimeQuality) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_device_event_proto_msgTypes[2] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -194,7 +194,7 @@ func (x *TimeQuality) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeQuality.ProtoReflect.Descriptor instead. func (*TimeQuality) Descriptor() ([]byte, []int) { - return file_grid_v1_device_event_proto_rawDescGZIP(), []int{2} + return file_zaphiro_grid_v1_device_event_proto_rawDescGZIP(), []int{2} } func (x *TimeQuality) GetEvent() *DeviceEvent { @@ -215,7 +215,7 @@ type SyncStatus struct { func (x *SyncStatus) Reset() { *x = SyncStatus{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_device_event_proto_msgTypes[3] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -228,7 +228,7 @@ func (x *SyncStatus) String() string { func (*SyncStatus) ProtoMessage() {} func (x *SyncStatus) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_device_event_proto_msgTypes[3] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -241,7 +241,7 @@ func (x *SyncStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use SyncStatus.ProtoReflect.Descriptor instead. func (*SyncStatus) Descriptor() ([]byte, []int) { - return file_grid_v1_device_event_proto_rawDescGZIP(), []int{3} + return file_zaphiro_grid_v1_device_event_proto_rawDescGZIP(), []int{3} } func (x *SyncStatus) GetEvent() *DeviceEvent { @@ -262,7 +262,7 @@ type Power struct { func (x *Power) Reset() { *x = Power{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_device_event_proto_msgTypes[4] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -275,7 +275,7 @@ func (x *Power) String() string { func (*Power) ProtoMessage() {} func (x *Power) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_device_event_proto_msgTypes[4] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -288,7 +288,7 @@ func (x *Power) ProtoReflect() protoreflect.Message { // Deprecated: Use Power.ProtoReflect.Descriptor instead. func (*Power) Descriptor() ([]byte, []int) { - return file_grid_v1_device_event_proto_rawDescGZIP(), []int{4} + return file_zaphiro_grid_v1_device_event_proto_rawDescGZIP(), []int{4} } func (x *Power) GetEvent() *DeviceEvent { @@ -309,7 +309,7 @@ type Config struct { func (x *Config) Reset() { *x = Config{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_device_event_proto_msgTypes[5] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -322,7 +322,7 @@ func (x *Config) String() string { func (*Config) ProtoMessage() {} func (x *Config) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_device_event_proto_msgTypes[5] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -335,7 +335,7 @@ func (x *Config) ProtoReflect() protoreflect.Message { // Deprecated: Use Config.ProtoReflect.Descriptor instead. func (*Config) Descriptor() ([]byte, []int) { - return file_grid_v1_device_event_proto_rawDescGZIP(), []int{5} + return file_zaphiro_grid_v1_device_event_proto_rawDescGZIP(), []int{5} } func (x *Config) GetEvent() *DeviceEvent { @@ -356,7 +356,7 @@ type Trigger struct { func (x *Trigger) Reset() { *x = Trigger{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_device_event_proto_msgTypes[6] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -369,7 +369,7 @@ func (x *Trigger) String() string { func (*Trigger) ProtoMessage() {} func (x *Trigger) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_device_event_proto_msgTypes[6] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -382,7 +382,7 @@ func (x *Trigger) ProtoReflect() protoreflect.Message { // Deprecated: Use Trigger.ProtoReflect.Descriptor instead. func (*Trigger) Descriptor() ([]byte, []int) { - return file_grid_v1_device_event_proto_rawDescGZIP(), []int{6} + return file_zaphiro_grid_v1_device_event_proto_rawDescGZIP(), []int{6} } func (x *Trigger) GetEvent() *DeviceEvent { @@ -403,7 +403,7 @@ type DataError struct { func (x *DataError) Reset() { *x = DataError{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_device_event_proto_msgTypes[7] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -416,7 +416,7 @@ func (x *DataError) String() string { func (*DataError) ProtoMessage() {} func (x *DataError) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_device_event_proto_msgTypes[7] + mi := &file_zaphiro_grid_v1_device_event_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -429,7 +429,7 @@ func (x *DataError) ProtoReflect() protoreflect.Message { // Deprecated: Use DataError.ProtoReflect.Descriptor instead. func (*DataError) Descriptor() ([]byte, []int) { - return file_grid_v1_device_event_proto_rawDescGZIP(), []int{7} + return file_zaphiro_grid_v1_device_event_proto_rawDescGZIP(), []int{7} } func (x *DataError) GetEvent() *DeviceEvent { @@ -439,15 +439,17 @@ func (x *DataError) GetEvent() *DeviceEvent { return nil } -var File_grid_v1_device_event_proto protoreflect.FileDescriptor +var File_zaphiro_grid_v1_device_event_proto protoreflect.FileDescriptor -var file_grid_v1_device_event_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, - 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72, - 0x69, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x13, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfa, 0x01, 0x0a, 0x0b, 0x44, - 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x05, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x72, 0x69, 0x64, +var file_zaphiro_grid_v1_device_event_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, + 0x31, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, + 0x69, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, + 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x82, 0x02, 0x0a, 0x0b, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x12, 0x22, 0x0a, 0x0c, @@ -461,68 +463,72 @@ var file_grid_v1_device_event_proto_rawDesc = []byte{ 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x42, 0x07, - 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x75, - 0x6e, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2a, 0x0a, - 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x39, 0x0a, 0x0b, 0x54, 0x69, 0x6d, - 0x65, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, + 0x0a, 0x05, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x48, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x75, + 0x6e, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x32, 0x0a, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x7a, + 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x22, 0x41, 0x0a, 0x0b, 0x54, 0x69, 0x6d, 0x65, 0x51, 0x75, 0x61, 0x6c, 0x69, 0x74, 0x79, + 0x12, 0x32, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x22, 0x38, 0x0a, 0x0a, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, - 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x33, - 0x0a, 0x05, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, + 0x76, 0x65, 0x6e, 0x74, 0x22, 0x40, 0x0a, 0x0a, 0x53, 0x79, 0x6e, 0x63, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x32, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x05, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12, + 0x32, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x22, 0x34, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, - 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x35, 0x0a, 0x07, 0x54, 0x72, 0x69, - 0x67, 0x67, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, + 0x65, 0x6e, 0x74, 0x22, 0x3c, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x32, 0x0a, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x7a, + 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x22, 0x3d, 0x0a, 0x07, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x05, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x7a, 0x61, + 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x22, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2a, 0x0a, - 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x67, - 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x22, 0x3f, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x32, 0x0a, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x7a, + 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_grid_v1_device_event_proto_rawDescOnce sync.Once - file_grid_v1_device_event_proto_rawDescData = file_grid_v1_device_event_proto_rawDesc + file_zaphiro_grid_v1_device_event_proto_rawDescOnce sync.Once + file_zaphiro_grid_v1_device_event_proto_rawDescData = file_zaphiro_grid_v1_device_event_proto_rawDesc ) -func file_grid_v1_device_event_proto_rawDescGZIP() []byte { - file_grid_v1_device_event_proto_rawDescOnce.Do(func() { - file_grid_v1_device_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_grid_v1_device_event_proto_rawDescData) +func file_zaphiro_grid_v1_device_event_proto_rawDescGZIP() []byte { + file_zaphiro_grid_v1_device_event_proto_rawDescOnce.Do(func() { + file_zaphiro_grid_v1_device_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_grid_v1_device_event_proto_rawDescData) }) - return file_grid_v1_device_event_proto_rawDescData -} - -var file_grid_v1_device_event_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_grid_v1_device_event_proto_goTypes = []interface{}{ - (*DeviceEvent)(nil), // 0: grid.v1.DeviceEvent - (*CommunicationError)(nil), // 1: grid.v1.CommunicationError - (*TimeQuality)(nil), // 2: grid.v1.TimeQuality - (*SyncStatus)(nil), // 3: grid.v1.SyncStatus - (*Power)(nil), // 4: grid.v1.Power - (*Config)(nil), // 5: grid.v1.Config - (*Trigger)(nil), // 6: grid.v1.Trigger - (*DataError)(nil), // 7: grid.v1.DataError - (*Event)(nil), // 8: grid.v1.Event -} -var file_grid_v1_device_event_proto_depIdxs = []int32{ - 8, // 0: grid.v1.DeviceEvent.event:type_name -> grid.v1.Event - 0, // 1: grid.v1.CommunicationError.event:type_name -> grid.v1.DeviceEvent - 0, // 2: grid.v1.TimeQuality.event:type_name -> grid.v1.DeviceEvent - 0, // 3: grid.v1.SyncStatus.event:type_name -> grid.v1.DeviceEvent - 0, // 4: grid.v1.Power.event:type_name -> grid.v1.DeviceEvent - 0, // 5: grid.v1.Config.event:type_name -> grid.v1.DeviceEvent - 0, // 6: grid.v1.Trigger.event:type_name -> grid.v1.DeviceEvent - 0, // 7: grid.v1.DataError.event:type_name -> grid.v1.DeviceEvent + return file_zaphiro_grid_v1_device_event_proto_rawDescData +} + +var file_zaphiro_grid_v1_device_event_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_zaphiro_grid_v1_device_event_proto_goTypes = []interface{}{ + (*DeviceEvent)(nil), // 0: zaphiro.grid.v1.DeviceEvent + (*CommunicationError)(nil), // 1: zaphiro.grid.v1.CommunicationError + (*TimeQuality)(nil), // 2: zaphiro.grid.v1.TimeQuality + (*SyncStatus)(nil), // 3: zaphiro.grid.v1.SyncStatus + (*Power)(nil), // 4: zaphiro.grid.v1.Power + (*Config)(nil), // 5: zaphiro.grid.v1.Config + (*Trigger)(nil), // 6: zaphiro.grid.v1.Trigger + (*DataError)(nil), // 7: zaphiro.grid.v1.DataError + (*Event)(nil), // 8: zaphiro.grid.v1.Event +} +var file_zaphiro_grid_v1_device_event_proto_depIdxs = []int32{ + 8, // 0: zaphiro.grid.v1.DeviceEvent.event:type_name -> zaphiro.grid.v1.Event + 0, // 1: zaphiro.grid.v1.CommunicationError.event:type_name -> zaphiro.grid.v1.DeviceEvent + 0, // 2: zaphiro.grid.v1.TimeQuality.event:type_name -> zaphiro.grid.v1.DeviceEvent + 0, // 3: zaphiro.grid.v1.SyncStatus.event:type_name -> zaphiro.grid.v1.DeviceEvent + 0, // 4: zaphiro.grid.v1.Power.event:type_name -> zaphiro.grid.v1.DeviceEvent + 0, // 5: zaphiro.grid.v1.Config.event:type_name -> zaphiro.grid.v1.DeviceEvent + 0, // 6: zaphiro.grid.v1.Trigger.event:type_name -> zaphiro.grid.v1.DeviceEvent + 0, // 7: zaphiro.grid.v1.DataError.event:type_name -> zaphiro.grid.v1.DeviceEvent 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name @@ -530,14 +536,14 @@ var file_grid_v1_device_event_proto_depIdxs = []int32{ 0, // [0:8] is the sub-list for field type_name } -func init() { file_grid_v1_device_event_proto_init() } -func file_grid_v1_device_event_proto_init() { - if File_grid_v1_device_event_proto != nil { +func init() { file_zaphiro_grid_v1_device_event_proto_init() } +func file_zaphiro_grid_v1_device_event_proto_init() { + if File_zaphiro_grid_v1_device_event_proto != nil { return } - file_grid_v1_event_proto_init() + file_zaphiro_grid_v1_event_proto_init() if !protoimpl.UnsafeEnabled { - file_grid_v1_device_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_device_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeviceEvent); i { case 0: return &v.state @@ -549,7 +555,7 @@ func file_grid_v1_device_event_proto_init() { return nil } } - file_grid_v1_device_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_device_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CommunicationError); i { case 0: return &v.state @@ -561,7 +567,7 @@ func file_grid_v1_device_event_proto_init() { return nil } } - file_grid_v1_device_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_device_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TimeQuality); i { case 0: return &v.state @@ -573,7 +579,7 @@ func file_grid_v1_device_event_proto_init() { return nil } } - file_grid_v1_device_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_device_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SyncStatus); i { case 0: return &v.state @@ -585,7 +591,7 @@ func file_grid_v1_device_event_proto_init() { return nil } } - file_grid_v1_device_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_device_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Power); i { case 0: return &v.state @@ -597,7 +603,7 @@ func file_grid_v1_device_event_proto_init() { return nil } } - file_grid_v1_device_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_device_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Config); i { case 0: return &v.state @@ -609,7 +615,7 @@ func file_grid_v1_device_event_proto_init() { return nil } } - file_grid_v1_device_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_device_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Trigger); i { case 0: return &v.state @@ -621,7 +627,7 @@ func file_grid_v1_device_event_proto_init() { return nil } } - file_grid_v1_device_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_device_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DataError); i { case 0: return &v.state @@ -634,23 +640,23 @@ func file_grid_v1_device_event_proto_init() { } } } - file_grid_v1_device_event_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_zaphiro_grid_v1_device_event_proto_msgTypes[0].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_grid_v1_device_event_proto_rawDesc, + RawDescriptor: file_zaphiro_grid_v1_device_event_proto_rawDesc, NumEnums: 0, NumMessages: 8, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_grid_v1_device_event_proto_goTypes, - DependencyIndexes: file_grid_v1_device_event_proto_depIdxs, - MessageInfos: file_grid_v1_device_event_proto_msgTypes, + GoTypes: file_zaphiro_grid_v1_device_event_proto_goTypes, + DependencyIndexes: file_zaphiro_grid_v1_device_event_proto_depIdxs, + MessageInfos: file_zaphiro_grid_v1_device_event_proto_msgTypes, }.Build() - File_grid_v1_device_event_proto = out.File - file_grid_v1_device_event_proto_rawDesc = nil - file_grid_v1_device_event_proto_goTypes = nil - file_grid_v1_device_event_proto_depIdxs = nil + File_zaphiro_grid_v1_device_event_proto = out.File + file_zaphiro_grid_v1_device_event_proto_rawDesc = nil + file_zaphiro_grid_v1_device_event_proto_goTypes = nil + file_zaphiro_grid_v1_device_event_proto_depIdxs = nil } diff --git a/pkg/grid/v1/event.pb.go b/go/grid/v1/event.pb.go similarity index 67% rename from pkg/grid/v1/event.pb.go rename to go/grid/v1/event.pb.go index efd97b6..da69596 100644 --- a/pkg/grid/v1/event.pb.go +++ b/go/grid/v1/event.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: grid/v1/event.proto +// source: zaphiro/grid/v1/event.proto // //Messages to support event detection in the platform. @@ -63,11 +63,11 @@ func (x EventStatus) String() string { } func (EventStatus) Descriptor() protoreflect.EnumDescriptor { - return file_grid_v1_event_proto_enumTypes[0].Descriptor() + return file_zaphiro_grid_v1_event_proto_enumTypes[0].Descriptor() } func (EventStatus) Type() protoreflect.EnumType { - return &file_grid_v1_event_proto_enumTypes[0] + return &file_zaphiro_grid_v1_event_proto_enumTypes[0] } func (x EventStatus) Number() protoreflect.EnumNumber { @@ -76,7 +76,7 @@ func (x EventStatus) Number() protoreflect.EnumNumber { // Deprecated: Use EventStatus.Descriptor instead. func (EventStatus) EnumDescriptor() ([]byte, []int) { - return file_grid_v1_event_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_event_proto_rawDescGZIP(), []int{0} } type EventSourceType int32 @@ -115,11 +115,11 @@ func (x EventSourceType) String() string { } func (EventSourceType) Descriptor() protoreflect.EnumDescriptor { - return file_grid_v1_event_proto_enumTypes[1].Descriptor() + return file_zaphiro_grid_v1_event_proto_enumTypes[1].Descriptor() } func (EventSourceType) Type() protoreflect.EnumType { - return &file_grid_v1_event_proto_enumTypes[1] + return &file_zaphiro_grid_v1_event_proto_enumTypes[1] } func (x EventSourceType) Number() protoreflect.EnumNumber { @@ -128,7 +128,7 @@ func (x EventSourceType) Number() protoreflect.EnumNumber { // Deprecated: Use EventSourceType.Descriptor instead. func (EventSourceType) EnumDescriptor() ([]byte, []int) { - return file_grid_v1_event_proto_rawDescGZIP(), []int{1} + return file_zaphiro_grid_v1_event_proto_rawDescGZIP(), []int{1} } type Event struct { @@ -136,19 +136,19 @@ type Event struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` //The uuid of the event. - SourceId string `protobuf:"bytes,2,opt,name=sourceId,proto3" json:"sourceId,omitempty"` //The id of the source (e.g. a PMU) that generated the event. - SourceType EventSourceType `protobuf:"varint,3,opt,name=sourceType,proto3,enum=grid.v1.EventSourceType" json:"sourceType,omitempty"` //The type of data see `DataType` enum. - OccurredAt int64 `protobuf:"varint,4,opt,name=occurredAt,proto3" json:"occurredAt,omitempty"` //The time of occurency of the event (Unix msec timestamp) usually is the same value as timestampId. - DetectedAt *int64 `protobuf:"varint,5,opt,name=detectedAt,proto3,oneof" json:"detectedAt,omitempty"` //The time of detection of the event (Unix msec timestamp). - Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` //Event message. - Status *EventStatus `protobuf:"varint,7,opt,name=status,proto3,enum=grid.v1.EventStatus,oneof" json:"status,omitempty"` //The status of the event. + Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` //The uuid of the event. + SourceId string `protobuf:"bytes,2,opt,name=sourceId,proto3" json:"sourceId,omitempty"` //The id of the source (e.g. a PMU) that generated the event. + SourceType EventSourceType `protobuf:"varint,3,opt,name=sourceType,proto3,enum=zaphiro.grid.v1.EventSourceType" json:"sourceType,omitempty"` //The type of data see `DataType` enum. + OccurredAt int64 `protobuf:"varint,4,opt,name=occurredAt,proto3" json:"occurredAt,omitempty"` //The time of occurency of the event (Unix msec timestamp) usually is the same value as timestampId. + DetectedAt *int64 `protobuf:"varint,5,opt,name=detectedAt,proto3,oneof" json:"detectedAt,omitempty"` //The time of detection of the event (Unix msec timestamp). + Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` //Event message. + Status *EventStatus `protobuf:"varint,7,opt,name=status,proto3,enum=zaphiro.grid.v1.EventStatus,oneof" json:"status,omitempty"` //The status of the event. } func (x *Event) Reset() { *x = Event{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_event_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_event_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -161,7 +161,7 @@ func (x *Event) String() string { func (*Event) ProtoMessage() {} func (x *Event) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_event_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_event_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -174,7 +174,7 @@ func (x *Event) ProtoReflect() protoreflect.Message { // Deprecated: Use Event.ProtoReflect.Descriptor instead. func (*Event) Descriptor() ([]byte, []int) { - return file_grid_v1_event_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_event_proto_rawDescGZIP(), []int{0} } func (x *Event) GetId() string { @@ -226,25 +226,27 @@ func (x *Event) GetStatus() EventStatus { return EventStatus_EVENT_STATUS_UNSPECIFIED } -var File_grid_v1_event_proto protoreflect.FileDescriptor +var File_zaphiro_grid_v1_event_proto protoreflect.FileDescriptor -var file_grid_v1_event_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x99, +var file_zaphiro_grid_v1_event_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, + 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x7a, + 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x22, 0xa9, 0x02, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, - 0x0a, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x23, - 0x0a, 0x0a, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x31, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, + 0x63, 0x65, 0x49, 0x64, 0x12, 0x40, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, + 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, + 0x65, 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, + 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x12, 0x23, 0x0a, 0x0a, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, + 0x65, 0x64, 0x41, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x65, + 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x88, 0x01, 0x01, 0x12, 0x18, 0x0a, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x01, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, @@ -271,27 +273,27 @@ var file_grid_v1_event_proto_rawDesc = []byte{ } var ( - file_grid_v1_event_proto_rawDescOnce sync.Once - file_grid_v1_event_proto_rawDescData = file_grid_v1_event_proto_rawDesc + file_zaphiro_grid_v1_event_proto_rawDescOnce sync.Once + file_zaphiro_grid_v1_event_proto_rawDescData = file_zaphiro_grid_v1_event_proto_rawDesc ) -func file_grid_v1_event_proto_rawDescGZIP() []byte { - file_grid_v1_event_proto_rawDescOnce.Do(func() { - file_grid_v1_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_grid_v1_event_proto_rawDescData) +func file_zaphiro_grid_v1_event_proto_rawDescGZIP() []byte { + file_zaphiro_grid_v1_event_proto_rawDescOnce.Do(func() { + file_zaphiro_grid_v1_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_grid_v1_event_proto_rawDescData) }) - return file_grid_v1_event_proto_rawDescData + return file_zaphiro_grid_v1_event_proto_rawDescData } -var file_grid_v1_event_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_grid_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_grid_v1_event_proto_goTypes = []interface{}{ - (EventStatus)(0), // 0: grid.v1.EventStatus - (EventSourceType)(0), // 1: grid.v1.EventSourceType - (*Event)(nil), // 2: grid.v1.Event +var file_zaphiro_grid_v1_event_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_zaphiro_grid_v1_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_zaphiro_grid_v1_event_proto_goTypes = []interface{}{ + (EventStatus)(0), // 0: zaphiro.grid.v1.EventStatus + (EventSourceType)(0), // 1: zaphiro.grid.v1.EventSourceType + (*Event)(nil), // 2: zaphiro.grid.v1.Event } -var file_grid_v1_event_proto_depIdxs = []int32{ - 1, // 0: grid.v1.Event.sourceType:type_name -> grid.v1.EventSourceType - 0, // 1: grid.v1.Event.status:type_name -> grid.v1.EventStatus +var file_zaphiro_grid_v1_event_proto_depIdxs = []int32{ + 1, // 0: zaphiro.grid.v1.Event.sourceType:type_name -> zaphiro.grid.v1.EventSourceType + 0, // 1: zaphiro.grid.v1.Event.status:type_name -> zaphiro.grid.v1.EventStatus 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -299,13 +301,13 @@ var file_grid_v1_event_proto_depIdxs = []int32{ 0, // [0:2] is the sub-list for field type_name } -func init() { file_grid_v1_event_proto_init() } -func file_grid_v1_event_proto_init() { - if File_grid_v1_event_proto != nil { +func init() { file_zaphiro_grid_v1_event_proto_init() } +func file_zaphiro_grid_v1_event_proto_init() { + if File_zaphiro_grid_v1_event_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_grid_v1_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Event); i { case 0: return &v.state @@ -318,24 +320,24 @@ func file_grid_v1_event_proto_init() { } } } - file_grid_v1_event_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_zaphiro_grid_v1_event_proto_msgTypes[0].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_grid_v1_event_proto_rawDesc, + RawDescriptor: file_zaphiro_grid_v1_event_proto_rawDesc, NumEnums: 2, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_grid_v1_event_proto_goTypes, - DependencyIndexes: file_grid_v1_event_proto_depIdxs, - EnumInfos: file_grid_v1_event_proto_enumTypes, - MessageInfos: file_grid_v1_event_proto_msgTypes, + GoTypes: file_zaphiro_grid_v1_event_proto_goTypes, + DependencyIndexes: file_zaphiro_grid_v1_event_proto_depIdxs, + EnumInfos: file_zaphiro_grid_v1_event_proto_enumTypes, + MessageInfos: file_zaphiro_grid_v1_event_proto_msgTypes, }.Build() - File_grid_v1_event_proto = out.File - file_grid_v1_event_proto_rawDesc = nil - file_grid_v1_event_proto_goTypes = nil - file_grid_v1_event_proto_depIdxs = nil + File_zaphiro_grid_v1_event_proto = out.File + file_zaphiro_grid_v1_event_proto_rawDesc = nil + file_zaphiro_grid_v1_event_proto_goTypes = nil + file_zaphiro_grid_v1_event_proto_depIdxs = nil } diff --git a/pkg/grid/v1/event_test.go b/go/grid/v1/event_test.go similarity index 100% rename from pkg/grid/v1/event_test.go rename to go/grid/v1/event_test.go diff --git a/pkg/grid/v1/fault.pb.go b/go/grid/v1/fault.pb.go similarity index 77% rename from pkg/grid/v1/fault.pb.go rename to go/grid/v1/fault.pb.go index 68f89c4..819e52b 100644 --- a/pkg/grid/v1/fault.pb.go +++ b/go/grid/v1/fault.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: grid/v1/fault.proto +// source: zaphiro/grid/v1/fault.proto // //Messages describing faults. @@ -66,11 +66,11 @@ func (x PhaseConnectedFaultKind) String() string { } func (PhaseConnectedFaultKind) Descriptor() protoreflect.EnumDescriptor { - return file_grid_v1_fault_proto_enumTypes[0].Descriptor() + return file_zaphiro_grid_v1_fault_proto_enumTypes[0].Descriptor() } func (PhaseConnectedFaultKind) Type() protoreflect.EnumType { - return &file_grid_v1_fault_proto_enumTypes[0] + return &file_zaphiro_grid_v1_fault_proto_enumTypes[0] } func (x PhaseConnectedFaultKind) Number() protoreflect.EnumNumber { @@ -79,7 +79,7 @@ func (x PhaseConnectedFaultKind) Number() protoreflect.EnumNumber { // Deprecated: Use PhaseConnectedFaultKind.Descriptor instead. func (PhaseConnectedFaultKind) EnumDescriptor() ([]byte, []int) { - return file_grid_v1_fault_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_fault_proto_rawDescGZIP(), []int{0} } type PhaseCode int32 @@ -184,11 +184,11 @@ func (x PhaseCode) String() string { } func (PhaseCode) Descriptor() protoreflect.EnumDescriptor { - return file_grid_v1_fault_proto_enumTypes[1].Descriptor() + return file_zaphiro_grid_v1_fault_proto_enumTypes[1].Descriptor() } func (PhaseCode) Type() protoreflect.EnumType { - return &file_grid_v1_fault_proto_enumTypes[1] + return &file_zaphiro_grid_v1_fault_proto_enumTypes[1] } func (x PhaseCode) Number() protoreflect.EnumNumber { @@ -197,7 +197,7 @@ func (x PhaseCode) Number() protoreflect.EnumNumber { // Deprecated: Use PhaseCode.Descriptor instead. func (PhaseCode) EnumDescriptor() ([]byte, []int) { - return file_grid_v1_fault_proto_rawDescGZIP(), []int{1} + return file_zaphiro_grid_v1_fault_proto_rawDescGZIP(), []int{1} } type Fault struct { @@ -205,22 +205,22 @@ type Fault struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` //The textual id of the fault. - Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"` //The textual description of the fault. - Kind PhaseConnectedFaultKind `protobuf:"varint,3,opt,name=kind,proto3,enum=grid.v1.PhaseConnectedFaultKind" json:"kind,omitempty"` //The kind of phase fault. - Phases PhaseCode `protobuf:"varint,4,opt,name=phases,proto3,enum=grid.v1.PhaseCode" json:"phases,omitempty"` //The phases participating in the fault. The fault connections into these phases are further specified by the type of fault. - OccurredAt int64 `protobuf:"varint,5,opt,name=occurredAt,proto3" json:"occurredAt,omitempty"` //The date and time at which the fault occurred (Unix msec timestamp). - FaultyEquipmentId *string `protobuf:"bytes,6,opt,name=faultyEquipmentId,proto3,oneof" json:"faultyEquipmentId,omitempty"` //The equipment with the fault. - LocatedAt *int64 `protobuf:"varint,7,opt,name=locatedAt,proto3,oneof" json:"locatedAt,omitempty"` //The time when the fault was located. - FaultCurrent *float32 `protobuf:"fixed32,8,opt,name=faultCurrent,proto3,oneof" json:"faultCurrent,omitempty"` //The current associated to the fault. - Located *bool `protobuf:"varint,9,opt,name=located,proto3,oneof" json:"located,omitempty"` //Was the fault located. - ImpactedEquipmentIds []string `protobuf:"bytes,10,rep,name=impactedEquipmentIds,proto3" json:"impactedEquipmentIds,omitempty"` //The set of IDs of equipments impacted by the fault. + Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` //The textual id of the fault. + Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"` //The textual description of the fault. + Kind PhaseConnectedFaultKind `protobuf:"varint,3,opt,name=kind,proto3,enum=zaphiro.grid.v1.PhaseConnectedFaultKind" json:"kind,omitempty"` //The kind of phase fault. + Phases PhaseCode `protobuf:"varint,4,opt,name=phases,proto3,enum=zaphiro.grid.v1.PhaseCode" json:"phases,omitempty"` //The phases participating in the fault. The fault connections into these phases are further specified by the type of fault. + OccurredAt int64 `protobuf:"varint,5,opt,name=occurredAt,proto3" json:"occurredAt,omitempty"` //The date and time at which the fault occurred (Unix msec timestamp). + FaultyEquipmentId *string `protobuf:"bytes,6,opt,name=faultyEquipmentId,proto3,oneof" json:"faultyEquipmentId,omitempty"` //The equipment with the fault. + LocatedAt *int64 `protobuf:"varint,7,opt,name=locatedAt,proto3,oneof" json:"locatedAt,omitempty"` //The time when the fault was located. + FaultCurrent *float32 `protobuf:"fixed32,8,opt,name=faultCurrent,proto3,oneof" json:"faultCurrent,omitempty"` //The current associated to the fault. + Located *bool `protobuf:"varint,9,opt,name=located,proto3,oneof" json:"located,omitempty"` //Was the fault located. + ImpactedEquipmentIds []string `protobuf:"bytes,10,rep,name=impactedEquipmentIds,proto3" json:"impactedEquipmentIds,omitempty"` //The set of IDs of equipments impacted by the fault. } func (x *Fault) Reset() { *x = Fault{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_fault_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_fault_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -233,7 +233,7 @@ func (x *Fault) String() string { func (*Fault) ProtoMessage() {} func (x *Fault) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_fault_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_fault_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -246,7 +246,7 @@ func (x *Fault) ProtoReflect() protoreflect.Message { // Deprecated: Use Fault.ProtoReflect.Descriptor instead. func (*Fault) Descriptor() ([]byte, []int) { - return file_grid_v1_fault_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_fault_proto_rawDescGZIP(), []int{0} } func (x *Fault) GetId() string { @@ -332,7 +332,7 @@ type LineFault struct { func (x *LineFault) Reset() { *x = LineFault{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_fault_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_fault_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -345,7 +345,7 @@ func (x *LineFault) String() string { func (*LineFault) ProtoMessage() {} func (x *LineFault) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_fault_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_fault_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -358,7 +358,7 @@ func (x *LineFault) ProtoReflect() protoreflect.Message { // Deprecated: Use LineFault.ProtoReflect.Descriptor instead. func (*LineFault) Descriptor() ([]byte, []int) { - return file_grid_v1_fault_proto_rawDescGZIP(), []int{1} + return file_zaphiro_grid_v1_fault_proto_rawDescGZIP(), []int{1} } func (x *LineFault) GetFault() *Fault { @@ -394,7 +394,7 @@ type EquipmentFault struct { func (x *EquipmentFault) Reset() { *x = EquipmentFault{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_fault_proto_msgTypes[2] + mi := &file_zaphiro_grid_v1_fault_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -407,7 +407,7 @@ func (x *EquipmentFault) String() string { func (*EquipmentFault) ProtoMessage() {} func (x *EquipmentFault) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_fault_proto_msgTypes[2] + mi := &file_zaphiro_grid_v1_fault_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -420,7 +420,7 @@ func (x *EquipmentFault) ProtoReflect() protoreflect.Message { // Deprecated: Use EquipmentFault.ProtoReflect.Descriptor instead. func (*EquipmentFault) Descriptor() ([]byte, []int) { - return file_grid_v1_fault_proto_rawDescGZIP(), []int{2} + return file_zaphiro_grid_v1_fault_proto_rawDescGZIP(), []int{2} } func (x *EquipmentFault) GetFault() *Fault { @@ -437,20 +437,22 @@ func (x *EquipmentFault) GetTerminalID() string { return "" } -var File_grid_v1_fault_proto protoreflect.FileDescriptor +var File_zaphiro_grid_v1_fault_proto protoreflect.FileDescriptor -var file_grid_v1_fault_proto_rawDesc = []byte{ - 0x0a, 0x13, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x22, 0xe3, +var file_zaphiro_grid_v1_fault_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, + 0x31, 0x2f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x7a, + 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x22, 0xf3, 0x03, 0x0a, 0x05, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, - 0x34, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, - 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x52, - 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x2a, 0x0a, 0x06, 0x70, 0x68, 0x61, 0x73, 0x65, 0x73, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x3c, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, + 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x46, 0x61, + 0x75, 0x6c, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x32, 0x0a, + 0x06, 0x70, 0x68, 0x61, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, + 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x70, 0x68, 0x61, 0x73, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, 0x65, 0x64, 0x41, @@ -472,21 +474,22 @@ var file_grid_v1_fault_proto_rawDesc = []byte{ 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x65, 0x64, 0x22, 0xc3, 0x01, 0x0a, 0x09, 0x4c, 0x69, 0x6e, 0x65, 0x46, 0x61, 0x75, - 0x6c, 0x74, 0x12, 0x24, 0x0a, 0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x75, 0x6c, - 0x74, 0x52, 0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x35, 0x0a, 0x13, 0x6c, 0x65, 0x6e, 0x67, - 0x74, 0x68, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x31, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x13, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x46, - 0x72, 0x6f, 0x6d, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x31, 0x88, 0x01, 0x01, 0x12, - 0x2d, 0x0a, 0x0f, 0x61, 0x63, 0x4c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, - 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0f, 0x61, 0x63, 0x4c, 0x69, - 0x6e, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x16, - 0x0a, 0x14, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x65, 0x72, - 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x31, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x61, 0x63, 0x4c, 0x69, 0x6e, - 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x22, 0x6a, 0x0a, 0x0e, 0x45, 0x71, - 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x24, 0x0a, 0x05, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x72, + 0x61, 0x74, 0x65, 0x64, 0x22, 0xcb, 0x01, 0x0a, 0x09, 0x4c, 0x69, 0x6e, 0x65, 0x46, 0x61, 0x75, + 0x6c, 0x74, 0x12, 0x2c, 0x0a, 0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x12, 0x35, 0x0a, 0x13, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x65, + 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x31, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, + 0x13, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x65, 0x72, 0x6d, 0x69, + 0x6e, 0x61, 0x6c, 0x31, 0x88, 0x01, 0x01, 0x12, 0x2d, 0x0a, 0x0f, 0x61, 0x63, 0x4c, 0x69, 0x6e, + 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x01, 0x52, 0x0f, 0x61, 0x63, 0x4c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, + 0x74, 0x49, 0x44, 0x88, 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, + 0x68, 0x46, 0x72, 0x6f, 0x6d, 0x54, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x31, 0x42, 0x12, + 0x0a, 0x10, 0x5f, 0x61, 0x63, 0x4c, 0x69, 0x6e, 0x65, 0x53, 0x65, 0x67, 0x6d, 0x65, 0x6e, 0x74, + 0x49, 0x44, 0x22, 0x72, 0x0a, 0x0e, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x46, + 0x61, 0x75, 0x6c, 0x74, 0x12, 0x2c, 0x0a, 0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x05, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x23, 0x0a, 0x0a, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, @@ -545,31 +548,31 @@ var file_grid_v1_fault_proto_rawDesc = []byte{ } var ( - file_grid_v1_fault_proto_rawDescOnce sync.Once - file_grid_v1_fault_proto_rawDescData = file_grid_v1_fault_proto_rawDesc + file_zaphiro_grid_v1_fault_proto_rawDescOnce sync.Once + file_zaphiro_grid_v1_fault_proto_rawDescData = file_zaphiro_grid_v1_fault_proto_rawDesc ) -func file_grid_v1_fault_proto_rawDescGZIP() []byte { - file_grid_v1_fault_proto_rawDescOnce.Do(func() { - file_grid_v1_fault_proto_rawDescData = protoimpl.X.CompressGZIP(file_grid_v1_fault_proto_rawDescData) +func file_zaphiro_grid_v1_fault_proto_rawDescGZIP() []byte { + file_zaphiro_grid_v1_fault_proto_rawDescOnce.Do(func() { + file_zaphiro_grid_v1_fault_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_grid_v1_fault_proto_rawDescData) }) - return file_grid_v1_fault_proto_rawDescData -} - -var file_grid_v1_fault_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_grid_v1_fault_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_grid_v1_fault_proto_goTypes = []interface{}{ - (PhaseConnectedFaultKind)(0), // 0: grid.v1.PhaseConnectedFaultKind - (PhaseCode)(0), // 1: grid.v1.PhaseCode - (*Fault)(nil), // 2: grid.v1.Fault - (*LineFault)(nil), // 3: grid.v1.LineFault - (*EquipmentFault)(nil), // 4: grid.v1.EquipmentFault -} -var file_grid_v1_fault_proto_depIdxs = []int32{ - 0, // 0: grid.v1.Fault.kind:type_name -> grid.v1.PhaseConnectedFaultKind - 1, // 1: grid.v1.Fault.phases:type_name -> grid.v1.PhaseCode - 2, // 2: grid.v1.LineFault.fault:type_name -> grid.v1.Fault - 2, // 3: grid.v1.EquipmentFault.fault:type_name -> grid.v1.Fault + return file_zaphiro_grid_v1_fault_proto_rawDescData +} + +var file_zaphiro_grid_v1_fault_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_zaphiro_grid_v1_fault_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_zaphiro_grid_v1_fault_proto_goTypes = []interface{}{ + (PhaseConnectedFaultKind)(0), // 0: zaphiro.grid.v1.PhaseConnectedFaultKind + (PhaseCode)(0), // 1: zaphiro.grid.v1.PhaseCode + (*Fault)(nil), // 2: zaphiro.grid.v1.Fault + (*LineFault)(nil), // 3: zaphiro.grid.v1.LineFault + (*EquipmentFault)(nil), // 4: zaphiro.grid.v1.EquipmentFault +} +var file_zaphiro_grid_v1_fault_proto_depIdxs = []int32{ + 0, // 0: zaphiro.grid.v1.Fault.kind:type_name -> zaphiro.grid.v1.PhaseConnectedFaultKind + 1, // 1: zaphiro.grid.v1.Fault.phases:type_name -> zaphiro.grid.v1.PhaseCode + 2, // 2: zaphiro.grid.v1.LineFault.fault:type_name -> zaphiro.grid.v1.Fault + 2, // 3: zaphiro.grid.v1.EquipmentFault.fault:type_name -> zaphiro.grid.v1.Fault 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -577,13 +580,13 @@ var file_grid_v1_fault_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_grid_v1_fault_proto_init() } -func file_grid_v1_fault_proto_init() { - if File_grid_v1_fault_proto != nil { +func init() { file_zaphiro_grid_v1_fault_proto_init() } +func file_zaphiro_grid_v1_fault_proto_init() { + if File_zaphiro_grid_v1_fault_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_grid_v1_fault_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_fault_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Fault); i { case 0: return &v.state @@ -595,7 +598,7 @@ func file_grid_v1_fault_proto_init() { return nil } } - file_grid_v1_fault_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_fault_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LineFault); i { case 0: return &v.state @@ -607,7 +610,7 @@ func file_grid_v1_fault_proto_init() { return nil } } - file_grid_v1_fault_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_fault_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EquipmentFault); i { case 0: return &v.state @@ -620,26 +623,26 @@ func file_grid_v1_fault_proto_init() { } } } - file_grid_v1_fault_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_grid_v1_fault_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_grid_v1_fault_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_zaphiro_grid_v1_fault_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_zaphiro_grid_v1_fault_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_zaphiro_grid_v1_fault_proto_msgTypes[2].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_grid_v1_fault_proto_rawDesc, + RawDescriptor: file_zaphiro_grid_v1_fault_proto_rawDesc, NumEnums: 2, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_grid_v1_fault_proto_goTypes, - DependencyIndexes: file_grid_v1_fault_proto_depIdxs, - EnumInfos: file_grid_v1_fault_proto_enumTypes, - MessageInfos: file_grid_v1_fault_proto_msgTypes, + GoTypes: file_zaphiro_grid_v1_fault_proto_goTypes, + DependencyIndexes: file_zaphiro_grid_v1_fault_proto_depIdxs, + EnumInfos: file_zaphiro_grid_v1_fault_proto_enumTypes, + MessageInfos: file_zaphiro_grid_v1_fault_proto_msgTypes, }.Build() - File_grid_v1_fault_proto = out.File - file_grid_v1_fault_proto_rawDesc = nil - file_grid_v1_fault_proto_goTypes = nil - file_grid_v1_fault_proto_depIdxs = nil + File_zaphiro_grid_v1_fault_proto = out.File + file_zaphiro_grid_v1_fault_proto_rawDesc = nil + file_zaphiro_grid_v1_fault_proto_goTypes = nil + file_zaphiro_grid_v1_fault_proto_depIdxs = nil } diff --git a/pkg/grid/v1/fault_test.go b/go/grid/v1/fault_test.go similarity index 100% rename from pkg/grid/v1/fault_test.go rename to go/grid/v1/fault_test.go diff --git a/pkg/grid/v1/grid_event.pb.go b/go/grid/v1/grid_event.pb.go similarity index 57% rename from pkg/grid/v1/grid_event.pb.go rename to go/grid/v1/grid_event.pb.go index 3dd1037..2da6e2a 100644 --- a/pkg/grid/v1/grid_event.pb.go +++ b/go/grid/v1/grid_event.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: grid/v1/grid_event.proto +// source: zaphiro/grid/v1/grid_event.proto // //Messages to support grid event detection in the platform. Grid events are sub classes of Events. @@ -39,7 +39,7 @@ type GridEvent struct { func (x *GridEvent) Reset() { *x = GridEvent{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -52,7 +52,7 @@ func (x *GridEvent) String() string { func (*GridEvent) ProtoMessage() {} func (x *GridEvent) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -65,7 +65,7 @@ func (x *GridEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use GridEvent.ProtoReflect.Descriptor instead. func (*GridEvent) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{0} } func (x *GridEvent) GetEvent() *Event { @@ -115,14 +115,14 @@ type VoltageEvent struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Event *GridEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` //The base grid event message - PhaseCode *PhaseCode `protobuf:"varint,2,opt,name=phaseCode,proto3,enum=grid.v1.PhaseCode,oneof" json:"phaseCode,omitempty"` //The phase for which the event occured + Event *GridEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` //The base grid event message + PhaseCode *PhaseCode `protobuf:"varint,2,opt,name=phaseCode,proto3,enum=zaphiro.grid.v1.PhaseCode,oneof" json:"phaseCode,omitempty"` //The phase for which the event occured } func (x *VoltageEvent) Reset() { *x = VoltageEvent{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -135,7 +135,7 @@ func (x *VoltageEvent) String() string { func (*VoltageEvent) ProtoMessage() {} func (x *VoltageEvent) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -148,7 +148,7 @@ func (x *VoltageEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use VoltageEvent.ProtoReflect.Descriptor instead. func (*VoltageEvent) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{1} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{1} } func (x *VoltageEvent) GetEvent() *GridEvent { @@ -176,7 +176,7 @@ type CurrentEvent struct { func (x *CurrentEvent) Reset() { *x = CurrentEvent{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[2] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -189,7 +189,7 @@ func (x *CurrentEvent) String() string { func (*CurrentEvent) ProtoMessage() {} func (x *CurrentEvent) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[2] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -202,7 +202,7 @@ func (x *CurrentEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use CurrentEvent.ProtoReflect.Descriptor instead. func (*CurrentEvent) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{2} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{2} } func (x *CurrentEvent) GetEvent() *GridEvent { @@ -223,7 +223,7 @@ type PhaseEvent struct { func (x *PhaseEvent) Reset() { *x = PhaseEvent{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[3] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -236,7 +236,7 @@ func (x *PhaseEvent) String() string { func (*PhaseEvent) ProtoMessage() {} func (x *PhaseEvent) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[3] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -249,7 +249,7 @@ func (x *PhaseEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use PhaseEvent.ProtoReflect.Descriptor instead. func (*PhaseEvent) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{3} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{3} } func (x *PhaseEvent) GetEvent() *GridEvent { @@ -270,7 +270,7 @@ type FrequencyEvent struct { func (x *FrequencyEvent) Reset() { *x = FrequencyEvent{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[4] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -283,7 +283,7 @@ func (x *FrequencyEvent) String() string { func (*FrequencyEvent) ProtoMessage() {} func (x *FrequencyEvent) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[4] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -296,7 +296,7 @@ func (x *FrequencyEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use FrequencyEvent.ProtoReflect.Descriptor instead. func (*FrequencyEvent) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{4} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{4} } func (x *FrequencyEvent) GetEvent() *GridEvent { @@ -317,7 +317,7 @@ type LineCongestion struct { func (x *LineCongestion) Reset() { *x = LineCongestion{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[5] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -330,7 +330,7 @@ func (x *LineCongestion) String() string { func (*LineCongestion) ProtoMessage() {} func (x *LineCongestion) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[5] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -343,7 +343,7 @@ func (x *LineCongestion) ProtoReflect() protoreflect.Message { // Deprecated: Use LineCongestion.ProtoReflect.Descriptor instead. func (*LineCongestion) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{5} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{5} } func (x *LineCongestion) GetEvent() *CurrentEvent { @@ -364,7 +364,7 @@ type TransformerCongestion struct { func (x *TransformerCongestion) Reset() { *x = TransformerCongestion{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[6] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -377,7 +377,7 @@ func (x *TransformerCongestion) String() string { func (*TransformerCongestion) ProtoMessage() {} func (x *TransformerCongestion) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[6] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -390,7 +390,7 @@ func (x *TransformerCongestion) ProtoReflect() protoreflect.Message { // Deprecated: Use TransformerCongestion.ProtoReflect.Descriptor instead. func (*TransformerCongestion) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{6} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{6} } func (x *TransformerCongestion) GetEvent() *CurrentEvent { @@ -411,7 +411,7 @@ type VoltageUnbalance struct { func (x *VoltageUnbalance) Reset() { *x = VoltageUnbalance{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[7] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -424,7 +424,7 @@ func (x *VoltageUnbalance) String() string { func (*VoltageUnbalance) ProtoMessage() {} func (x *VoltageUnbalance) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[7] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -437,7 +437,7 @@ func (x *VoltageUnbalance) ProtoReflect() protoreflect.Message { // Deprecated: Use VoltageUnbalance.ProtoReflect.Descriptor instead. func (*VoltageUnbalance) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{7} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{7} } func (x *VoltageUnbalance) GetEvent() *VoltageEvent { @@ -458,7 +458,7 @@ type VoltageDip struct { func (x *VoltageDip) Reset() { *x = VoltageDip{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[8] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -471,7 +471,7 @@ func (x *VoltageDip) String() string { func (*VoltageDip) ProtoMessage() {} func (x *VoltageDip) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[8] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -484,7 +484,7 @@ func (x *VoltageDip) ProtoReflect() protoreflect.Message { // Deprecated: Use VoltageDip.ProtoReflect.Descriptor instead. func (*VoltageDip) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{8} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{8} } func (x *VoltageDip) GetEvent() *VoltageEvent { @@ -505,7 +505,7 @@ type VoltageInterruption struct { func (x *VoltageInterruption) Reset() { *x = VoltageInterruption{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[9] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -518,7 +518,7 @@ func (x *VoltageInterruption) String() string { func (*VoltageInterruption) ProtoMessage() {} func (x *VoltageInterruption) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[9] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -531,7 +531,7 @@ func (x *VoltageInterruption) ProtoReflect() protoreflect.Message { // Deprecated: Use VoltageInterruption.ProtoReflect.Descriptor instead. func (*VoltageInterruption) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{9} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{9} } func (x *VoltageInterruption) GetEvent() *VoltageEvent { @@ -552,7 +552,7 @@ type VoltageSwell struct { func (x *VoltageSwell) Reset() { *x = VoltageSwell{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[10] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -565,7 +565,7 @@ func (x *VoltageSwell) String() string { func (*VoltageSwell) ProtoMessage() {} func (x *VoltageSwell) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[10] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -578,7 +578,7 @@ func (x *VoltageSwell) ProtoReflect() protoreflect.Message { // Deprecated: Use VoltageSwell.ProtoReflect.Descriptor instead. func (*VoltageSwell) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{10} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{10} } func (x *VoltageSwell) GetEvent() *VoltageEvent { @@ -599,7 +599,7 @@ type VoltageLimit struct { func (x *VoltageLimit) Reset() { *x = VoltageLimit{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[11] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -612,7 +612,7 @@ func (x *VoltageLimit) String() string { func (*VoltageLimit) ProtoMessage() {} func (x *VoltageLimit) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[11] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -625,7 +625,7 @@ func (x *VoltageLimit) ProtoReflect() protoreflect.Message { // Deprecated: Use VoltageLimit.ProtoReflect.Descriptor instead. func (*VoltageLimit) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{11} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{11} } func (x *VoltageLimit) GetEvent() *VoltageEvent { @@ -646,7 +646,7 @@ type VoltageRapidChange struct { func (x *VoltageRapidChange) Reset() { *x = VoltageRapidChange{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[12] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -659,7 +659,7 @@ func (x *VoltageRapidChange) String() string { func (*VoltageRapidChange) ProtoMessage() {} func (x *VoltageRapidChange) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[12] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -672,7 +672,7 @@ func (x *VoltageRapidChange) ProtoReflect() protoreflect.Message { // Deprecated: Use VoltageRapidChange.ProtoReflect.Descriptor instead. func (*VoltageRapidChange) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{12} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{12} } func (x *VoltageRapidChange) GetEvent() *VoltageEvent { @@ -693,7 +693,7 @@ type OverFrequency struct { func (x *OverFrequency) Reset() { *x = OverFrequency{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[13] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -706,7 +706,7 @@ func (x *OverFrequency) String() string { func (*OverFrequency) ProtoMessage() {} func (x *OverFrequency) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[13] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -719,7 +719,7 @@ func (x *OverFrequency) ProtoReflect() protoreflect.Message { // Deprecated: Use OverFrequency.ProtoReflect.Descriptor instead. func (*OverFrequency) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{13} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{13} } func (x *OverFrequency) GetEvent() *FrequencyEvent { @@ -740,7 +740,7 @@ type UnderFrequency struct { func (x *UnderFrequency) Reset() { *x = UnderFrequency{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[14] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -753,7 +753,7 @@ func (x *UnderFrequency) String() string { func (*UnderFrequency) ProtoMessage() {} func (x *UnderFrequency) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[14] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -766,7 +766,7 @@ func (x *UnderFrequency) ProtoReflect() protoreflect.Message { // Deprecated: Use UnderFrequency.ProtoReflect.Descriptor instead. func (*UnderFrequency) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{14} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{14} } func (x *UnderFrequency) GetEvent() *FrequencyEvent { @@ -787,7 +787,7 @@ type SteadyOscillation struct { func (x *SteadyOscillation) Reset() { *x = SteadyOscillation{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[15] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -800,7 +800,7 @@ func (x *SteadyOscillation) String() string { func (*SteadyOscillation) ProtoMessage() {} func (x *SteadyOscillation) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[15] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -813,7 +813,7 @@ func (x *SteadyOscillation) ProtoReflect() protoreflect.Message { // Deprecated: Use SteadyOscillation.ProtoReflect.Descriptor instead. func (*SteadyOscillation) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{15} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{15} } func (x *SteadyOscillation) GetEvent() *PhaseEvent { @@ -834,7 +834,7 @@ type TransientOscillation struct { func (x *TransientOscillation) Reset() { *x = TransientOscillation{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_grid_event_proto_msgTypes[16] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -847,7 +847,7 @@ func (x *TransientOscillation) String() string { func (*TransientOscillation) ProtoMessage() {} func (x *TransientOscillation) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_grid_event_proto_msgTypes[16] + mi := &file_zaphiro_grid_v1_grid_event_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -860,7 +860,7 @@ func (x *TransientOscillation) ProtoReflect() protoreflect.Message { // Deprecated: Use TransientOscillation.ProtoReflect.Descriptor instead. func (*TransientOscillation) Descriptor() ([]byte, []int) { - return file_grid_v1_grid_event_proto_rawDescGZIP(), []int{16} + return file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP(), []int{16} } func (x *TransientOscillation) GetEvent() *PhaseEvent { @@ -870,154 +870,165 @@ func (x *TransientOscillation) GetEvent() *PhaseEvent { return nil } -var File_grid_v1_grid_event_proto protoreflect.FileDescriptor - -var file_grid_v1_grid_event_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x5f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72, 0x69, 0x64, - 0x2e, 0x76, 0x31, 0x1a, 0x13, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x13, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, - 0x31, 0x2f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x82, 0x02, - 0x0a, 0x09, 0x47, 0x72, 0x69, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x05, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x72, 0x69, - 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x44, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, - 0x74, 0x49, 0x44, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x75, 0x62, - 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4c, - 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0e, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x25, 0x0a, 0x0b, 0x70, 0x72, - 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x48, - 0x01, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x88, 0x01, - 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x73, 0x75, 0x62, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x44, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x22, 0x7d, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x69, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x09, - 0x70, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x12, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x43, - 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x09, 0x70, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, - 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x70, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x64, - 0x65, 0x22, 0x38, 0x0a, 0x0c, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x69, 0x64, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x36, 0x0a, 0x0a, 0x50, - 0x68, 0x61, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x72, 0x69, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x22, 0x3a, 0x0a, 0x0e, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x72, 0x69, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, - 0x3d, 0x0a, 0x0e, 0x4c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x2b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x44, - 0x0a, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x22, 0x3f, 0x0a, 0x10, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x55, - 0x6e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x39, 0x0a, 0x0a, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, - 0x44, 0x69, 0x70, 0x12, 0x2b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x6c, - 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x22, 0x42, 0x0a, 0x13, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x22, 0x3b, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x53, - 0x77, 0x65, 0x6c, 0x6c, 0x12, 0x2b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, - 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x22, 0x3b, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x6d, 0x69, - 0x74, 0x12, 0x2b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x15, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x74, 0x61, +var File_zaphiro_grid_v1_grid_event_proto protoreflect.FileDescriptor + +var file_zaphiro_grid_v1_grid_event_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, + 0x31, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x0f, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, + 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, 0x72, 0x69, + 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1b, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, + 0x31, 0x2f, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x02, + 0x0a, 0x09, 0x47, 0x72, 0x69, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x05, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x7a, 0x61, 0x70, + 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, + 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x27, 0x0a, 0x0c, 0x73, + 0x75, 0x62, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, + 0x44, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x01, 0x52, 0x0e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x25, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x48, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x62, 0x61, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x73, 0x75, + 0x62, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x70, + 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x22, 0x8d, 0x01, 0x0a, 0x0c, 0x56, + 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x7a, 0x61, 0x70, + 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x69, + 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x0a, + 0x09, 0x70, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1a, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, + 0x76, 0x31, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x09, + 0x70, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, + 0x5f, 0x70, 0x68, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x40, 0x0a, 0x0c, 0x43, 0x75, + 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x7a, 0x61, 0x70, 0x68, + 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x69, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x3e, 0x0a, 0x0a, + 0x50, 0x68, 0x61, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x05, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x7a, 0x61, 0x70, 0x68, + 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x69, 0x64, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x42, 0x0a, 0x0e, + 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x30, + 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x72, 0x69, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x22, 0x45, 0x0a, 0x0e, 0x4c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x33, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x47, 0x0a, 0x10, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, + 0x55, 0x6e, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, + 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x41, - 0x0a, 0x12, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x52, 0x61, 0x70, 0x69, 0x64, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, + 0x0a, 0x0a, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x44, 0x69, 0x70, 0x12, 0x33, 0x0a, 0x05, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x7a, 0x61, + 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x22, 0x3e, 0x0a, 0x0d, 0x4f, 0x76, 0x65, 0x72, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, - 0x63, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, - 0x74, 0x22, 0x3f, 0x0a, 0x0e, 0x55, 0x6e, 0x64, 0x65, 0x72, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x6e, 0x63, 0x79, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x22, 0x3e, 0x0a, 0x11, 0x53, 0x74, 0x65, 0x61, 0x64, 0x79, 0x4f, 0x73, 0x63, 0x69, - 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, - 0x6e, 0x74, 0x22, 0x41, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x4f, - 0x73, 0x63, 0x69, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x05, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x69, 0x64, - 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, - 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, - 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x22, 0x4a, 0x0a, 0x13, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x74, 0x65, + 0x72, 0x72, 0x75, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, + 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, + 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x43, 0x0a, + 0x0c, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x53, 0x77, 0x65, 0x6c, 0x6c, 0x12, 0x33, 0x0a, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x7a, + 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, + 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x22, 0x43, 0x0a, 0x0c, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x33, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, + 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x49, 0x0a, 0x12, 0x56, 0x6f, 0x6c, 0x74, 0x61, + 0x67, 0x65, 0x52, 0x61, 0x70, 0x69, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x33, 0x0a, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x7a, + 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x56, + 0x6f, 0x6c, 0x74, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, + 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x0d, 0x4f, 0x76, 0x65, 0x72, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x6e, 0x63, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x47, 0x0a, 0x0e, 0x55, 0x6e, + 0x64, 0x65, 0x72, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x35, 0x0a, 0x05, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x7a, 0x61, + 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, + 0x65, 0x6e, 0x74, 0x22, 0x46, 0x0a, 0x11, 0x53, 0x74, 0x65, 0x61, 0x64, 0x79, 0x4f, 0x73, 0x63, + 0x69, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, + 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x49, 0x0a, 0x14, 0x54, + 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74, 0x4f, 0x73, 0x63, 0x69, 0x6c, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, + 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, + 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x67, 0x72, 0x69, 0x64, + 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_grid_v1_grid_event_proto_rawDescOnce sync.Once - file_grid_v1_grid_event_proto_rawDescData = file_grid_v1_grid_event_proto_rawDesc + file_zaphiro_grid_v1_grid_event_proto_rawDescOnce sync.Once + file_zaphiro_grid_v1_grid_event_proto_rawDescData = file_zaphiro_grid_v1_grid_event_proto_rawDesc ) -func file_grid_v1_grid_event_proto_rawDescGZIP() []byte { - file_grid_v1_grid_event_proto_rawDescOnce.Do(func() { - file_grid_v1_grid_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_grid_v1_grid_event_proto_rawDescData) +func file_zaphiro_grid_v1_grid_event_proto_rawDescGZIP() []byte { + file_zaphiro_grid_v1_grid_event_proto_rawDescOnce.Do(func() { + file_zaphiro_grid_v1_grid_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_grid_v1_grid_event_proto_rawDescData) }) - return file_grid_v1_grid_event_proto_rawDescData -} - -var file_grid_v1_grid_event_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_grid_v1_grid_event_proto_goTypes = []interface{}{ - (*GridEvent)(nil), // 0: grid.v1.GridEvent - (*VoltageEvent)(nil), // 1: grid.v1.VoltageEvent - (*CurrentEvent)(nil), // 2: grid.v1.CurrentEvent - (*PhaseEvent)(nil), // 3: grid.v1.PhaseEvent - (*FrequencyEvent)(nil), // 4: grid.v1.FrequencyEvent - (*LineCongestion)(nil), // 5: grid.v1.LineCongestion - (*TransformerCongestion)(nil), // 6: grid.v1.TransformerCongestion - (*VoltageUnbalance)(nil), // 7: grid.v1.VoltageUnbalance - (*VoltageDip)(nil), // 8: grid.v1.VoltageDip - (*VoltageInterruption)(nil), // 9: grid.v1.VoltageInterruption - (*VoltageSwell)(nil), // 10: grid.v1.VoltageSwell - (*VoltageLimit)(nil), // 11: grid.v1.VoltageLimit - (*VoltageRapidChange)(nil), // 12: grid.v1.VoltageRapidChange - (*OverFrequency)(nil), // 13: grid.v1.OverFrequency - (*UnderFrequency)(nil), // 14: grid.v1.UnderFrequency - (*SteadyOscillation)(nil), // 15: grid.v1.SteadyOscillation - (*TransientOscillation)(nil), // 16: grid.v1.TransientOscillation - (*Event)(nil), // 17: grid.v1.Event - (PhaseCode)(0), // 18: grid.v1.PhaseCode -} -var file_grid_v1_grid_event_proto_depIdxs = []int32{ - 17, // 0: grid.v1.GridEvent.event:type_name -> grid.v1.Event - 0, // 1: grid.v1.VoltageEvent.event:type_name -> grid.v1.GridEvent - 18, // 2: grid.v1.VoltageEvent.phaseCode:type_name -> grid.v1.PhaseCode - 0, // 3: grid.v1.CurrentEvent.event:type_name -> grid.v1.GridEvent - 0, // 4: grid.v1.PhaseEvent.event:type_name -> grid.v1.GridEvent - 0, // 5: grid.v1.FrequencyEvent.event:type_name -> grid.v1.GridEvent - 2, // 6: grid.v1.LineCongestion.event:type_name -> grid.v1.CurrentEvent - 2, // 7: grid.v1.TransformerCongestion.event:type_name -> grid.v1.CurrentEvent - 1, // 8: grid.v1.VoltageUnbalance.event:type_name -> grid.v1.VoltageEvent - 1, // 9: grid.v1.VoltageDip.event:type_name -> grid.v1.VoltageEvent - 1, // 10: grid.v1.VoltageInterruption.event:type_name -> grid.v1.VoltageEvent - 1, // 11: grid.v1.VoltageSwell.event:type_name -> grid.v1.VoltageEvent - 1, // 12: grid.v1.VoltageLimit.event:type_name -> grid.v1.VoltageEvent - 1, // 13: grid.v1.VoltageRapidChange.event:type_name -> grid.v1.VoltageEvent - 4, // 14: grid.v1.OverFrequency.event:type_name -> grid.v1.FrequencyEvent - 4, // 15: grid.v1.UnderFrequency.event:type_name -> grid.v1.FrequencyEvent - 3, // 16: grid.v1.SteadyOscillation.event:type_name -> grid.v1.PhaseEvent - 3, // 17: grid.v1.TransientOscillation.event:type_name -> grid.v1.PhaseEvent + return file_zaphiro_grid_v1_grid_event_proto_rawDescData +} + +var file_zaphiro_grid_v1_grid_event_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_zaphiro_grid_v1_grid_event_proto_goTypes = []interface{}{ + (*GridEvent)(nil), // 0: zaphiro.grid.v1.GridEvent + (*VoltageEvent)(nil), // 1: zaphiro.grid.v1.VoltageEvent + (*CurrentEvent)(nil), // 2: zaphiro.grid.v1.CurrentEvent + (*PhaseEvent)(nil), // 3: zaphiro.grid.v1.PhaseEvent + (*FrequencyEvent)(nil), // 4: zaphiro.grid.v1.FrequencyEvent + (*LineCongestion)(nil), // 5: zaphiro.grid.v1.LineCongestion + (*TransformerCongestion)(nil), // 6: zaphiro.grid.v1.TransformerCongestion + (*VoltageUnbalance)(nil), // 7: zaphiro.grid.v1.VoltageUnbalance + (*VoltageDip)(nil), // 8: zaphiro.grid.v1.VoltageDip + (*VoltageInterruption)(nil), // 9: zaphiro.grid.v1.VoltageInterruption + (*VoltageSwell)(nil), // 10: zaphiro.grid.v1.VoltageSwell + (*VoltageLimit)(nil), // 11: zaphiro.grid.v1.VoltageLimit + (*VoltageRapidChange)(nil), // 12: zaphiro.grid.v1.VoltageRapidChange + (*OverFrequency)(nil), // 13: zaphiro.grid.v1.OverFrequency + (*UnderFrequency)(nil), // 14: zaphiro.grid.v1.UnderFrequency + (*SteadyOscillation)(nil), // 15: zaphiro.grid.v1.SteadyOscillation + (*TransientOscillation)(nil), // 16: zaphiro.grid.v1.TransientOscillation + (*Event)(nil), // 17: zaphiro.grid.v1.Event + (PhaseCode)(0), // 18: zaphiro.grid.v1.PhaseCode +} +var file_zaphiro_grid_v1_grid_event_proto_depIdxs = []int32{ + 17, // 0: zaphiro.grid.v1.GridEvent.event:type_name -> zaphiro.grid.v1.Event + 0, // 1: zaphiro.grid.v1.VoltageEvent.event:type_name -> zaphiro.grid.v1.GridEvent + 18, // 2: zaphiro.grid.v1.VoltageEvent.phaseCode:type_name -> zaphiro.grid.v1.PhaseCode + 0, // 3: zaphiro.grid.v1.CurrentEvent.event:type_name -> zaphiro.grid.v1.GridEvent + 0, // 4: zaphiro.grid.v1.PhaseEvent.event:type_name -> zaphiro.grid.v1.GridEvent + 0, // 5: zaphiro.grid.v1.FrequencyEvent.event:type_name -> zaphiro.grid.v1.GridEvent + 2, // 6: zaphiro.grid.v1.LineCongestion.event:type_name -> zaphiro.grid.v1.CurrentEvent + 2, // 7: zaphiro.grid.v1.TransformerCongestion.event:type_name -> zaphiro.grid.v1.CurrentEvent + 1, // 8: zaphiro.grid.v1.VoltageUnbalance.event:type_name -> zaphiro.grid.v1.VoltageEvent + 1, // 9: zaphiro.grid.v1.VoltageDip.event:type_name -> zaphiro.grid.v1.VoltageEvent + 1, // 10: zaphiro.grid.v1.VoltageInterruption.event:type_name -> zaphiro.grid.v1.VoltageEvent + 1, // 11: zaphiro.grid.v1.VoltageSwell.event:type_name -> zaphiro.grid.v1.VoltageEvent + 1, // 12: zaphiro.grid.v1.VoltageLimit.event:type_name -> zaphiro.grid.v1.VoltageEvent + 1, // 13: zaphiro.grid.v1.VoltageRapidChange.event:type_name -> zaphiro.grid.v1.VoltageEvent + 4, // 14: zaphiro.grid.v1.OverFrequency.event:type_name -> zaphiro.grid.v1.FrequencyEvent + 4, // 15: zaphiro.grid.v1.UnderFrequency.event:type_name -> zaphiro.grid.v1.FrequencyEvent + 3, // 16: zaphiro.grid.v1.SteadyOscillation.event:type_name -> zaphiro.grid.v1.PhaseEvent + 3, // 17: zaphiro.grid.v1.TransientOscillation.event:type_name -> zaphiro.grid.v1.PhaseEvent 18, // [18:18] is the sub-list for method output_type 18, // [18:18] is the sub-list for method input_type 18, // [18:18] is the sub-list for extension type_name @@ -1025,15 +1036,15 @@ var file_grid_v1_grid_event_proto_depIdxs = []int32{ 0, // [0:18] is the sub-list for field type_name } -func init() { file_grid_v1_grid_event_proto_init() } -func file_grid_v1_grid_event_proto_init() { - if File_grid_v1_grid_event_proto != nil { +func init() { file_zaphiro_grid_v1_grid_event_proto_init() } +func file_zaphiro_grid_v1_grid_event_proto_init() { + if File_zaphiro_grid_v1_grid_event_proto != nil { return } - file_grid_v1_event_proto_init() - file_grid_v1_fault_proto_init() + file_zaphiro_grid_v1_event_proto_init() + file_zaphiro_grid_v1_fault_proto_init() if !protoimpl.UnsafeEnabled { - file_grid_v1_grid_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GridEvent); i { case 0: return &v.state @@ -1045,7 +1056,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VoltageEvent); i { case 0: return &v.state @@ -1057,7 +1068,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CurrentEvent); i { case 0: return &v.state @@ -1069,7 +1080,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PhaseEvent); i { case 0: return &v.state @@ -1081,7 +1092,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FrequencyEvent); i { case 0: return &v.state @@ -1093,7 +1104,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*LineCongestion); i { case 0: return &v.state @@ -1105,7 +1116,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransformerCongestion); i { case 0: return &v.state @@ -1117,7 +1128,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VoltageUnbalance); i { case 0: return &v.state @@ -1129,7 +1140,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VoltageDip); i { case 0: return &v.state @@ -1141,7 +1152,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VoltageInterruption); i { case 0: return &v.state @@ -1153,7 +1164,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VoltageSwell); i { case 0: return &v.state @@ -1165,7 +1176,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VoltageLimit); i { case 0: return &v.state @@ -1177,7 +1188,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*VoltageRapidChange); i { case 0: return &v.state @@ -1189,7 +1200,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OverFrequency); i { case 0: return &v.state @@ -1201,7 +1212,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UnderFrequency); i { case 0: return &v.state @@ -1213,7 +1224,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SteadyOscillation); i { case 0: return &v.state @@ -1225,7 +1236,7 @@ func file_grid_v1_grid_event_proto_init() { return nil } } - file_grid_v1_grid_event_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_grid_event_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TransientOscillation); i { case 0: return &v.state @@ -1238,24 +1249,24 @@ func file_grid_v1_grid_event_proto_init() { } } } - file_grid_v1_grid_event_proto_msgTypes[0].OneofWrappers = []interface{}{} - file_grid_v1_grid_event_proto_msgTypes[1].OneofWrappers = []interface{}{} + file_zaphiro_grid_v1_grid_event_proto_msgTypes[0].OneofWrappers = []interface{}{} + file_zaphiro_grid_v1_grid_event_proto_msgTypes[1].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_grid_v1_grid_event_proto_rawDesc, + RawDescriptor: file_zaphiro_grid_v1_grid_event_proto_rawDesc, NumEnums: 0, NumMessages: 17, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_grid_v1_grid_event_proto_goTypes, - DependencyIndexes: file_grid_v1_grid_event_proto_depIdxs, - MessageInfos: file_grid_v1_grid_event_proto_msgTypes, + GoTypes: file_zaphiro_grid_v1_grid_event_proto_goTypes, + DependencyIndexes: file_zaphiro_grid_v1_grid_event_proto_depIdxs, + MessageInfos: file_zaphiro_grid_v1_grid_event_proto_msgTypes, }.Build() - File_grid_v1_grid_event_proto = out.File - file_grid_v1_grid_event_proto_rawDesc = nil - file_grid_v1_grid_event_proto_goTypes = nil - file_grid_v1_grid_event_proto_depIdxs = nil + File_zaphiro_grid_v1_grid_event_proto = out.File + file_zaphiro_grid_v1_grid_event_proto_rawDesc = nil + file_zaphiro_grid_v1_grid_event_proto_goTypes = nil + file_zaphiro_grid_v1_grid_event_proto_depIdxs = nil } diff --git a/pkg/grid/v1/topology.pb.go b/go/grid/v1/topology.pb.go similarity index 71% rename from pkg/grid/v1/topology.pb.go rename to go/grid/v1/topology.pb.go index 0f429f0..3a1a0eb 100644 --- a/pkg/grid/v1/topology.pb.go +++ b/go/grid/v1/topology.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: grid/v1/topology.proto +// source: zaphiro/grid/v1/topology.proto // //Messages to support topology data exchange in the platform. @@ -35,7 +35,7 @@ type Topology struct { func (x *Topology) Reset() { *x = Topology{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_topology_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_topology_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -48,7 +48,7 @@ func (x *Topology) String() string { func (*Topology) ProtoMessage() {} func (x *Topology) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_topology_proto_msgTypes[0] + mi := &file_zaphiro_grid_v1_topology_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -61,7 +61,7 @@ func (x *Topology) ProtoReflect() protoreflect.Message { // Deprecated: Use Topology.ProtoReflect.Descriptor instead. func (*Topology) Descriptor() ([]byte, []int) { - return file_grid_v1_topology_proto_rawDescGZIP(), []int{0} + return file_zaphiro_grid_v1_topology_proto_rawDescGZIP(), []int{0} } func (x *Topology) GetCreatedAt() int64 { @@ -96,7 +96,7 @@ type TopologicalNode struct { func (x *TopologicalNode) Reset() { *x = TopologicalNode{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_topology_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_topology_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -109,7 +109,7 @@ func (x *TopologicalNode) String() string { func (*TopologicalNode) ProtoMessage() {} func (x *TopologicalNode) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_topology_proto_msgTypes[1] + mi := &file_zaphiro_grid_v1_topology_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -122,7 +122,7 @@ func (x *TopologicalNode) ProtoReflect() protoreflect.Message { // Deprecated: Use TopologicalNode.ProtoReflect.Descriptor instead. func (*TopologicalNode) Descriptor() ([]byte, []int) { - return file_grid_v1_topology_proto_rawDescGZIP(), []int{1} + return file_zaphiro_grid_v1_topology_proto_rawDescGZIP(), []int{1} } func (x *TopologicalNode) GetTerminalIds() []string { @@ -180,7 +180,7 @@ type TopologicalIsland struct { func (x *TopologicalIsland) Reset() { *x = TopologicalIsland{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_topology_proto_msgTypes[2] + mi := &file_zaphiro_grid_v1_topology_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -193,7 +193,7 @@ func (x *TopologicalIsland) String() string { func (*TopologicalIsland) ProtoMessage() {} func (x *TopologicalIsland) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_topology_proto_msgTypes[2] + mi := &file_zaphiro_grid_v1_topology_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -206,7 +206,7 @@ func (x *TopologicalIsland) ProtoReflect() protoreflect.Message { // Deprecated: Use TopologicalIsland.ProtoReflect.Descriptor instead. func (*TopologicalIsland) Descriptor() ([]byte, []int) { - return file_grid_v1_topology_proto_rawDescGZIP(), []int{2} + return file_zaphiro_grid_v1_topology_proto_rawDescGZIP(), []int{2} } func (x *TopologicalIsland) GetTopologicalNodeIds() []string { @@ -236,7 +236,7 @@ type ComputedTopology struct { func (x *ComputedTopology) Reset() { *x = ComputedTopology{} if protoimpl.UnsafeEnabled { - mi := &file_grid_v1_topology_proto_msgTypes[3] + mi := &file_zaphiro_grid_v1_topology_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -249,7 +249,7 @@ func (x *ComputedTopology) String() string { func (*ComputedTopology) ProtoMessage() {} func (x *ComputedTopology) ProtoReflect() protoreflect.Message { - mi := &file_grid_v1_topology_proto_msgTypes[3] + mi := &file_zaphiro_grid_v1_topology_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -262,7 +262,7 @@ func (x *ComputedTopology) ProtoReflect() protoreflect.Message { // Deprecated: Use ComputedTopology.ProtoReflect.Descriptor instead. func (*ComputedTopology) Descriptor() ([]byte, []int) { - return file_grid_v1_topology_proto_rawDescGZIP(), []int{3} + return file_zaphiro_grid_v1_topology_proto_rawDescGZIP(), []int{3} } func (x *ComputedTopology) GetEqId() string { @@ -286,11 +286,12 @@ func (x *ComputedTopology) GetTopologicalIslands() map[string]*TopologicalIsland return nil } -var File_grid_v1_topology_proto protoreflect.FileDescriptor +var File_zaphiro_grid_v1_topology_proto protoreflect.FileDescriptor -var file_grid_v1_topology_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, - 0x67, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, +var file_zaphiro_grid_v1_topology_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, + 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x0f, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x38, 0x0a, 0x08, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x74, @@ -317,31 +318,33 @@ var file_grid_v1_topology_proto_rawDesc = []byte{ 0x6c, 0x61, 0x6e, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x73, 0x22, 0xa8, 0x03, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, + 0x65, 0x49, 0x64, 0x73, 0x22, 0xc8, 0x03, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x71, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x71, 0x49, 0x64, 0x12, 0x5b, 0x0a, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x71, 0x49, 0x64, 0x12, 0x63, 0x0a, 0x10, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, - 0x67, 0x79, 0x2e, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, - 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, - 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x61, 0x0a, 0x12, 0x74, 0x6f, - 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, + 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, + 0x65, 0x64, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x54, 0x6f, 0x70, 0x6f, 0x6c, + 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x10, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, + 0x65, 0x73, 0x12, 0x69, 0x0a, 0x12, 0x74, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, + 0x6c, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, + 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x75, 0x74, 0x65, 0x64, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x79, 0x2e, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x12, 0x74, 0x6f, 0x70, 0x6f, 0x6c, - 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x1a, 0x5d, 0x0a, + 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x1a, 0x65, 0x0a, 0x15, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x61, 0x0a, 0x17, - 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x73, 0x6c, 0x61, 0x6e, - 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, + 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, + 0x67, 0x69, 0x63, 0x61, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x69, 0x0a, 0x17, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, + 0x63, 0x61, 0x6c, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x22, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x67, 0x72, 0x69, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x6f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x67, 0x72, 0x69, 0x64, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, @@ -349,31 +352,31 @@ var file_grid_v1_topology_proto_rawDesc = []byte{ } var ( - file_grid_v1_topology_proto_rawDescOnce sync.Once - file_grid_v1_topology_proto_rawDescData = file_grid_v1_topology_proto_rawDesc + file_zaphiro_grid_v1_topology_proto_rawDescOnce sync.Once + file_zaphiro_grid_v1_topology_proto_rawDescData = file_zaphiro_grid_v1_topology_proto_rawDesc ) -func file_grid_v1_topology_proto_rawDescGZIP() []byte { - file_grid_v1_topology_proto_rawDescOnce.Do(func() { - file_grid_v1_topology_proto_rawDescData = protoimpl.X.CompressGZIP(file_grid_v1_topology_proto_rawDescData) +func file_zaphiro_grid_v1_topology_proto_rawDescGZIP() []byte { + file_zaphiro_grid_v1_topology_proto_rawDescOnce.Do(func() { + file_zaphiro_grid_v1_topology_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_grid_v1_topology_proto_rawDescData) }) - return file_grid_v1_topology_proto_rawDescData -} - -var file_grid_v1_topology_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_grid_v1_topology_proto_goTypes = []interface{}{ - (*Topology)(nil), // 0: grid.v1.Topology - (*TopologicalNode)(nil), // 1: grid.v1.TopologicalNode - (*TopologicalIsland)(nil), // 2: grid.v1.TopologicalIsland - (*ComputedTopology)(nil), // 3: grid.v1.ComputedTopology - nil, // 4: grid.v1.ComputedTopology.TopologicalNodesEntry - nil, // 5: grid.v1.ComputedTopology.TopologicalIslandsEntry -} -var file_grid_v1_topology_proto_depIdxs = []int32{ - 4, // 0: grid.v1.ComputedTopology.topologicalNodes:type_name -> grid.v1.ComputedTopology.TopologicalNodesEntry - 5, // 1: grid.v1.ComputedTopology.topologicalIslands:type_name -> grid.v1.ComputedTopology.TopologicalIslandsEntry - 1, // 2: grid.v1.ComputedTopology.TopologicalNodesEntry.value:type_name -> grid.v1.TopologicalNode - 2, // 3: grid.v1.ComputedTopology.TopologicalIslandsEntry.value:type_name -> grid.v1.TopologicalIsland + return file_zaphiro_grid_v1_topology_proto_rawDescData +} + +var file_zaphiro_grid_v1_topology_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_zaphiro_grid_v1_topology_proto_goTypes = []interface{}{ + (*Topology)(nil), // 0: zaphiro.grid.v1.Topology + (*TopologicalNode)(nil), // 1: zaphiro.grid.v1.TopologicalNode + (*TopologicalIsland)(nil), // 2: zaphiro.grid.v1.TopologicalIsland + (*ComputedTopology)(nil), // 3: zaphiro.grid.v1.ComputedTopology + nil, // 4: zaphiro.grid.v1.ComputedTopology.TopologicalNodesEntry + nil, // 5: zaphiro.grid.v1.ComputedTopology.TopologicalIslandsEntry +} +var file_zaphiro_grid_v1_topology_proto_depIdxs = []int32{ + 4, // 0: zaphiro.grid.v1.ComputedTopology.topologicalNodes:type_name -> zaphiro.grid.v1.ComputedTopology.TopologicalNodesEntry + 5, // 1: zaphiro.grid.v1.ComputedTopology.topologicalIslands:type_name -> zaphiro.grid.v1.ComputedTopology.TopologicalIslandsEntry + 1, // 2: zaphiro.grid.v1.ComputedTopology.TopologicalNodesEntry.value:type_name -> zaphiro.grid.v1.TopologicalNode + 2, // 3: zaphiro.grid.v1.ComputedTopology.TopologicalIslandsEntry.value:type_name -> zaphiro.grid.v1.TopologicalIsland 4, // [4:4] is the sub-list for method output_type 4, // [4:4] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -381,13 +384,13 @@ var file_grid_v1_topology_proto_depIdxs = []int32{ 0, // [0:4] is the sub-list for field type_name } -func init() { file_grid_v1_topology_proto_init() } -func file_grid_v1_topology_proto_init() { - if File_grid_v1_topology_proto != nil { +func init() { file_zaphiro_grid_v1_topology_proto_init() } +func file_zaphiro_grid_v1_topology_proto_init() { + if File_zaphiro_grid_v1_topology_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_grid_v1_topology_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_topology_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Topology); i { case 0: return &v.state @@ -399,7 +402,7 @@ func file_grid_v1_topology_proto_init() { return nil } } - file_grid_v1_topology_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_topology_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TopologicalNode); i { case 0: return &v.state @@ -411,7 +414,7 @@ func file_grid_v1_topology_proto_init() { return nil } } - file_grid_v1_topology_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_topology_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TopologicalIsland); i { case 0: return &v.state @@ -423,7 +426,7 @@ func file_grid_v1_topology_proto_init() { return nil } } - file_grid_v1_topology_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_grid_v1_topology_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ComputedTopology); i { case 0: return &v.state @@ -440,18 +443,18 @@ func file_grid_v1_topology_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_grid_v1_topology_proto_rawDesc, + RawDescriptor: file_zaphiro_grid_v1_topology_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_grid_v1_topology_proto_goTypes, - DependencyIndexes: file_grid_v1_topology_proto_depIdxs, - MessageInfos: file_grid_v1_topology_proto_msgTypes, + GoTypes: file_zaphiro_grid_v1_topology_proto_goTypes, + DependencyIndexes: file_zaphiro_grid_v1_topology_proto_depIdxs, + MessageInfos: file_zaphiro_grid_v1_topology_proto_msgTypes, }.Build() - File_grid_v1_topology_proto = out.File - file_grid_v1_topology_proto_rawDesc = nil - file_grid_v1_topology_proto_goTypes = nil - file_grid_v1_topology_proto_depIdxs = nil + File_zaphiro_grid_v1_topology_proto = out.File + file_zaphiro_grid_v1_topology_proto_rawDesc = nil + file_zaphiro_grid_v1_topology_proto_goTypes = nil + file_zaphiro_grid_v1_topology_proto_depIdxs = nil } diff --git a/pkg/grid/v1/topology_test.go b/go/grid/v1/topology_test.go similarity index 100% rename from pkg/grid/v1/topology_test.go rename to go/grid/v1/topology_test.go diff --git a/pkg/platform/v1/task.pb.go b/go/platform/v1/task.pb.go similarity index 67% rename from pkg/platform/v1/task.pb.go rename to go/platform/v1/task.pb.go index a1c0100..0d6595d 100644 --- a/pkg/platform/v1/task.pb.go +++ b/go/platform/v1/task.pb.go @@ -2,7 +2,7 @@ // versions: // protoc-gen-go v1.31.0 // protoc (unknown) -// source: platform/v1/task.proto +// source: zaphiro/platform/v1/task.proto // //Messages to support coordination among processes/services in the platform. @@ -66,11 +66,11 @@ func (x TaskType) String() string { } func (TaskType) Descriptor() protoreflect.EnumDescriptor { - return file_platform_v1_task_proto_enumTypes[0].Descriptor() + return file_zaphiro_platform_v1_task_proto_enumTypes[0].Descriptor() } func (TaskType) Type() protoreflect.EnumType { - return &file_platform_v1_task_proto_enumTypes[0] + return &file_zaphiro_platform_v1_task_proto_enumTypes[0] } func (x TaskType) Number() protoreflect.EnumNumber { @@ -79,7 +79,7 @@ func (x TaskType) Number() protoreflect.EnumNumber { // Deprecated: Use TaskType.Descriptor instead. func (TaskType) EnumDescriptor() ([]byte, []int) { - return file_platform_v1_task_proto_rawDescGZIP(), []int{0} + return file_zaphiro_platform_v1_task_proto_rawDescGZIP(), []int{0} } type NotificationType int32 @@ -124,11 +124,11 @@ func (x NotificationType) String() string { } func (NotificationType) Descriptor() protoreflect.EnumDescriptor { - return file_platform_v1_task_proto_enumTypes[1].Descriptor() + return file_zaphiro_platform_v1_task_proto_enumTypes[1].Descriptor() } func (NotificationType) Type() protoreflect.EnumType { - return &file_platform_v1_task_proto_enumTypes[1] + return &file_zaphiro_platform_v1_task_proto_enumTypes[1] } func (x NotificationType) Number() protoreflect.EnumNumber { @@ -137,7 +137,7 @@ func (x NotificationType) Number() protoreflect.EnumNumber { // Deprecated: Use NotificationType.Descriptor instead. func (NotificationType) EnumDescriptor() ([]byte, []int) { - return file_platform_v1_task_proto_rawDescGZIP(), []int{1} + return file_zaphiro_platform_v1_task_proto_rawDescGZIP(), []int{1} } type Parameter struct { @@ -152,7 +152,7 @@ type Parameter struct { func (x *Parameter) Reset() { *x = Parameter{} if protoimpl.UnsafeEnabled { - mi := &file_platform_v1_task_proto_msgTypes[0] + mi := &file_zaphiro_platform_v1_task_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -165,7 +165,7 @@ func (x *Parameter) String() string { func (*Parameter) ProtoMessage() {} func (x *Parameter) ProtoReflect() protoreflect.Message { - mi := &file_platform_v1_task_proto_msgTypes[0] + mi := &file_zaphiro_platform_v1_task_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -178,7 +178,7 @@ func (x *Parameter) ProtoReflect() protoreflect.Message { // Deprecated: Use Parameter.ProtoReflect.Descriptor instead. func (*Parameter) Descriptor() ([]byte, []int) { - return file_platform_v1_task_proto_rawDescGZIP(), []int{0} + return file_zaphiro_platform_v1_task_proto_rawDescGZIP(), []int{0} } func (x *Parameter) GetName() string { @@ -200,15 +200,15 @@ type Task struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - TaskType TaskType `protobuf:"varint,1,opt,name=taskType,proto3,enum=platform.v1.TaskType" json:"taskType,omitempty"` //Type of the task - CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` //Task creation time (Unix msec timestamp) + TaskType TaskType `protobuf:"varint,1,opt,name=taskType,proto3,enum=zaphiro.platform.v1.TaskType" json:"taskType,omitempty"` //Type of the task + CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` //Task creation time (Unix msec timestamp) Parameters []*Parameter `protobuf:"bytes,3,rep,name=parameters,proto3" json:"parameters,omitempty"` } func (x *Task) Reset() { *x = Task{} if protoimpl.UnsafeEnabled { - mi := &file_platform_v1_task_proto_msgTypes[1] + mi := &file_zaphiro_platform_v1_task_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -221,7 +221,7 @@ func (x *Task) String() string { func (*Task) ProtoMessage() {} func (x *Task) ProtoReflect() protoreflect.Message { - mi := &file_platform_v1_task_proto_msgTypes[1] + mi := &file_zaphiro_platform_v1_task_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -234,7 +234,7 @@ func (x *Task) ProtoReflect() protoreflect.Message { // Deprecated: Use Task.ProtoReflect.Descriptor instead. func (*Task) Descriptor() ([]byte, []int) { - return file_platform_v1_task_proto_rawDescGZIP(), []int{1} + return file_zaphiro_platform_v1_task_proto_rawDescGZIP(), []int{1} } func (x *Task) GetTaskType() TaskType { @@ -263,16 +263,16 @@ type Notification struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NotificationType NotificationType `protobuf:"varint,1,opt,name=notificationType,proto3,enum=platform.v1.NotificationType" json:"notificationType,omitempty"` //Notification type - CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` //Notification creation time (Unix msec timestamp) - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` //Notification message, it can be a string or a integer (which maps to a enum value). + NotificationType NotificationType `protobuf:"varint,1,opt,name=notificationType,proto3,enum=zaphiro.platform.v1.NotificationType" json:"notificationType,omitempty"` //Notification type + CreatedAt int64 `protobuf:"varint,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"` //Notification creation time (Unix msec timestamp) + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` //Notification message, it can be a string or a integer (which maps to a enum value). Parameters []*Parameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty"` } func (x *Notification) Reset() { *x = Notification{} if protoimpl.UnsafeEnabled { - mi := &file_platform_v1_task_proto_msgTypes[2] + mi := &file_zaphiro_platform_v1_task_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -285,7 +285,7 @@ func (x *Notification) String() string { func (*Notification) ProtoMessage() {} func (x *Notification) ProtoReflect() protoreflect.Message { - mi := &file_platform_v1_task_proto_msgTypes[2] + mi := &file_zaphiro_platform_v1_task_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -298,7 +298,7 @@ func (x *Notification) ProtoReflect() protoreflect.Message { // Deprecated: Use Notification.ProtoReflect.Descriptor instead. func (*Notification) Descriptor() ([]byte, []int) { - return file_platform_v1_task_proto_rawDescGZIP(), []int{2} + return file_zaphiro_platform_v1_task_proto_rawDescGZIP(), []int{2} } func (x *Notification) GetNotificationType() NotificationType { @@ -329,38 +329,41 @@ func (x *Notification) GetParameters() []*Parameter { return nil } -var File_platform_v1_task_proto protoreflect.FileDescriptor +var File_zaphiro_platform_v1_task_proto protoreflect.FileDescriptor -var file_platform_v1_task_proto_rawDesc = []byte{ - 0x0a, 0x16, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, - 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, +var file_zaphiro_platform_v1_task_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x13, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x8f, 0x01, - 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x31, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x36, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x6c, + 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x9f, 0x01, + 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x39, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, + 0x72, 0x6f, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, + 0x3e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x03, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, - 0xc9, 0x01, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x49, 0x0a, 0x10, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x70, 0x6c, 0x61, - 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x10, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0xd9, 0x01, 0x0a, 0x0c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x51, 0x0a, 0x10, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x25, 0x2e, 0x7a, 0x61, 0x70, + 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, + 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x10, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x7a, 0x61, 0x70, 0x68, 0x69, 0x72, 0x6f, 0x2e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x2a, 0x81, 0x01, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x41, 0x53, 0x4b, @@ -392,33 +395,33 @@ var file_platform_v1_task_proto_rawDesc = []byte{ } var ( - file_platform_v1_task_proto_rawDescOnce sync.Once - file_platform_v1_task_proto_rawDescData = file_platform_v1_task_proto_rawDesc + file_zaphiro_platform_v1_task_proto_rawDescOnce sync.Once + file_zaphiro_platform_v1_task_proto_rawDescData = file_zaphiro_platform_v1_task_proto_rawDesc ) -func file_platform_v1_task_proto_rawDescGZIP() []byte { - file_platform_v1_task_proto_rawDescOnce.Do(func() { - file_platform_v1_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_platform_v1_task_proto_rawDescData) +func file_zaphiro_platform_v1_task_proto_rawDescGZIP() []byte { + file_zaphiro_platform_v1_task_proto_rawDescOnce.Do(func() { + file_zaphiro_platform_v1_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_zaphiro_platform_v1_task_proto_rawDescData) }) - return file_platform_v1_task_proto_rawDescData + return file_zaphiro_platform_v1_task_proto_rawDescData } -var file_platform_v1_task_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_platform_v1_task_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_platform_v1_task_proto_goTypes = []interface{}{ - (TaskType)(0), // 0: platform.v1.TaskType - (NotificationType)(0), // 1: platform.v1.NotificationType - (*Parameter)(nil), // 2: platform.v1.Parameter - (*Task)(nil), // 3: platform.v1.Task - (*Notification)(nil), // 4: platform.v1.Notification +var file_zaphiro_platform_v1_task_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_zaphiro_platform_v1_task_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_zaphiro_platform_v1_task_proto_goTypes = []interface{}{ + (TaskType)(0), // 0: zaphiro.platform.v1.TaskType + (NotificationType)(0), // 1: zaphiro.platform.v1.NotificationType + (*Parameter)(nil), // 2: zaphiro.platform.v1.Parameter + (*Task)(nil), // 3: zaphiro.platform.v1.Task + (*Notification)(nil), // 4: zaphiro.platform.v1.Notification (*anypb.Any)(nil), // 5: google.protobuf.Any } -var file_platform_v1_task_proto_depIdxs = []int32{ - 5, // 0: platform.v1.Parameter.value:type_name -> google.protobuf.Any - 0, // 1: platform.v1.Task.taskType:type_name -> platform.v1.TaskType - 2, // 2: platform.v1.Task.parameters:type_name -> platform.v1.Parameter - 1, // 3: platform.v1.Notification.notificationType:type_name -> platform.v1.NotificationType - 2, // 4: platform.v1.Notification.parameters:type_name -> platform.v1.Parameter +var file_zaphiro_platform_v1_task_proto_depIdxs = []int32{ + 5, // 0: zaphiro.platform.v1.Parameter.value:type_name -> google.protobuf.Any + 0, // 1: zaphiro.platform.v1.Task.taskType:type_name -> zaphiro.platform.v1.TaskType + 2, // 2: zaphiro.platform.v1.Task.parameters:type_name -> zaphiro.platform.v1.Parameter + 1, // 3: zaphiro.platform.v1.Notification.notificationType:type_name -> zaphiro.platform.v1.NotificationType + 2, // 4: zaphiro.platform.v1.Notification.parameters:type_name -> zaphiro.platform.v1.Parameter 5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name @@ -426,13 +429,13 @@ var file_platform_v1_task_proto_depIdxs = []int32{ 0, // [0:5] is the sub-list for field type_name } -func init() { file_platform_v1_task_proto_init() } -func file_platform_v1_task_proto_init() { - if File_platform_v1_task_proto != nil { +func init() { file_zaphiro_platform_v1_task_proto_init() } +func file_zaphiro_platform_v1_task_proto_init() { + if File_zaphiro_platform_v1_task_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_platform_v1_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_platform_v1_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Parameter); i { case 0: return &v.state @@ -444,7 +447,7 @@ func file_platform_v1_task_proto_init() { return nil } } - file_platform_v1_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_platform_v1_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Task); i { case 0: return &v.state @@ -456,7 +459,7 @@ func file_platform_v1_task_proto_init() { return nil } } - file_platform_v1_task_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_zaphiro_platform_v1_task_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Notification); i { case 0: return &v.state @@ -473,19 +476,19 @@ func file_platform_v1_task_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_platform_v1_task_proto_rawDesc, + RawDescriptor: file_zaphiro_platform_v1_task_proto_rawDesc, NumEnums: 2, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_platform_v1_task_proto_goTypes, - DependencyIndexes: file_platform_v1_task_proto_depIdxs, - EnumInfos: file_platform_v1_task_proto_enumTypes, - MessageInfos: file_platform_v1_task_proto_msgTypes, + GoTypes: file_zaphiro_platform_v1_task_proto_goTypes, + DependencyIndexes: file_zaphiro_platform_v1_task_proto_depIdxs, + EnumInfos: file_zaphiro_platform_v1_task_proto_enumTypes, + MessageInfos: file_zaphiro_platform_v1_task_proto_msgTypes, }.Build() - File_platform_v1_task_proto = out.File - file_platform_v1_task_proto_rawDesc = nil - file_platform_v1_task_proto_goTypes = nil - file_platform_v1_task_proto_depIdxs = nil + File_zaphiro_platform_v1_task_proto = out.File + file_zaphiro_platform_v1_task_proto_rawDesc = nil + file_zaphiro_platform_v1_task_proto_goTypes = nil + file_zaphiro_platform_v1_task_proto_depIdxs = nil } diff --git a/pkg/platform/v1/task_test.go b/go/platform/v1/task_test.go similarity index 100% rename from pkg/platform/v1/task_test.go rename to go/platform/v1/task_test.go diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..9d036d6 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,37 @@ +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. + +[[package]] +name = "protobuf" +version = "5.26.0" +description = "" +optional = false +python-versions = ">=3.8" +files = [ + {file = "protobuf-5.26.0-cp310-abi3-win32.whl", hash = "sha256:f9ecc8eb6f18037e0cbf43256db0325d4723f429bca7ef5cd358b7c29d65f628"}, + {file = "protobuf-5.26.0-cp310-abi3-win_amd64.whl", hash = "sha256:dfd29f6eb34107dccf289a93d44fb6b131e68888d090b784b691775ac84e8213"}, + {file = "protobuf-5.26.0-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:7e47c57303466c867374a17b2b5e99c5a7c8b72a94118e2f28efb599f19b4069"}, + {file = "protobuf-5.26.0-cp37-abi3-manylinux2014_aarch64.whl", hash = "sha256:e184175276edc222e2d5e314a72521e10049938a9a4961fe4bea9b25d073c03f"}, + {file = "protobuf-5.26.0-cp37-abi3-manylinux2014_x86_64.whl", hash = "sha256:6ee9d1aa02f951c5ce10bf8c6cfb7604133773038e33f913183c8b5201350600"}, + {file = "protobuf-5.26.0-cp38-cp38-win32.whl", hash = "sha256:2c334550e1cb4efac5c8a3987384bf13a4334abaf5ab59e40479e7b70ecd6b19"}, + {file = "protobuf-5.26.0-cp38-cp38-win_amd64.whl", hash = "sha256:8eef61a90631c21b06b4f492a27e199a269827f046de3bb68b61aa84fcf50905"}, + {file = "protobuf-5.26.0-cp39-cp39-win32.whl", hash = "sha256:ca825f4eecb8c342d2ec581e6a5ad1ad1a47bededaecd768e0d3451ae4aaac2b"}, + {file = "protobuf-5.26.0-cp39-cp39-win_amd64.whl", hash = "sha256:efd4f5894c50bd76cbcfdd668cd941021333861ed0f441c78a83d8254a01cc9f"}, + {file = "protobuf-5.26.0-py3-none-any.whl", hash = "sha256:a49b6c5359bf34fb7bf965bf21abfab4476e4527d822ab5289ee3bf73f291159"}, + {file = "protobuf-5.26.0.tar.gz", hash = "sha256:82f5870d74c99addfe4152777bdf8168244b9cf0ac65f8eccf045ddfa9d80d9b"}, +] + +[[package]] +name = "types-protobuf" +version = "4.24.0.20240311" +description = "Typing stubs for protobuf" +optional = false +python-versions = ">=3.8" +files = [ + {file = "types-protobuf-4.24.0.20240311.tar.gz", hash = "sha256:c80426f9fb9b21aee514691e96ab32a5cd694a82e2ac07964b352c3e7e0182bc"}, + {file = "types_protobuf-4.24.0.20240311-py3-none-any.whl", hash = "sha256:8e039486df058141cb221ab99f88c5878c08cca4376db1d84f63279860aa09cd"}, +] + +[metadata] +lock-version = "2.0" +python-versions = ">=3.8" +content-hash = "764e4bc5774b09b317dc2d4e3975dd2cd22a52780e3e9d26fb29e55b193be6a9" diff --git a/proto/buf.gen.yaml b/proto/buf.gen.yaml deleted file mode 100644 index 97451b8..0000000 --- a/proto/buf.gen.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version: v1 -plugins: - - plugin: buf.build/protocolbuffers/go:v1.31.0 - out: ../pkg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..65b976b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,30 @@ +[project] +name = "protobuf-zaphiro" +version = "0.0.4-dev" +description = "Zaphiro Protocol Buffers" +readme = "README.md" +requires-python = ">=3.8" + +[project.urls] +Documentation = "https://github.com/zaphiro-technologies/protobuf" +Repository = "https://github.com/zaphiro-technologies/protobuf" + +[tool.poetry] +name = "protobuf-zaphiro" +version = "0.0.4-dev" +description = "Zaphiro Protocol Buffers" +authors = ["Federico M. Facca "] +readme = "README.md" +packages = [{include = "*", from="python"}] +repository = "https://github.com/zaphiro-technologies/protobuf" +documentation = "https://github.com/zaphiro-technologies/protobuf" + +[tool.poetry.dependencies] +python = ">=3.8" +protobuf = "^5.26.0" +types-protobuf = "^4.24.0.20240311" + + +[build-system] +requires = ["poetry-core"] +build-backend = "poetry.core.masonry.api" diff --git a/python/zaphiro/c37118/v1/conf2_pb2.py b/python/zaphiro/c37118/v1/conf2_pb2.py new file mode 100644 index 0000000..532a4fd --- /dev/null +++ b/python/zaphiro/c37118/v1/conf2_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/c37118/v1/conf2.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dzaphiro/c37118/v1/conf2.proto\x12\x11zaphiro.c37118.v1\"\x96\x01\n\nConf2Frame\x12\x36\n\x06header\x18\x01 \x01(\x0b\x32\x1e.zaphiro.c37118.v1.Conf2HeaderR\x06header\x12\x33\n\x07\x63onfigs\x18\x02 \x03(\x0b\x32\x19.zaphiro.c37118.v1.ConfigR\x07\x63onfigs\x12\x1b\n\tDATA_RATE\x18\x03 \x01(\rR\x08\x44\x41TARATE\"\xb9\x01\n\x0b\x43onf2Header\x12\x12\n\x04SYNC\x18\x01 \x01(\rR\x04SYNC\x12\x1c\n\tFRAMESIZE\x18\x02 \x01(\rR\tFRAMESIZE\x12\x16\n\x06IDCODE\x18\x03 \x01(\rR\x06IDCODE\x12\x10\n\x03SOC\x18\x04 \x01(\rR\x03SOC\x12\x18\n\x07\x46RACSEC\x18\x05 \x01(\rR\x07\x46RACSEC\x12\x1b\n\tTIME_BASE\x18\x06 \x01(\rR\x08TIMEBASE\x12\x17\n\x07NUM_PMU\x18\x07 \x01(\rR\x06NUMPMU\"\x98\x02\n\x06\x43onfig\x12\x10\n\x03STN\x18\x01 \x01(\tR\x03STN\x12\x16\n\x06IDCODE\x18\x02 \x01(\rR\x06IDCODE\x12\x16\n\x06\x46ORMAT\x18\x03 \x01(\rR\x06\x46ORMAT\x12\x14\n\x05PHNMR\x18\x04 \x01(\rR\x05PHNMR\x12\x14\n\x05\x41NNMR\x18\x05 \x01(\rR\x05\x41NNMR\x12\x14\n\x05\x44GNMR\x18\x06 \x01(\rR\x05\x44GNMR\x12\x14\n\x05\x43HNAM\x18\x07 \x01(\tR\x05\x43HNAM\x12\x16\n\x06PHUNIT\x18\x08 \x03(\rR\x06PHUNIT\x12\x16\n\x06\x41NUNIT\x18\t \x03(\rR\x06\x41NUNIT\x12\x18\n\x07\x44IGUNIT\x18\n \x03(\rR\x07\x44IGUNIT\x12\x12\n\x04\x46NOM\x18\x0b \x01(\rR\x04\x46NOM\x12\x16\n\x06\x43\x46GCNT\x18\x0c \x01(\rR\x06\x43\x46GCNTB\rZ\x0b./c37118/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.c37118.v1.conf2_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\013./c37118/v1' + _globals['_CONF2FRAME']._serialized_start=53 + _globals['_CONF2FRAME']._serialized_end=203 + _globals['_CONF2HEADER']._serialized_start=206 + _globals['_CONF2HEADER']._serialized_end=391 + _globals['_CONFIG']._serialized_start=394 + _globals['_CONFIG']._serialized_end=674 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/c37118/v1/conf2_pb2.pyi b/python/zaphiro/c37118/v1/conf2_pb2.pyi new file mode 100644 index 0000000..ae0b542 --- /dev/null +++ b/python/zaphiro/c37118/v1/conf2_pb2.pyi @@ -0,0 +1,62 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Conf2Frame(_message.Message): + __slots__ = ("header", "configs", "DATA_RATE") + HEADER_FIELD_NUMBER: _ClassVar[int] + CONFIGS_FIELD_NUMBER: _ClassVar[int] + DATA_RATE_FIELD_NUMBER: _ClassVar[int] + header: Conf2Header + configs: _containers.RepeatedCompositeFieldContainer[Config] + DATA_RATE: int + def __init__(self, header: _Optional[_Union[Conf2Header, _Mapping]] = ..., configs: _Optional[_Iterable[_Union[Config, _Mapping]]] = ..., DATA_RATE: _Optional[int] = ...) -> None: ... + +class Conf2Header(_message.Message): + __slots__ = ("SYNC", "FRAMESIZE", "IDCODE", "SOC", "FRACSEC", "TIME_BASE", "NUM_PMU") + SYNC_FIELD_NUMBER: _ClassVar[int] + FRAMESIZE_FIELD_NUMBER: _ClassVar[int] + IDCODE_FIELD_NUMBER: _ClassVar[int] + SOC_FIELD_NUMBER: _ClassVar[int] + FRACSEC_FIELD_NUMBER: _ClassVar[int] + TIME_BASE_FIELD_NUMBER: _ClassVar[int] + NUM_PMU_FIELD_NUMBER: _ClassVar[int] + SYNC: int + FRAMESIZE: int + IDCODE: int + SOC: int + FRACSEC: int + TIME_BASE: int + NUM_PMU: int + def __init__(self, SYNC: _Optional[int] = ..., FRAMESIZE: _Optional[int] = ..., IDCODE: _Optional[int] = ..., SOC: _Optional[int] = ..., FRACSEC: _Optional[int] = ..., TIME_BASE: _Optional[int] = ..., NUM_PMU: _Optional[int] = ...) -> None: ... + +class Config(_message.Message): + __slots__ = ("STN", "IDCODE", "FORMAT", "PHNMR", "ANNMR", "DGNMR", "CHNAM", "PHUNIT", "ANUNIT", "DIGUNIT", "FNOM", "CFGCNT") + STN_FIELD_NUMBER: _ClassVar[int] + IDCODE_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + PHNMR_FIELD_NUMBER: _ClassVar[int] + ANNMR_FIELD_NUMBER: _ClassVar[int] + DGNMR_FIELD_NUMBER: _ClassVar[int] + CHNAM_FIELD_NUMBER: _ClassVar[int] + PHUNIT_FIELD_NUMBER: _ClassVar[int] + ANUNIT_FIELD_NUMBER: _ClassVar[int] + DIGUNIT_FIELD_NUMBER: _ClassVar[int] + FNOM_FIELD_NUMBER: _ClassVar[int] + CFGCNT_FIELD_NUMBER: _ClassVar[int] + STN: str + IDCODE: int + FORMAT: int + PHNMR: int + ANNMR: int + DGNMR: int + CHNAM: str + PHUNIT: _containers.RepeatedScalarFieldContainer[int] + ANUNIT: _containers.RepeatedScalarFieldContainer[int] + DIGUNIT: _containers.RepeatedScalarFieldContainer[int] + FNOM: int + CFGCNT: int + def __init__(self, STN: _Optional[str] = ..., IDCODE: _Optional[int] = ..., FORMAT: _Optional[int] = ..., PHNMR: _Optional[int] = ..., ANNMR: _Optional[int] = ..., DGNMR: _Optional[int] = ..., CHNAM: _Optional[str] = ..., PHUNIT: _Optional[_Iterable[int]] = ..., ANUNIT: _Optional[_Iterable[int]] = ..., DIGUNIT: _Optional[_Iterable[int]] = ..., FNOM: _Optional[int] = ..., CFGCNT: _Optional[int] = ...) -> None: ... diff --git a/python/zaphiro/c37118/v1/stat_pb2.py b/python/zaphiro/c37118/v1/stat_pb2.py new file mode 100644 index 0000000..ae136a5 --- /dev/null +++ b/python/zaphiro/c37118/v1/stat_pb2.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/c37118/v1/stat.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1czaphiro/c37118/v1/stat.proto\x12\x11zaphiro.c37118.v1\"\xb8\x02\n\x04Stat\x12\x1e\n\nmeasuredAt\x18\x01 \x01(\x03R\nmeasuredAt\x12\x14\n\x05\x65rror\x18\x02 \x01(\rR\x05\x65rror\x12\x12\n\x04sync\x18\x03 \x01(\x08R\x04sync\x12\x18\n\x07sorting\x18\x04 \x01(\x08R\x07sorting\x12\x18\n\x07trigger\x18\x05 \x01(\x08R\x07trigger\x12\"\n\x0c\x63onfigChange\x18\x06 \x01(\x08R\x0c\x63onfigChange\x12\"\n\x0c\x64\x61taModified\x18\x07 \x01(\x08R\x0c\x64\x61taModified\x12 \n\x0btimeQuality\x18\x08 \x01(\rR\x0btimeQuality\x12\"\n\x0cunlockedTime\x18\t \x01(\rR\x0cunlockedTime\x12$\n\rtriggerReason\x18\n \x01(\rR\rtriggerReasonB\rZ\x0b./c37118/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.c37118.v1.stat_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\013./c37118/v1' + _globals['_STAT']._serialized_start=52 + _globals['_STAT']._serialized_end=364 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/c37118/v1/stat_pb2.pyi b/python/zaphiro/c37118/v1/stat_pb2.pyi new file mode 100644 index 0000000..8c9061b --- /dev/null +++ b/python/zaphiro/c37118/v1/stat_pb2.pyi @@ -0,0 +1,29 @@ +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional + +DESCRIPTOR: _descriptor.FileDescriptor + +class Stat(_message.Message): + __slots__ = ("measuredAt", "error", "sync", "sorting", "trigger", "configChange", "dataModified", "timeQuality", "unlockedTime", "triggerReason") + MEASUREDAT_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + SYNC_FIELD_NUMBER: _ClassVar[int] + SORTING_FIELD_NUMBER: _ClassVar[int] + TRIGGER_FIELD_NUMBER: _ClassVar[int] + CONFIGCHANGE_FIELD_NUMBER: _ClassVar[int] + DATAMODIFIED_FIELD_NUMBER: _ClassVar[int] + TIMEQUALITY_FIELD_NUMBER: _ClassVar[int] + UNLOCKEDTIME_FIELD_NUMBER: _ClassVar[int] + TRIGGERREASON_FIELD_NUMBER: _ClassVar[int] + measuredAt: int + error: int + sync: bool + sorting: bool + trigger: bool + configChange: bool + dataModified: bool + timeQuality: int + unlockedTime: int + triggerReason: int + def __init__(self, measuredAt: _Optional[int] = ..., error: _Optional[int] = ..., sync: bool = ..., sorting: bool = ..., trigger: bool = ..., configChange: bool = ..., dataModified: bool = ..., timeQuality: _Optional[int] = ..., unlockedTime: _Optional[int] = ..., triggerReason: _Optional[int] = ...) -> None: ... diff --git a/python/zaphiro/grid/v1/data_pb2.py b/python/zaphiro/grid/v1/data_pb2.py new file mode 100644 index 0000000..7d0c110 --- /dev/null +++ b/python/zaphiro/grid/v1/data_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/grid/v1/data.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1azaphiro/grid/v1/data.proto\x12\x0fzaphiro.grid.v1\"\x82\x01\n\x04\x44\x61ta\x12\x35\n\x08\x64\x61taType\x18\x01 \x01(\x0e\x32\x19.zaphiro.grid.v1.DataTypeR\x08\x64\x61taType\x12\x1e\n\nmeasuredAt\x18\x02 \x01(\x03R\nmeasuredAt\x12\x19\n\x05value\x18\x03 \x01(\x04H\x00R\x05value\x88\x01\x01\x42\x08\n\x06_value\"\xb1\x01\n\x07\x44\x61taSet\x12\x1e\n\nproducerId\x18\x01 \x01(\tR\nproducerId\x12\x36\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\".zaphiro.grid.v1.DataSet.DataEntryR\x04\x64\x61ta\x1aN\n\tDataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x15.zaphiro.grid.v1.DataR\x05value:\x02\x38\x01*\xf3\n\n\x08\x44\x61taType\x12\x19\n\x15\x44\x41TA_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x44\x41TA_TYPE_ACTIVE_POWER\x10\x01\x12\x13\n\x0f\x44\x41TA_TYPE_ANGLE\x10\x02\x12\x17\n\x13\x44\x41TA_TYPE_AUTOMATIC\x10\x03\x12\x15\n\x11\x44\x41TA_TYPE_BOOLEAN\x10\x04\x12\x1b\n\x17\x44\x41TA_TYPE_CONFIG_CHANGE\x10\x05\x12\'\n#DATA_TYPE_CURRENT_SEQUENCE_NEGATIVE\x10\x06\x12\'\n#DATA_TYPE_CURRENT_SEQUENCE_POSITIVE\x10\x07\x12#\n\x1f\x44\x41TA_TYPE_CURRENT_SEQUENCE_ZERO\x10\x08\x12\x18\n\x14\x44\x41TA_TYPE_DATA_ERROR\x10\t\x12\x1b\n\x17\x44\x41TA_TYPE_DATA_MODIFIED\x10\n\x12\x1a\n\x16\x44\x41TA_TYPE_DATA_SORTING\x10\x0b\x12\x14\n\x10\x44\x41TA_TYPE_ENERGY\x10\x0c\x12\x17\n\x13\x44\x41TA_TYPE_FREQUENCY\x10\r\x12\x1a\n\x16\x44\x41TA_TYPE_LINE_CURRENT\x10\x0e\x12\"\n\x1e\x44\x41TA_TYPE_LINE_TO_LINE_VOLTAGE\x10\x0f\x12\x1d\n\x19\x44\x41TA_TYPE_LOCAL_OPERATION\x10\x10\x12\x1d\n\x19\x44\x41TA_TYPE_OPERATION_COUNT\x10\x11\x12\x1c\n\x18\x44\x41TA_TYPE_PACKET_LATENCY\x10\x12\x12\x1b\n\x17\x44\x41TA_TYPE_PHASE_VOLTAGE\x10\x13\x12\x1c\n\x18\x44\x41TA_TYPE_PHASOR_CURRENT\x10\x14\x12\x1c\n\x18\x44\x41TA_TYPE_PHASOR_VOLTAGE\x10\x15\x12\x16\n\x12\x44\x41TA_TYPE_PMU_SYNC\x10\x16\x12\x1e\n\x1a\x44\x41TA_TYPE_PMU_TIME_QUALITY\x10\x17\x12\"\n\x1e\x44\x41TA_TYPE_PMU_TRIGGER_DETECTED\x10\x18\x12\x13\n\x0f\x44\x41TA_TYPE_POWER\x10\x19\x12\x1a\n\x16\x44\x41TA_TYPE_POWER_FACTOR\x10\x1a\x12\x16\n\x12\x44\x41TA_TYPE_PRESSURE\x10\x1b\x12)\n%DATA_TYPE_RATE_OF_CHANGE_OF_FREQUENCY\x10\x1c\x12\x1c\n\x18\x44\x41TA_TYPE_REACTIVE_POWER\x10\x1d\x12\x1d\n\x19\x44\x41TA_TYPE_SWITCH_POSITION\x10\x1e\x12\x1a\n\x16\x44\x41TA_TYPE_TAP_POSITION\x10\x1f\x12\x19\n\x15\x44\x41TA_TYPE_TEMPERATURE\x10 \x12&\n\"DATA_TYPE_THREE_PHASE_ACTIVE_POWER\x10!\x12!\n\x1d\x44\x41TA_TYPE_THREE_PHASE_CURRENT\x10\"\x12\x1f\n\x1b\x44\x41TA_TYPE_THREE_PHASE_POWER\x10#\x12&\n\"DATA_TYPE_THREE_PHASE_POWER_FACTOR\x10$\x12(\n$DATA_TYPE_THREE_PHASE_REACTIVE_POWER\x10%\x12\x1c\n\x18\x44\x41TA_TYPE_TRIGGER_REASON\x10&\x12\x1b\n\x17\x44\x41TA_TYPE_UNLOCKED_TIME\x10\'\x12\'\n#DATA_TYPE_VOLTAGE_SEQUENCE_NEGATIVE\x10(\x12\'\n#DATA_TYPE_VOLTAGE_SEQUENCE_POSITIVE\x10)\x12#\n\x1f\x44\x41TA_TYPE_VOLTAGE_SEQUENCE_ZERO\x10*\x12\x16\n\x12\x44\x41TA_TYPE_DISCRETE\x10+\x12\x14\n\x10\x44\x41TA_TYPE_ANALOG\x10,B\x0bZ\t./grid/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.grid.v1.data_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\t./grid/v1' + _globals['_DATASET_DATAENTRY']._loaded_options = None + _globals['_DATASET_DATAENTRY']._serialized_options = b'8\001' + _globals['_DATATYPE']._serialized_start=361 + _globals['_DATATYPE']._serialized_end=1756 + _globals['_DATA']._serialized_start=48 + _globals['_DATA']._serialized_end=178 + _globals['_DATASET']._serialized_start=181 + _globals['_DATASET']._serialized_end=358 + _globals['_DATASET_DATAENTRY']._serialized_start=280 + _globals['_DATASET_DATAENTRY']._serialized_end=358 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/grid/v1/data_pb2.pyi b/python/zaphiro/grid/v1/data_pb2.pyi new file mode 100644 index 0000000..7983840 --- /dev/null +++ b/python/zaphiro/grid/v1/data_pb2.pyi @@ -0,0 +1,125 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DataType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + DATA_TYPE_UNSPECIFIED: _ClassVar[DataType] + DATA_TYPE_ACTIVE_POWER: _ClassVar[DataType] + DATA_TYPE_ANGLE: _ClassVar[DataType] + DATA_TYPE_AUTOMATIC: _ClassVar[DataType] + DATA_TYPE_BOOLEAN: _ClassVar[DataType] + DATA_TYPE_CONFIG_CHANGE: _ClassVar[DataType] + DATA_TYPE_CURRENT_SEQUENCE_NEGATIVE: _ClassVar[DataType] + DATA_TYPE_CURRENT_SEQUENCE_POSITIVE: _ClassVar[DataType] + DATA_TYPE_CURRENT_SEQUENCE_ZERO: _ClassVar[DataType] + DATA_TYPE_DATA_ERROR: _ClassVar[DataType] + DATA_TYPE_DATA_MODIFIED: _ClassVar[DataType] + DATA_TYPE_DATA_SORTING: _ClassVar[DataType] + DATA_TYPE_ENERGY: _ClassVar[DataType] + DATA_TYPE_FREQUENCY: _ClassVar[DataType] + DATA_TYPE_LINE_CURRENT: _ClassVar[DataType] + DATA_TYPE_LINE_TO_LINE_VOLTAGE: _ClassVar[DataType] + DATA_TYPE_LOCAL_OPERATION: _ClassVar[DataType] + DATA_TYPE_OPERATION_COUNT: _ClassVar[DataType] + DATA_TYPE_PACKET_LATENCY: _ClassVar[DataType] + DATA_TYPE_PHASE_VOLTAGE: _ClassVar[DataType] + DATA_TYPE_PHASOR_CURRENT: _ClassVar[DataType] + DATA_TYPE_PHASOR_VOLTAGE: _ClassVar[DataType] + DATA_TYPE_PMU_SYNC: _ClassVar[DataType] + DATA_TYPE_PMU_TIME_QUALITY: _ClassVar[DataType] + DATA_TYPE_PMU_TRIGGER_DETECTED: _ClassVar[DataType] + DATA_TYPE_POWER: _ClassVar[DataType] + DATA_TYPE_POWER_FACTOR: _ClassVar[DataType] + DATA_TYPE_PRESSURE: _ClassVar[DataType] + DATA_TYPE_RATE_OF_CHANGE_OF_FREQUENCY: _ClassVar[DataType] + DATA_TYPE_REACTIVE_POWER: _ClassVar[DataType] + DATA_TYPE_SWITCH_POSITION: _ClassVar[DataType] + DATA_TYPE_TAP_POSITION: _ClassVar[DataType] + DATA_TYPE_TEMPERATURE: _ClassVar[DataType] + DATA_TYPE_THREE_PHASE_ACTIVE_POWER: _ClassVar[DataType] + DATA_TYPE_THREE_PHASE_CURRENT: _ClassVar[DataType] + DATA_TYPE_THREE_PHASE_POWER: _ClassVar[DataType] + DATA_TYPE_THREE_PHASE_POWER_FACTOR: _ClassVar[DataType] + DATA_TYPE_THREE_PHASE_REACTIVE_POWER: _ClassVar[DataType] + DATA_TYPE_TRIGGER_REASON: _ClassVar[DataType] + DATA_TYPE_UNLOCKED_TIME: _ClassVar[DataType] + DATA_TYPE_VOLTAGE_SEQUENCE_NEGATIVE: _ClassVar[DataType] + DATA_TYPE_VOLTAGE_SEQUENCE_POSITIVE: _ClassVar[DataType] + DATA_TYPE_VOLTAGE_SEQUENCE_ZERO: _ClassVar[DataType] + DATA_TYPE_DISCRETE: _ClassVar[DataType] + DATA_TYPE_ANALOG: _ClassVar[DataType] +DATA_TYPE_UNSPECIFIED: DataType +DATA_TYPE_ACTIVE_POWER: DataType +DATA_TYPE_ANGLE: DataType +DATA_TYPE_AUTOMATIC: DataType +DATA_TYPE_BOOLEAN: DataType +DATA_TYPE_CONFIG_CHANGE: DataType +DATA_TYPE_CURRENT_SEQUENCE_NEGATIVE: DataType +DATA_TYPE_CURRENT_SEQUENCE_POSITIVE: DataType +DATA_TYPE_CURRENT_SEQUENCE_ZERO: DataType +DATA_TYPE_DATA_ERROR: DataType +DATA_TYPE_DATA_MODIFIED: DataType +DATA_TYPE_DATA_SORTING: DataType +DATA_TYPE_ENERGY: DataType +DATA_TYPE_FREQUENCY: DataType +DATA_TYPE_LINE_CURRENT: DataType +DATA_TYPE_LINE_TO_LINE_VOLTAGE: DataType +DATA_TYPE_LOCAL_OPERATION: DataType +DATA_TYPE_OPERATION_COUNT: DataType +DATA_TYPE_PACKET_LATENCY: DataType +DATA_TYPE_PHASE_VOLTAGE: DataType +DATA_TYPE_PHASOR_CURRENT: DataType +DATA_TYPE_PHASOR_VOLTAGE: DataType +DATA_TYPE_PMU_SYNC: DataType +DATA_TYPE_PMU_TIME_QUALITY: DataType +DATA_TYPE_PMU_TRIGGER_DETECTED: DataType +DATA_TYPE_POWER: DataType +DATA_TYPE_POWER_FACTOR: DataType +DATA_TYPE_PRESSURE: DataType +DATA_TYPE_RATE_OF_CHANGE_OF_FREQUENCY: DataType +DATA_TYPE_REACTIVE_POWER: DataType +DATA_TYPE_SWITCH_POSITION: DataType +DATA_TYPE_TAP_POSITION: DataType +DATA_TYPE_TEMPERATURE: DataType +DATA_TYPE_THREE_PHASE_ACTIVE_POWER: DataType +DATA_TYPE_THREE_PHASE_CURRENT: DataType +DATA_TYPE_THREE_PHASE_POWER: DataType +DATA_TYPE_THREE_PHASE_POWER_FACTOR: DataType +DATA_TYPE_THREE_PHASE_REACTIVE_POWER: DataType +DATA_TYPE_TRIGGER_REASON: DataType +DATA_TYPE_UNLOCKED_TIME: DataType +DATA_TYPE_VOLTAGE_SEQUENCE_NEGATIVE: DataType +DATA_TYPE_VOLTAGE_SEQUENCE_POSITIVE: DataType +DATA_TYPE_VOLTAGE_SEQUENCE_ZERO: DataType +DATA_TYPE_DISCRETE: DataType +DATA_TYPE_ANALOG: DataType + +class Data(_message.Message): + __slots__ = ("dataType", "measuredAt", "value") + DATATYPE_FIELD_NUMBER: _ClassVar[int] + MEASUREDAT_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + dataType: DataType + measuredAt: int + value: int + def __init__(self, dataType: _Optional[_Union[DataType, str]] = ..., measuredAt: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ... + +class DataSet(_message.Message): + __slots__ = ("producerId", "data") + class DataEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: Data + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Data, _Mapping]] = ...) -> None: ... + PRODUCERID_FIELD_NUMBER: _ClassVar[int] + DATA_FIELD_NUMBER: _ClassVar[int] + producerId: str + data: _containers.MessageMap[str, Data] + def __init__(self, producerId: _Optional[str] = ..., data: _Optional[_Mapping[str, Data]] = ...) -> None: ... diff --git a/python/zaphiro/grid/v1/device_event_pb2.py b/python/zaphiro/grid/v1/device_event_pb2.py new file mode 100644 index 0000000..40cfb00 --- /dev/null +++ b/python/zaphiro/grid/v1/device_event_pb2.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/grid/v1/device_event.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from zaphiro.grid.v1 import event_pb2 as zaphiro_dot_grid_dot_v1_dot_event__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"zaphiro/grid/v1/device_event.proto\x12\x0fzaphiro.grid.v1\x1a\x1bzaphiro/grid/v1/event.proto\"\x82\x02\n\x0b\x44\x65viceEvent\x12,\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x16.zaphiro.grid.v1.EventR\x05\x65vent\x12\x1a\n\x08\x64\x65viceID\x18\x02 \x01(\tR\x08\x64\x65viceID\x12\"\n\x0csubstationID\x18\x03 \x01(\tR\x0csubstationID\x12\x19\n\x05value\x18\x04 \x01(\x01H\x00R\x05value\x88\x01\x01\x12+\n\x0ereferenceLimit\x18\x05 \x01(\x01H\x01R\x0ereferenceLimit\x88\x01\x01\x12\x17\n\x04\x63ode\x18\x06 \x01(\tH\x02R\x04\x63ode\x88\x01\x01\x42\x08\n\x06_valueB\x11\n\x0f_referenceLimitB\x07\n\x05_code\"H\n\x12\x43ommunicationError\x12\x32\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1c.zaphiro.grid.v1.DeviceEventR\x05\x65vent\"A\n\x0bTimeQuality\x12\x32\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1c.zaphiro.grid.v1.DeviceEventR\x05\x65vent\"@\n\nSyncStatus\x12\x32\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1c.zaphiro.grid.v1.DeviceEventR\x05\x65vent\";\n\x05Power\x12\x32\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1c.zaphiro.grid.v1.DeviceEventR\x05\x65vent\"<\n\x06\x43onfig\x12\x32\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1c.zaphiro.grid.v1.DeviceEventR\x05\x65vent\"=\n\x07Trigger\x12\x32\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1c.zaphiro.grid.v1.DeviceEventR\x05\x65vent\"?\n\tDataError\x12\x32\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1c.zaphiro.grid.v1.DeviceEventR\x05\x65ventB\x0bZ\t./grid/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.grid.v1.device_event_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\t./grid/v1' + _globals['_DEVICEEVENT']._serialized_start=85 + _globals['_DEVICEEVENT']._serialized_end=343 + _globals['_COMMUNICATIONERROR']._serialized_start=345 + _globals['_COMMUNICATIONERROR']._serialized_end=417 + _globals['_TIMEQUALITY']._serialized_start=419 + _globals['_TIMEQUALITY']._serialized_end=484 + _globals['_SYNCSTATUS']._serialized_start=486 + _globals['_SYNCSTATUS']._serialized_end=550 + _globals['_POWER']._serialized_start=552 + _globals['_POWER']._serialized_end=611 + _globals['_CONFIG']._serialized_start=613 + _globals['_CONFIG']._serialized_end=673 + _globals['_TRIGGER']._serialized_start=675 + _globals['_TRIGGER']._serialized_end=736 + _globals['_DATAERROR']._serialized_start=738 + _globals['_DATAERROR']._serialized_end=801 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/grid/v1/device_event_pb2.pyi b/python/zaphiro/grid/v1/device_event_pb2.pyi new file mode 100644 index 0000000..b0a8b07 --- /dev/null +++ b/python/zaphiro/grid/v1/device_event_pb2.pyi @@ -0,0 +1,64 @@ +from zaphiro.grid.v1 import event_pb2 as _event_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class DeviceEvent(_message.Message): + __slots__ = ("event", "deviceID", "substationID", "value", "referenceLimit", "code") + EVENT_FIELD_NUMBER: _ClassVar[int] + DEVICEID_FIELD_NUMBER: _ClassVar[int] + SUBSTATIONID_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + REFERENCELIMIT_FIELD_NUMBER: _ClassVar[int] + CODE_FIELD_NUMBER: _ClassVar[int] + event: _event_pb2.Event + deviceID: str + substationID: str + value: float + referenceLimit: float + code: str + def __init__(self, event: _Optional[_Union[_event_pb2.Event, _Mapping]] = ..., deviceID: _Optional[str] = ..., substationID: _Optional[str] = ..., value: _Optional[float] = ..., referenceLimit: _Optional[float] = ..., code: _Optional[str] = ...) -> None: ... + +class CommunicationError(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: DeviceEvent + def __init__(self, event: _Optional[_Union[DeviceEvent, _Mapping]] = ...) -> None: ... + +class TimeQuality(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: DeviceEvent + def __init__(self, event: _Optional[_Union[DeviceEvent, _Mapping]] = ...) -> None: ... + +class SyncStatus(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: DeviceEvent + def __init__(self, event: _Optional[_Union[DeviceEvent, _Mapping]] = ...) -> None: ... + +class Power(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: DeviceEvent + def __init__(self, event: _Optional[_Union[DeviceEvent, _Mapping]] = ...) -> None: ... + +class Config(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: DeviceEvent + def __init__(self, event: _Optional[_Union[DeviceEvent, _Mapping]] = ...) -> None: ... + +class Trigger(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: DeviceEvent + def __init__(self, event: _Optional[_Union[DeviceEvent, _Mapping]] = ...) -> None: ... + +class DataError(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: DeviceEvent + def __init__(self, event: _Optional[_Union[DeviceEvent, _Mapping]] = ...) -> None: ... diff --git a/python/zaphiro/grid/v1/event_pb2.py b/python/zaphiro/grid/v1/event_pb2.py new file mode 100644 index 0000000..d206f09 --- /dev/null +++ b/python/zaphiro/grid/v1/event_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/grid/v1/event.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bzaphiro/grid/v1/event.proto\x12\x0fzaphiro.grid.v1\"\xa9\x02\n\x05\x45vent\x12\x0e\n\x02Id\x18\x01 \x01(\tR\x02Id\x12\x1a\n\x08sourceId\x18\x02 \x01(\tR\x08sourceId\x12@\n\nsourceType\x18\x03 \x01(\x0e\x32 .zaphiro.grid.v1.EventSourceTypeR\nsourceType\x12\x1e\n\noccurredAt\x18\x04 \x01(\x03R\noccurredAt\x12#\n\ndetectedAt\x18\x05 \x01(\x03H\x00R\ndetectedAt\x88\x01\x01\x12\x18\n\x07message\x18\x06 \x01(\tR\x07message\x12\x39\n\x06status\x18\x07 \x01(\x0e\x32\x1c.zaphiro.grid.v1.EventStatusH\x01R\x06status\x88\x01\x01\x42\r\n\x0b_detectedAtB\t\n\x07_status*\x95\x01\n\x0b\x45ventStatus\x12\x1c\n\x18\x45VENT_STATUS_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45VENT_STATUS_STARTED\x10\x01\x12\x1c\n\x18\x45VENT_STATUS_IN_PROGRESS\x10\x02\x12\x16\n\x12\x45VENT_STATUS_ENDED\x10\x03\x12\x18\n\x14\x45VENT_STATUS_UNKNOWN\x10\x04*\x85\x01\n\x0f\x45ventSourceType\x12\x1c\n\x18\x45VENT_SOURCE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x45VENT_SOURCE_DEVICE\x10\x01\x12\x18\n\x14\x45VENT_SOURCE_SERVICE\x10\x02\x12!\n\x1d\x45VENT_SOURCE_EXTERNAL_SERVICE\x10\x03\x42\x0bZ\t./grid/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.grid.v1.event_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\t./grid/v1' + _globals['_EVENTSTATUS']._serialized_start=349 + _globals['_EVENTSTATUS']._serialized_end=498 + _globals['_EVENTSOURCETYPE']._serialized_start=501 + _globals['_EVENTSOURCETYPE']._serialized_end=634 + _globals['_EVENT']._serialized_start=49 + _globals['_EVENT']._serialized_end=346 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/grid/v1/event_pb2.pyi b/python/zaphiro/grid/v1/event_pb2.pyi new file mode 100644 index 0000000..00b70fa --- /dev/null +++ b/python/zaphiro/grid/v1/event_pb2.pyi @@ -0,0 +1,48 @@ +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class EventStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + EVENT_STATUS_UNSPECIFIED: _ClassVar[EventStatus] + EVENT_STATUS_STARTED: _ClassVar[EventStatus] + EVENT_STATUS_IN_PROGRESS: _ClassVar[EventStatus] + EVENT_STATUS_ENDED: _ClassVar[EventStatus] + EVENT_STATUS_UNKNOWN: _ClassVar[EventStatus] + +class EventSourceType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + EVENT_SOURCE_UNSPECIFIED: _ClassVar[EventSourceType] + EVENT_SOURCE_DEVICE: _ClassVar[EventSourceType] + EVENT_SOURCE_SERVICE: _ClassVar[EventSourceType] + EVENT_SOURCE_EXTERNAL_SERVICE: _ClassVar[EventSourceType] +EVENT_STATUS_UNSPECIFIED: EventStatus +EVENT_STATUS_STARTED: EventStatus +EVENT_STATUS_IN_PROGRESS: EventStatus +EVENT_STATUS_ENDED: EventStatus +EVENT_STATUS_UNKNOWN: EventStatus +EVENT_SOURCE_UNSPECIFIED: EventSourceType +EVENT_SOURCE_DEVICE: EventSourceType +EVENT_SOURCE_SERVICE: EventSourceType +EVENT_SOURCE_EXTERNAL_SERVICE: EventSourceType + +class Event(_message.Message): + __slots__ = ("Id", "sourceId", "sourceType", "occurredAt", "detectedAt", "message", "status") + ID_FIELD_NUMBER: _ClassVar[int] + SOURCEID_FIELD_NUMBER: _ClassVar[int] + SOURCETYPE_FIELD_NUMBER: _ClassVar[int] + OCCURREDAT_FIELD_NUMBER: _ClassVar[int] + DETECTEDAT_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + STATUS_FIELD_NUMBER: _ClassVar[int] + Id: str + sourceId: str + sourceType: EventSourceType + occurredAt: int + detectedAt: int + message: str + status: EventStatus + def __init__(self, Id: _Optional[str] = ..., sourceId: _Optional[str] = ..., sourceType: _Optional[_Union[EventSourceType, str]] = ..., occurredAt: _Optional[int] = ..., detectedAt: _Optional[int] = ..., message: _Optional[str] = ..., status: _Optional[_Union[EventStatus, str]] = ...) -> None: ... diff --git a/python/zaphiro/grid/v1/fault_pb2.py b/python/zaphiro/grid/v1/fault_pb2.py new file mode 100644 index 0000000..2d40453 --- /dev/null +++ b/python/zaphiro/grid/v1/fault_pb2.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/grid/v1/fault.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bzaphiro/grid/v1/fault.proto\x12\x0fzaphiro.grid.v1\"\xf3\x03\n\x05\x46\x61ult\x12\x0e\n\x02Id\x18\x01 \x01(\tR\x02Id\x12%\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00R\x0b\x64\x65scription\x88\x01\x01\x12<\n\x04kind\x18\x03 \x01(\x0e\x32(.zaphiro.grid.v1.PhaseConnectedFaultKindR\x04kind\x12\x32\n\x06phases\x18\x04 \x01(\x0e\x32\x1a.zaphiro.grid.v1.PhaseCodeR\x06phases\x12\x1e\n\noccurredAt\x18\x05 \x01(\x03R\noccurredAt\x12\x31\n\x11\x66\x61ultyEquipmentId\x18\x06 \x01(\tH\x01R\x11\x66\x61ultyEquipmentId\x88\x01\x01\x12!\n\tlocatedAt\x18\x07 \x01(\x03H\x02R\tlocatedAt\x88\x01\x01\x12\'\n\x0c\x66\x61ultCurrent\x18\x08 \x01(\x02H\x03R\x0c\x66\x61ultCurrent\x88\x01\x01\x12\x1d\n\x07located\x18\t \x01(\x08H\x04R\x07located\x88\x01\x01\x12\x32\n\x14impactedEquipmentIds\x18\n \x03(\tR\x14impactedEquipmentIdsB\x0e\n\x0c_descriptionB\x14\n\x12_faultyEquipmentIdB\x0c\n\n_locatedAtB\x0f\n\r_faultCurrentB\n\n\x08_located\"\xcb\x01\n\tLineFault\x12,\n\x05\x66\x61ult\x18\x01 \x01(\x0b\x32\x16.zaphiro.grid.v1.FaultR\x05\x66\x61ult\x12\x35\n\x13lengthFromTerminal1\x18\x02 \x01(\x02H\x00R\x13lengthFromTerminal1\x88\x01\x01\x12-\n\x0f\x61\x63LineSegmentID\x18\x03 \x01(\tH\x01R\x0f\x61\x63LineSegmentID\x88\x01\x01\x42\x16\n\x14_lengthFromTerminal1B\x12\n\x10_acLineSegmentID\"r\n\x0e\x45quipmentFault\x12,\n\x05\x66\x61ult\x18\x01 \x01(\x0b\x32\x16.zaphiro.grid.v1.FaultR\x05\x66\x61ult\x12#\n\nterminalID\x18\x02 \x01(\tH\x00R\nterminalID\x88\x01\x01\x42\r\n\x0b_terminalID*\x82\x02\n\x17PhaseConnectedFaultKind\x12*\n&PHASE_CONNECTED_FAULT_KIND_UNSPECIFIED\x10\x00\x12-\n)PHASE_CONNECTED_FAULT_KIND_LINE_TO_GROUND\x10\x01\x12+\n\'PHASE_CONNECTED_FAULT_KIND_LINE_TO_LINE\x10\x02\x12\x35\n1PHASE_CONNECTED_FAULT_KIND_LINE_TO_LINE_TO_GROUND\x10\x03\x12(\n$PHASE_CONNECTED_FAULT_KIND_LINE_OPEN\x10\x04*\x89\x04\n\tPhaseCode\x12\x1a\n\x16PHASE_CODE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPHASE_CODE_A\x10\x01\x12\x10\n\x0cPHASE_CODE_B\x10\x02\x12\x10\n\x0cPHASE_CODE_C\x10\x03\x12\x10\n\x0cPHASE_CODE_N\x10\x04\x12\x11\n\rPHASE_CODE_AB\x10\x05\x12\x11\n\rPHASE_CODE_AC\x10\x06\x12\x11\n\rPHASE_CODE_BC\x10\x07\x12\x11\n\rPHASE_CODE_AN\x10\x08\x12\x11\n\rPHASE_CODE_BN\x10\t\x12\x11\n\rPHASE_CODE_CN\x10\n\x12\x12\n\x0ePHASE_CODE_ABC\x10\x0b\x12\x12\n\x0ePHASE_CODE_ABN\x10\x0c\x12\x12\n\x0ePHASE_CODE_ACN\x10\r\x12\x12\n\x0ePHASE_CODE_BCN\x10\x0e\x12\x13\n\x0fPHASE_CODE_ABCN\x10\x0f\x12\x12\n\x0ePHASE_CODE_S1N\x10\x10\x12\x12\n\x0ePHASE_CODE_S2N\x10\x11\x12\x13\n\x0fPHASE_CODE_S12N\x10\x12\x12\x11\n\rPHASE_CODE_S1\x10\x13\x12\x11\n\rPHASE_CODE_S2\x10\x14\x12\x12\n\x0ePHASE_CODE_S12\x10\x15\x12\x10\n\x0cPHASE_CODE_X\x10\x16\x12\x11\n\rPHASE_CODE_XY\x10\x17\x12\x11\n\rPHASE_CODE_XN\x10\x18\x12\x12\n\x0ePHASE_CODE_XYN\x10\x19\x42\x0bZ\t./grid/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.grid.v1.fault_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\t./grid/v1' + _globals['_PHASECONNECTEDFAULTKIND']._serialized_start=873 + _globals['_PHASECONNECTEDFAULTKIND']._serialized_end=1131 + _globals['_PHASECODE']._serialized_start=1134 + _globals['_PHASECODE']._serialized_end=1655 + _globals['_FAULT']._serialized_start=49 + _globals['_FAULT']._serialized_end=548 + _globals['_LINEFAULT']._serialized_start=551 + _globals['_LINEFAULT']._serialized_end=754 + _globals['_EQUIPMENTFAULT']._serialized_start=756 + _globals['_EQUIPMENTFAULT']._serialized_end=870 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/grid/v1/fault_pb2.pyi b/python/zaphiro/grid/v1/fault_pb2.pyi new file mode 100644 index 0000000..083d070 --- /dev/null +++ b/python/zaphiro/grid/v1/fault_pb2.pyi @@ -0,0 +1,117 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class PhaseConnectedFaultKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + PHASE_CONNECTED_FAULT_KIND_UNSPECIFIED: _ClassVar[PhaseConnectedFaultKind] + PHASE_CONNECTED_FAULT_KIND_LINE_TO_GROUND: _ClassVar[PhaseConnectedFaultKind] + PHASE_CONNECTED_FAULT_KIND_LINE_TO_LINE: _ClassVar[PhaseConnectedFaultKind] + PHASE_CONNECTED_FAULT_KIND_LINE_TO_LINE_TO_GROUND: _ClassVar[PhaseConnectedFaultKind] + PHASE_CONNECTED_FAULT_KIND_LINE_OPEN: _ClassVar[PhaseConnectedFaultKind] + +class PhaseCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + PHASE_CODE_UNSPECIFIED: _ClassVar[PhaseCode] + PHASE_CODE_A: _ClassVar[PhaseCode] + PHASE_CODE_B: _ClassVar[PhaseCode] + PHASE_CODE_C: _ClassVar[PhaseCode] + PHASE_CODE_N: _ClassVar[PhaseCode] + PHASE_CODE_AB: _ClassVar[PhaseCode] + PHASE_CODE_AC: _ClassVar[PhaseCode] + PHASE_CODE_BC: _ClassVar[PhaseCode] + PHASE_CODE_AN: _ClassVar[PhaseCode] + PHASE_CODE_BN: _ClassVar[PhaseCode] + PHASE_CODE_CN: _ClassVar[PhaseCode] + PHASE_CODE_ABC: _ClassVar[PhaseCode] + PHASE_CODE_ABN: _ClassVar[PhaseCode] + PHASE_CODE_ACN: _ClassVar[PhaseCode] + PHASE_CODE_BCN: _ClassVar[PhaseCode] + PHASE_CODE_ABCN: _ClassVar[PhaseCode] + PHASE_CODE_S1N: _ClassVar[PhaseCode] + PHASE_CODE_S2N: _ClassVar[PhaseCode] + PHASE_CODE_S12N: _ClassVar[PhaseCode] + PHASE_CODE_S1: _ClassVar[PhaseCode] + PHASE_CODE_S2: _ClassVar[PhaseCode] + PHASE_CODE_S12: _ClassVar[PhaseCode] + PHASE_CODE_X: _ClassVar[PhaseCode] + PHASE_CODE_XY: _ClassVar[PhaseCode] + PHASE_CODE_XN: _ClassVar[PhaseCode] + PHASE_CODE_XYN: _ClassVar[PhaseCode] +PHASE_CONNECTED_FAULT_KIND_UNSPECIFIED: PhaseConnectedFaultKind +PHASE_CONNECTED_FAULT_KIND_LINE_TO_GROUND: PhaseConnectedFaultKind +PHASE_CONNECTED_FAULT_KIND_LINE_TO_LINE: PhaseConnectedFaultKind +PHASE_CONNECTED_FAULT_KIND_LINE_TO_LINE_TO_GROUND: PhaseConnectedFaultKind +PHASE_CONNECTED_FAULT_KIND_LINE_OPEN: PhaseConnectedFaultKind +PHASE_CODE_UNSPECIFIED: PhaseCode +PHASE_CODE_A: PhaseCode +PHASE_CODE_B: PhaseCode +PHASE_CODE_C: PhaseCode +PHASE_CODE_N: PhaseCode +PHASE_CODE_AB: PhaseCode +PHASE_CODE_AC: PhaseCode +PHASE_CODE_BC: PhaseCode +PHASE_CODE_AN: PhaseCode +PHASE_CODE_BN: PhaseCode +PHASE_CODE_CN: PhaseCode +PHASE_CODE_ABC: PhaseCode +PHASE_CODE_ABN: PhaseCode +PHASE_CODE_ACN: PhaseCode +PHASE_CODE_BCN: PhaseCode +PHASE_CODE_ABCN: PhaseCode +PHASE_CODE_S1N: PhaseCode +PHASE_CODE_S2N: PhaseCode +PHASE_CODE_S12N: PhaseCode +PHASE_CODE_S1: PhaseCode +PHASE_CODE_S2: PhaseCode +PHASE_CODE_S12: PhaseCode +PHASE_CODE_X: PhaseCode +PHASE_CODE_XY: PhaseCode +PHASE_CODE_XN: PhaseCode +PHASE_CODE_XYN: PhaseCode + +class Fault(_message.Message): + __slots__ = ("Id", "description", "kind", "phases", "occurredAt", "faultyEquipmentId", "locatedAt", "faultCurrent", "located", "impactedEquipmentIds") + ID_FIELD_NUMBER: _ClassVar[int] + DESCRIPTION_FIELD_NUMBER: _ClassVar[int] + KIND_FIELD_NUMBER: _ClassVar[int] + PHASES_FIELD_NUMBER: _ClassVar[int] + OCCURREDAT_FIELD_NUMBER: _ClassVar[int] + FAULTYEQUIPMENTID_FIELD_NUMBER: _ClassVar[int] + LOCATEDAT_FIELD_NUMBER: _ClassVar[int] + FAULTCURRENT_FIELD_NUMBER: _ClassVar[int] + LOCATED_FIELD_NUMBER: _ClassVar[int] + IMPACTEDEQUIPMENTIDS_FIELD_NUMBER: _ClassVar[int] + Id: str + description: str + kind: PhaseConnectedFaultKind + phases: PhaseCode + occurredAt: int + faultyEquipmentId: str + locatedAt: int + faultCurrent: float + located: bool + impactedEquipmentIds: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, Id: _Optional[str] = ..., description: _Optional[str] = ..., kind: _Optional[_Union[PhaseConnectedFaultKind, str]] = ..., phases: _Optional[_Union[PhaseCode, str]] = ..., occurredAt: _Optional[int] = ..., faultyEquipmentId: _Optional[str] = ..., locatedAt: _Optional[int] = ..., faultCurrent: _Optional[float] = ..., located: bool = ..., impactedEquipmentIds: _Optional[_Iterable[str]] = ...) -> None: ... + +class LineFault(_message.Message): + __slots__ = ("fault", "lengthFromTerminal1", "acLineSegmentID") + FAULT_FIELD_NUMBER: _ClassVar[int] + LENGTHFROMTERMINAL1_FIELD_NUMBER: _ClassVar[int] + ACLINESEGMENTID_FIELD_NUMBER: _ClassVar[int] + fault: Fault + lengthFromTerminal1: float + acLineSegmentID: str + def __init__(self, fault: _Optional[_Union[Fault, _Mapping]] = ..., lengthFromTerminal1: _Optional[float] = ..., acLineSegmentID: _Optional[str] = ...) -> None: ... + +class EquipmentFault(_message.Message): + __slots__ = ("fault", "terminalID") + FAULT_FIELD_NUMBER: _ClassVar[int] + TERMINALID_FIELD_NUMBER: _ClassVar[int] + fault: Fault + terminalID: str + def __init__(self, fault: _Optional[_Union[Fault, _Mapping]] = ..., terminalID: _Optional[str] = ...) -> None: ... diff --git a/python/zaphiro/grid/v1/grid_event_pb2.py b/python/zaphiro/grid/v1/grid_event_pb2.py new file mode 100644 index 0000000..2f47a5d --- /dev/null +++ b/python/zaphiro/grid/v1/grid_event_pb2.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/grid/v1/grid_event.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from zaphiro.grid.v1 import event_pb2 as zaphiro_dot_grid_dot_v1_dot_event__pb2 +from zaphiro.grid.v1 import fault_pb2 as zaphiro_dot_grid_dot_v1_dot_fault__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n zaphiro/grid/v1/grid_event.proto\x12\x0fzaphiro.grid.v1\x1a\x1bzaphiro/grid/v1/event.proto\x1a\x1bzaphiro/grid/v1/fault.proto\"\x8a\x02\n\tGridEvent\x12,\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x16.zaphiro.grid.v1.EventR\x05\x65vent\x12 \n\x0b\x63omponentID\x18\x02 \x01(\tR\x0b\x63omponentID\x12\'\n\x0csubstationID\x18\x03 \x01(\tH\x00R\x0csubstationID\x88\x01\x01\x12\x14\n\x05value\x18\x04 \x01(\x01R\x05value\x12&\n\x0ereferenceLimit\x18\x05 \x01(\x01R\x0ereferenceLimit\x12%\n\x0bprobability\x18\x06 \x01(\x01H\x01R\x0bprobability\x88\x01\x01\x42\x0f\n\r_substationIDB\x0e\n\x0c_probability\"\x8d\x01\n\x0cVoltageEvent\x12\x30\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1a.zaphiro.grid.v1.GridEventR\x05\x65vent\x12=\n\tphaseCode\x18\x02 \x01(\x0e\x32\x1a.zaphiro.grid.v1.PhaseCodeH\x00R\tphaseCode\x88\x01\x01\x42\x0c\n\n_phaseCode\"@\n\x0c\x43urrentEvent\x12\x30\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1a.zaphiro.grid.v1.GridEventR\x05\x65vent\">\n\nPhaseEvent\x12\x30\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1a.zaphiro.grid.v1.GridEventR\x05\x65vent\"B\n\x0e\x46requencyEvent\x12\x30\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1a.zaphiro.grid.v1.GridEventR\x05\x65vent\"E\n\x0eLineCongestion\x12\x33\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.zaphiro.grid.v1.CurrentEventR\x05\x65vent\"L\n\x15TransformerCongestion\x12\x33\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.zaphiro.grid.v1.CurrentEventR\x05\x65vent\"G\n\x10VoltageUnbalance\x12\x33\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.zaphiro.grid.v1.VoltageEventR\x05\x65vent\"A\n\nVoltageDip\x12\x33\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.zaphiro.grid.v1.VoltageEventR\x05\x65vent\"J\n\x13VoltageInterruption\x12\x33\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.zaphiro.grid.v1.VoltageEventR\x05\x65vent\"C\n\x0cVoltageSwell\x12\x33\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.zaphiro.grid.v1.VoltageEventR\x05\x65vent\"C\n\x0cVoltageLimit\x12\x33\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.zaphiro.grid.v1.VoltageEventR\x05\x65vent\"I\n\x12VoltageRapidChange\x12\x33\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1d.zaphiro.grid.v1.VoltageEventR\x05\x65vent\"F\n\rOverFrequency\x12\x35\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1f.zaphiro.grid.v1.FrequencyEventR\x05\x65vent\"G\n\x0eUnderFrequency\x12\x35\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1f.zaphiro.grid.v1.FrequencyEventR\x05\x65vent\"F\n\x11SteadyOscillation\x12\x31\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1b.zaphiro.grid.v1.PhaseEventR\x05\x65vent\"I\n\x14TransientOscillation\x12\x31\n\x05\x65vent\x18\x01 \x01(\x0b\x32\x1b.zaphiro.grid.v1.PhaseEventR\x05\x65ventB\x0bZ\t./grid/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.grid.v1.grid_event_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\t./grid/v1' + _globals['_GRIDEVENT']._serialized_start=112 + _globals['_GRIDEVENT']._serialized_end=378 + _globals['_VOLTAGEEVENT']._serialized_start=381 + _globals['_VOLTAGEEVENT']._serialized_end=522 + _globals['_CURRENTEVENT']._serialized_start=524 + _globals['_CURRENTEVENT']._serialized_end=588 + _globals['_PHASEEVENT']._serialized_start=590 + _globals['_PHASEEVENT']._serialized_end=652 + _globals['_FREQUENCYEVENT']._serialized_start=654 + _globals['_FREQUENCYEVENT']._serialized_end=720 + _globals['_LINECONGESTION']._serialized_start=722 + _globals['_LINECONGESTION']._serialized_end=791 + _globals['_TRANSFORMERCONGESTION']._serialized_start=793 + _globals['_TRANSFORMERCONGESTION']._serialized_end=869 + _globals['_VOLTAGEUNBALANCE']._serialized_start=871 + _globals['_VOLTAGEUNBALANCE']._serialized_end=942 + _globals['_VOLTAGEDIP']._serialized_start=944 + _globals['_VOLTAGEDIP']._serialized_end=1009 + _globals['_VOLTAGEINTERRUPTION']._serialized_start=1011 + _globals['_VOLTAGEINTERRUPTION']._serialized_end=1085 + _globals['_VOLTAGESWELL']._serialized_start=1087 + _globals['_VOLTAGESWELL']._serialized_end=1154 + _globals['_VOLTAGELIMIT']._serialized_start=1156 + _globals['_VOLTAGELIMIT']._serialized_end=1223 + _globals['_VOLTAGERAPIDCHANGE']._serialized_start=1225 + _globals['_VOLTAGERAPIDCHANGE']._serialized_end=1298 + _globals['_OVERFREQUENCY']._serialized_start=1300 + _globals['_OVERFREQUENCY']._serialized_end=1370 + _globals['_UNDERFREQUENCY']._serialized_start=1372 + _globals['_UNDERFREQUENCY']._serialized_end=1443 + _globals['_STEADYOSCILLATION']._serialized_start=1445 + _globals['_STEADYOSCILLATION']._serialized_end=1515 + _globals['_TRANSIENTOSCILLATION']._serialized_start=1517 + _globals['_TRANSIENTOSCILLATION']._serialized_end=1590 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/grid/v1/grid_event_pb2.pyi b/python/zaphiro/grid/v1/grid_event_pb2.pyi new file mode 100644 index 0000000..92f307e --- /dev/null +++ b/python/zaphiro/grid/v1/grid_event_pb2.pyi @@ -0,0 +1,121 @@ +from zaphiro.grid.v1 import event_pb2 as _event_pb2 +from zaphiro.grid.v1 import fault_pb2 as _fault_pb2 +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class GridEvent(_message.Message): + __slots__ = ("event", "componentID", "substationID", "value", "referenceLimit", "probability") + EVENT_FIELD_NUMBER: _ClassVar[int] + COMPONENTID_FIELD_NUMBER: _ClassVar[int] + SUBSTATIONID_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + REFERENCELIMIT_FIELD_NUMBER: _ClassVar[int] + PROBABILITY_FIELD_NUMBER: _ClassVar[int] + event: _event_pb2.Event + componentID: str + substationID: str + value: float + referenceLimit: float + probability: float + def __init__(self, event: _Optional[_Union[_event_pb2.Event, _Mapping]] = ..., componentID: _Optional[str] = ..., substationID: _Optional[str] = ..., value: _Optional[float] = ..., referenceLimit: _Optional[float] = ..., probability: _Optional[float] = ...) -> None: ... + +class VoltageEvent(_message.Message): + __slots__ = ("event", "phaseCode") + EVENT_FIELD_NUMBER: _ClassVar[int] + PHASECODE_FIELD_NUMBER: _ClassVar[int] + event: GridEvent + phaseCode: _fault_pb2.PhaseCode + def __init__(self, event: _Optional[_Union[GridEvent, _Mapping]] = ..., phaseCode: _Optional[_Union[_fault_pb2.PhaseCode, str]] = ...) -> None: ... + +class CurrentEvent(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: GridEvent + def __init__(self, event: _Optional[_Union[GridEvent, _Mapping]] = ...) -> None: ... + +class PhaseEvent(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: GridEvent + def __init__(self, event: _Optional[_Union[GridEvent, _Mapping]] = ...) -> None: ... + +class FrequencyEvent(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: GridEvent + def __init__(self, event: _Optional[_Union[GridEvent, _Mapping]] = ...) -> None: ... + +class LineCongestion(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: CurrentEvent + def __init__(self, event: _Optional[_Union[CurrentEvent, _Mapping]] = ...) -> None: ... + +class TransformerCongestion(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: CurrentEvent + def __init__(self, event: _Optional[_Union[CurrentEvent, _Mapping]] = ...) -> None: ... + +class VoltageUnbalance(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: VoltageEvent + def __init__(self, event: _Optional[_Union[VoltageEvent, _Mapping]] = ...) -> None: ... + +class VoltageDip(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: VoltageEvent + def __init__(self, event: _Optional[_Union[VoltageEvent, _Mapping]] = ...) -> None: ... + +class VoltageInterruption(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: VoltageEvent + def __init__(self, event: _Optional[_Union[VoltageEvent, _Mapping]] = ...) -> None: ... + +class VoltageSwell(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: VoltageEvent + def __init__(self, event: _Optional[_Union[VoltageEvent, _Mapping]] = ...) -> None: ... + +class VoltageLimit(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: VoltageEvent + def __init__(self, event: _Optional[_Union[VoltageEvent, _Mapping]] = ...) -> None: ... + +class VoltageRapidChange(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: VoltageEvent + def __init__(self, event: _Optional[_Union[VoltageEvent, _Mapping]] = ...) -> None: ... + +class OverFrequency(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: FrequencyEvent + def __init__(self, event: _Optional[_Union[FrequencyEvent, _Mapping]] = ...) -> None: ... + +class UnderFrequency(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: FrequencyEvent + def __init__(self, event: _Optional[_Union[FrequencyEvent, _Mapping]] = ...) -> None: ... + +class SteadyOscillation(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: PhaseEvent + def __init__(self, event: _Optional[_Union[PhaseEvent, _Mapping]] = ...) -> None: ... + +class TransientOscillation(_message.Message): + __slots__ = ("event",) + EVENT_FIELD_NUMBER: _ClassVar[int] + event: PhaseEvent + def __init__(self, event: _Optional[_Union[PhaseEvent, _Mapping]] = ...) -> None: ... diff --git a/python/zaphiro/grid/v1/topology_pb2.py b/python/zaphiro/grid/v1/topology_pb2.py new file mode 100644 index 0000000..3a6d667 --- /dev/null +++ b/python/zaphiro/grid/v1/topology_pb2.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/grid/v1/topology.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ezaphiro/grid/v1/topology.proto\x12\x0fzaphiro.grid.v1\"8\n\x08Topology\x12\x1c\n\tcreatedAt\x18\x01 \x01(\x03R\tcreatedAt\x12\x0e\n\x02tp\x18\x02 \x01(\x0cR\x02tp\"\xa1\x02\n\x0fTopologicalNode\x12 \n\x0bTerminalIds\x18\x01 \x03(\tR\x0bTerminalIds\x12\x30\n\x13\x43onnectivityNodeIds\x18\x02 \x03(\tR\x13\x43onnectivityNodeIds\x12\x30\n\x13PowerTransferEndIds\x18\x03 \x03(\tR\x13PowerTransferEndIds\x12@\n\x1b\x43onnectivityNodeContainerId\x18\x04 \x01(\tR\x1b\x43onnectivityNodeContainerId\x12$\n\rBaseVoltageId\x18\x05 \x01(\tR\rBaseVoltageId\x12 \n\x0b\x42\x61seVoltage\x18\x06 \x01(\x01R\x0b\x42\x61seVoltage\"C\n\x11TopologicalIsland\x12.\n\x12TopologicalNodeIds\x18\x01 \x03(\tR\x12TopologicalNodeIds\"\xc8\x03\n\x10\x43omputedTopology\x12\x12\n\x04\x65qId\x18\x01 \x01(\tR\x04\x65qId\x12\x63\n\x10topologicalNodes\x18\x02 \x03(\x0b\x32\x37.zaphiro.grid.v1.ComputedTopology.TopologicalNodesEntryR\x10topologicalNodes\x12i\n\x12topologicalIslands\x18\x03 \x03(\x0b\x32\x39.zaphiro.grid.v1.ComputedTopology.TopologicalIslandsEntryR\x12topologicalIslands\x1a\x65\n\x15TopologicalNodesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32 .zaphiro.grid.v1.TopologicalNodeR\x05value:\x02\x38\x01\x1ai\n\x17TopologicalIslandsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32\".zaphiro.grid.v1.TopologicalIslandR\x05value:\x02\x38\x01\x42\x0bZ\t./grid/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.grid.v1.topology_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\t./grid/v1' + _globals['_COMPUTEDTOPOLOGY_TOPOLOGICALNODESENTRY']._loaded_options = None + _globals['_COMPUTEDTOPOLOGY_TOPOLOGICALNODESENTRY']._serialized_options = b'8\001' + _globals['_COMPUTEDTOPOLOGY_TOPOLOGICALISLANDSENTRY']._loaded_options = None + _globals['_COMPUTEDTOPOLOGY_TOPOLOGICALISLANDSENTRY']._serialized_options = b'8\001' + _globals['_TOPOLOGY']._serialized_start=51 + _globals['_TOPOLOGY']._serialized_end=107 + _globals['_TOPOLOGICALNODE']._serialized_start=110 + _globals['_TOPOLOGICALNODE']._serialized_end=399 + _globals['_TOPOLOGICALISLAND']._serialized_start=401 + _globals['_TOPOLOGICALISLAND']._serialized_end=468 + _globals['_COMPUTEDTOPOLOGY']._serialized_start=471 + _globals['_COMPUTEDTOPOLOGY']._serialized_end=927 + _globals['_COMPUTEDTOPOLOGY_TOPOLOGICALNODESENTRY']._serialized_start=719 + _globals['_COMPUTEDTOPOLOGY_TOPOLOGICALNODESENTRY']._serialized_end=820 + _globals['_COMPUTEDTOPOLOGY_TOPOLOGICALISLANDSENTRY']._serialized_start=822 + _globals['_COMPUTEDTOPOLOGY_TOPOLOGICALISLANDSENTRY']._serialized_end=927 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/grid/v1/topology_pb2.pyi b/python/zaphiro/grid/v1/topology_pb2.pyi new file mode 100644 index 0000000..8b06321 --- /dev/null +++ b/python/zaphiro/grid/v1/topology_pb2.pyi @@ -0,0 +1,60 @@ +from google.protobuf.internal import containers as _containers +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class Topology(_message.Message): + __slots__ = ("createdAt", "tp") + CREATEDAT_FIELD_NUMBER: _ClassVar[int] + TP_FIELD_NUMBER: _ClassVar[int] + createdAt: int + tp: bytes + def __init__(self, createdAt: _Optional[int] = ..., tp: _Optional[bytes] = ...) -> None: ... + +class TopologicalNode(_message.Message): + __slots__ = ("TerminalIds", "ConnectivityNodeIds", "PowerTransferEndIds", "ConnectivityNodeContainerId", "BaseVoltageId", "BaseVoltage") + TERMINALIDS_FIELD_NUMBER: _ClassVar[int] + CONNECTIVITYNODEIDS_FIELD_NUMBER: _ClassVar[int] + POWERTRANSFERENDIDS_FIELD_NUMBER: _ClassVar[int] + CONNECTIVITYNODECONTAINERID_FIELD_NUMBER: _ClassVar[int] + BASEVOLTAGEID_FIELD_NUMBER: _ClassVar[int] + BASEVOLTAGE_FIELD_NUMBER: _ClassVar[int] + TerminalIds: _containers.RepeatedScalarFieldContainer[str] + ConnectivityNodeIds: _containers.RepeatedScalarFieldContainer[str] + PowerTransferEndIds: _containers.RepeatedScalarFieldContainer[str] + ConnectivityNodeContainerId: str + BaseVoltageId: str + BaseVoltage: float + def __init__(self, TerminalIds: _Optional[_Iterable[str]] = ..., ConnectivityNodeIds: _Optional[_Iterable[str]] = ..., PowerTransferEndIds: _Optional[_Iterable[str]] = ..., ConnectivityNodeContainerId: _Optional[str] = ..., BaseVoltageId: _Optional[str] = ..., BaseVoltage: _Optional[float] = ...) -> None: ... + +class TopologicalIsland(_message.Message): + __slots__ = ("TopologicalNodeIds",) + TOPOLOGICALNODEIDS_FIELD_NUMBER: _ClassVar[int] + TopologicalNodeIds: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, TopologicalNodeIds: _Optional[_Iterable[str]] = ...) -> None: ... + +class ComputedTopology(_message.Message): + __slots__ = ("eqId", "topologicalNodes", "topologicalIslands") + class TopologicalNodesEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: TopologicalNode + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[TopologicalNode, _Mapping]] = ...) -> None: ... + class TopologicalIslandsEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: TopologicalIsland + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[TopologicalIsland, _Mapping]] = ...) -> None: ... + EQID_FIELD_NUMBER: _ClassVar[int] + TOPOLOGICALNODES_FIELD_NUMBER: _ClassVar[int] + TOPOLOGICALISLANDS_FIELD_NUMBER: _ClassVar[int] + eqId: str + topologicalNodes: _containers.MessageMap[str, TopologicalNode] + topologicalIslands: _containers.MessageMap[str, TopologicalIsland] + def __init__(self, eqId: _Optional[str] = ..., topologicalNodes: _Optional[_Mapping[str, TopologicalNode]] = ..., topologicalIslands: _Optional[_Mapping[str, TopologicalIsland]] = ...) -> None: ... diff --git a/python/zaphiro/platform/v1/task_pb2.py b/python/zaphiro/platform/v1/task_pb2.py new file mode 100644 index 0000000..64cad14 --- /dev/null +++ b/python/zaphiro/platform/v1/task_pb2.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: zaphiro/platform/v1/task.proto +# Protobuf Python Version: 5.26.0 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ezaphiro/platform/v1/task.proto\x12\x13zaphiro.platform.v1\x1a\x19google/protobuf/any.proto\"K\n\tParameter\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyR\x05value\"\x9f\x01\n\x04Task\x12\x39\n\x08taskType\x18\x01 \x01(\x0e\x32\x1d.zaphiro.platform.v1.TaskTypeR\x08taskType\x12\x1c\n\tcreatedAt\x18\x02 \x01(\x03R\tcreatedAt\x12>\n\nparameters\x18\x03 \x03(\x0b\x32\x1e.zaphiro.platform.v1.ParameterR\nparameters\"\xd9\x01\n\x0cNotification\x12Q\n\x10notificationType\x18\x01 \x01(\x0e\x32%.zaphiro.platform.v1.NotificationTypeR\x10notificationType\x12\x1c\n\tcreatedAt\x18\x02 \x01(\x03R\tcreatedAt\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12>\n\nparameters\x18\x04 \x03(\x0b\x32\x1e.zaphiro.platform.v1.ParameterR\nparameters*\x81\x01\n\x08TaskType\x12\x19\n\x15TASK_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14TASK_TYPE_COLLECTION\x10\x01\x12\x16\n\x12TASK_TYPE_TOPOLOGY\x10\x02\x12\x13\n\x0fTASK_TYPE_STATE\x10\x03\x12\x13\n\x0fTASK_TYPE_FAULT\x10\x04*\xf7\x01\n\x10NotificationType\x12!\n\x1dNOTIFICATION_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1fNOTIFICATION_TYPE_DATA_COMPLETE\x10\x01\x12(\n$NOTIFICATION_TYPE_DATA_TIMEOUT_SHORT\x10\x02\x12)\n%NOTIFICATION_TYPE_DATA_TIMEOUT_MEDIUM\x10\x03\x12\x1d\n\x19NOTIFICATION_TYPE_TRIGGER\x10\x04\x12\'\n#NOTIFICATION_TYPE_TOPOLOGY_COMPUTED\x10\x05\x42\x0fZ\r./platform/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'zaphiro.platform.v1.task_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z\r./platform/v1' + _globals['_TASKTYPE']._serialized_start=542 + _globals['_TASKTYPE']._serialized_end=671 + _globals['_NOTIFICATIONTYPE']._serialized_start=674 + _globals['_NOTIFICATIONTYPE']._serialized_end=921 + _globals['_PARAMETER']._serialized_start=82 + _globals['_PARAMETER']._serialized_end=157 + _globals['_TASK']._serialized_start=160 + _globals['_TASK']._serialized_end=319 + _globals['_NOTIFICATION']._serialized_start=322 + _globals['_NOTIFICATION']._serialized_end=539 +# @@protoc_insertion_point(module_scope) diff --git a/python/zaphiro/platform/v1/task_pb2.pyi b/python/zaphiro/platform/v1/task_pb2.pyi new file mode 100644 index 0000000..fe15be6 --- /dev/null +++ b/python/zaphiro/platform/v1/task_pb2.pyi @@ -0,0 +1,66 @@ +from google.protobuf import any_pb2 as _any_pb2 +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union + +DESCRIPTOR: _descriptor.FileDescriptor + +class TaskType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + TASK_TYPE_UNSPECIFIED: _ClassVar[TaskType] + TASK_TYPE_COLLECTION: _ClassVar[TaskType] + TASK_TYPE_TOPOLOGY: _ClassVar[TaskType] + TASK_TYPE_STATE: _ClassVar[TaskType] + TASK_TYPE_FAULT: _ClassVar[TaskType] + +class NotificationType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + NOTIFICATION_TYPE_UNSPECIFIED: _ClassVar[NotificationType] + NOTIFICATION_TYPE_DATA_COMPLETE: _ClassVar[NotificationType] + NOTIFICATION_TYPE_DATA_TIMEOUT_SHORT: _ClassVar[NotificationType] + NOTIFICATION_TYPE_DATA_TIMEOUT_MEDIUM: _ClassVar[NotificationType] + NOTIFICATION_TYPE_TRIGGER: _ClassVar[NotificationType] + NOTIFICATION_TYPE_TOPOLOGY_COMPUTED: _ClassVar[NotificationType] +TASK_TYPE_UNSPECIFIED: TaskType +TASK_TYPE_COLLECTION: TaskType +TASK_TYPE_TOPOLOGY: TaskType +TASK_TYPE_STATE: TaskType +TASK_TYPE_FAULT: TaskType +NOTIFICATION_TYPE_UNSPECIFIED: NotificationType +NOTIFICATION_TYPE_DATA_COMPLETE: NotificationType +NOTIFICATION_TYPE_DATA_TIMEOUT_SHORT: NotificationType +NOTIFICATION_TYPE_DATA_TIMEOUT_MEDIUM: NotificationType +NOTIFICATION_TYPE_TRIGGER: NotificationType +NOTIFICATION_TYPE_TOPOLOGY_COMPUTED: NotificationType + +class Parameter(_message.Message): + __slots__ = ("name", "value") + NAME_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + name: str + value: _any_pb2.Any + def __init__(self, name: _Optional[str] = ..., value: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... + +class Task(_message.Message): + __slots__ = ("taskType", "createdAt", "parameters") + TASKTYPE_FIELD_NUMBER: _ClassVar[int] + CREATEDAT_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + taskType: TaskType + createdAt: int + parameters: _containers.RepeatedCompositeFieldContainer[Parameter] + def __init__(self, taskType: _Optional[_Union[TaskType, str]] = ..., createdAt: _Optional[int] = ..., parameters: _Optional[_Iterable[_Union[Parameter, _Mapping]]] = ...) -> None: ... + +class Notification(_message.Message): + __slots__ = ("notificationType", "createdAt", "message", "parameters") + NOTIFICATIONTYPE_FIELD_NUMBER: _ClassVar[int] + CREATEDAT_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + PARAMETERS_FIELD_NUMBER: _ClassVar[int] + notificationType: NotificationType + createdAt: int + message: str + parameters: _containers.RepeatedCompositeFieldContainer[Parameter] + def __init__(self, notificationType: _Optional[_Union[NotificationType, str]] = ..., createdAt: _Optional[int] = ..., message: _Optional[str] = ..., parameters: _Optional[_Iterable[_Union[Parameter, _Mapping]]] = ...) -> None: ... diff --git a/proto/c37118/v1/conf2.proto b/zaphiro/c37118/v1/conf2.proto similarity index 98% rename from proto/c37118/v1/conf2.proto rename to zaphiro/c37118/v1/conf2.proto index 2da514a..d4519ff 100644 --- a/proto/c37118/v1/conf2.proto +++ b/zaphiro/c37118/v1/conf2.proto @@ -6,7 +6,7 @@ See [C37.118](https://www.typhoon-hil.com/documentation/typhoon-hil-software-man protocol. */ -package c37118.v1; +package zaphiro.c37118.v1; option go_package = "./c37118/v1"; /* Configuration frame 2 diff --git a/proto/c37118/v1/stat.proto b/zaphiro/c37118/v1/stat.proto similarity index 97% rename from proto/c37118/v1/stat.proto rename to zaphiro/c37118/v1/stat.proto index e7b41f2..6aa0df9 100644 --- a/proto/c37118/v1/stat.proto +++ b/zaphiro/c37118/v1/stat.proto @@ -4,7 +4,7 @@ syntax = "proto3"; Messages to support stat data injection exchange in the platform. */ -package c37118.v1; +package zaphiro.c37118.v1; option go_package = "./c37118/v1"; /* A Stat of PMU data, check IEEE C37.118 standard for more details. diff --git a/proto/grid/v1/data.proto b/zaphiro/grid/v1/data.proto similarity index 99% rename from proto/grid/v1/data.proto rename to zaphiro/grid/v1/data.proto index 1c4bec7..11f0838 100644 --- a/proto/grid/v1/data.proto +++ b/zaphiro/grid/v1/data.proto @@ -6,7 +6,7 @@ The data injected may be originated from different sources (e.g. a PMU, RTU, an Data are grouped into sets, where each id identifies a specific measurement. The id does not identify the instance of measurement, but the class of measurement. Measurement ID can be used to retrieve additional medata about the measurement, from example, in the CIM OP profile associated to the monitored grid. */ -package grid.v1; +package zaphiro.grid.v1; option go_package = "./grid/v1"; /* The collection of Data Types defined so far. They are useful to map diff --git a/proto/grid/v1/device_event.proto b/zaphiro/grid/v1/device_event.proto similarity index 96% rename from proto/grid/v1/device_event.proto rename to zaphiro/grid/v1/device_event.proto index e52a286..170aa21 100644 --- a/proto/grid/v1/device_event.proto +++ b/zaphiro/grid/v1/device_event.proto @@ -4,11 +4,11 @@ syntax = "proto3"; Messages to support device event detection in the platform. Device events are sub classes of Events. */ -package grid.v1; +package zaphiro.grid.v1; option go_package = "./grid/v1"; -import "grid/v1/event.proto"; +import "zaphiro/grid/v1/event.proto"; /* A device event. Headers used in rabbitMQ: diff --git a/proto/grid/v1/event.proto b/zaphiro/grid/v1/event.proto similarity index 98% rename from proto/grid/v1/event.proto rename to zaphiro/grid/v1/event.proto index f7e4574..b33d418 100644 --- a/proto/grid/v1/event.proto +++ b/zaphiro/grid/v1/event.proto @@ -5,7 +5,7 @@ Messages to support event detection in the platform. The event detected may be originated from different sources: devices (e.g. a PMU, RTU), services (e.g. state estimator), or an external service (e.g. SCADA). */ -package grid.v1; +package zaphiro.grid.v1; option go_package = "./grid/v1"; /* The collection of Event Status defined so far.*/ diff --git a/proto/grid/v1/fault.proto b/zaphiro/grid/v1/fault.proto similarity index 99% rename from proto/grid/v1/fault.proto rename to zaphiro/grid/v1/fault.proto index 3b7290c..fc5f66d 100644 --- a/proto/grid/v1/fault.proto +++ b/zaphiro/grid/v1/fault.proto @@ -4,7 +4,7 @@ syntax = "proto3"; Messages describing faults. */ -package grid.v1; +package zaphiro.grid.v1; option go_package = "./grid/v1"; /* diff --git a/proto/grid/v1/grid_event.proto b/zaphiro/grid/v1/grid_event.proto similarity index 96% rename from proto/grid/v1/grid_event.proto rename to zaphiro/grid/v1/grid_event.proto index 1f559c8..9a7688d 100644 --- a/proto/grid/v1/grid_event.proto +++ b/zaphiro/grid/v1/grid_event.proto @@ -4,12 +4,12 @@ syntax = "proto3"; Messages to support grid event detection in the platform. Grid events are sub classes of Events. */ -package grid.v1; +package zaphiro.grid.v1; option go_package = "./grid/v1"; -import "grid/v1/event.proto"; -import "grid/v1/fault.proto"; +import "zaphiro/grid/v1/event.proto"; +import "zaphiro/grid/v1/fault.proto"; /* A grid event. Headers used in rabbitMQ (only if not sent as part of `DataSet`): diff --git a/proto/grid/v1/topology.proto b/zaphiro/grid/v1/topology.proto similarity index 98% rename from proto/grid/v1/topology.proto rename to zaphiro/grid/v1/topology.proto index 68c1e91..947735c 100644 --- a/proto/grid/v1/topology.proto +++ b/zaphiro/grid/v1/topology.proto @@ -4,7 +4,7 @@ syntax = "proto3"; Messages to support topology data exchange in the platform. */ -package grid.v1; +package zaphiro.grid.v1; option go_package = "./grid/v1"; /* A topology computed information. diff --git a/proto/platform/v1/task.proto b/zaphiro/platform/v1/task.proto similarity index 98% rename from proto/platform/v1/task.proto rename to zaphiro/platform/v1/task.proto index b2670d9..b9f921b 100644 --- a/proto/platform/v1/task.proto +++ b/zaphiro/platform/v1/task.proto @@ -8,7 +8,7 @@ At the time being this is a proof of concept. Different changes may occurs when we actually start to use the event driven approach to coordinate services. */ -package platform.v1; +package zaphiro.platform.v1; option go_package = "./platform/v1"; //The different type of tasks run by the real time processing.