vitess-grpc 0.1.1

Vitess gRPC client library, auto-generated from the Vitess proto files using tonic-build.
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
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
/// ExecuteVtctlCommandRequest is the payload for ExecuteVtctlCommand.
/// timeouts are in nanoseconds.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteVtctlCommandRequest {
    #[prost(string, repeated, tag = "1")]
    pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(int64, tag = "2")]
    pub action_timeout: i64,
}
/// ExecuteVtctlCommandResponse is streamed back by ExecuteVtctlCommand.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteVtctlCommandResponse {
    #[prost(message, optional, tag = "1")]
    pub event: ::core::option::Option<super::logutil::Event>,
}
/// TableMaterializeSttings contains the settings for one table.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TableMaterializeSettings {
    #[prost(string, tag = "1")]
    pub target_table: ::prost::alloc::string::String,
    /// source_expression is a select statement.
    #[prost(string, tag = "2")]
    pub source_expression: ::prost::alloc::string::String,
    /// create_ddl contains the DDL to create the target table.
    /// If empty, the target table must already exist.
    /// if "copy", the target table DDL is the same as the source table.
    #[prost(string, tag = "3")]
    pub create_ddl: ::prost::alloc::string::String,
}
/// MaterializeSettings contains the settings for the Materialize command.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MaterializeSettings {
    /// workflow is the name of the workflow.
    #[prost(string, tag = "1")]
    pub workflow: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub source_keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub target_keyspace: ::prost::alloc::string::String,
    /// stop_after_copy specifies if vreplication should be stopped after copying.
    #[prost(bool, tag = "4")]
    pub stop_after_copy: bool,
    #[prost(message, repeated, tag = "5")]
    pub table_settings: ::prost::alloc::vec::Vec<TableMaterializeSettings>,
    /// optional parameters.
    #[prost(string, tag = "6")]
    pub cell: ::prost::alloc::string::String,
    #[prost(string, tag = "7")]
    pub tablet_types: ::prost::alloc::string::String,
    /// ExternalCluster is the name of the mounted cluster which has the source keyspace/db for this workflow
    /// it is of the type <cluster_type.cluster_name>
    #[prost(string, tag = "8")]
    pub external_cluster: ::prost::alloc::string::String,
    /// MaterializationIntent is used to identify the reason behind the materialization workflow: eg. MoveTables, CreateLookupVindex
    #[prost(enumeration = "MaterializationIntent", tag = "9")]
    pub materialization_intent: i32,
    /// SourceTimeZone is the time zone in which datetimes on the source were stored, provided as an option in MoveTable
    #[prost(string, tag = "10")]
    pub source_time_zone: ::prost::alloc::string::String,
    /// TargetTimeZone is not currently specifiable by the user, defaults to UTC for the forward workflows
    /// and to the SourceTimeZone in reverse workflows
    #[prost(string, tag = "11")]
    pub target_time_zone: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "12")]
    pub source_shards: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Keyspace {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub keyspace: ::core::option::Option<super::topodata::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Shard {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub shard: ::core::option::Option<super::topodata::Shard>,
}
/// TODO: comment the hell out of this.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Workflow {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub source: ::core::option::Option<workflow::ReplicationLocation>,
    #[prost(message, optional, tag = "3")]
    pub target: ::core::option::Option<workflow::ReplicationLocation>,
    #[prost(int64, tag = "4")]
    pub max_v_replication_lag: i64,
    #[prost(map = "string, message", tag = "5")]
    pub shard_streams: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        workflow::ShardStream,
    >,
}
/// Nested message and enum types in `Workflow`.
pub mod workflow {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ReplicationLocation {
        #[prost(string, tag = "1")]
        pub keyspace: ::prost::alloc::string::String,
        #[prost(string, repeated, tag = "2")]
        pub shards: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ShardStream {
        #[prost(message, repeated, tag = "1")]
        pub streams: ::prost::alloc::vec::Vec<Stream>,
        #[prost(message, repeated, tag = "2")]
        pub tablet_controls: ::prost::alloc::vec::Vec<
            super::super::topodata::shard::TabletControl,
        >,
        #[prost(bool, tag = "3")]
        pub is_primary_serving: bool,
    }
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Stream {
        #[prost(int64, tag = "1")]
        pub id: i64,
        #[prost(string, tag = "2")]
        pub shard: ::prost::alloc::string::String,
        #[prost(message, optional, tag = "3")]
        pub tablet: ::core::option::Option<super::super::topodata::TabletAlias>,
        #[prost(message, optional, tag = "4")]
        pub binlog_source: ::core::option::Option<
            super::super::binlogdata::BinlogSource,
        >,
        #[prost(string, tag = "5")]
        pub position: ::prost::alloc::string::String,
        #[prost(string, tag = "6")]
        pub stop_position: ::prost::alloc::string::String,
        #[prost(string, tag = "7")]
        pub state: ::prost::alloc::string::String,
        #[prost(string, tag = "8")]
        pub db_name: ::prost::alloc::string::String,
        #[prost(message, optional, tag = "9")]
        pub transaction_timestamp: ::core::option::Option<super::super::vttime::Time>,
        #[prost(message, optional, tag = "10")]
        pub time_updated: ::core::option::Option<super::super::vttime::Time>,
        #[prost(string, tag = "11")]
        pub message: ::prost::alloc::string::String,
        #[prost(message, repeated, tag = "12")]
        pub copy_states: ::prost::alloc::vec::Vec<stream::CopyState>,
        #[prost(message, repeated, tag = "13")]
        pub logs: ::prost::alloc::vec::Vec<stream::Log>,
        /// LogFetchError is set if we fail to fetch some logs for this stream. We
        /// will never fail to fetch workflows because we cannot fetch the logs, but
        /// we will still forward log-fetch errors to the caller, should that be
        /// relevant to the context in which they are fetching workflows.
        ///
        /// Note that this field being set does not necessarily mean that Logs is nil;
        /// if there are N logs that exist for the stream, and we fail to fetch the
        /// ith log, we will still return logs in [0, i) + (i, N].
        #[prost(string, tag = "14")]
        pub log_fetch_error: ::prost::alloc::string::String,
        #[prost(string, repeated, tag = "15")]
        pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
    /// Nested message and enum types in `Stream`.
    pub mod stream {
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct CopyState {
            #[prost(string, tag = "1")]
            pub table: ::prost::alloc::string::String,
            #[prost(string, tag = "2")]
            pub last_pk: ::prost::alloc::string::String,
        }
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct Log {
            #[prost(int64, tag = "1")]
            pub id: i64,
            #[prost(int64, tag = "2")]
            pub stream_id: i64,
            #[prost(string, tag = "3")]
            pub r#type: ::prost::alloc::string::String,
            #[prost(string, tag = "4")]
            pub state: ::prost::alloc::string::String,
            #[prost(message, optional, tag = "5")]
            pub created_at: ::core::option::Option<super::super::super::vttime::Time>,
            #[prost(message, optional, tag = "6")]
            pub updated_at: ::core::option::Option<super::super::super::vttime::Time>,
            #[prost(string, tag = "7")]
            pub message: ::prost::alloc::string::String,
            #[prost(int64, tag = "8")]
            pub count: i64,
        }
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddCellInfoRequest {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub cell_info: ::core::option::Option<super::topodata::CellInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddCellInfoResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddCellsAliasRequest {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddCellsAliasResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyRoutingRulesRequest {
    #[prost(message, optional, tag = "1")]
    pub routing_rules: ::core::option::Option<super::vschema::RoutingRules>,
    /// SkipRebuild, if set, will cause ApplyRoutingRules to skip rebuilding the
    /// SrvVSchema objects in each cell in RebuildCells.
    #[prost(bool, tag = "2")]
    pub skip_rebuild: bool,
    /// RebuildCells limits the SrvVSchema rebuild to the specified cells. If not
    /// provided the SrvVSchema will be rebuilt in every cell in the topology.
    ///
    /// Ignored if SkipRebuild is set.
    #[prost(string, repeated, tag = "3")]
    pub rebuild_cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyRoutingRulesResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyShardRoutingRulesRequest {
    #[prost(message, optional, tag = "1")]
    pub shard_routing_rules: ::core::option::Option<super::vschema::ShardRoutingRules>,
    /// SkipRebuild, if set, will cause ApplyShardRoutingRules to skip rebuilding the
    /// SrvVSchema objects in each cell in RebuildCells.
    #[prost(bool, tag = "2")]
    pub skip_rebuild: bool,
    /// RebuildCells limits the SrvVSchema rebuild to the specified cells. If not
    /// provided the SrvVSchema will be rebuilt in every cell in the topology.
    ///
    /// Ignored if SkipRebuild is set.
    #[prost(string, repeated, tag = "3")]
    pub rebuild_cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyShardRoutingRulesResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplySchemaRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Allow large schema changes which incur a longer unavailability of the database.
    #[prost(bool, tag = "2")]
    pub allow_long_unavailability: bool,
    /// SQL commands to run.
    #[prost(string, repeated, tag = "3")]
    pub sql: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Online DDL strategy, compatible with @@ddl_strategy session variable (examples: 'gh-ost', 'pt-osc', 'gh-ost --max-load=Threads_running=100'")
    #[prost(string, tag = "4")]
    pub ddl_strategy: ::prost::alloc::string::String,
    /// Optional: explicit UUIDs for migration.
    /// If given, must match number of DDL changes
    #[prost(string, repeated, tag = "5")]
    pub uuid_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// For Online DDL, optionally supply a custom unique string used as context for the migration(s) in this command.
    /// By default a unique context is auto-generated by Vitess
    #[prost(string, tag = "6")]
    pub migration_context: ::prost::alloc::string::String,
    /// WaitReplicasTimeout is the duration of time to wait for replicas to catch
    /// up in reparenting.
    #[prost(message, optional, tag = "7")]
    pub wait_replicas_timeout: ::core::option::Option<super::vttime::Duration>,
    /// Skip pre-apply schema checks, and directly forward schema change query to shards
    #[prost(bool, tag = "8")]
    pub skip_preflight: bool,
    /// caller_id identifies the caller. This is the effective caller ID,
    /// set by the application to further identify the caller.
    #[prost(message, optional, tag = "9")]
    pub caller_id: ::core::option::Option<super::vtrpc::CallerId>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplySchemaResponse {
    #[prost(string, repeated, tag = "1")]
    pub uuid_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyVSchemaRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub skip_rebuild: bool,
    #[prost(bool, tag = "3")]
    pub dry_run: bool,
    #[prost(string, repeated, tag = "4")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "5")]
    pub v_schema: ::core::option::Option<super::vschema::Keyspace>,
    #[prost(string, tag = "6")]
    pub sql: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplyVSchemaResponse {
    #[prost(message, optional, tag = "1")]
    pub v_schema: ::core::option::Option<super::vschema::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    /// AllowPrimary allows the backup to proceed if TabletAlias is a PRIMARY.
    ///
    /// WARNING: If using the builtin backup engine, this will shutdown mysqld on
    /// the primary for the duration of the backup, and no writes will be possible.
    #[prost(bool, tag = "2")]
    pub allow_primary: bool,
    /// Concurrency specifies the number of compression/checksum jobs to run
    /// simultaneously.
    #[prost(uint64, tag = "3")]
    pub concurrency: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupResponse {
    /// TabletAlias is the alias being used for the backup.
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(string, tag = "2")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub shard: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub event: ::core::option::Option<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupShardRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    /// AllowPrimary allows the backup to occur on a PRIMARY tablet. See
    /// BackupRequest.AllowPrimary for warnings and caveats.
    #[prost(bool, tag = "3")]
    pub allow_primary: bool,
    /// Concurrency specifies the number of compression/checksum jobs to run
    /// simultaneously.
    #[prost(uint64, tag = "4")]
    pub concurrency: u64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeTabletTypeRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(enumeration = "super::topodata::TabletType", tag = "2")]
    pub db_type: i32,
    #[prost(bool, tag = "3")]
    pub dry_run: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeTabletTypeResponse {
    #[prost(message, optional, tag = "1")]
    pub before_tablet: ::core::option::Option<super::topodata::Tablet>,
    #[prost(message, optional, tag = "2")]
    pub after_tablet: ::core::option::Option<super::topodata::Tablet>,
    #[prost(bool, tag = "3")]
    pub was_dry_run: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateKeyspaceRequest {
    /// Name is the name of the keyspace.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Force proceeds with the request even if the keyspace already exists.
    #[prost(bool, tag = "2")]
    pub force: bool,
    /// AllowEmptyVSchema allows a keyspace to be created with no vschema.
    #[prost(bool, tag = "3")]
    pub allow_empty_v_schema: bool,
    /// ServedFroms specifies a set of db_type:keyspace pairs used to serve
    /// traffic for the keyspace.
    #[prost(message, repeated, tag = "6")]
    pub served_froms: ::prost::alloc::vec::Vec<super::topodata::keyspace::ServedFrom>,
    /// Type is the type of the keyspace to create.
    #[prost(enumeration = "super::topodata::KeyspaceType", tag = "7")]
    pub r#type: i32,
    /// BaseKeyspace specifies the base keyspace for SNAPSHOT keyspaces. It is
    /// required to create a SNAPSHOT keyspace.
    #[prost(string, tag = "8")]
    pub base_keyspace: ::prost::alloc::string::String,
    /// SnapshotTime specifies the snapshot time for this keyspace. It is required
    /// to create a SNAPSHOT keyspace.
    #[prost(message, optional, tag = "9")]
    pub snapshot_time: ::core::option::Option<super::vttime::Time>,
    /// DurabilityPolicy is the durability policy to be
    /// used for this keyspace.
    #[prost(string, tag = "10")]
    pub durability_policy: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateKeyspaceResponse {
    /// Keyspace is the newly-created keyspace.
    #[prost(message, optional, tag = "1")]
    pub keyspace: ::core::option::Option<Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateShardRequest {
    /// Keyspace is the name of the keyspace to create the shard in.
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// ShardName is the name of the shard to create. E.g. "-" or "-80".
    #[prost(string, tag = "2")]
    pub shard_name: ::prost::alloc::string::String,
    /// Force treats an attempt to create a shard that already exists as a
    /// non-error.
    #[prost(bool, tag = "3")]
    pub force: bool,
    /// IncludeParent creates the parent keyspace as an empty BASE keyspace, if it
    /// doesn't already exist.
    #[prost(bool, tag = "4")]
    pub include_parent: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateShardResponse {
    /// Keyspace is the created keyspace. It is set only if IncludeParent was
    /// specified in the request and the parent keyspace needed to be created.
    #[prost(message, optional, tag = "1")]
    pub keyspace: ::core::option::Option<Keyspace>,
    /// Shard is the newly-created shard object.
    #[prost(message, optional, tag = "2")]
    pub shard: ::core::option::Option<Shard>,
    /// ShardAlreadyExists is set if Force was specified in the request and the
    /// shard already existed.
    #[prost(bool, tag = "3")]
    pub shard_already_exists: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCellInfoRequest {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub force: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCellInfoResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCellsAliasRequest {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCellsAliasResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteKeyspaceRequest {
    /// Keyspace is the name of the keyspace to delete.
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Recursive causes all shards in the keyspace to be recursively deleted
    /// before deleting the keyspace. It is an error to call DeleteKeyspace on a
    /// non-empty keyspace without also specifying Recursive.
    #[prost(bool, tag = "2")]
    pub recursive: bool,
    /// Force allows a keyspace to be deleted even if the keyspace lock cannot be
    /// obtained. This should only be used to force-clean a keyspace.
    #[prost(bool, tag = "3")]
    pub force: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteKeyspaceResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteShardsRequest {
    /// Shards is the list of shards to delete. The nested topodatapb.Shard field
    /// is not required for DeleteShard, but the Keyspace and Shard fields are.
    #[prost(message, repeated, tag = "1")]
    pub shards: ::prost::alloc::vec::Vec<Shard>,
    /// Recursive also deletes all tablets belonging to the shard(s). It is an
    /// error to call DeleteShard on a non-empty shard without also specificying
    /// Recursive.
    #[prost(bool, tag = "2")]
    pub recursive: bool,
    /// EvenIfServing allows a shard to be deleted even if it is serving, which is
    /// normally an error. Use with caution.
    #[prost(bool, tag = "4")]
    pub even_if_serving: bool,
    /// Force allows a shard to be deleted even if the shard lock cannot be
    /// obtained. This should only be used to force-clean a shard.
    #[prost(bool, tag = "5")]
    pub force: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteShardsResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSrvVSchemaRequest {
    #[prost(string, tag = "1")]
    pub cell: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSrvVSchemaResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTabletsRequest {
    /// TabletAliases is the list of tablets to delete.
    #[prost(message, repeated, tag = "1")]
    pub tablet_aliases: ::prost::alloc::vec::Vec<super::topodata::TabletAlias>,
    /// AllowPrimary allows for the primary tablet of a shard to be deleted.
    /// Use with caution.
    #[prost(bool, tag = "2")]
    pub allow_primary: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteTabletsResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EmergencyReparentShardRequest {
    /// Keyspace is the name of the keyspace to perform the Emergency Reparent in.
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Shard is the name of the shard to perform the Emergency Reparent in.
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    /// Optional alias of a tablet that should become the new shard primary. If not
    /// not specified, the vtctld will select the most up-to-date canditate to
    /// promote.
    #[prost(message, optional, tag = "3")]
    pub new_primary: ::core::option::Option<super::topodata::TabletAlias>,
    /// List of replica aliases to ignore during the Emergency Reparent. The vtctld
    /// will not attempt to stop replication on these tablets, nor attempt to
    /// demote any that may think they are the shard primary.
    #[prost(message, repeated, tag = "4")]
    pub ignore_replicas: ::prost::alloc::vec::Vec<super::topodata::TabletAlias>,
    /// WaitReplicasTimeout is the duration of time to wait for replicas to catch
    /// up in reparenting.
    #[prost(message, optional, tag = "5")]
    pub wait_replicas_timeout: ::core::option::Option<super::vttime::Duration>,
    /// PreventCrossCellPromotion is used to only promote the new primary from the same cell
    /// as the failed primary.
    #[prost(bool, tag = "6")]
    pub prevent_cross_cell_promotion: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EmergencyReparentShardResponse {
    /// Keyspace is the name of the keyspace the Emergency Reparent took place in.
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Shard is the name of the shard the Emergency Reparent took place in.
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    /// PromotedPrimary is the alias of the tablet that was promoted to shard
    /// primary. If NewPrimary was set in the request, then this will be the same
    /// alias. Otherwise, it will be the alias of the tablet found to be most
    /// up-to-date.
    #[prost(message, optional, tag = "3")]
    pub promoted_primary: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(message, repeated, tag = "4")]
    pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteFetchAsAppRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(string, tag = "2")]
    pub query: ::prost::alloc::string::String,
    /// MaxRows is an optional parameter to limit the number of rows read into the
    /// QueryResult. Note that this does not apply a LIMIT to the query, just how
    /// many rows are read from the MySQL server on the tablet side.
    ///
    /// This field is optional. Specifying a non-positive value will use whatever
    /// default is configured in the VtctldService.
    #[prost(int64, tag = "3")]
    pub max_rows: i64,
    /// UsePool causes the query to be run with a pooled connection to the tablet.
    #[prost(bool, tag = "4")]
    pub use_pool: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteFetchAsAppResponse {
    #[prost(message, optional, tag = "1")]
    pub result: ::core::option::Option<super::query::QueryResult>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteFetchAsDbaRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(string, tag = "2")]
    pub query: ::prost::alloc::string::String,
    /// MaxRows is an optional parameter to limit the number of rows read into the
    /// QueryResult. Note that this does not apply a LIMIT to the query, just how
    /// many rows are read from the MySQL server on the tablet side.
    ///
    /// This field is optional. Specifying a non-positive value will use whatever
    /// default is configured in the VtctldService.
    #[prost(int64, tag = "3")]
    pub max_rows: i64,
    /// DisableBinlogs instructs the tablet not to use binary logging when
    /// executing the query.
    #[prost(bool, tag = "4")]
    pub disable_binlogs: bool,
    /// ReloadSchema instructs the tablet to reload its schema after executing the
    /// query.
    #[prost(bool, tag = "5")]
    pub reload_schema: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteFetchAsDbaResponse {
    #[prost(message, optional, tag = "1")]
    pub result: ::core::option::Option<super::query::QueryResult>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteHookRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(message, optional, tag = "2")]
    pub tablet_hook_request: ::core::option::Option<
        super::tabletmanagerdata::ExecuteHookRequest,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteHookResponse {
    #[prost(message, optional, tag = "1")]
    pub hook_result: ::core::option::Option<
        super::tabletmanagerdata::ExecuteHookResponse,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FindAllShardsInKeyspaceRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FindAllShardsInKeyspaceResponse {
    #[prost(map = "string, message", tag = "1")]
    pub shards: ::std::collections::HashMap<::prost::alloc::string::String, Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBackupsRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    /// Limit, if nonzero, will return only the most N recent backups.
    #[prost(uint32, tag = "3")]
    pub limit: u32,
    /// Detailed indicates whether to use the backupengine, if supported, to
    /// populate additional fields, such as Engine and Status, on BackupInfo
    /// objects in the response. If not set, or if the backupengine does not
    /// support populating these fields, Engine will always be empty, and Status
    /// will always be UNKNOWN.
    #[prost(bool, tag = "4")]
    pub detailed: bool,
    /// DetailedLimit, if nonzero, will only populate additional fields (see Detailed)
    /// on the N most recent backups. The Limit field still dictates the total
    /// number of backup info objects returned, so, in reality, min(Limit, DetailedLimit)
    /// backup infos will have additional fields set, and any remaining backups
    /// will not.
    #[prost(uint32, tag = "5")]
    pub detailed_limit: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetBackupsResponse {
    #[prost(message, repeated, tag = "1")]
    pub backups: ::prost::alloc::vec::Vec<super::mysqlctl::BackupInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellInfoRequest {
    #[prost(string, tag = "1")]
    pub cell: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellInfoResponse {
    #[prost(message, optional, tag = "1")]
    pub cell_info: ::core::option::Option<super::topodata::CellInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellInfoNamesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellInfoNamesResponse {
    #[prost(string, repeated, tag = "1")]
    pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellsAliasesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCellsAliasesResponse {
    #[prost(map = "string, message", tag = "1")]
    pub aliases: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        super::topodata::CellsAlias,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFullStatusRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetFullStatusResponse {
    #[prost(message, optional, tag = "1")]
    pub status: ::core::option::Option<super::replicationdata::FullStatus>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetKeyspacesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetKeyspacesResponse {
    #[prost(message, repeated, tag = "1")]
    pub keyspaces: ::prost::alloc::vec::Vec<Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetKeyspaceRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetKeyspaceResponse {
    #[prost(message, optional, tag = "1")]
    pub keyspace: ::core::option::Option<Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPermissionsRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPermissionsResponse {
    #[prost(message, optional, tag = "1")]
    pub permissions: ::core::option::Option<super::tabletmanagerdata::Permissions>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRoutingRulesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetRoutingRulesResponse {
    #[prost(message, optional, tag = "1")]
    pub routing_rules: ::core::option::Option<super::vschema::RoutingRules>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSchemaRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    /// Tables is a list of tables for which we should gather information. Each is
    /// either an exact match, or a regular expression of the form /regexp/.
    #[prost(string, repeated, tag = "2")]
    pub tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// ExcludeTables is a list of tables to exclude from the result. Each is
    /// either an exact match, or a regular expression of the form /regexp/.
    #[prost(string, repeated, tag = "3")]
    pub exclude_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// IncludeViews specifies whether to include views in the result.
    #[prost(bool, tag = "4")]
    pub include_views: bool,
    /// TableNamesOnly specifies whether to limit the results to just table names,
    /// rather than full schema information for each table.
    #[prost(bool, tag = "5")]
    pub table_names_only: bool,
    /// TableSizesOnly specifies whether to limit the results to just table sizes,
    /// rather than full schema information for each table. It is ignored if
    /// TableNamesOnly is set to true.
    #[prost(bool, tag = "6")]
    pub table_sizes_only: bool,
    /// TableSchemaOnly specifies whether to limit the results to just table/view
    /// schema definition (CREATE TABLE/VIEW statements) and skip column/field information
    #[prost(bool, tag = "7")]
    pub table_schema_only: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSchemaResponse {
    #[prost(message, optional, tag = "1")]
    pub schema: ::core::option::Option<super::tabletmanagerdata::SchemaDefinition>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShardRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShardResponse {
    #[prost(message, optional, tag = "1")]
    pub shard: ::core::option::Option<Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShardRoutingRulesRequest {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetShardRoutingRulesResponse {
    #[prost(message, optional, tag = "1")]
    pub shard_routing_rules: ::core::option::Option<super::vschema::ShardRoutingRules>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvKeyspaceNamesRequest {
    #[prost(string, repeated, tag = "1")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvKeyspaceNamesResponse {
    /// Names is a mapping of cell name to a list of SrvKeyspace names.
    #[prost(map = "string, message", tag = "1")]
    pub names: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        get_srv_keyspace_names_response::NameList,
    >,
}
/// Nested message and enum types in `GetSrvKeyspaceNamesResponse`.
pub mod get_srv_keyspace_names_response {
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct NameList {
        #[prost(string, repeated, tag = "1")]
        pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvKeyspacesRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Cells is a list of cells to lookup a SrvKeyspace for. Leaving this empty is
    /// equivalent to specifying all cells in the topo.
    #[prost(string, repeated, tag = "2")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvKeyspacesResponse {
    /// SrvKeyspaces is a mapping of cell name to SrvKeyspace.
    #[prost(map = "string, message", tag = "1")]
    pub srv_keyspaces: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        super::topodata::SrvKeyspace,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvVSchemaRequest {
    #[prost(string, tag = "1")]
    pub cell: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvVSchemaResponse {
    #[prost(message, optional, tag = "1")]
    pub srv_v_schema: ::core::option::Option<super::vschema::SrvVSchema>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvVSchemasRequest {
    #[prost(string, repeated, tag = "2")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSrvVSchemasResponse {
    /// SrvVSchemas is a mapping of cell name to SrvVSchema
    #[prost(map = "string, message", tag = "1")]
    pub srv_v_schemas: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        super::vschema::SrvVSchema,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTabletRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTabletResponse {
    #[prost(message, optional, tag = "1")]
    pub tablet: ::core::option::Option<super::topodata::Tablet>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTabletsRequest {
    /// Keyspace is the name of the keyspace to return tablets for. Omit to return
    /// tablets from all keyspaces.
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Shard is the name of the shard to return tablets for. This field is ignored
    /// if Keyspace is not set.
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    /// Cells is an optional set of cells to return tablets for.
    #[prost(string, repeated, tag = "3")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Strict specifies how the server should treat failures from individual
    /// cells.
    ///
    /// When false (the default), GetTablets will return data from any cells that
    /// return successfully, but will fail the request if all cells fail. When
    /// true, any individual cell can fail the full request.
    #[prost(bool, tag = "4")]
    pub strict: bool,
    /// TabletAliases is an optional list of tablet aliases to fetch Tablet objects
    /// for. If specified, Keyspace, Shard, and Cells are ignored, and tablets are
    /// looked up by their respective aliases' Cells directly.
    #[prost(message, repeated, tag = "5")]
    pub tablet_aliases: ::prost::alloc::vec::Vec<super::topodata::TabletAlias>,
    /// tablet_type specifies the type of tablets to return. Omit to return all
    /// tablet types.
    #[prost(enumeration = "super::topodata::TabletType", tag = "6")]
    pub tablet_type: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTabletsResponse {
    #[prost(message, repeated, tag = "1")]
    pub tablets: ::prost::alloc::vec::Vec<super::topodata::Tablet>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTopologyPathRequest {
    #[prost(string, tag = "1")]
    pub path: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetTopologyPathResponse {
    #[prost(message, optional, tag = "1")]
    pub cell: ::core::option::Option<TopologyCell>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TopologyCell {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub path: ::prost::alloc::string::String,
    /// Data is the file contents of the cell located at path.
    /// It is only populated if the cell is a terminal node.
    #[prost(string, tag = "3")]
    pub data: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "4")]
    pub children: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVSchemaRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVersionRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVersionResponse {
    #[prost(string, tag = "1")]
    pub version: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVSchemaResponse {
    #[prost(message, optional, tag = "1")]
    pub v_schema: ::core::option::Option<super::vschema::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkflowsRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub active_only: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkflowsResponse {
    #[prost(message, repeated, tag = "1")]
    pub workflows: ::prost::alloc::vec::Vec<Workflow>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitShardPrimaryRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub primary_elect_tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(bool, tag = "4")]
    pub force: bool,
    #[prost(message, optional, tag = "5")]
    pub wait_replicas_timeout: ::core::option::Option<super::vttime::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InitShardPrimaryResponse {
    #[prost(message, repeated, tag = "1")]
    pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingTabletRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingTabletResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlannedReparentShardRequest {
    /// Keyspace is the name of the keyspace to perform the Planned Reparent in.
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Shard is the name of the shard to perform teh Planned Reparent in.
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    /// NewPrimary is the alias of the tablet to promote to shard primary. If not
    /// specified, the vtctld will select the most up-to-date candidate to promote.
    ///
    /// It is an error to set NewPrimary and AvoidPrimary to the same alias.
    #[prost(message, optional, tag = "3")]
    pub new_primary: ::core::option::Option<super::topodata::TabletAlias>,
    /// AvoidPrimary is the alias of the tablet to demote. In other words,
    /// specifying an AvoidPrimary alias tells the vtctld to promote any replica
    /// other than this one. A shard whose current primary is not this one is then
    /// a no-op.
    ///
    /// It is an error to set NewPrimary and AvoidPrimary to the same alias.
    #[prost(message, optional, tag = "4")]
    pub avoid_primary: ::core::option::Option<super::topodata::TabletAlias>,
    /// WaitReplicasTimeout is the duration of time to wait for replicas to catch
    /// up in replication both before and after the reparent. The timeout is not
    /// cumulative across both wait periods, meaning that the replicas have
    /// WaitReplicasTimeout time to catch up before the reparent, and an additional
    /// WaitReplicasTimeout time to catch up after the reparent.
    #[prost(message, optional, tag = "5")]
    pub wait_replicas_timeout: ::core::option::Option<super::vttime::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PlannedReparentShardResponse {
    /// Keyspace is the name of the keyspace the Planned Reparent took place in.
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Shard is the name of the shard the Planned Reparent took place in.
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    /// PromotedPrimary is the alias of the tablet that was promoted to shard
    /// primary. If NewPrimary was set in the request, then this will be the same
    /// alias. Otherwise, it will be the alias of the tablet found to be most
    /// up-to-date.
    #[prost(message, optional, tag = "3")]
    pub promoted_primary: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(message, repeated, tag = "4")]
    pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RebuildKeyspaceGraphRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// AllowPartial, when set, allows a SNAPSHOT keyspace to serve with an
    /// incomplete set of shards. It is ignored for all other keyspace types.
    #[prost(bool, tag = "3")]
    pub allow_partial: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RebuildKeyspaceGraphResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RebuildVSchemaGraphRequest {
    /// Cells specifies the cells to rebuild the SrvVSchema objects for. If empty,
    /// RebuildVSchemaGraph rebuilds the SrvVSchema for every cell in the topo.
    #[prost(string, repeated, tag = "1")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RebuildVSchemaGraphResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshStateRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshStateResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshStateByShardRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "3")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RefreshStateByShardResponse {
    #[prost(bool, tag = "1")]
    pub is_partial_refresh: bool,
    /// This explains why we had a partial refresh (if we did)
    #[prost(string, tag = "2")]
    pub partial_refresh_details: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaKeyspaceRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub wait_position: ::prost::alloc::string::String,
    #[prost(bool, tag = "3")]
    pub include_primary: bool,
    /// Concurrency is the global concurrency across all shards in the keyspace
    /// (so, at most this many tablets will be reloaded across the keyspace at any
    /// given point).
    #[prost(uint32, tag = "4")]
    pub concurrency: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaKeyspaceResponse {
    #[prost(message, repeated, tag = "1")]
    pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaShardRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub wait_position: ::prost::alloc::string::String,
    #[prost(bool, tag = "4")]
    pub include_primary: bool,
    /// Concurrency is the maximum number of tablets to reload at one time.
    #[prost(uint32, tag = "5")]
    pub concurrency: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReloadSchemaShardResponse {
    #[prost(message, repeated, tag = "2")]
    pub events: ::prost::alloc::vec::Vec<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveBackupRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveBackupResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveKeyspaceCellRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub cell: ::prost::alloc::string::String,
    /// Force proceeds even if the cell's topology server cannot be reached. This
    /// should only be set if a cell has been shut down entirely, and the global
    /// topology data just needs to be updated.
    #[prost(bool, tag = "3")]
    pub force: bool,
    /// Recursive also deletes all tablets in that cell belonging to the specified
    /// keyspace.
    #[prost(bool, tag = "4")]
    pub recursive: bool,
}
/// (TODO:@amason) Consider including the deleted SrvKeyspace object and any
/// deleted Tablet objects here.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveKeyspaceCellResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveShardCellRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard_name: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub cell: ::prost::alloc::string::String,
    /// Force proceeds even if the cell's topology server cannot be reached. This
    /// should only be set if a cell has been shut down entirely, and the global
    /// topology data just needs to be updated.
    #[prost(bool, tag = "4")]
    pub force: bool,
    /// Recursive also deletes all tablets in that cell belonging to the specified
    /// keyspace and shard.
    #[prost(bool, tag = "5")]
    pub recursive: bool,
}
/// (TODO:@amason) Consider including the deleted SrvKeyspacePartitions objects
/// and any deleted Tablet objects here.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveShardCellResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReparentTabletRequest {
    /// Tablet is the alias of the tablet that should be reparented under the
    /// current shard primary.
    #[prost(message, optional, tag = "1")]
    pub tablet: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReparentTabletResponse {
    /// Keyspace is the name of the keyspace the tablet was reparented in.
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    /// Shard is the name of the shard the tablet was reparented in.
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    /// Primary is the alias of the tablet that the tablet was reparented under.
    #[prost(message, optional, tag = "3")]
    pub primary: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RestoreFromBackupRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    /// BackupTime, if set, will use the backup taken most closely at or before
    /// this time. If nil, the latest backup will be restored on the tablet.
    #[prost(message, optional, tag = "2")]
    pub backup_time: ::core::option::Option<super::vttime::Time>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RestoreFromBackupResponse {
    /// TabletAlias is the alias of the tablet doing the restore.
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(string, tag = "2")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub shard: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub event: ::core::option::Option<super::logutil::Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunHealthCheckRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RunHealthCheckResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceDurabilityPolicyRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub durability_policy: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceDurabilityPolicyResponse {
    /// Keyspace is the updated keyspace record.
    #[prost(message, optional, tag = "1")]
    pub keyspace: ::core::option::Option<super::topodata::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceServedFromRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(enumeration = "super::topodata::TabletType", tag = "2")]
    pub tablet_type: i32,
    #[prost(string, repeated, tag = "3")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(bool, tag = "4")]
    pub remove: bool,
    #[prost(string, tag = "5")]
    pub source_keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceServedFromResponse {
    /// Keyspace is the updated keyspace record.
    #[prost(message, optional, tag = "1")]
    pub keyspace: ::core::option::Option<super::topodata::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceShardingInfoRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(bool, tag = "4")]
    pub force: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetKeyspaceShardingInfoResponse {
    /// Keyspace is the updated keyspace record.
    #[prost(message, optional, tag = "1")]
    pub keyspace: ::core::option::Option<super::topodata::Keyspace>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShardIsPrimaryServingRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(bool, tag = "3")]
    pub is_serving: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShardIsPrimaryServingResponse {
    /// Shard is the updated shard record.
    #[prost(message, optional, tag = "1")]
    pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShardTabletControlRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(enumeration = "super::topodata::TabletType", tag = "3")]
    pub tablet_type: i32,
    #[prost(string, repeated, tag = "4")]
    pub cells: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// DeniedTables updates the list of denied tables the shard will serve for
    /// the given tablet type. This is useful to fix tables that are being blocked
    /// after a MoveTables operation.
    ///
    /// NOTE: Setting this field will cause DisableQueryService to be ignored.
    #[prost(string, repeated, tag = "5")]
    pub denied_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// DisableQueryService instructs whether to enable the query service on
    /// tablets of the given type in the shard. This is useful to fix Reshard
    /// operations gone awry.
    ///
    /// NOTE: this is ignored if DeniedTables is not empty.
    #[prost(bool, tag = "6")]
    pub disable_query_service: bool,
    /// Remove removes the ShardTabletControl record entirely. If set, this takes
    /// precedence over DeniedTables and DisableQueryService fields, and is useful
    /// to manually remove serving restrictions after a completed MoveTables
    /// operation.
    #[prost(bool, tag = "7")]
    pub remove: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetShardTabletControlResponse {
    /// Shard is the updated shard record.
    #[prost(message, optional, tag = "1")]
    pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetWritableRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(bool, tag = "2")]
    pub writable: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetWritableResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationAddRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationAddResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationFixRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub cell: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationFixResponse {
    /// Error contains information about the error fixed by a
    /// ShardReplicationFix RPC. If there were no errors to fix (i.e. all nodes
    /// in the replication graph are valid), this field is nil.
    #[prost(message, optional, tag = "1")]
    pub error: ::core::option::Option<super::topodata::ShardReplicationError>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationPositionsRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationPositionsResponse {
    /// ReplicationStatuses is a mapping of tablet alias string to replication
    /// status for that tablet.
    #[prost(map = "string, message", tag = "1")]
    pub replication_statuses: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        super::replicationdata::Status,
    >,
    /// TabletMap is the set of tablets whose replication statuses were queried,
    /// keyed by tablet alias.
    #[prost(map = "string, message", tag = "2")]
    pub tablet_map: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        super::topodata::Tablet,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationRemoveRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ShardReplicationRemoveResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SleepTabletRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(message, optional, tag = "2")]
    pub duration: ::core::option::Option<super::vttime::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SleepTabletResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceShardAddRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(uint32, tag = "3")]
    pub uid: u32,
    #[prost(string, tag = "4")]
    pub source_keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub source_shard: ::prost::alloc::string::String,
    /// KeyRange identifies the key range to use for the SourceShard. This field is
    /// optional.
    #[prost(message, optional, tag = "6")]
    pub key_range: ::core::option::Option<super::topodata::KeyRange>,
    /// Tables is a list of tables replicate (for MoveTables). Each "table" can be
    /// either an exact match or a regular expression of the form "/regexp/".
    #[prost(string, repeated, tag = "7")]
    pub tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceShardAddResponse {
    /// Shard is the updated shard record.
    #[prost(message, optional, tag = "1")]
    pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceShardDeleteRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(uint32, tag = "3")]
    pub uid: u32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceShardDeleteResponse {
    /// Shard is the updated shard record.
    #[prost(message, optional, tag = "1")]
    pub shard: ::core::option::Option<super::topodata::Shard>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartReplicationRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartReplicationResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopReplicationRequest {
    #[prost(message, optional, tag = "1")]
    pub tablet_alias: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StopReplicationResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TabletExternallyReparentedRequest {
    /// Tablet is the alias of the tablet that was promoted externally and should
    /// be updated to the shard primary in the topo.
    #[prost(message, optional, tag = "1")]
    pub tablet: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TabletExternallyReparentedResponse {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub new_primary: ::core::option::Option<super::topodata::TabletAlias>,
    #[prost(message, optional, tag = "4")]
    pub old_primary: ::core::option::Option<super::topodata::TabletAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCellInfoRequest {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub cell_info: ::core::option::Option<super::topodata::CellInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCellInfoResponse {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub cell_info: ::core::option::Option<super::topodata::CellInfo>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCellsAliasRequest {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub cells_alias: ::core::option::Option<super::topodata::CellsAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCellsAliasResponse {
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub cells_alias: ::core::option::Option<super::topodata::CellsAlias>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateRequest {
    #[prost(bool, tag = "1")]
    pub ping_tablets: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateResponse {
    #[prost(string, repeated, tag = "1")]
    pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, message", tag = "2")]
    pub results_by_keyspace: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ValidateKeyspaceResponse,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateKeyspaceRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(bool, tag = "2")]
    pub ping_tablets: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateKeyspaceResponse {
    #[prost(string, repeated, tag = "1")]
    pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, message", tag = "2")]
    pub results_by_shard: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ValidateShardResponse,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateSchemaKeyspaceRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub exclude_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(bool, tag = "3")]
    pub include_views: bool,
    #[prost(bool, tag = "4")]
    pub skip_no_primary: bool,
    #[prost(bool, tag = "5")]
    pub include_vschema: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateSchemaKeyspaceResponse {
    #[prost(string, repeated, tag = "1")]
    pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, message", tag = "2")]
    pub results_by_shard: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ValidateShardResponse,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateShardRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
    #[prost(bool, tag = "3")]
    pub ping_tablets: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateShardResponse {
    #[prost(string, repeated, tag = "1")]
    pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVersionKeyspaceRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVersionKeyspaceResponse {
    #[prost(string, repeated, tag = "1")]
    pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, message", tag = "2")]
    pub results_by_shard: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ValidateShardResponse,
    >,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVersionShardRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub shard: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVersionShardResponse {
    #[prost(string, repeated, tag = "1")]
    pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVSchemaRequest {
    #[prost(string, tag = "1")]
    pub keyspace: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub shards: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "3")]
    pub exclude_tables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(bool, tag = "4")]
    pub include_views: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValidateVSchemaResponse {
    #[prost(string, repeated, tag = "1")]
    pub results: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(map = "string, message", tag = "2")]
    pub results_by_shard: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ValidateShardResponse,
    >,
}
/// MaterializationIntent describes the reason for creating the Materialize flow
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MaterializationIntent {
    /// CUSTOM is the default value
    Custom = 0,
    /// MOVETABLES is when we are creating a MoveTables flow
    Movetables = 1,
    /// CREATELOOKUPINDEX is when we are creating a CreateLookupIndex flow
    Createlookupindex = 2,
}
impl MaterializationIntent {
    /// 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 {
            MaterializationIntent::Custom => "CUSTOM",
            MaterializationIntent::Movetables => "MOVETABLES",
            MaterializationIntent::Createlookupindex => "CREATELOOKUPINDEX",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "CUSTOM" => Some(Self::Custom),
            "MOVETABLES" => Some(Self::Movetables),
            "CREATELOOKUPINDEX" => Some(Self::Createlookupindex),
            _ => None,
        }
    }
}