nominal-api 0.1198.0

API bindings for the Nominal platform
Documentation
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
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
// This file is @generated by prost-build.
/// Authentication configuration for OPC-UA server connection
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcAuthenticationConfig {
    /// Authentication configuration for OPC-UA server connection
    #[prost(
        oneof = "opc_authentication_config::OpcAuthenticationConfig",
        tags = "1, 2, 3"
    )]
    pub opc_authentication_config: ::core::option::Option<
        opc_authentication_config::OpcAuthenticationConfig,
    >,
}
/// Nested message and enum types in `OpcAuthenticationConfig`.
pub mod opc_authentication_config {
    /// Authentication configuration for OPC-UA server connection
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum OpcAuthenticationConfig {
        #[prost(message, tag = "1")]
        Anonymous(super::super::super::super::google::protobuf::Empty),
        #[prost(message, tag = "2")]
        UsernamePassword(super::OpcUsernamePasswordAuthentication),
        #[prost(message, tag = "3")]
        Token(super::OpcTokenAuthentication),
    }
}
/// Authentication configuration for OPC-UA server connection with secrets
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcAuthenticationConfigSecret {
    #[prost(
        oneof = "opc_authentication_config_secret::OpcAuthenticationConfig",
        tags = "1, 2, 3"
    )]
    pub opc_authentication_config: ::core::option::Option<
        opc_authentication_config_secret::OpcAuthenticationConfig,
    >,
}
/// Nested message and enum types in `OpcAuthenticationConfigSecret`.
pub mod opc_authentication_config_secret {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum OpcAuthenticationConfig {
        #[prost(message, tag = "1")]
        Anonymous(super::super::super::super::google::protobuf::Empty),
        #[prost(message, tag = "2")]
        UsernamePassword(super::OpcUsernamePasswordAuthenticationSecret),
        #[prost(message, tag = "3")]
        Token(super::OpcTokenAuthenticationSecret),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUsernamePasswordAuthentication {
    #[prost(string, tag = "1")]
    pub username: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUsernamePasswordAuthenticationSecret {
    #[prost(string, tag = "1")]
    pub username: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub password: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcTokenAuthentication {
    #[prost(string, tag = "1")]
    pub token: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcTokenAuthenticationSecret {
    #[prost(string, tag = "1")]
    pub token: ::prost::alloc::string::String,
}
/// The identifier field for an OPC-UA node
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcIdentifierValue {
    #[prost(oneof = "opc_identifier_value::OpcIdentifierValue", tags = "1, 2")]
    pub opc_identifier_value: ::core::option::Option<
        opc_identifier_value::OpcIdentifierValue,
    >,
}
/// Nested message and enum types in `OpcIdentifierValue`.
pub mod opc_identifier_value {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum OpcIdentifierValue {
        #[prost(int32, tag = "1")]
        Numeric(i32),
        #[prost(string, tag = "2")]
        String(::prost::alloc::string::String),
    }
}
/// An OPC-UA node
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcNode {
    #[prost(uint32, optional, tag = "1")]
    pub namespace: ::core::option::Option<u32>,
    #[prost(message, optional, tag = "2")]
    pub identifier: ::core::option::Option<OpcIdentifierValue>,
}
/// How do you want to map the names of OPC-UA nodes to Nominal channels?
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaChannelNamingConvention {
    #[prost(
        oneof = "opc_ua_channel_naming_convention::NamingConvention",
        tags = "1, 2, 3, 4"
    )]
    pub naming_convention: ::core::option::Option<
        opc_ua_channel_naming_convention::NamingConvention,
    >,
}
/// Nested message and enum types in `OpcUaChannelNamingConvention`.
pub mod opc_ua_channel_naming_convention {
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct OpcUaNodeId {}
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct OpcUaBrowseName {}
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct OpcUaDisplayName {}
    /// Configuration for full path naming convention
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct OpcUaFullPath {
        /// We will build path up to any of these nodes, or the Objects folder.
        #[prost(message, repeated, tag = "1")]
        pub root_nodes: ::prost::alloc::vec::Vec<super::OpcNode>,
        /// Custom delimiter for path separation. Defaults to "/" if not specified.
        #[prost(string, tag = "2")]
        pub delimiter: ::prost::alloc::string::String,
        /// Array TagNames to extract out of the path. For example, if the path is "/airplane/wing\[1\]/drag",
        /// specifying the TagName "wing" would represent this with the channel "/airplane/drag" with "wing":"1" as a tag.
        #[prost(string, repeated, tag = "3")]
        pub array_tag_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum NamingConvention {
        /// For example, "NodeId{ns=3;i=1010}"
        #[prost(message, tag = "1")]
        NodeId(OpcUaNodeId),
        /// The "name" field under the "BrowseName" attribute
        #[prost(message, tag = "2")]
        BrowseName(OpcUaBrowseName),
        /// The "text" field under the "DisplayName" attribute
        #[prost(message, tag = "3")]
        DisplayName(OpcUaDisplayName),
        /// The full path of the node, separated by a delimiter. Use this setting for creating the hierarchical prefix tree.
        #[prost(message, tag = "4")]
        FullPath(OpcUaFullPath),
    }
}
/// Configuration for subscription-based data acquisition
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OpcUaSubscriptionConfig {
    /// How to handle situations where there are failed monitors.
    #[prost(enumeration = "OpcUaFailedMonitorHandling", tag = "1")]
    pub failed_monitor_handling: i32,
    /// The data change filter to be applied for the monitored items in the subscription.
    #[prost(message, optional, tag = "2")]
    pub data_change_filter: ::core::option::Option<OpcUaDataChangeFilter>,
}
/// Configuration for polling-based data acquisition
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OpcUaPollingConfig {
    /// The interval between polls in milliseconds. Defaults to 1000ms if not specified.
    #[prost(uint64, tag = "1")]
    pub polling_interval_ms: u64,
}
/// Configuration for how data should be acquired from the OPC-UA server
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OpcUaDataAcquisitionConfig {
    #[prost(oneof = "opc_ua_data_acquisition_config::AcquisitionMode", tags = "1, 2")]
    pub acquisition_mode: ::core::option::Option<
        opc_ua_data_acquisition_config::AcquisitionMode,
    >,
}
/// Nested message and enum types in `OpcUaDataAcquisitionConfig`.
pub mod opc_ua_data_acquisition_config {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum AcquisitionMode {
        /// Use OPC-UA subscriptions to receive data changes pushed from the server
        #[prost(message, tag = "1")]
        Subscription(super::OpcUaSubscriptionConfig),
        /// Periodically poll the server for current node values
        #[prost(message, tag = "2")]
        Polling(super::OpcUaPollingConfig),
    }
}
/// Configuration for connecting to an OPC-UA server
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaConnectorDetails {
    #[prost(string, tag = "1")]
    pub uri: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub authentication_config: ::core::option::Option<OpcAuthenticationConfig>,
    #[prost(message, optional, tag = "3")]
    pub scraping_config: ::core::option::Option<OpcUaScrapingConfig>,
}
/// Updated configuration for connecting to an OPC-UA server
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaConnectorDetailsUpdates {
    #[prost(string, optional, tag = "1")]
    pub uri: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "2")]
    pub authentication_config: ::core::option::Option<OpcAuthenticationConfig>,
    #[prost(message, optional, tag = "3")]
    pub scraping_config: ::core::option::Option<OpcUaScrapingConfigUpdates>,
}
/// Configuration for connecting to an OPC-UA server with secrets
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaConnectorDetailsSecret {
    #[prost(string, tag = "1")]
    pub uri: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub authentication_config: ::core::option::Option<OpcAuthenticationConfigSecret>,
    #[prost(message, optional, tag = "3")]
    pub scraping_config: ::core::option::Option<OpcUaScrapingConfig>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaTraversalConfig {
    /// Root nodes to start traversing for variable nodes. For each node specified here, we will recursively traverse
    /// child nodes until there are none left. If empty, defaults to starting from the objects folder node
    /// NodeId{ns=0;i=85}
    #[prost(message, repeated, tag = "1")]
    pub root_nodes: ::prost::alloc::vec::Vec<OpcNode>,
    /// We will not subscribe to any of these nodes.
    #[prost(message, repeated, tag = "2")]
    pub skip_nodes: ::prost::alloc::vec::Vec<OpcNode>,
    /// The type of references that we will follow when traversing the root nodes in the OPC UA server.
    #[prost(enumeration = "OpcUaReferenceExplorationType", tag = "3")]
    pub reference_exploration_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaDirectNodeSubscription {
    #[prost(message, repeated, tag = "1")]
    pub nodes: ::prost::alloc::vec::Vec<OpcNode>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaNodeExplorationConfig {
    #[prost(
        oneof = "opc_ua_node_exploration_config::OpcUaNodeExplorationConfig",
        tags = "1, 2"
    )]
    pub opc_ua_node_exploration_config: ::core::option::Option<
        opc_ua_node_exploration_config::OpcUaNodeExplorationConfig,
    >,
}
/// Nested message and enum types in `OpcUaNodeExplorationConfig`.
pub mod opc_ua_node_exploration_config {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum OpcUaNodeExplorationConfig {
        #[prost(message, tag = "1")]
        OpcUaTraversalConfig(super::OpcUaTraversalConfig),
        #[prost(message, tag = "2")]
        OpcUaDirectNodeSubscription(super::OpcUaDirectNodeSubscription),
    }
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OpcUaTimestampHandling {
    #[prost(oneof = "opc_ua_timestamp_handling::TimestampType", tags = "1, 2, 3")]
    pub timestamp_type: ::core::option::Option<opc_ua_timestamp_handling::TimestampType>,
}
/// Nested message and enum types in `OpcUaTimestampHandling`.
pub mod opc_ua_timestamp_handling {
    /// Use the server timestamp <https://reference.opcfoundation.org/Core/Part4/v104/docs/7.7.4>
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct OpcUaServerTime {}
    /// Use the source timestamp <https://reference.opcfoundation.org/Core/Part4/v104/docs/7.7.3>
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct OpcUaSourceTime {}
    /// Use the server timestamp, but add an optional offset. By default, the offset will be the time now.
    /// This is useful for when the server starts at an epoch time of 0.
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct OpcUaRelativeTimestamp {
        #[prost(message, optional, tag = "1")]
        pub offset: ::core::option::Option<
            super::super::super::super::google::protobuf::Timestamp,
        >,
    }
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum TimestampType {
        #[prost(message, tag = "1")]
        Server(OpcUaServerTime),
        #[prost(message, tag = "2")]
        Source(OpcUaSourceTime),
        #[prost(message, tag = "3")]
        Relative(OpcUaRelativeTimestamp),
    }
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct OpcUaDataChangeFilter {
    /// The trigger for the data change filter.
    #[prost(enumeration = "OpcUaDataChangeTrigger", tag = "1")]
    pub trigger: i32,
    #[prost(enumeration = "OpcUaDeadbandType", tag = "2")]
    pub deadband_type: i32,
    #[prost(double, tag = "3")]
    pub deadband_value: f64,
}
/// Configuration for determining how data is discovered and handled
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaScrapingConfig {
    #[prost(message, optional, tag = "1")]
    pub node_exploration_config: ::core::option::Option<OpcUaNodeExplorationConfig>,
    /// The browse name of the node under which the unit is stored for the nodes we scrape.
    #[prost(string, tag = "2")]
    pub unit_node_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub channel_naming_convention: ::core::option::Option<OpcUaChannelNamingConvention>,
    /// If true, we will override the host and port of the OPC UA server with the host and port of the original server URL.
    #[prost(bool, tag = "4")]
    pub override_host: bool,
    /// How we will handle unknown data types when we read them from the server
    #[prost(enumeration = "OpcUaUnknownDataTypeHandling", tag = "5")]
    pub unknown_data_type_handling: i32,
    /// Deprecated: Use data_acquisition_config.subscription.failed_monitor_handling instead.
    #[deprecated]
    #[prost(enumeration = "OpcUaFailedMonitorHandling", optional, tag = "6")]
    pub failed_monitor_handling: ::core::option::Option<i32>,
    /// What timestamps should we write for the channels?
    #[prost(message, optional, tag = "7")]
    pub timestamp_handling: ::core::option::Option<OpcUaTimestampHandling>,
    /// Deprecated: Use data_acquisition_config.subscription.data_change_filter instead.
    #[deprecated]
    #[prost(message, optional, tag = "8")]
    pub data_change_filter: ::core::option::Option<OpcUaDataChangeFilter>,
    /// Configuration for how data should be acquired from the server.
    /// If not specified, defaults to subscription mode using the deprecated fields above.
    #[prost(message, optional, tag = "9")]
    pub data_acquisition_config: ::core::option::Option<OpcUaDataAcquisitionConfig>,
}
/// Updated configuration for determining how data is discovered and handled
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OpcUaScrapingConfigUpdates {
    #[prost(message, optional, tag = "1")]
    pub node_exploration_config: ::core::option::Option<OpcUaNodeExplorationConfig>,
    /// The browse name of the node under which the unit is stored for the nodes we scrape.
    #[prost(string, optional, tag = "2")]
    pub unit_node_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub channel_naming_convention: ::core::option::Option<OpcUaChannelNamingConvention>,
    /// If true, we will override the host and port of the OPC UA server with the host and port of the original server URL.
    #[prost(bool, optional, tag = "4")]
    pub override_host: ::core::option::Option<bool>,
    /// How we will handle unknown data types when we read them from the server
    #[prost(enumeration = "OpcUaUnknownDataTypeHandling", optional, tag = "5")]
    pub unknown_data_type_handling: ::core::option::Option<i32>,
    /// Deprecated: Use data_acquisition_config.subscription.failed_monitor_handling instead.
    #[deprecated]
    #[prost(enumeration = "OpcUaFailedMonitorHandling", optional, tag = "6")]
    pub failed_monitor_handling: ::core::option::Option<i32>,
    /// What timestamps should we write for the channels?
    #[prost(message, optional, tag = "7")]
    pub timestamp_handling: ::core::option::Option<OpcUaTimestampHandling>,
    /// Deprecated: Use data_acquisition_config.subscription.data_change_filter instead.
    #[deprecated]
    #[prost(message, optional, tag = "8")]
    pub data_change_filter: ::core::option::Option<OpcUaDataChangeFilter>,
    /// Configuration for how data should be acquired from the server.
    #[prost(message, optional, tag = "9")]
    pub data_acquisition_config: ::core::option::Option<OpcUaDataAcquisitionConfig>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OpcUaReferenceExplorationType {
    Unspecified = 0,
    Organizes = 1,
    HierarchicalReferences = 2,
}
impl OpcUaReferenceExplorationType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "OPC_UA_REFERENCE_EXPLORATION_TYPE_UNSPECIFIED",
            Self::Organizes => "OPC_UA_REFERENCE_EXPLORATION_TYPE_ORGANIZES",
            Self::HierarchicalReferences => {
                "OPC_UA_REFERENCE_EXPLORATION_TYPE_HIERARCHICAL_REFERENCES"
            }
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OPC_UA_REFERENCE_EXPLORATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "OPC_UA_REFERENCE_EXPLORATION_TYPE_ORGANIZES" => Some(Self::Organizes),
            "OPC_UA_REFERENCE_EXPLORATION_TYPE_HIERARCHICAL_REFERENCES" => {
                Some(Self::HierarchicalReferences)
            }
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OpcUaUnknownDataTypeHandling {
    Unspecified = 0,
    /// If we encounter an unknown data type, we will error out
    Error = 1,
    /// If we encounter an unknown data type, we will assume it is a double
    TreatAsDouble = 2,
    /// If we encounter an unknown data type, we will assume it is a string
    TreatAsString = 3,
}
impl OpcUaUnknownDataTypeHandling {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "OPC_UA_UNKNOWN_DATA_TYPE_HANDLING_UNSPECIFIED",
            Self::Error => "OPC_UA_UNKNOWN_DATA_TYPE_HANDLING_ERROR",
            Self::TreatAsDouble => "OPC_UA_UNKNOWN_DATA_TYPE_HANDLING_TREAT_AS_DOUBLE",
            Self::TreatAsString => "OPC_UA_UNKNOWN_DATA_TYPE_HANDLING_TREAT_AS_STRING",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OPC_UA_UNKNOWN_DATA_TYPE_HANDLING_UNSPECIFIED" => Some(Self::Unspecified),
            "OPC_UA_UNKNOWN_DATA_TYPE_HANDLING_ERROR" => Some(Self::Error),
            "OPC_UA_UNKNOWN_DATA_TYPE_HANDLING_TREAT_AS_DOUBLE" => {
                Some(Self::TreatAsDouble)
            }
            "OPC_UA_UNKNOWN_DATA_TYPE_HANDLING_TREAT_AS_STRING" => {
                Some(Self::TreatAsString)
            }
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OpcUaFailedMonitorHandling {
    Unspecified = 0,
    Error = 1,
    Ignore = 2,
}
impl OpcUaFailedMonitorHandling {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "OPC_UA_FAILED_MONITOR_HANDLING_UNSPECIFIED",
            Self::Error => "OPC_UA_FAILED_MONITOR_HANDLING_ERROR",
            Self::Ignore => "OPC_UA_FAILED_MONITOR_HANDLING_IGNORE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OPC_UA_FAILED_MONITOR_HANDLING_UNSPECIFIED" => Some(Self::Unspecified),
            "OPC_UA_FAILED_MONITOR_HANDLING_ERROR" => Some(Self::Error),
            "OPC_UA_FAILED_MONITOR_HANDLING_IGNORE" => Some(Self::Ignore),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OpcUaDataChangeTrigger {
    Unspecified = 0,
    StatusOnly = 1,
    StatusValue = 2,
    StatusValueTimestamp = 3,
}
impl OpcUaDataChangeTrigger {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "OPC_UA_DATA_CHANGE_TRIGGER_UNSPECIFIED",
            Self::StatusOnly => "OPC_UA_DATA_CHANGE_TRIGGER_STATUS_ONLY",
            Self::StatusValue => "OPC_UA_DATA_CHANGE_TRIGGER_STATUS_VALUE",
            Self::StatusValueTimestamp => {
                "OPC_UA_DATA_CHANGE_TRIGGER_STATUS_VALUE_TIMESTAMP"
            }
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OPC_UA_DATA_CHANGE_TRIGGER_UNSPECIFIED" => Some(Self::Unspecified),
            "OPC_UA_DATA_CHANGE_TRIGGER_STATUS_ONLY" => Some(Self::StatusOnly),
            "OPC_UA_DATA_CHANGE_TRIGGER_STATUS_VALUE" => Some(Self::StatusValue),
            "OPC_UA_DATA_CHANGE_TRIGGER_STATUS_VALUE_TIMESTAMP" => {
                Some(Self::StatusValueTimestamp)
            }
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OpcUaDeadbandType {
    Unspecified = 0,
    None = 1,
    Absolute = 2,
    Percent = 3,
}
impl OpcUaDeadbandType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "OPC_UA_DEADBAND_TYPE_UNSPECIFIED",
            Self::None => "OPC_UA_DEADBAND_TYPE_NONE",
            Self::Absolute => "OPC_UA_DEADBAND_TYPE_ABSOLUTE",
            Self::Percent => "OPC_UA_DEADBAND_TYPE_PERCENT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OPC_UA_DEADBAND_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "OPC_UA_DEADBAND_TYPE_NONE" => Some(Self::None),
            "OPC_UA_DEADBAND_TYPE_ABSOLUTE" => Some(Self::Absolute),
            "OPC_UA_DEADBAND_TYPE_PERCENT" => Some(Self::Percent),
            _ => None,
        }
    }
}
/// Request to create a new data connector
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateDataConnectorRequest {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub connection_details: ::core::option::Option<DataConnectorDetails>,
    #[prost(string, tag = "4")]
    pub workspace_rid: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub target_dataset_rid: ::prost::alloc::string::String,
}
/// Response for creating a new data connector
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateDataConnectorResponse {
    #[prost(message, optional, tag = "1")]
    pub data_connector: ::core::option::Option<DataConnector>,
}
/// A configured data connector
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataConnector {
    #[prost(string, tag = "1")]
    pub data_connector_rid: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "4")]
    pub connection_details: ::core::option::Option<DataConnectorDetailsSecrets>,
    #[prost(string, tag = "5")]
    pub workspace_rid: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "6")]
    pub target_dataset_rid: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "7")]
    pub created_at: ::core::option::Option<
        super::super::super::google::protobuf::Timestamp,
    >,
}
/// Union type for different data connector types
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataConnectorDetails {
    #[prost(oneof = "data_connector_details::DataConnectorDetails", tags = "1")]
    pub data_connector_details: ::core::option::Option<
        data_connector_details::DataConnectorDetails,
    >,
}
/// Nested message and enum types in `DataConnectorDetails`.
pub mod data_connector_details {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum DataConnectorDetails {
        #[prost(message, tag = "1")]
        OpcUa(super::OpcUaConnectorDetails),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataConnectorDetailsUpdates {
    #[prost(
        oneof = "data_connector_details_updates::DataConnectorDetailsUpdates",
        tags = "1"
    )]
    pub data_connector_details_updates: ::core::option::Option<
        data_connector_details_updates::DataConnectorDetailsUpdates,
    >,
}
/// Nested message and enum types in `DataConnectorDetailsUpdates`.
pub mod data_connector_details_updates {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum DataConnectorDetailsUpdates {
        #[prost(message, tag = "1")]
        OpcUa(super::OpcUaConnectorDetailsUpdates),
    }
}
/// Union type for different data connector types with secrets
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataConnectorDetailsSecrets {
    #[prost(oneof = "data_connector_details_secrets::DataConnectorDetails", tags = "1")]
    pub data_connector_details: ::core::option::Option<
        data_connector_details_secrets::DataConnectorDetails,
    >,
}
/// Nested message and enum types in `DataConnectorDetailsSecrets`.
pub mod data_connector_details_secrets {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum DataConnectorDetails {
        #[prost(message, tag = "1")]
        OpcUa(super::OpcUaConnectorDetailsSecret),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDataConnectorRequest {
    #[prost(string, tag = "1")]
    pub data_connector_rid: ::prost::alloc::string::String,
    #[prost(string, optional, tag = "2")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(string, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "4")]
    pub connection_details: ::core::option::Option<DataConnectorDetailsUpdates>,
    #[prost(string, optional, tag = "5")]
    pub target_dataset_rid: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDataConnectorResponse {
    #[prost(message, optional, tag = "1")]
    pub data_connector: ::core::option::Option<DataConnector>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDataConnectorRequest {
    #[prost(string, tag = "1")]
    pub data_connector_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDataConnectorResponse {
    #[prost(message, optional, tag = "1")]
    pub data_connector: ::core::option::Option<DataConnector>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NameFilter {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescriptionFilter {
    #[prost(string, tag = "1")]
    pub description: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TargetDatasetFilter {
    #[prost(string, tag = "1")]
    pub target_dataset_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AndFilter {
    #[prost(message, repeated, tag = "1")]
    pub clauses: ::prost::alloc::vec::Vec<SearchFilter>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SortBy {
    /// If unspecified, defaults to SORT_FIELD_UPDATE_AT
    #[prost(enumeration = "SortField", tag = "1")]
    pub field: i32,
    /// If unspecified, defaults to SORT_ORDER_DESC
    #[prost(enumeration = "SortOrder", tag = "2")]
    pub order: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchFilter {
    #[prost(oneof = "search_filter::Filter", tags = "1, 2, 3, 4")]
    pub filter: ::core::option::Option<search_filter::Filter>,
}
/// Nested message and enum types in `SearchFilter`.
pub mod search_filter {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Filter {
        #[prost(message, tag = "1")]
        Name(super::NameFilter),
        #[prost(message, tag = "2")]
        Description(super::DescriptionFilter),
        #[prost(message, tag = "3")]
        TargetDataset(super::TargetDatasetFilter),
        #[prost(message, tag = "4")]
        And(super::AndFilter),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchRequest {
    #[prost(string, tag = "1")]
    pub workspace_rid: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub filter: ::core::option::Option<SearchFilter>,
    /// If unspecified, defaults to 100
    #[prost(int32, tag = "3")]
    pub page_size: i32,
    #[prost(string, optional, tag = "4")]
    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "5")]
    pub sort_by: ::core::option::Option<SortBy>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchResponse {
    #[prost(message, repeated, tag = "1")]
    pub data_connectors: ::prost::alloc::vec::Vec<DataConnector>,
    #[prost(string, optional, tag = "2")]
    pub page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartSessionRequest {
    #[prost(string, tag = "1")]
    pub data_connector_rid: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StartSessionResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopSessionRequest {
    #[prost(string, tag = "1")]
    pub data_connector_rid: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StopSessionResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSessionStatusRequest {
    #[prost(string, tag = "1")]
    pub data_connector_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ActiveSessionStatus {
    #[prost(enumeration = "ReplicaStatus", repeated, tag = "1")]
    pub replica_status: ::prost::alloc::vec::Vec<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSessionStatusResponse {
    #[prost(oneof = "get_session_status_response::Status", tags = "1, 2")]
    pub status: ::core::option::Option<get_session_status_response::Status>,
}
/// Nested message and enum types in `GetSessionStatusResponse`.
pub mod get_session_status_response {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Status {
        #[prost(message, tag = "1")]
        None(super::super::super::super::google::protobuf::Empty),
        #[prost(message, tag = "2")]
        Active(super::ActiveSessionStatus),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteDataConnectorRequest {
    #[prost(string, tag = "1")]
    pub data_connector_rid: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DeleteDataConnectorResponse {}
/// Error types for data connector operations
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DataConnectorErrorType {
    Unspecified = 0,
    ConnectorNotFound = 1,
    ConnectorNotAuthorized = 2,
    TargetDatasetNotInWorkspace = 3,
}
impl DataConnectorErrorType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "DATA_CONNECTOR_ERROR_TYPE_UNSPECIFIED",
            Self::ConnectorNotFound => "DATA_CONNECTOR_ERROR_TYPE_CONNECTOR_NOT_FOUND",
            Self::ConnectorNotAuthorized => {
                "DATA_CONNECTOR_ERROR_TYPE_CONNECTOR_NOT_AUTHORIZED"
            }
            Self::TargetDatasetNotInWorkspace => {
                "DATA_CONNECTOR_ERROR_TYPE_TARGET_DATASET_NOT_IN_WORKSPACE"
            }
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "DATA_CONNECTOR_ERROR_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "DATA_CONNECTOR_ERROR_TYPE_CONNECTOR_NOT_FOUND" => {
                Some(Self::ConnectorNotFound)
            }
            "DATA_CONNECTOR_ERROR_TYPE_CONNECTOR_NOT_AUTHORIZED" => {
                Some(Self::ConnectorNotAuthorized)
            }
            "DATA_CONNECTOR_ERROR_TYPE_TARGET_DATASET_NOT_IN_WORKSPACE" => {
                Some(Self::TargetDatasetNotInWorkspace)
            }
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SortField {
    Unspecified = 0,
    UpdatedAt = 1,
}
impl SortField {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "SORT_FIELD_UNSPECIFIED",
            Self::UpdatedAt => "SORT_FIELD_UPDATED_AT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SORT_FIELD_UNSPECIFIED" => Some(Self::Unspecified),
            "SORT_FIELD_UPDATED_AT" => Some(Self::UpdatedAt),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SortOrder {
    Unspecified = 0,
    Asc = 1,
    Desc = 2,
}
impl SortOrder {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "SORT_ORDER_UNSPECIFIED",
            Self::Asc => "SORT_ORDER_ASC",
            Self::Desc => "SORT_ORDER_DESC",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SORT_ORDER_UNSPECIFIED" => Some(Self::Unspecified),
            "SORT_ORDER_ASC" => Some(Self::Asc),
            "SORT_ORDER_DESC" => Some(Self::Desc),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ReplicaStatus {
    Unspecified = 0,
    Starting = 1,
    Subscribing = 2,
    Running = 3,
    Stopping = 4,
    Stopped = 5,
}
impl ReplicaStatus {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "REPLICA_STATUS_UNSPECIFIED",
            Self::Starting => "REPLICA_STATUS_STARTING",
            Self::Subscribing => "REPLICA_STATUS_SUBSCRIBING",
            Self::Running => "REPLICA_STATUS_RUNNING",
            Self::Stopping => "REPLICA_STATUS_STOPPING",
            Self::Stopped => "REPLICA_STATUS_STOPPED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "REPLICA_STATUS_UNSPECIFIED" => Some(Self::Unspecified),
            "REPLICA_STATUS_STARTING" => Some(Self::Starting),
            "REPLICA_STATUS_SUBSCRIBING" => Some(Self::Subscribing),
            "REPLICA_STATUS_RUNNING" => Some(Self::Running),
            "REPLICA_STATUS_STOPPING" => Some(Self::Stopping),
            "REPLICA_STATUS_STOPPED" => Some(Self::Stopped),
            _ => None,
        }
    }
}
/// Generated client implementations.
pub mod data_connector_service_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Service for managing data connectors to external data sources.
    /// Supports OPC-UA with plans for MQTT, Kafka, and other protocols.
    #[derive(Debug, Clone)]
    pub struct DataConnectorServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl DataConnectorServiceClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> DataConnectorServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::Body>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> DataConnectorServiceClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::Body>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::Body>,
            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
        {
            DataConnectorServiceClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Creates a new data connector configuration
        pub async fn create_data_connector(
            &mut self,
            request: impl tonic::IntoRequest<super::CreateDataConnectorRequest>,
        ) -> std::result::Result<
            tonic::Response<super::CreateDataConnectorResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.data_connector.v1.DataConnectorService/CreateDataConnector",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.data_connector.v1.DataConnectorService",
                        "CreateDataConnector",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets the settings for a data connector
        pub async fn get_data_connector(
            &mut self,
            request: impl tonic::IntoRequest<super::GetDataConnectorRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetDataConnectorResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.data_connector.v1.DataConnectorService/GetDataConnector",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.data_connector.v1.DataConnectorService",
                        "GetDataConnector",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Updates the settings for a data connector
        pub async fn update_data_connector(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateDataConnectorRequest>,
        ) -> std::result::Result<
            tonic::Response<super::UpdateDataConnectorResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.data_connector.v1.DataConnectorService/UpdateDataConnector",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.data_connector.v1.DataConnectorService",
                        "UpdateDataConnector",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// List the data connectors matching the search criteria
        pub async fn search(
            &mut self,
            request: impl tonic::IntoRequest<super::SearchRequest>,
        ) -> std::result::Result<tonic::Response<super::SearchResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.data_connector.v1.DataConnectorService/Search",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.data_connector.v1.DataConnectorService",
                        "Search",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Starts a session for a connection
        pub async fn start_session(
            &mut self,
            request: impl tonic::IntoRequest<super::StartSessionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::StartSessionResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.data_connector.v1.DataConnectorService/StartSession",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.data_connector.v1.DataConnectorService",
                        "StartSession",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Stops a session for a connection
        pub async fn stop_session(
            &mut self,
            request: impl tonic::IntoRequest<super::StopSessionRequest>,
        ) -> std::result::Result<
            tonic::Response<super::StopSessionResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.data_connector.v1.DataConnectorService/StopSession",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.data_connector.v1.DataConnectorService",
                        "StopSession",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets the session status for a connection
        pub async fn get_session_status(
            &mut self,
            request: impl tonic::IntoRequest<super::GetSessionStatusRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetSessionStatusResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.data_connector.v1.DataConnectorService/GetSessionStatus",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.data_connector.v1.DataConnectorService",
                        "GetSessionStatus",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Deletes a data connector. This operation is idempotent.
        pub async fn delete_data_connector(
            &mut self,
            request: impl tonic::IntoRequest<super::DeleteDataConnectorRequest>,
        ) -> std::result::Result<
            tonic::Response<super::DeleteDataConnectorResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/nominal.data_connector.v1.DataConnectorService/DeleteDataConnector",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "nominal.data_connector.v1.DataConnectorService",
                        "DeleteDataConnector",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}