yandex-cloud 2025.4.14

Generated gRPC clients for the Yandex Cloud API
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
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AltName {
    /// Source table name
    #[prost(string, tag = "1")]
    pub from_name: ::prost::alloc::string::String,
    /// Target table name
    #[prost(string, tag = "2")]
    pub to_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Secret {
    #[prost(oneof = "secret::Value", tags = "1")]
    pub value: ::core::option::Option<secret::Value>,
}
/// Nested message and enum types in `Secret`.
pub mod secret {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Value {
        /// Raw secret value
        #[prost(string, tag = "1")]
        Raw(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColSchema {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(enumeration = "ColumnType", tag = "2")]
    pub r#type: i32,
    #[prost(bool, tag = "3")]
    pub key: bool,
    #[prost(bool, tag = "4")]
    pub required: bool,
    #[prost(string, tag = "5")]
    pub path: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TlsMode {
    #[prost(oneof = "tls_mode::TlsMode", tags = "1, 2")]
    pub tls_mode: ::core::option::Option<tls_mode::TlsMode>,
}
/// Nested message and enum types in `TLSMode`.
pub mod tls_mode {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum TlsMode {
        #[prost(message, tag = "1")]
        Disabled(()),
        #[prost(message, tag = "2")]
        Enabled(super::TlsConfig),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TlsConfig {
    /// CA certificate
    ///
    /// X.509 certificate of the certificate authority which issued the server's
    /// certificate, in PEM format. When CA certificate is specified TLS is used to
    /// connect to the server.
    #[prost(string, tag = "1")]
    pub ca_certificate: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColumnValue {
    #[prost(oneof = "column_value::Value", tags = "1")]
    pub value: ::core::option::Option<column_value::Value>,
}
/// Nested message and enum types in `ColumnValue`.
pub mod column_value {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Value {
        #[prost(string, tag = "1")]
        StringValue(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataTransformationOptions {
    /// Cloud function
    #[prost(string, tag = "1")]
    pub cloud_function: ::prost::alloc::string::String,
    /// Number of retries
    #[prost(int64, tag = "2")]
    pub number_of_retries: i64,
    /// Buffer size for function
    #[prost(string, tag = "3")]
    pub buffer_size: ::prost::alloc::string::String,
    /// Flush interval
    #[prost(string, tag = "4")]
    pub buffer_flush_interval: ::prost::alloc::string::String,
    /// Invocation timeout
    #[prost(string, tag = "5")]
    pub invocation_timeout: ::prost::alloc::string::String,
    /// Service account
    #[prost(string, tag = "8")]
    pub service_account_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FieldList {
    /// Column schema
    #[prost(message, repeated, tag = "2")]
    pub fields: ::prost::alloc::vec::Vec<ColSchema>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataSchema {
    #[prost(oneof = "data_schema::Schema", tags = "1, 2")]
    pub schema: ::core::option::Option<data_schema::Schema>,
}
/// Nested message and enum types in `DataSchema`.
pub mod data_schema {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Schema {
        #[prost(string, tag = "1")]
        JsonFields(::prost::alloc::string::String),
        #[prost(message, tag = "2")]
        Fields(super::FieldList),
    }
}
/// No authentication
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NoAuth {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectionManagerConnection {
    #[prost(string, tag = "1")]
    pub connection_id: ::prost::alloc::string::String,
    /// Network interface for endpoint. If none will assume public ipv4
    #[prost(string, tag = "2")]
    pub subnet_id: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ObjectTransferStage {
    Unspecified = 0,
    /// Before data transfer
    BeforeData = 1,
    /// After data transfer
    AfterData = 2,
    /// Don't copy
    Never = 3,
}
impl ObjectTransferStage {
    /// 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 {
            ObjectTransferStage::Unspecified => "OBJECT_TRANSFER_STAGE_UNSPECIFIED",
            ObjectTransferStage::BeforeData => "BEFORE_DATA",
            ObjectTransferStage::AfterData => "AFTER_DATA",
            ObjectTransferStage::Never => "NEVER",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OBJECT_TRANSFER_STAGE_UNSPECIFIED" => Some(Self::Unspecified),
            "BEFORE_DATA" => Some(Self::BeforeData),
            "AFTER_DATA" => Some(Self::AfterData),
            "NEVER" => Some(Self::Never),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CleanupPolicy {
    Unspecified = 0,
    /// Don't cleanup
    Disabled = 1,
    /// Drop
    Drop = 2,
    /// Truncate
    Truncate = 3,
}
impl CleanupPolicy {
    /// 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 {
            CleanupPolicy::Unspecified => "CLEANUP_POLICY_UNSPECIFIED",
            CleanupPolicy::Disabled => "DISABLED",
            CleanupPolicy::Drop => "DROP",
            CleanupPolicy::Truncate => "TRUNCATE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CLEANUP_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
            "DISABLED" => Some(Self::Disabled),
            "DROP" => Some(Self::Drop),
            "TRUNCATE" => Some(Self::Truncate),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ColumnType {
    Unspecified = 0,
    Int32 = 1,
    Int16 = 2,
    Int8 = 3,
    Uint64 = 4,
    Uint32 = 5,
    Uint16 = 6,
    Uint8 = 7,
    Double = 8,
    Boolean = 9,
    String = 10,
    Utf8 = 11,
    Any = 12,
    Datetime = 13,
    Int64 = 14,
}
impl ColumnType {
    /// 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 {
            ColumnType::Unspecified => "COLUMN_TYPE_UNSPECIFIED",
            ColumnType::Int32 => "INT32",
            ColumnType::Int16 => "INT16",
            ColumnType::Int8 => "INT8",
            ColumnType::Uint64 => "UINT64",
            ColumnType::Uint32 => "UINT32",
            ColumnType::Uint16 => "UINT16",
            ColumnType::Uint8 => "UINT8",
            ColumnType::Double => "DOUBLE",
            ColumnType::Boolean => "BOOLEAN",
            ColumnType::String => "STRING",
            ColumnType::Utf8 => "UTF8",
            ColumnType::Any => "ANY",
            ColumnType::Datetime => "DATETIME",
            ColumnType::Int64 => "INT64",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "COLUMN_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "INT32" => Some(Self::Int32),
            "INT16" => Some(Self::Int16),
            "INT8" => Some(Self::Int8),
            "UINT64" => Some(Self::Uint64),
            "UINT32" => Some(Self::Uint32),
            "UINT16" => Some(Self::Uint16),
            "UINT8" => Some(Self::Uint8),
            "DOUBLE" => Some(Self::Double),
            "BOOLEAN" => Some(Self::Boolean),
            "STRING" => Some(Self::String),
            "UTF8" => Some(Self::Utf8),
            "ANY" => Some(Self::Any),
            "DATETIME" => Some(Self::Datetime),
            "INT64" => Some(Self::Int64),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClickhouseShard {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub hosts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnPremiseClickhouse {
    #[prost(message, repeated, tag = "1")]
    pub shards: ::prost::alloc::vec::Vec<ClickhouseShard>,
    #[prost(int64, tag = "3")]
    pub http_port: i64,
    #[prost(int64, tag = "4")]
    pub native_port: i64,
    #[prost(message, optional, tag = "8")]
    pub tls_mode: ::core::option::Option<TlsMode>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClickhouseConnectionOptions {
    #[prost(string, tag = "6")]
    pub user: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "7")]
    pub password: ::core::option::Option<Secret>,
    /// Database
    #[prost(string, tag = "8")]
    pub database: ::prost::alloc::string::String,
    #[prost(oneof = "clickhouse_connection_options::Address", tags = "2, 5")]
    pub address: ::core::option::Option<clickhouse_connection_options::Address>,
}
/// Nested message and enum types in `ClickhouseConnectionOptions`.
pub mod clickhouse_connection_options {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Address {
        #[prost(message, tag = "2")]
        OnPremise(super::OnPremiseClickhouse),
        #[prost(string, tag = "5")]
        MdbClusterId(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClickhouseConnection {
    #[prost(oneof = "clickhouse_connection::Connection", tags = "1")]
    pub connection: ::core::option::Option<clickhouse_connection::Connection>,
}
/// Nested message and enum types in `ClickhouseConnection`.
pub mod clickhouse_connection {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Connection {
        #[prost(message, tag = "1")]
        ConnectionOptions(super::ClickhouseConnectionOptions),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClickhouseSharding {
    #[prost(oneof = "clickhouse_sharding::Sharding", tags = "1, 2, 3, 4")]
    pub sharding: ::core::option::Option<clickhouse_sharding::Sharding>,
}
/// Nested message and enum types in `ClickhouseSharding`.
pub mod clickhouse_sharding {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ColumnValueHash {
        #[prost(string, tag = "1")]
        pub column_name: ::prost::alloc::string::String,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ColumnValueMapping {
        #[prost(string, tag = "1")]
        pub column_name: ::prost::alloc::string::String,
        #[prost(message, repeated, tag = "2")]
        pub mapping: ::prost::alloc::vec::Vec<column_value_mapping::ValueToShard>,
    }
    /// Nested message and enum types in `ColumnValueMapping`.
    pub mod column_value_mapping {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct ValueToShard {
            #[prost(message, optional, tag = "1")]
            pub column_value: ::core::option::Option<super::super::ColumnValue>,
            #[prost(string, tag = "2")]
            pub shard_name: ::prost::alloc::string::String,
        }
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Sharding {
        #[prost(message, tag = "1")]
        ColumnValueHash(ColumnValueHash),
        #[prost(message, tag = "2")]
        CustomMapping(ColumnValueMapping),
        #[prost(message, tag = "3")]
        TransferId(()),
        #[prost(message, tag = "4")]
        RoundRobin(()),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClickhouseSource {
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<ClickhouseConnection>,
    /// White list of tables for replication. If none or empty list is presented - will
    /// replicate all tables. Can contain * patterns.
    #[prost(string, repeated, tag = "7")]
    pub include_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Exclude list of tables for replication. If none or empty list is presented -
    /// will replicate all tables. Can contain * patterns.
    #[prost(string, repeated, tag = "8")]
    pub exclude_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, tag = "9")]
    pub subnet_id: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "10")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Name of the ClickHouse cluster. For Managed ClickHouse that is name of
    /// ShardGroup.
    #[prost(string, tag = "11")]
    pub clickhouse_cluster_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClickhouseTarget {
    #[prost(message, optional, tag = "2")]
    pub connection: ::core::option::Option<ClickhouseConnection>,
    #[prost(string, tag = "12")]
    pub subnet_id: ::prost::alloc::string::String,
    /// Alternative table names in target
    #[prost(message, repeated, tag = "17")]
    pub alt_names: ::prost::alloc::vec::Vec<AltName>,
    #[prost(enumeration = "ClickhouseCleanupPolicy", tag = "21")]
    pub cleanup_policy: i32,
    #[prost(message, optional, tag = "22")]
    pub sharding: ::core::option::Option<ClickhouseSharding>,
    /// Name of the ClickHouse cluster. For Managed ClickHouse that is name of
    /// ShardGroup.
    #[prost(string, tag = "50")]
    pub clickhouse_cluster_name: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "51")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ClickhouseCleanupPolicy {
    Unspecified = 0,
    Disabled = 1,
    Drop = 2,
    Truncate = 3,
}
impl ClickhouseCleanupPolicy {
    /// 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 {
            ClickhouseCleanupPolicy::Unspecified => {
                "CLICKHOUSE_CLEANUP_POLICY_UNSPECIFIED"
            }
            ClickhouseCleanupPolicy::Disabled => "CLICKHOUSE_CLEANUP_POLICY_DISABLED",
            ClickhouseCleanupPolicy::Drop => "CLICKHOUSE_CLEANUP_POLICY_DROP",
            ClickhouseCleanupPolicy::Truncate => "CLICKHOUSE_CLEANUP_POLICY_TRUNCATE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CLICKHOUSE_CLEANUP_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
            "CLICKHOUSE_CLEANUP_POLICY_DISABLED" => Some(Self::Disabled),
            "CLICKHOUSE_CLEANUP_POLICY_DROP" => Some(Self::Drop),
            "CLICKHOUSE_CLEANUP_POLICY_TRUNCATE" => Some(Self::Truncate),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Parser {
    #[prost(oneof = "parser::Parser", tags = "1, 2, 4, 6")]
    pub parser: ::core::option::Option<parser::Parser>,
}
/// Nested message and enum types in `Parser`.
pub mod parser {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Parser {
        #[prost(message, tag = "1")]
        JsonParser(super::GenericParserCommon),
        #[prost(message, tag = "2")]
        AuditTrailsV1Parser(super::AuditTrailsV1Parser),
        #[prost(message, tag = "4")]
        CloudLoggingParser(super::CloudLoggingParser),
        #[prost(message, tag = "6")]
        TskvParser(super::GenericParserCommon),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenericParserCommon {
    #[prost(message, optional, tag = "1")]
    pub data_schema: ::core::option::Option<DataSchema>,
    /// Allow null keys, if no - null keys will be putted to unparsed data
    #[prost(bool, tag = "2")]
    pub null_keys_allowed: bool,
    /// Will add _rest column for all unknown fields
    #[prost(bool, tag = "3")]
    pub add_rest_column: bool,
    /// Unescape string values
    #[prost(bool, tag = "7")]
    pub unescape_string_values: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AuditTrailsV1Parser {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloudLoggingParser {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SerializerAuto {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SerializerJson {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DebeziumSerializerParameter {
    /// Name of the serializer parameter
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// Value of the serializer parameter
    #[prost(string, tag = "2")]
    pub value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SerializerDebezium {
    /// Settings of sterilization parameters as key-value pairs
    #[prost(message, repeated, tag = "1")]
    pub serializer_parameters: ::prost::alloc::vec::Vec<DebeziumSerializerParameter>,
}
/// Data serialization format
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Serializer {
    #[prost(oneof = "serializer::Serializer", tags = "1, 2, 3")]
    pub serializer: ::core::option::Option<serializer::Serializer>,
}
/// Nested message and enum types in `Serializer`.
pub mod serializer {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Serializer {
        /// Select the serialization format automatically
        #[prost(message, tag = "1")]
        SerializerAuto(super::SerializerAuto),
        /// Serialize data in json format
        #[prost(message, tag = "2")]
        SerializerJson(super::SerializerJson),
        /// Serialize data in debezium format
        #[prost(message, tag = "3")]
        SerializerDebezium(super::SerializerDebezium),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KafkaConnectionOptions {
    #[prost(oneof = "kafka_connection_options::Connection", tags = "1, 2")]
    pub connection: ::core::option::Option<kafka_connection_options::Connection>,
}
/// Nested message and enum types in `KafkaConnectionOptions`.
pub mod kafka_connection_options {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Connection {
        /// Managed Service for Kafka cluster ID
        #[prost(string, tag = "1")]
        ClusterId(::prost::alloc::string::String),
        /// Connection options for on-premise Kafka
        #[prost(message, tag = "2")]
        OnPremise(super::OnPremiseKafka),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnPremiseKafka {
    /// Kafka broker URLs
    #[prost(string, repeated, tag = "1")]
    pub broker_urls: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Network interface for endpoint. If none will assume public ipv4
    #[prost(string, tag = "4")]
    pub subnet_id: ::prost::alloc::string::String,
    /// TLS settings for broker connection. Disabled by default.
    #[prost(message, optional, tag = "5")]
    pub tls_mode: ::core::option::Option<TlsMode>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KafkaAuth {
    #[prost(oneof = "kafka_auth::Security", tags = "1, 2")]
    pub security: ::core::option::Option<kafka_auth::Security>,
}
/// Nested message and enum types in `KafkaAuth`.
pub mod kafka_auth {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Security {
        /// Authentication with SASL
        #[prost(message, tag = "1")]
        Sasl(super::KafkaSaslSecurity),
        /// No authentication
        #[prost(message, tag = "2")]
        NoAuth(super::NoAuth),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KafkaSaslSecurity {
    /// User name
    #[prost(string, tag = "1")]
    pub user: ::prost::alloc::string::String,
    /// SASL mechanism for authentication
    #[prost(enumeration = "KafkaMechanism", tag = "3")]
    pub mechanism: i32,
    /// Password for user
    #[prost(message, optional, tag = "4")]
    pub password: ::core::option::Option<Secret>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KafkaSource {
    /// Connection settings
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<KafkaConnectionOptions>,
    /// Authentication settings
    #[prost(message, optional, tag = "2")]
    pub auth: ::core::option::Option<KafkaAuth>,
    /// Security groups
    #[prost(string, repeated, tag = "3")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Full source topic name
    /// Deprecated in favor of topic names
    #[deprecated]
    #[prost(string, tag = "4")]
    pub topic_name: ::prost::alloc::string::String,
    /// Data transformation rules
    #[prost(message, optional, tag = "5")]
    pub transformer: ::core::option::Option<DataTransformationOptions>,
    /// Data parsing rules
    #[prost(message, optional, tag = "7")]
    pub parser: ::core::option::Option<Parser>,
    /// List of topic names to read
    #[prost(string, repeated, tag = "8")]
    pub topic_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KafkaTarget {
    /// Connection settings
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<KafkaConnectionOptions>,
    /// Authentication settings
    #[prost(message, optional, tag = "2")]
    pub auth: ::core::option::Option<KafkaAuth>,
    /// Security groups
    #[prost(string, repeated, tag = "3")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Target topic settings
    #[prost(message, optional, tag = "7")]
    pub topic_settings: ::core::option::Option<KafkaTargetTopicSettings>,
    /// Data serialization format settings
    #[prost(message, optional, tag = "8")]
    pub serializer: ::core::option::Option<Serializer>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KafkaTargetTopicSettings {
    #[prost(oneof = "kafka_target_topic_settings::TopicSettings", tags = "1, 2")]
    pub topic_settings: ::core::option::Option<
        kafka_target_topic_settings::TopicSettings,
    >,
}
/// Nested message and enum types in `KafkaTargetTopicSettings`.
pub mod kafka_target_topic_settings {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum TopicSettings {
        /// Full topic name
        #[prost(message, tag = "1")]
        Topic(super::KafkaTargetTopic),
        /// Topic prefix
        ///
        /// Analogue of the Debezium setting database.server.name.
        /// Messages will be sent to topic with name <topic_prefix>.<schema>.<table_name>.
        #[prost(string, tag = "2")]
        TopicPrefix(::prost::alloc::string::String),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KafkaTargetTopic {
    /// Topic name
    #[prost(string, tag = "1")]
    pub topic_name: ::prost::alloc::string::String,
    /// Save transactions order
    /// Not to split events queue into separate per-table queues.
    #[prost(bool, tag = "2")]
    pub save_tx_order: bool,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum KafkaMechanism {
    Unspecified = 0,
    Sha256 = 1,
    Sha512 = 2,
}
impl KafkaMechanism {
    /// 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 {
            KafkaMechanism::Unspecified => "KAFKA_MECHANISM_UNSPECIFIED",
            KafkaMechanism::Sha256 => "KAFKA_MECHANISM_SHA256",
            KafkaMechanism::Sha512 => "KAFKA_MECHANISM_SHA512",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "KAFKA_MECHANISM_UNSPECIFIED" => Some(Self::Unspecified),
            "KAFKA_MECHANISM_SHA256" => Some(Self::Sha256),
            "KAFKA_MECHANISM_SHA512" => Some(Self::Sha512),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetrikaStream {
    #[prost(enumeration = "MetrikaStreamType", tag = "1")]
    pub r#type: i32,
    #[prost(string, repeated, tag = "2")]
    pub columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetrikaSource {
    #[prost(int64, repeated, tag = "1")]
    pub counter_ids: ::prost::alloc::vec::Vec<i64>,
    #[prost(message, optional, tag = "2")]
    pub token: ::core::option::Option<Secret>,
    #[prost(message, repeated, tag = "3")]
    pub streams: ::prost::alloc::vec::Vec<MetrikaStream>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MetrikaStreamType {
    Unspecified = 0,
    Hits = 1,
    Visits = 2,
    HitsV2 = 3,
}
impl MetrikaStreamType {
    /// 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 {
            MetrikaStreamType::Unspecified => "METRIKA_STREAM_TYPE_UNSPECIFIED",
            MetrikaStreamType::Hits => "METRIKA_STREAM_TYPE_HITS",
            MetrikaStreamType::Visits => "METRIKA_STREAM_TYPE_VISITS",
            MetrikaStreamType::HitsV2 => "METRIKA_STREAM_TYPE_HITS_V2",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "METRIKA_STREAM_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "METRIKA_STREAM_TYPE_HITS" => Some(Self::Hits),
            "METRIKA_STREAM_TYPE_VISITS" => Some(Self::Visits),
            "METRIKA_STREAM_TYPE_HITS_V2" => Some(Self::HitsV2),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnPremiseMongo {
    #[prost(string, repeated, tag = "1")]
    pub hosts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(int64, tag = "2")]
    pub port: i64,
    #[prost(string, tag = "5")]
    pub replica_set: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "6")]
    pub tls_mode: ::core::option::Option<TlsMode>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MongoConnectionOptions {
    /// User name
    #[prost(string, tag = "3")]
    pub user: ::prost::alloc::string::String,
    /// Password for user
    #[prost(message, optional, tag = "4")]
    pub password: ::core::option::Option<Secret>,
    /// Database name associated with the credentials
    #[prost(string, tag = "5")]
    pub auth_source: ::prost::alloc::string::String,
    #[prost(oneof = "mongo_connection_options::Address", tags = "1, 2")]
    pub address: ::core::option::Option<mongo_connection_options::Address>,
}
/// Nested message and enum types in `MongoConnectionOptions`.
pub mod mongo_connection_options {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Address {
        #[prost(string, tag = "1")]
        MdbClusterId(::prost::alloc::string::String),
        #[prost(message, tag = "2")]
        OnPremise(super::OnPremiseMongo),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MongoConnection {
    #[prost(oneof = "mongo_connection::Connection", tags = "3")]
    pub connection: ::core::option::Option<mongo_connection::Connection>,
}
/// Nested message and enum types in `MongoConnection`.
pub mod mongo_connection {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Connection {
        #[prost(message, tag = "3")]
        ConnectionOptions(super::MongoConnectionOptions),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MongoCollection {
    #[prost(string, tag = "1")]
    pub database_name: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub collection_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MongoSource {
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<MongoConnection>,
    #[prost(string, tag = "2")]
    pub subnet_id: ::prost::alloc::string::String,
    /// List of collections for replication. Empty list implies replication of all
    /// tables on the deployment. Allowed to use * as collection name.
    #[prost(message, repeated, tag = "6")]
    pub collections: ::prost::alloc::vec::Vec<MongoCollection>,
    /// List of forbidden collections for replication. Allowed to use * as collection
    /// name for forbid all collections of concrete schema.
    #[prost(message, repeated, tag = "7")]
    pub excluded_collections: ::prost::alloc::vec::Vec<MongoCollection>,
    /// Read mode for mongo client
    #[prost(bool, tag = "8")]
    pub secondary_preferred_mode: bool,
    /// Security groups
    #[prost(string, repeated, tag = "11")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MongoTarget {
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<MongoConnection>,
    /// Database name
    #[prost(string, tag = "2")]
    pub database: ::prost::alloc::string::String,
    #[prost(enumeration = "CleanupPolicy", tag = "6")]
    pub cleanup_policy: i32,
    #[prost(string, tag = "7")]
    pub subnet_id: ::prost::alloc::string::String,
    /// Security groups
    #[prost(string, repeated, tag = "8")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnPremiseMysql {
    /// Database port
    #[prost(int64, tag = "2")]
    pub port: i64,
    /// Network interface for endpoint. If none will assume public ipv4
    #[prost(string, tag = "4")]
    pub subnet_id: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "5")]
    pub hosts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// TLS settings for server connection. Disabled by default.
    #[prost(message, optional, tag = "6")]
    pub tls_mode: ::core::option::Option<TlsMode>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MysqlConnection {
    #[prost(oneof = "mysql_connection::Connection", tags = "1, 2, 3")]
    pub connection: ::core::option::Option<mysql_connection::Connection>,
}
/// Nested message and enum types in `MysqlConnection`.
pub mod mysql_connection {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Connection {
        /// Managed Service for MySQL cluster ID
        #[prost(string, tag = "1")]
        MdbClusterId(::prost::alloc::string::String),
        /// Connection options for on-premise MySQL
        #[prost(message, tag = "2")]
        OnPremise(super::OnPremiseMysql),
        #[prost(message, tag = "3")]
        ConnectionManagerConnection(super::ConnectionManagerConnection),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MysqlObjectTransferSettings {
    /// Views
    ///
    /// CREATE VIEW ...
    #[prost(enumeration = "ObjectTransferStage", tag = "1")]
    pub view: i32,
    /// Routines
    ///
    /// CREATE PROCEDURE ... ; CREATE FUNCTION ... ;
    #[prost(enumeration = "ObjectTransferStage", tag = "2")]
    pub routine: i32,
    /// Triggers
    ///
    /// CREATE TRIGGER ...
    #[prost(enumeration = "ObjectTransferStage", tag = "3")]
    pub trigger: i32,
    #[prost(enumeration = "ObjectTransferStage", tag = "4")]
    pub tables: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MysqlSource {
    /// Database connection settings
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<MysqlConnection>,
    /// Database name
    ///
    /// You can leave it empty, then it will be possible to transfer tables from several
    /// databases at the same time from this source.
    #[prost(string, tag = "2")]
    pub database: ::prost::alloc::string::String,
    /// User for database access. not required as may be in connection
    #[prost(string, tag = "3")]
    pub user: ::prost::alloc::string::String,
    /// Password for database access.
    #[prost(message, optional, tag = "4")]
    pub password: ::core::option::Option<Secret>,
    /// Database timezone
    ///
    /// Is used for parsing timestamps for saving source timezones. Accepts values from
    /// IANA timezone database. Default: local timezone.
    #[prost(string, tag = "8")]
    pub timezone: ::prost::alloc::string::String,
    /// Schema migration
    ///
    /// Select database objects to be transferred during activation or deactivation.
    #[prost(message, optional, tag = "11")]
    pub object_transfer_settings: ::core::option::Option<MysqlObjectTransferSettings>,
    #[prost(string, repeated, tag = "12")]
    pub include_tables_regex: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "13")]
    pub exclude_tables_regex: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Security groups
    #[prost(string, repeated, tag = "14")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Database for service tables
    ///
    /// Default: data source database. Here created technical tables (__tm_keeper,
    /// __tm_gtid_keeper).
    #[prost(string, tag = "15")]
    pub service_database: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MysqlTarget {
    /// Database connection settings
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<MysqlConnection>,
    /// Database name
    ///
    /// Allowed to leave it empty, then the tables will be created in databases with the
    /// same names as on the source. If this field is empty, then you must fill below db
    /// schema for service table.
    #[prost(string, tag = "2")]
    pub database: ::prost::alloc::string::String,
    /// User for database access. not required as may be in connection
    #[prost(string, tag = "3")]
    pub user: ::prost::alloc::string::String,
    /// Password for database access.
    #[prost(message, optional, tag = "4")]
    pub password: ::core::option::Option<Secret>,
    /// Default: NO_AUTO_VALUE_ON_ZERO,NO_DIR_IN_CREATE,NO_ENGINE_SUBSTITUTION.
    #[prost(string, tag = "5")]
    pub sql_mode: ::prost::alloc::string::String,
    /// Disable constraints checks
    ///
    /// Recommend to disable for increase replication speed, but if schema contain
    /// cascading operations we don't recommend to disable. This option set
    /// FOREIGN_KEY_CHECKS=0 and UNIQUE_CHECKS=0.
    #[prost(bool, tag = "6")]
    pub skip_constraint_checks: bool,
    /// Database timezone
    ///
    /// Is used for parsing timestamps for saving source timezones. Accepts values from
    /// IANA timezone database. Default: local timezone.
    #[prost(string, tag = "7")]
    pub timezone: ::prost::alloc::string::String,
    /// Cleanup policy
    ///
    /// Cleanup policy for activate, reactivate and reupload processes. Default is
    /// DISABLED.
    #[prost(enumeration = "CleanupPolicy", tag = "8")]
    pub cleanup_policy: i32,
    /// Database schema for service table
    ///
    /// Default: db name. Here created technical tables (__tm_keeper, __tm_gtid_keeper).
    #[prost(string, tag = "15")]
    pub service_database: ::prost::alloc::string::String,
    /// Security groups
    #[prost(string, repeated, tag = "16")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PostgresObjectTransferSettings {
    /// Sequences
    ///
    /// CREATE SEQUENCE ...
    #[prost(enumeration = "ObjectTransferStage", tag = "1")]
    pub sequence: i32,
    /// Owned sequences
    ///
    /// CREATE SEQUENCE ... OWNED BY ...
    #[prost(enumeration = "ObjectTransferStage", tag = "2")]
    pub sequence_owned_by: i32,
    /// Tables
    ///
    /// CREATE TABLE ...
    #[prost(enumeration = "ObjectTransferStage", tag = "3")]
    pub table: i32,
    /// Primary keys
    ///
    /// ALTER TABLE ... ADD PRIMARY KEY ...
    #[prost(enumeration = "ObjectTransferStage", tag = "4")]
    pub primary_key: i32,
    /// Foreign keys
    ///
    /// ALTER TABLE ... ADD FOREIGN KEY ...
    #[prost(enumeration = "ObjectTransferStage", tag = "5")]
    pub fk_constraint: i32,
    /// Default values
    ///
    /// ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
    #[prost(enumeration = "ObjectTransferStage", tag = "6")]
    pub default_values: i32,
    /// Constraints
    ///
    /// ALTER TABLE ... ADD CONSTRAINT ...
    #[prost(enumeration = "ObjectTransferStage", tag = "7")]
    pub constraint: i32,
    /// Indexes
    ///
    /// CREATE INDEX ...
    #[prost(enumeration = "ObjectTransferStage", tag = "8")]
    pub index: i32,
    /// Views
    ///
    /// CREATE VIEW ...
    #[prost(enumeration = "ObjectTransferStage", tag = "9")]
    pub view: i32,
    /// Functions
    ///
    /// CREATE FUNCTION ...
    #[prost(enumeration = "ObjectTransferStage", tag = "10")]
    pub function: i32,
    /// Triggers
    ///
    /// CREATE TRIGGER ...
    #[prost(enumeration = "ObjectTransferStage", tag = "11")]
    pub trigger: i32,
    /// Types
    ///
    /// CREATE TYPE ...
    #[prost(enumeration = "ObjectTransferStage", tag = "12")]
    pub r#type: i32,
    /// Rules
    ///
    /// CREATE RULE ...
    #[prost(enumeration = "ObjectTransferStage", tag = "13")]
    pub rule: i32,
    /// Collations
    ///
    /// CREATE COLLATION ...
    #[prost(enumeration = "ObjectTransferStage", tag = "14")]
    pub collation: i32,
    /// Policies
    ///
    /// CREATE POLICY ...
    #[prost(enumeration = "ObjectTransferStage", tag = "15")]
    pub policy: i32,
    /// Casts
    ///
    /// CREATE CAST ...
    #[prost(enumeration = "ObjectTransferStage", tag = "16")]
    pub cast: i32,
    /// Materialized views
    ///
    /// CREATE MATERIALIZED VIEW ...
    #[prost(enumeration = "ObjectTransferStage", tag = "17")]
    pub materialized_view: i32,
    /// Sequence sets
    ///
    /// CREATE SEQUENCE ...
    #[prost(enumeration = "ObjectTransferStage", tag = "18")]
    pub sequence_set: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OnPremisePostgres {
    /// Will be used if the cluster ID is not specified.
    #[prost(int64, tag = "2")]
    pub port: i64,
    /// Network interface for endpoint. If none will assume public ipv4
    #[prost(string, tag = "4")]
    pub subnet_id: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "5")]
    pub hosts: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// TLS settings for server connection. Disabled by default.
    #[prost(message, optional, tag = "6")]
    pub tls_mode: ::core::option::Option<TlsMode>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PostgresConnection {
    #[prost(oneof = "postgres_connection::Connection", tags = "1, 2, 3")]
    pub connection: ::core::option::Option<postgres_connection::Connection>,
}
/// Nested message and enum types in `PostgresConnection`.
pub mod postgres_connection {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Connection {
        /// Managed Service for PostgreSQL cluster ID
        #[prost(string, tag = "1")]
        MdbClusterId(::prost::alloc::string::String),
        /// Connection options for on-premise PostgreSQL
        #[prost(message, tag = "2")]
        OnPremise(super::OnPremisePostgres),
        #[prost(message, tag = "3")]
        ConnectionManagerConnection(super::ConnectionManagerConnection),
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PostgresSource {
    /// Database connection settings
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<PostgresConnection>,
    /// Database name
    #[prost(string, tag = "2")]
    pub database: ::prost::alloc::string::String,
    /// User for database access. not required as may be in connection
    #[prost(string, tag = "3")]
    pub user: ::prost::alloc::string::String,
    /// Password for database access.
    #[prost(message, optional, tag = "4")]
    pub password: ::core::option::Option<Secret>,
    /// Included tables
    ///
    /// If none or empty list is presented, all tables are replicated. Full table name
    /// with schema. Can contain schema_name.* patterns.
    #[prost(string, repeated, tag = "5")]
    pub include_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Excluded tables
    ///
    /// If none or empty list is presented, all tables are replicated. Full table name
    /// with schema. Can contain schema_name.* patterns.
    #[prost(string, repeated, tag = "6")]
    pub exclude_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Maximum lag of replication slot (in bytes); after exceeding this limit
    /// replication will be aborted.
    #[prost(int64, tag = "8")]
    pub slot_byte_lag_limit: i64,
    /// Database schema for service tables (__consumer_keeper,
    /// __data_transfer_mole_finder). Default is public
    #[prost(string, tag = "9")]
    pub service_schema: ::prost::alloc::string::String,
    /// Select database objects to be transferred during activation or deactivation.
    #[prost(message, optional, tag = "13")]
    pub object_transfer_settings: ::core::option::Option<PostgresObjectTransferSettings>,
    /// Security groups
    #[prost(string, repeated, tag = "14")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PostgresTarget {
    /// Database connection settings
    #[prost(message, optional, tag = "1")]
    pub connection: ::core::option::Option<PostgresConnection>,
    /// Database name
    #[prost(string, tag = "2")]
    pub database: ::prost::alloc::string::String,
    /// User for database access. not required as may be in connection
    #[prost(string, tag = "3")]
    pub user: ::prost::alloc::string::String,
    /// Password for database access.
    #[prost(message, optional, tag = "4")]
    pub password: ::core::option::Option<Secret>,
    /// Cleanup policy for activate, reactivate and reupload processes. Default is
    /// truncate.
    #[prost(enumeration = "CleanupPolicy", tag = "5")]
    pub cleanup_policy: i32,
    /// Security groups
    #[prost(string, repeated, tag = "7")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YdbSource {
    /// Path in YDB where to store tables
    #[prost(string, tag = "1")]
    pub database: ::prost::alloc::string::String,
    /// Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
    #[prost(string, tag = "2")]
    pub instance: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "5")]
    pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, tag = "6")]
    pub service_account_id: ::prost::alloc::string::String,
    /// Network interface for endpoint. If none will assume public ipv4
    #[prost(string, tag = "30")]
    pub subnet_id: ::prost::alloc::string::String,
    /// Authorization Key
    #[prost(string, tag = "33")]
    pub sa_key_content: ::prost::alloc::string::String,
    /// Security groups
    #[prost(string, repeated, tag = "34")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Pre-created change feed
    #[prost(string, tag = "35")]
    pub changefeed_custom_name: ::prost::alloc::string::String,
    #[prost(string, tag = "36")]
    pub changefeed_custom_consumer_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YdbTarget {
    /// Path in YDB where to store tables
    #[prost(string, tag = "1")]
    pub database: ::prost::alloc::string::String,
    /// Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
    #[prost(string, tag = "2")]
    pub instance: ::prost::alloc::string::String,
    /// Path extension for database, each table will be layouted into this path
    #[prost(string, tag = "10")]
    pub path: ::prost::alloc::string::String,
    #[prost(string, tag = "11")]
    pub service_account_id: ::prost::alloc::string::String,
    /// Cleanup policy
    #[prost(enumeration = "YdbCleanupPolicy", tag = "21")]
    pub cleanup_policy: i32,
    /// Network interface for endpoint. If none will assume public ipv4
    #[prost(string, tag = "30")]
    pub subnet_id: ::prost::alloc::string::String,
    /// SA content
    #[prost(string, tag = "32")]
    pub sa_key_content: ::prost::alloc::string::String,
    /// Security groups
    #[prost(string, repeated, tag = "33")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Should create column-oriented table (OLAP). By default it creates row-oriented
    /// (OLTP)
    #[prost(bool, tag = "34")]
    pub is_table_column_oriented: bool,
    /// Compression that will be used for default columns family on YDB table creation
    #[prost(enumeration = "YdbDefaultCompression", tag = "35")]
    pub default_compression: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum YdbCleanupPolicy {
    Unspecified = 0,
    Disabled = 1,
    Drop = 2,
}
impl YdbCleanupPolicy {
    /// 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 {
            YdbCleanupPolicy::Unspecified => "YDB_CLEANUP_POLICY_UNSPECIFIED",
            YdbCleanupPolicy::Disabled => "YDB_CLEANUP_POLICY_DISABLED",
            YdbCleanupPolicy::Drop => "YDB_CLEANUP_POLICY_DROP",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "YDB_CLEANUP_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
            "YDB_CLEANUP_POLICY_DISABLED" => Some(Self::Disabled),
            "YDB_CLEANUP_POLICY_DROP" => Some(Self::Drop),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum YdbDefaultCompression {
    Unspecified = 0,
    Disabled = 1,
    Lz4 = 2,
}
impl YdbDefaultCompression {
    /// 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 {
            YdbDefaultCompression::Unspecified => "YDB_DEFAULT_COMPRESSION_UNSPECIFIED",
            YdbDefaultCompression::Disabled => "YDB_DEFAULT_COMPRESSION_DISABLED",
            YdbDefaultCompression::Lz4 => "YDB_DEFAULT_COMPRESSION_LZ4",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "YDB_DEFAULT_COMPRESSION_UNSPECIFIED" => Some(Self::Unspecified),
            "YDB_DEFAULT_COMPRESSION_DISABLED" => Some(Self::Disabled),
            "YDB_DEFAULT_COMPRESSION_LZ4" => Some(Self::Lz4),
            _ => None,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YdsSource {
    /// Database
    #[prost(string, tag = "1")]
    pub database: ::prost::alloc::string::String,
    /// Stream
    #[prost(string, tag = "2")]
    pub stream: ::prost::alloc::string::String,
    /// SA which has read access to the stream.
    #[prost(string, tag = "8")]
    pub service_account_id: ::prost::alloc::string::String,
    /// Compression codec
    #[prost(enumeration = "YdsCompressionCodec", repeated, tag = "9")]
    pub supported_codecs: ::prost::alloc::vec::Vec<i32>,
    /// Data parsing rules
    #[prost(message, optional, tag = "10")]
    pub parser: ::core::option::Option<Parser>,
    /// Should continue working, if consumer read lag exceed TTL of topic
    /// False: stop the transfer in error state, if detected lost data. True: continue
    /// working with losing part of data
    #[prost(bool, tag = "11")]
    pub allow_ttl_rewind: bool,
    /// for dedicated db
    #[prost(string, tag = "20")]
    pub endpoint: ::prost::alloc::string::String,
    /// Network interface for endpoint. If none will assume public ipv4
    #[prost(string, tag = "30")]
    pub subnet_id: ::prost::alloc::string::String,
    /// Security groups
    #[prost(string, repeated, tag = "34")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// for important streams
    #[prost(string, tag = "35")]
    pub consumer: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YdsTarget {
    /// Database
    #[prost(string, tag = "1")]
    pub database: ::prost::alloc::string::String,
    /// Stream
    #[prost(string, tag = "2")]
    pub stream: ::prost::alloc::string::String,
    /// SA which has read access to the stream.
    #[prost(string, tag = "3")]
    pub service_account_id: ::prost::alloc::string::String,
    /// Save transaction order
    /// Not to split events queue into separate per-table queues.
    /// Incompatible with setting Topic prefix, only with Topic full name.
    #[prost(bool, tag = "4")]
    pub save_tx_order: bool,
    #[prost(enumeration = "YdsCompressionCodec", tag = "5")]
    pub compression_codec: i32,
    /// Data serialization format
    #[prost(message, optional, tag = "8")]
    pub serializer: ::core::option::Option<Serializer>,
    /// for dedicated db
    #[prost(string, tag = "20")]
    pub endpoint: ::prost::alloc::string::String,
    /// Network interface for endpoint. If none will assume public ipv4
    #[prost(string, tag = "30")]
    pub subnet_id: ::prost::alloc::string::String,
    /// Security groups
    #[prost(string, repeated, tag = "34")]
    pub security_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum YdsCompressionCodec {
    Unspecified = 0,
    Raw = 1,
    Gzip = 2,
    Zstd = 4,
}
impl YdsCompressionCodec {
    /// 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 {
            YdsCompressionCodec::Unspecified => "YDS_COMPRESSION_CODEC_UNSPECIFIED",
            YdsCompressionCodec::Raw => "YDS_COMPRESSION_CODEC_RAW",
            YdsCompressionCodec::Gzip => "YDS_COMPRESSION_CODEC_GZIP",
            YdsCompressionCodec::Zstd => "YDS_COMPRESSION_CODEC_ZSTD",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "YDS_COMPRESSION_CODEC_UNSPECIFIED" => Some(Self::Unspecified),
            "YDS_COMPRESSION_CODEC_RAW" => Some(Self::Raw),
            "YDS_COMPRESSION_CODEC_GZIP" => Some(Self::Gzip),
            "YDS_COMPRESSION_CODEC_ZSTD" => Some(Self::Zstd),
            _ => None,
        }
    }
}