@@ -14,12 +14,11 @@ package frequenz.api.dispatch;
1414
1515import "google/api/annotations.proto" ;
1616import "google/protobuf/empty.proto" ;
17+ import "google/protobuf/struct.proto" ;
1718import "google/protobuf/timestamp.proto" ;
1819
1920import "frequenz/api/common/components.proto" ;
2021
21- import "frequenz/api/dispatch/fcr/prequalification.proto" ;
22-
2322service DispatchService {
2423 // Returns a list of all dispatches
2524 rpc ListDispatches (DispatchFilter ) returns (DispatchList ) {
@@ -133,12 +132,6 @@ message DispatchFilter {
133132 TimeIntervalFilter time_interval = 5 ;
134133}
135134
136- message DispatchSettings {
137- oneof settings {
138- fcr.prequalification.FcrPrequalificationSettings fcr_prequal_settings = 1 ;
139- }
140- }
141-
142135// Message representing one dispatch
143136message Dispatch {
144137 // The dispatch identifier
@@ -166,7 +159,7 @@ message Dispatch {
166159 DispatchStatus status = 8 ;
167160
168161 // The dispatch settings
169- DispatchSettings settings = 9 ;
162+ google.protobuf.Struct settings = 9 ;
170163}
171164
172165// A list of dispatches
@@ -196,7 +189,7 @@ message DispatchCreateRequest {
196189 DispatchStatus status = 6 ;
197190
198191 // The dispatch settings
199- DispatchSettings settings = 7 ;
192+ google.protobuf.Struct settings = 7 ;
200193}
201194
202195// Message to update the dispatch with the given ID, with the given attributes
@@ -226,5 +219,5 @@ message DispatchUpdateRequest {
226219 optional DispatchStatus status = 8 ;
227220
228221 // The dispatch settings
229- optional DispatchSettings settings = 9 ;
222+ optional google.protobuf.Struct settings = 9 ;
230223}
0 commit comments