@@ -97,7 +97,7 @@ message Dispatch {
9797 google.protobuf.Timestamp end_time = 7 ;
9898
9999 // The component selector
100- DispatchComponentSelector selector = 8 ;
100+ ComponentSelector selector = 8 ;
101101
102102 // The "active" status
103103 // An active dispatch is eligible for processing, either immediately or at a scheduled
@@ -139,18 +139,18 @@ message TimeIntervalFilter {
139139
140140// Parameter for controlling which components a dispatch applies to
141141// Either a set of component IDs, or all components belonging to a category
142- message DispatchComponentSelector {
142+ message ComponentSelector {
143143 oneof selector {
144144 // Set of component IDs
145- DispatchComponentIDs dispatch_component_ids = 1 ;
145+ ComponentIDs component_ids = 1 ;
146146
147147 // Component category
148- frequenz.api.common.components.ComponentCategory dispatch_component_category = 2 ;
148+ frequenz.api.common.components.ComponentCategory component_category = 2 ;
149149 }
150150}
151151
152152// Wrapper for controlling dispatches with a set of component IDs
153- message DispatchComponentIDs {
153+ message ComponentIDs {
154154 // Set of component IDs
155155 repeated uint64 component_ids = 1 ;
156156}
@@ -262,7 +262,7 @@ message DispatchListRequest {
262262// Parameters for filtering the dispatch list
263263message DispatchFilter {
264264 // Filter by component ID or category
265- repeated DispatchComponentSelector selectors = 1 ;
265+ repeated ComponentSelector selectors = 1 ;
266266
267267 // Filter by time interval
268268 // If no interval is provided, all dispatches starting from the
@@ -302,7 +302,7 @@ message DispatchCreateRequest {
302302 google.protobuf.Timestamp end_time = 4 ;
303303
304304 // The component selector
305- DispatchComponentSelector selector = 5 ;
305+ ComponentSelector selector = 5 ;
306306
307307 // The "active" status
308308 bool is_active = 6 ;
@@ -332,7 +332,7 @@ message DispatchUpdateRequest {
332332 google.protobuf.Timestamp end_time = 3 ;
333333
334334 // The component selector
335- DispatchComponentSelector selector = 4 ;
335+ ComponentSelector selector = 4 ;
336336
337337 // The "active" status
338338 optional bool is_active = 5 ;
0 commit comments