Skip to content

Commit b4c2ce4

Browse files
Update proto file paths and packages related to microgrids
The following package renames have been done: - `frequenz.api.common.v1.components` -> `frequenz.api.common.v1.microgrid.components` - `frequenz.api.common.v1.lifetime` -> `frequenz.api.common.v1.microgrid.lifetime` - `frequenz.api.common.v1.sensors` -> `frequenz.api.common.v1.microgrid.sensors` Signed-off-by: Tiyash Basu <[email protected]>
1 parent 931c8e8 commit b4c2ce4

File tree

14 files changed

+136
-40
lines changed

14 files changed

+136
-40
lines changed

proto/frequenz/api/common/v1/components/battery.proto renamed to proto/frequenz/api/common/v1/microgrid/components/battery.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
syntax = "proto3";
1010

11-
package frequenz.api.common.v1.components;
11+
package frequenz.api.common.v1.microgrid.components;
1212

1313
// Enumerated battery types.
1414
enum BatteryType {

proto/frequenz/api/common/v1/components.proto renamed to proto/frequenz/api/common/v1/microgrid/components/components.proto

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88

99
syntax = "proto3";
1010

11-
package frequenz.api.common.v1.components;
12-
13-
import "frequenz/api/common/v1/components/battery.proto";
14-
import "frequenz/api/common/v1/components/ev_charger.proto";
15-
import "frequenz/api/common/v1/components/fuse.proto";
16-
import "frequenz/api/common/v1/components/grid.proto";
17-
import "frequenz/api/common/v1/components/inverter.proto";
18-
import "frequenz/api/common/v1/components/transformer.proto";
19-
import "frequenz/api/common/v1/lifetime.proto";
11+
package frequenz.api.common.v1.microgrid.components;
12+
2013
import "frequenz/api/common/v1/metrics.proto";
14+
import "frequenz/api/common/v1/microgrid/components/battery.proto";
15+
import "frequenz/api/common/v1/microgrid/components/ev_charger.proto";
16+
import "frequenz/api/common/v1/microgrid/components/fuse.proto";
17+
import "frequenz/api/common/v1/microgrid/components/grid.proto";
18+
import "frequenz/api/common/v1/microgrid/components/inverter.proto";
19+
import "frequenz/api/common/v1/microgrid/components/transformer.proto";
20+
import "frequenz/api/common/v1/microgrid/lifetime.proto";
2121

2222
import "google/protobuf/timestamp.proto";
2323

@@ -85,12 +85,12 @@ enum ComponentCategory {
8585
// Metadata specific to a microgrid component.
8686
message ComponentCategoryMetadataVariant {
8787
oneof metadata {
88-
frequenz.api.common.v1.components.Battery battery = 1;
89-
frequenz.api.common.v1.components.EvCharger ev_charger = 2;
90-
frequenz.api.common.v1.components.Fuse fuse = 3;
91-
frequenz.api.common.v1.components.GridConnectionPoint grid = 4;
92-
frequenz.api.common.v1.components.Inverter inverter = 5;
93-
frequenz.api.common.v1.components.VoltageTransformer
88+
frequenz.api.common.v1.microgrid.components.Battery battery = 1;
89+
frequenz.api.common.v1.microgrid.components.EvCharger ev_charger = 2;
90+
frequenz.api.common.v1.microgrid.components.Fuse fuse = 3;
91+
frequenz.api.common.v1.microgrid.components.GridConnectionPoint grid = 4;
92+
frequenz.api.common.v1.microgrid.components.Inverter inverter = 5;
93+
frequenz.api.common.v1.microgrid.components.VoltageTransformer
9494
voltage_transformer = 6;
9595
}
9696
}
@@ -140,7 +140,7 @@ message Component {
140140
ComponentStatus status = 8;
141141

142142
// The operational lifetime of the component.
143-
frequenz.api.common.v1.lifetime.Lifetime operational_lifetime = 9;
143+
frequenz.api.common.v1.microgrid.Lifetime operational_lifetime = 9;
144144
}
145145

146146
// ComponentConnection describes a single electrical link between two components
@@ -177,7 +177,7 @@ message ComponentConnection {
177177
uint64 destination_component_id = 2;
178178

179179
// The operational lifetime of the connection.
180-
frequenz.api.common.v1.lifetime.Lifetime operational_lifetime = 3;
180+
frequenz.api.common.v1.microgrid.Lifetime operational_lifetime = 3;
181181
}
182182

183183
// ComponentData message aggregates multiple metrics, operational states, and

proto/frequenz/api/common/v1/components/ev_charger.proto renamed to proto/frequenz/api/common/v1/microgrid/components/ev_charger.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
syntax = "proto3";
1010

11-
package frequenz.api.common.v1.components;
11+
package frequenz.api.common.v1.microgrid.components;
1212

1313
// Enumerated EV charger types.
1414
enum EvChargerType {

proto/frequenz/api/common/v1/components/fuse.proto renamed to proto/frequenz/api/common/v1/microgrid/components/fuse.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
syntax = "proto3";
1010

11-
package frequenz.api.common.v1.components;
11+
package frequenz.api.common.v1.microgrid.components;
1212

1313
// A representation of a fuse.
1414
// The fuse component represents a fuse in the microgrid. It is used to protect

proto/frequenz/api/common/v1/components/grid.proto renamed to proto/frequenz/api/common/v1/microgrid/components/grid.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
syntax = "proto3";
1010

11-
package frequenz.api.common.v1.components;
11+
package frequenz.api.common.v1.microgrid.components;
1212

1313
// A representation of a grid connection point. This is the point where a
1414
// microgrid connects to the grid.

proto/frequenz/api/common/v1/components/inverter.proto renamed to proto/frequenz/api/common/v1/microgrid/components/inverter.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
syntax = "proto3";
1010

11-
package frequenz.api.common.v1.components;
11+
package frequenz.api.common.v1.microgrid.components;
1212

1313
// Enumerated inverter types.
1414
enum InverterType {

proto/frequenz/api/common/v1/components/transformer.proto renamed to proto/frequenz/api/common/v1/microgrid/components/transformer.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
syntax = "proto3";
1010

11-
package frequenz.api.common.v1.components;
11+
package frequenz.api.common.v1.microgrid.components;
1212

1313
// A representation of a voltage transformer.
1414
// Voltage transformers are used to step up or step down the voltage, keeping

proto/frequenz/api/common/v1/lifetime.proto renamed to proto/frequenz/api/common/v1/microgrid/lifetime.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
syntax = "proto3";
99

10-
package frequenz.api.common.v1.lifetime;
10+
package frequenz.api.common.v1.microgrid;
1111

1212
import "google/protobuf/timestamp.proto";
1313

proto/frequenz/api/common/v1/sensors.proto renamed to proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
syntax = "proto3";
1010

11-
package frequenz.api.common.v1.sensors;
11+
package frequenz.api.common.v1.microgrid.sensors;
1212

13-
import "frequenz/api/common/v1/lifetime.proto";
1413
import "frequenz/api/common/v1/metrics.proto";
14+
import "frequenz/api/common/v1/microgrid/lifetime.proto";
1515

1616
import "google/protobuf/timestamp.proto";
1717

@@ -64,7 +64,7 @@ message Sensor {
6464
string model_name = 6;
6565

6666
// The operational lifetime of the sensor.
67-
frequenz.api.common.v1.lifetime.Lifetime operational_lifetime = 7;
67+
frequenz.api.common.v1.microgrid.Lifetime operational_lifetime = 7;
6868
}
6969

7070
// Enumrated sensor metrics.

0 commit comments

Comments
 (0)