Skip to content

Commit b186af7

Browse files
committed
Use new electrical components names
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 82160b8 commit b186af7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

proto/frequenz/api/dispatch/v1/dispatch.proto

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ import "google/protobuf/field_mask.proto";
1717
import "google/protobuf/struct.proto";
1818
import "google/protobuf/timestamp.proto";
1919

20-
import "frequenz/api/common/v1/microgrid/components/battery.proto";
21-
import "frequenz/api/common/v1/microgrid/components/components.proto";
22-
import "frequenz/api/common/v1/microgrid/components/ev_charger.proto";
23-
import "frequenz/api/common/v1/microgrid/components/inverter.proto";
20+
import "frequenz/api/common/v1/microgrid/electrical_components/battery.proto";
21+
import "frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto";
22+
import "frequenz/api/common/v1/microgrid/electrical_components/ev_charger.proto";
23+
import "frequenz/api/common/v1/microgrid/electrical_components/inverter.proto";
2424
import "frequenz/api/common/v1/pagination/pagination_info.proto";
2525
import "frequenz/api/common/v1/pagination/pagination_params.proto";
2626
import "frequenz/api/common/v1/types/time_interval_filter.proto";
@@ -332,7 +332,7 @@ message TargetComponents {
332332
// Deprecated: Use `CategoryTypeSet` instead
333333
message CategorySet {
334334
// Set of component categories
335-
repeated frequenz.api.common.v1.microgrid.components.ComponentCategory categories = 1;
335+
repeated frequenz.api.common.v1.microgrid.electrical_components.ElectricalComponentCategory categories = 1;
336336
}
337337

338338
// Wrapper for controlling dispatches with a set of component categories and optional types
@@ -347,21 +347,21 @@ message TargetComponents {
347347
// only components of that type will be targeted.
348348
message CategoryAndType {
349349
// The category of the target component (required)
350-
frequenz.api.common.v1.microgrid.components.ComponentCategory category = 1;
350+
frequenz.api.common.v1.microgrid.electrical_components.ElectricalComponentCategory category = 1;
351351

352352
// The type of the target component (optional)
353353
oneof type {
354354
// The type of battery
355355
// Only applicable if the category is COMPONENT_CATEGORY_BATTERY
356-
frequenz.api.common.v1.microgrid.components.BatteryType battery = 2;
356+
frequenz.api.common.v1.microgrid.electrical_components.BatteryType battery = 2;
357357

358358
// The type of solar array
359359
// Only applicable if the category is COMPONENT_CATEGORY_INVERTER
360-
frequenz.api.common.v1.microgrid.components.InverterType inverter = 3;
360+
frequenz.api.common.v1.microgrid.electrical_components.InverterType inverter = 3;
361361

362362
// The type of EV charger
363363
// Only applicable if the category is COMPONENT_CATEGORY_EV_CHARGER
364-
frequenz.api.common.v1.microgrid.components.EvChargerType ev_charger = 4;
364+
frequenz.api.common.v1.microgrid.electrical_components.EvChargerType ev_charger = 4;
365365
}
366366
}
367367

0 commit comments

Comments
 (0)