Skip to content

Commit 980cf25

Browse files
committed
Make category/type update backwards compatible.
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent dbeea12 commit 980cf25

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,13 @@ message TargetComponents {
336336
repeated uint64 ids = 1;
337337
}
338338

339+
340+
// Deprecated: Use `CategoryTypeSet` instead
341+
message CategorySet {
342+
// Set of component categories
343+
repeated frequenz.api.common.v1.microgrid.components.ComponentCategory categories = 1;
344+
}
345+
339346
// Wrapper for controlling dispatches with a set of component categories and optional types
340347
// Required as we can't use `repeated` directly in a `oneof`
341348
message CategoryTypeSet {
@@ -370,8 +377,13 @@ message TargetComponents {
370377
// Set of component IDs
371378
IdSet component_ids = 1;
372379

373-
// Component categories
374-
CategoryTypeSet component_categories = 2;
380+
// Deprecated: Component categories
381+
// Use `CategoryTypeSet` instead
382+
// In future versions, this field will be removed.
383+
CategorySet component_categories = 2;
384+
385+
// Component categories with optional types
386+
CategoryTypeSet component_categories_types = 3;
375387
}
376388
}
377389

0 commit comments

Comments
 (0)