forked from ugcs/ugcs-dotnet-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessages.proto
831 lines (665 loc) · 18.3 KB
/
Messages.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
option java_package = "com.ugcs.ucs.proto";
option java_outer_classname = "MessagesProto";
import "Domain.proto";
// Types (DTOs) ///////////////////////////////////////////////////////////////
message Wgs84LocationDto {
required double latitude = 1;
required double longitude = 2;
required double altitude = 3;
required AltitudeType altitudeType = 4;
}
message MeasurePointDto {
required double latitude = 1;
required double longitude = 2;
required double altitude = 3;
required AltitudeType altitudeType = 4;
optional double angle = 5;
optional double distance = 6;
}
message PlaceDto {
required Wgs84LocationDto location = 1;
optional string displayName = 2;
optional double rank = 3;
}
message VersionsInfoDto {
repeated Version versions = 1;
optional string releaseInfo = 2;
}
message StatisticsRecordDto {
required string parameter = 1;
required string value = 2;
}
message StatisticsDto {
required int64 time = 1;
required string clientUID = 2;
required string clientMAC = 3;
required string clientOsType = 4;
required string clientOsVersion = 5;
required string unityVersion = 6;
repeated StatisticsRecordDto details = 7;
}
message CommandSetDto {
repeated string commandCode = 1;
}
message LicensePermissionsDto {
required string licenseName = 1;
required int32 maxAuthenticatedHciSessions = 2;
required bool multinode = 3;
required bool kmlImport = 4;
required bool demImport = 5;
required bool groupOperations = 6;
repeated PlatformAndDoublePairDto maxAglAltitude = 7;
repeated PlatformAndDoublePairDto maxDistanceToHome = 8;
repeated PlatformAndIntegerPairDto maxBuildings = 9;
repeated PlatformAndBooleanPairDto customNfz = 10;
repeated PlatformAndBooleanPairDto airportNfzDisabling = 11;
repeated PlatformAndBooleanPairDto adsbReceiver = 12;
repeated PlatformAndBooleanPairDto videoRecording = 13;
repeated PlatformAndBooleanPairDto cameraFootprint = 14;
repeated PlatformAndBooleanPairDto adsbTransponder = 15;
repeated string forbiddenAlgorithmCodes = 16;
}
message PlatformAndBooleanPairDto {
required Platform platform = 1;
required bool value = 2;
}
message PlatformAndIntegerPairDto {
required Platform platform = 1;
required int32 value = 2;
}
message PlatformAndDoublePairDto {
required Platform platform = 1;
required double value = 2;
}
message VehicleTargetLocationDto {
required Vehicle vehicle = 1;
required int64 sequenceId = 2;
optional Wgs84LocationDto location = 3;
optional double acceptanceRadius = 4;
}
message VehicleCommandResultDto {
required Vehicle vehicle = 1;
required CommandStatus commandStatus = 2;
}
message ProgressDto {
required string title = 1;
required int32 progress = 2;
required int32 maxProgress = 3;
}
// Mapping
message AlgorithmsMappingDto {
repeated AlgorithmsDto algorithms = 1;
}
message FailsafeActionsMappingDto {
repeated FailsafeActionsDto failsafeActions = 1;
}
message TurnTypesMappingDto {
repeated PlatformTurnTypeDto platformTurnTypes = 1;
}
message ActionExecutionsMappingDto {
repeated AlgorithmActionExecutionDto algorithmActionExecutions = 1;
}
message CamerasMappingDto {
repeated ProfileCameraDto profileCameras = 1;
}
message AltitudeTypesMappingDto {
repeated AltitudeTypeDto altitudeTypes = 1;
}
// Keys and values
message PlatformAndVehicleTypePairDto {
required Platform platform = 1;
required VehicleType vehicleType = 2;
}
message FailsafeReasonActionsDto {
required FailsafeReason reason = 1;
repeated FailsafeAction actions = 2;
}
message FailsafeActionsDto {
required PlatformAndVehicleTypePairDto platformAndVehicleType = 1;
repeated FailsafeReasonActionsDto failsafeReasonActions = 2;
}
message AlgorithmAndActionCodeDto {
required TraverseAlgorithm algorithm= 1;
repeated ActionCode actionCodes = 2;
}
message AlgorithmsDto {
required PlatformAndVehicleTypePairDto platformAndVehicleType = 1;
repeated AlgorithmAndActionCodeDto algorithmAndActionCodes = 2;
}
message TurnTypeDto {
required string turnType = 1;
required string description = 2;
}
message PlatformTurnTypeDto {
required PlatformAndVehicleTypePairDto platformAndVehicleType = 1;
repeated TurnTypeDto turnTypes = 2;
}
message AltitudeTypeDto {
required string altitudeType = 1;
required string description = 2;
}
message ActionExecutionDto {
required string actionExecution = 1;
required string description = 2;
}
message AlgorithmActionExecutionDto {
required TraverseAlgorithm algorithm = 1;
repeated ActionExecutionDto actionExecution = 2;
}
message CameraDto {
required int32 cameraId = 1;
required string cameraName = 2;
}
message ProfileCameraDto {
required int32 profileId = 1;
repeated CameraDto cameras = 2;
}
// Messages ///////////////////////////////////////////////////////////////////
// Error
message Error {
optional string errorMessage = 1;
optional int32 errorCode = 2;
}
message AuthorizeHciRequest {
required int32 clientId = 1 [default = -1];
optional string locale = 2;
}
message AuthorizeHciResponse {
required int32 clientId = 1;
}
message SetHciLocaleRequest {
required int32 clientId = 1;
required string locale = 2;
}
message SetHciLocaleResponse {
}
message LoginRequest {
required int32 clientId = 1;
required string userLogin = 2;
required string userPassword = 3;
}
message LoginResponse {
required User user = 1;
}
message LogoutRequest {
required int32 clientId = 1;
}
message LogoutResponse {
}
message ProcessRouteRequest {
required int32 clientId = 1;
required Route route = 2;
}
message ProcessRouteResponse {
required ProcessedRoute processedRoute = 1;
}
message ConvertRouteAltitudesRequest {
required int32 clientId = 1;
required Route route = 2;
required AltitudeType altitudeType = 4;
}
message ConvertRouteAltitudesResponse {
required Route route = 1;
}
message ChangeRouteVehicleProfileRequest {
required int32 clientId = 1;
required Route route = 2;
required VehicleProfile newProfile = 3;
}
message ChangeRouteVehicleProfileResponse {
required Route route = 1;
repeated string warningMessage = 2;
}
message GetParametersSelectionValuesRequest {
required int32 clientId = 1;
required Route route = 2;
required TraverseAlgorithm algorithm = 3;
}
message GetParametersSelectionValuesResponse {
repeated Selection selections = 1;
}
message GetElevationProfileRequest {
required int32 clientId = 1;
required double samplingStep = 3;
repeated Wgs84LocationDto locations = 4;
optional int32 number = 5;
}
message GetElevationProfileResponse {
repeated Wgs84LocationDto locations = 1;
repeated double elevations = 2;
repeated double obstacleHeight = 3;
}
message CalculateSplineRequest {
required int32 clientId = 1;
repeated Waypoint waypounts = 2;
optional double accuracy = 3;
}
message CalculateSplineResponse {
repeated Wgs84LocationDto locations = 1;
}
// Transfer - Export / Import
message ExportRouteToXmlRequest {
required int32 clientId = 1;
required Route route = 2;
}
message ExportRouteToXmlResponse {
required bytes routeXml = 1;
}
message ImportRouteFromXmlRequest {
required int32 clientId = 1;
required bytes routeXml = 2;
}
message ImportRouteFromXmlResponse {
required Route route = 1;
}
message ExportMissionToXmlRequest {
required int32 clientId = 1;
required Mission mission = 2;
}
message ExportMissionToXmlResponse {
required bytes missionXml = 1;
}
message ImportMissionFromXmlRequest {
required int32 clientId = 1;
required bytes missionXml = 2;
}
message ImportMissionFromXmlResponse {
required Mission mission = 1;
}
message ExportTelemetryToXmlRequest {
required int32 clientId = 1;
required TelemetryInterval telemetryInterval = 2;
}
message ExportTelemetryToXmlResponse {
required bytes telemetryXml = 1;
}
message ImportTelemetryFromXmlRequest {
required int32 clientId = 1;
required bytes telemetryXml = 2;
required ConflictResolutionMode conflictResolutionMode = 3;
}
message ImportTelemetryFromXmlResponse {
required TelemetryInterval telemetryInterval = 1;
}
// Measuring
message GetLineOfSightRequest {
required int32 clientId = 1;
required MeasurePointDto observerPosition = 2;
required double maxDistance = 3;
required int32 approxPointsNumber = 4;
}
message GetLineOfSightResponse {
repeated MeasurePointDto points = 1;
}
// NFZ
message GetNfzListRequest {
required int32 clientId = 1;
required double minLatitude = 2;
required double minLongitude = 3;
required double maxLatitude = 4;
required double maxLongitude = 5;
optional bool refreshDependencies = 6 [default = false];
repeated string refreshExcludes = 7;
}
message GetNfzListResponse {
repeated NoFlightZone zones = 1;
}
message GetRasterGridRequest {
required int32 clientId = 1;
required double minLatitude = 3;
required double minLongitude = 4;
required double maxLatitude = 5;
required double maxLongitude = 6;
required int32 width = 7;
required int32 height = 8;
}
message GetRasterGridResponse {
repeated float values = 1;
required int32 width = 2;
required int32 height = 3;
required bool noData = 4;
}
message GetRasterValuesRequest {
required int32 clientId = 1;
repeated double latitudes = 3;
repeated double longitudes = 4;
}
message GetRasterValuesResponse {
repeated float values = 1;
required bool noData = 2;
}
message GetTelemetryRequest {
required int32 clientId = 1;
required Vehicle vehicle = 2;
required int64 fromTime = 3;
optional int64 toTime = 4;
optional int32 limit = 5 [default = 7200];
}
message GetTelemetryResponse {
repeated TelemetryDto telemetry = 1;
optional int64 nextTelemetryTime = 2;
}
message DeleteTelemetryRequest {
required int32 clientId = 1;
required Vehicle vehicle = 2;
optional int64 fromTime = 3;
optional int64 toTime = 4;
}
message DeleteTelemetryResponse {
}
message TraceTelemetryFramesRequest {
required int32 clientId = 1;
required Vehicle vehicle = 2;
required int64 originTime = 3;
required double interval = 4;
required int32 number = 5;
}
message TraceTelemetryFramesResponse {
repeated bool frames = 1;
repeated CommandSetDto commandFrames = 2;
}
message CountTelemetryRequest {
required int32 clientId = 1;
required Vehicle vehicle = 2;
optional int64 fromTime = 3;
optional int64 toTime = 4;
optional bool estimateTLogSize = 5 [default = false];
}
message CountTelemetryResponse {
required int64 count = 1;
optional int64 tLogSize = 2;
}
message GetKmlRouteRepresentationRequest {
required int32 clientId = 1;
required string routeName = 2;
required VehicleProfile routeVehicleProfile = 3;
repeated Wgs84LocationDto waypoints = 4;
}
message GetKmlRouteRepresentationResponse {
required bytes kmlData = 1;
}
message GetAdsbAircraftListRequest {
required int32 clientId = 1;
required Wgs84LocationDto location = 2;
required double radius = 3;
required double height = 4;
}
message GetAdsbAircraftListResponse {
repeated AdsbAircraft aircrafts = 1;
}
message SearchPlacesRequest {
required int32 clientId = 1;
required string query = 2;
required int32 limit = 3 [default = 7];
}
message SearchPlacesResponse {
repeated PlaceDto places = 1;
}
message GetVehicleLogRequest {
required int32 clientId = 1;
repeated Vehicle vehicles = 2;
optional int32 limit = 3 [default = 15];
optional SeverityLevel level = 4 [default = SL_INFORMATIONAL];
}
message GetVehicleLogResponse {
repeated VehicleLogEntry vehicleLogEntries = 1;
}
message GetVehicleLogByTimeRangeRequest {
required int32 clientId = 1;
repeated Vehicle vehicles = 2;
required int64 fromTime = 3;
required int64 toTime = 4;
optional SeverityLevel level = 5 [default = SL_INFORMATIONAL];
}
message GetVehicleLogByTimeRangeResponse {
repeated VehicleLogEntry vehicleLogEntries = 1;
}
message SendCommandRequest {
required int32 clientId = 1;
required Command command = 2;
repeated Vehicle vehicles = 3;
optional int64 interDelay = 4 [default = 0];
}
message SendCommandResponse {
repeated VehicleCommandResultDto commandResults = 1;
}
message UploadRouteRequest {
required int32 clientId = 1;
required Vehicle vehicle = 2;
required ProcessedRoute processedRoute = 3;
optional Action startAction = 4;
}
message UploadRouteResponse {
}
// Licensing and Version control
message GetLicenseRequest {
required int32 clientId = 1;
}
message GetLicenseResponse {
optional License license = 1;
required LicensePermissionsDto licensePermissions = 2;
}
message ActivateLicenseRequest {
required int32 clientId = 1;
required string activationCode = 2;
}
message ActivateLicenseResponse {
optional License license = 1;
}
message DeactivateLicenseRequest {
required int32 clientId = 1;
}
message DeactivateLicenseResponse {
}
message CheckForUpdatesRequest {
required int32 clientId = 1;
}
message CheckForUpdatesResponse {
optional VersionsInfoDto newVersions = 1;
}
// Statistics
message SendStatisticsRequest {
required int32 clientId = 1;
required StatisticsDto statistics = 2;
}
message SendStatisticsResponse {
required bool accepted = 1;
}
// Generic CRUD services
// GetObject & CreateOrUpdateObject specifics:
// If refreshDependencies field is set to false (default), object references
// WILL NOT be initialized, even if they exist. Should be used in cases,
// that don't access dependencies data to reduce processing overhead.
// If withComposites field is set to true, domain object references,
// marked as composite references would also be affected by update operations,
// such as CreateOrUpdate and Delete
message GetObjectListRequest {
required int32 clientId = 1;
required string objectType = 2;
optional bool refreshDependencies = 3 [default = false];
repeated string refreshExcludes = 4;
optional bool translate = 5 [default = true];
}
message GetObjectListResponse {
required string objectType = 1;
repeated DomainObjectWrapper objects = 2;
}
message GetObjectRequest {
required int32 clientId = 1;
required string objectType = 2;
required int32 objectId = 3;
optional bool refreshDependencies = 4 [default = false];
repeated string refreshExcludes = 5;
optional bool translate = 6 [default = true];
}
message GetObjectResponse {
required string objectType = 1;
required DomainObjectWrapper object = 2;
}
message CreateOrUpdateObjectRequest {
required int32 clientId = 1;
required string objectType = 2;
required DomainObjectWrapper object = 3;
optional bool withComposites = 4 [default = true];
optional bool acquireLock = 5 [default = false];
}
message CreateOrUpdateObjectResponse {
required string objectType = 1;
required DomainObjectWrapper object = 2;
}
message UpdateObjectFieldsRequest {
required int32 clientId = 1;
required string objectType = 2;
required DomainObjectWrapper object = 3;
repeated string fieldNames = 4;
optional bool acquireLock = 5 [default = false];
}
message UpdateObjectFieldsResponse {
required string objectType = 1;
required DomainObjectWrapper object = 2;
}
message DeleteObjectRequest {
required int32 clientId = 1;
required string objectType = 2;
required int32 objectId = 3;
}
message DeleteObjectResponse {
required string objectType = 1;
required int32 objectId = 2;
optional int32 objectVersion = 3;
}
message GetMappingRequest {
required int32 clientId = 1;
optional bool getAlgorithms = 2;
optional bool getFailsafeActions = 3;
optional bool getWaypointTurnTypes = 4;
optional bool getActionExecutions = 5;
optional bool getCameras = 6;
optional bool getAltitudeTypes = 7;
}
message GetMappingResponse {
required int32 clientId = 1;
optional AlgorithmsMappingDto algorithmsMapping = 2;
optional FailsafeActionsMappingDto failsafeActionsMapping = 3;
optional TurnTypesMappingDto waypointTurnTypesMapping = 4;
optional ActionExecutionsMappingDto actionExecutionsMapping = 5;
optional CamerasMappingDto camerasMapping = 6;
optional AltitudeTypesMappingDto altitudeTypesMapping = 7;
}
// Locks
message AcquireLockRequest {
required int32 clientId = 1;
required string objectType = 2;
required int32 objectId = 3;
}
message AcquireLockResponse {
}
message ReleaseLockRequest {
required int32 clientId = 1;
required string objectType = 2;
required int32 objectId = 3;
optional bool ifExclusive = 4 [default = false];
}
message ReleaseLockResponse {
}
message CheckLockRequest {
required int32 clientId = 1;
required string objectType = 2;
required int32 objectId = 3;
}
message CheckLockResponse {
required string objectType = 1;
required int32 objectId = 2;
optional Lock lock = 3; // null if object is free
}
message CheckMultipleLocksRequest {
required int32 clientId = 1;
required string objectType = 2;
repeated int32 objectIds = 3;
}
message CheckMultipleLocksResponse {
required string objectType = 1;
repeated int32 objectIds = 2;
repeated Lock locks = 3;
}
message GetMissionPreferencesRequest {
required int32 clientId = 1;
required User user = 2;
optional Mission mission = 3;
}
message GetMissionPreferencesResponse {
repeated MissionPreference preferences = 1;
}
message UpdateMissionPreferencesRequest {
required int32 clientId = 1;
repeated MissionPreference preferences = 2;
}
message UpdateMissionPreferencesResponse {
}
message SubmitUtmOperationRequest {
required int32 clientId = 1;
required UtmOperation utmOperation = 2;
required ProcessedRoute processedRoute = 3;
}
message SubmitUtmOperationResponse {
required UtmOperation utmOperation = 1;
}
message GetCapabilitiesRequest {
required int32 clientId = 1;
}
message GetCapabilitiesResponse {
required bool utm = 1 [default = false];
}
message GetVehicleTargetLocationsRequest {
required int32 clientId = 1;
}
message GetVehicleTargetLocationsResponse {
required int32 clientId = 1;
repeated VehicleTargetLocationDto targetLocations = 2;
}
// Operations
message OperationStatus {
repeated ProgressDto progressStack = 1;
}
message OperationStream {
required string streamId = 1;
// empty chunk denotes end of stream
required bytes chunk = 2;
}
message OperationStreamRequest {
required string streamId = 1;
required int32 chunkLength = 2;
}
message CancelOperationRequest {
required int32 requestId = 1;
}
message CancelOperationResponse {
}
message StreamTestRequest {
required int32 clientId = 1;
}
message StreamTestResponse {
}
message ProgressTestRequest {
required int32 clientId = 1;
}
message ProgressTestResponse {
}
// Events
message Notification {
required int32 subscriptionId = 1;
required EventWrapper event = 2;
}
message SubscribeEventRequest {
required int32 clientId = 1;
required EventSubscriptionWrapper subscription = 2;
}
message SubscribeEventResponse {
required int32 subscriptionId = 1;
}
message UnsubscribeEventRequest {
required int32 clientId = 1;
required int32 subscriptionId = 2;
}
message UnsubscribeEventResponse {
}