@@ -42,34 +42,6 @@ service DispatchService {
4242 }
4343}
4444
45- // Possible dispatch types
46- enum DispatchType {
47- // Unspecified dispatch type, used mainly for error handling
48- DISPATCH_TYPE_UNSPECIFIED = 0 ;
49-
50- // Shutdown dispatch event
51- DISPATCH_TYPE_SHUTDOWN = 1 ;
52-
53- // Charge battery dispatch event
54- DISPATCH_TYPE_BATTERY_CHARGE = 2 ;
55-
56- // Discharge battery dispatch event
57- DISPATCH_TYPE_BATTERY_DISCHARGE = 3 ;
58-
59- // Frequency containment reserve dispatch event
60- DISPATCH_TYPE_FCR = 4 ;
61-
62- // FCR prequalification, charge test
63- DISPATCH_TYPE_FCR_PREQUALIFICATION_CHARGE = 5 ;
64-
65- // FCR prequalification, discharge test
66- DISPATCH_TYPE_FCR_PREQUALIFICATION_DISCHARGE = 6 ;
67-
68- // FCR prequalification, cancellation of a charge and discharge test
69- // for a given battery
70- DISPATCH_TYPE_FCR_PREQUALIFICATION_CANCEL = 7 ;
71- }
72-
7345// Possible dispatch statuses
7446enum DispatchStatus {
7547 // Unspecified dispatch status, used mainly for error handling
@@ -127,7 +99,7 @@ message DispatchFilter {
12799 repeated uint64 microgrid_ids = 2 ;
128100
129101 // Filter by dispatch type
130- repeated DispatchType types = 3 ;
102+ repeated string types = 3 ;
131103
132104 // Filter by component ID or category
133105 repeated DispatchComponentSelector selectors = 4 ;
@@ -145,7 +117,7 @@ message Dispatch {
145117 uint64 microgrid_id = 2 ;
146118
147119 // The type of dispatch
148- DispatchType type = 3 ;
120+ string type = 3 ;
149121
150122 // The start time
151123 google.protobuf.Timestamp start_time = 4 ;
@@ -178,7 +150,7 @@ message DispatchCreateRequest {
178150 uint64 microgrid_id = 1 ;
179151
180152 // The type of dispatch
181- DispatchType type = 2 ;
153+ string type = 2 ;
182154
183155 // The start time
184156 google.protobuf.Timestamp start_time = 3 ;
@@ -205,7 +177,7 @@ message DispatchUpdateRequest {
205177 optional uint64 microgrid_id = 2 ;
206178
207179 // The type of dispatch
208- optional DispatchType type = 3 ;
180+ optional string type = 3 ;
209181
210182 // The start time
211183 optional google.protobuf.Timestamp start_time = 4 ;
0 commit comments