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
// This file is @generated by prost-build.
/// The EKM connections associated with a workload
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EkmConnections {
    /// Identifier. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The EKM connections associated with the workload
    #[prost(message, repeated, tag = "2")]
    pub ekm_connections: ::prost::alloc::vec::Vec<EkmConnection>,
}
/// Request for getting the EKM connections associated with a workload
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetEkmConnectionsRequest {
    /// Required. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/ekmConnections
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Details about the EKM connection
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EkmConnection {
    /// Resource name of the EKM connection in the format:
    /// projects/{project}/locations/{location}/ekmConnections/{ekm_connection}
    #[prost(string, tag = "1")]
    pub connection_name: ::prost::alloc::string::String,
    /// Output only. The connection state
    #[prost(enumeration = "ekm_connection::ConnectionState", tag = "2")]
    pub connection_state: i32,
    /// The connection error that occurred if any
    #[prost(message, optional, tag = "3")]
    pub connection_error: ::core::option::Option<ekm_connection::ConnectionError>,
}
/// Nested message and enum types in `EkmConnection`.
pub mod ekm_connection {
    /// Information around the error that occurred if the connection state is
    /// anything other than available or unspecified
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ConnectionError {
        /// The error domain for the error
        #[prost(string, tag = "1")]
        pub error_domain: ::prost::alloc::string::String,
        /// The error message for the error
        #[prost(string, tag = "2")]
        pub error_message: ::prost::alloc::string::String,
    }
    /// The EKM connection state.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum ConnectionState {
        /// Unspecified EKM connection state
        Unspecified = 0,
        /// Available EKM connection state
        Available = 1,
        /// Not available EKM connection state
        NotAvailable = 2,
        /// Error EKM connection state
        Error = 3,
        /// Permission denied EKM connection state
        PermissionDenied = 4,
    }
    impl ConnectionState {
        /// 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 {
                ConnectionState::Unspecified => "CONNECTION_STATE_UNSPECIFIED",
                ConnectionState::Available => "AVAILABLE",
                ConnectionState::NotAvailable => "NOT_AVAILABLE",
                ConnectionState::Error => "ERROR",
                ConnectionState::PermissionDenied => "PERMISSION_DENIED",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "CONNECTION_STATE_UNSPECIFIED" => Some(Self::Unspecified),
                "AVAILABLE" => Some(Self::Available),
                "NOT_AVAILABLE" => Some(Self::NotAvailable),
                "ERROR" => Some(Self::Error),
                "PERMISSION_DENIED" => Some(Self::PermissionDenied),
                _ => None,
            }
        }
    }
}
/// Details about the Access request.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccessApprovalRequest {
    /// Identifier. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/accessApprovalRequests/{access_approval_request}.
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The time at which approval was requested.
    #[prost(message, optional, tag = "2")]
    pub request_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The justification for which approval is being requested.
    #[prost(message, optional, tag = "3")]
    pub requested_reason: ::core::option::Option<AccessReason>,
    /// The requested expiration for the approval. If the request is approved,
    /// access will be granted from the time of approval until the expiration time.
    #[prost(message, optional, tag = "4")]
    pub requested_expiration_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Request for getting the access requests associated with a workload.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAccessApprovalRequestsRequest {
    /// Required. Parent resource
    /// Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Optional. The maximum number of access requests to return. The service may
    /// return fewer than this value. If unspecified, at most 500 access requests
    /// will be returned.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// Optional. A page token, received from a previous
    /// `ListAccessApprovalRequests` call. Provide this to retrieve the subsequent
    /// page.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// Optional. Filtering results.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
    /// Optional. Hint for how to order the results.
    #[prost(string, tag = "5")]
    pub order_by: ::prost::alloc::string::String,
}
/// Response message for list access requests.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAccessApprovalRequestsResponse {
    /// List of access approval requests
    #[prost(message, repeated, tag = "1")]
    pub access_approval_requests: ::prost::alloc::vec::Vec<AccessApprovalRequest>,
    /// A token that can be sent as `page_token` to retrieve the next page.
    /// If this field is omitted, there are no subsequent pages.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Locations that could not be reached.
    #[prost(string, repeated, tag = "3")]
    pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Reason for the access.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AccessReason {
    /// Type of access justification.
    #[prost(enumeration = "access_reason::Type", tag = "1")]
    pub r#type: i32,
    /// More detail about certain reason types. See comments for each type above.
    #[prost(string, tag = "2")]
    pub detail: ::prost::alloc::string::String,
}
/// Nested message and enum types in `AccessReason`.
pub mod access_reason {
    /// Type of access justification.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Type {
        /// Default value for proto, shouldn't be used.
        Unspecified = 0,
        /// Customer made a request or raised an issue that required the principal to
        /// access customer data. `detail` is of the form ("#####" is the issue ID):
        ///
        /// - "Feedback Report: #####"
        /// - "Case Number: #####"
        /// - "Case ID: #####"
        /// - "E-PIN Reference: #####"
        /// - "Google-#####"
        /// - "T-#####"
        CustomerInitiatedSupport = 1,
        /// The principal accessed customer data in order to diagnose or resolve a
        /// suspected issue in services. Often this access is used to confirm that
        /// customers are not affected by a suspected service issue or to remediate a
        /// reversible system issue.
        GoogleInitiatedService = 2,
        /// Google initiated service for security, fraud, abuse, or compliance
        /// purposes.
        GoogleInitiatedReview = 3,
        /// The principal was compelled to access customer data in order to respond
        /// to a legal third party data request or process, including legal processes
        /// from customers themselves.
        ThirdPartyDataRequest = 4,
        /// The principal accessed customer data in order to diagnose or resolve a
        /// suspected issue in services or a known outage.
        GoogleResponseToProductionAlert = 5,
        /// Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but
        /// with universe agnostic naming. The principal accessed customer data in
        /// order to diagnose or resolve a suspected issue in services or a known
        /// outage, or for security, fraud, abuse, or compliance review purposes.
        CloudInitiatedAccess = 6,
    }
    impl Type {
        /// 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 {
                Type::Unspecified => "TYPE_UNSPECIFIED",
                Type::CustomerInitiatedSupport => "CUSTOMER_INITIATED_SUPPORT",
                Type::GoogleInitiatedService => "GOOGLE_INITIATED_SERVICE",
                Type::GoogleInitiatedReview => "GOOGLE_INITIATED_REVIEW",
                Type::ThirdPartyDataRequest => "THIRD_PARTY_DATA_REQUEST",
                Type::GoogleResponseToProductionAlert => {
                    "GOOGLE_RESPONSE_TO_PRODUCTION_ALERT"
                }
                Type::CloudInitiatedAccess => "CLOUD_INITIATED_ACCESS",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                "CUSTOMER_INITIATED_SUPPORT" => Some(Self::CustomerInitiatedSupport),
                "GOOGLE_INITIATED_SERVICE" => Some(Self::GoogleInitiatedService),
                "GOOGLE_INITIATED_REVIEW" => Some(Self::GoogleInitiatedReview),
                "THIRD_PARTY_DATA_REQUEST" => Some(Self::ThirdPartyDataRequest),
                "GOOGLE_RESPONSE_TO_PRODUCTION_ALERT" => {
                    Some(Self::GoogleResponseToProductionAlert)
                }
                "CLOUD_INITIATED_ACCESS" => Some(Self::CloudInitiatedAccess),
                _ => None,
            }
        }
    }
}
/// Enum for possible completion states.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CompletionState {
    /// Unspecified completion state.
    Unspecified = 0,
    /// Task started (has start date) but not yet completed.
    Pending = 1,
    /// Succeeded state.
    Succeeded = 2,
    /// Failed state.
    Failed = 3,
    /// Not applicable state.
    NotApplicable = 4,
}
impl CompletionState {
    /// 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 {
            CompletionState::Unspecified => "COMPLETION_STATE_UNSPECIFIED",
            CompletionState::Pending => "PENDING",
            CompletionState::Succeeded => "SUCCEEDED",
            CompletionState::Failed => "FAILED",
            CompletionState::NotApplicable => "NOT_APPLICABLE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "COMPLETION_STATE_UNSPECIFIED" => Some(Self::Unspecified),
            "PENDING" => Some(Self::Pending),
            "SUCCEEDED" => Some(Self::Succeeded),
            "FAILED" => Some(Self::Failed),
            "NOT_APPLICABLE" => Some(Self::NotApplicable),
            _ => None,
        }
    }
}
/// Contains metadata around the [Workload
/// resource](<https://cloud.google.com/assured-workloads/docs/reference/rest/Shared.Types/Workload>)
/// in the Assured Workloads API.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Workload {
    /// Identifier. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Output only. Folder id this workload is associated with
    #[prost(int64, tag = "2")]
    pub folder_id: i64,
    /// Output only. Time the resource was created.
    #[prost(message, optional, tag = "3")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The name of container folder of the assured workload
    #[prost(string, tag = "4")]
    pub folder: ::prost::alloc::string::String,
    /// Container for workload onboarding steps.
    #[prost(message, optional, tag = "5")]
    pub workload_onboarding_state: ::core::option::Option<WorkloadOnboardingState>,
    /// Indicates whether a workload is fully onboarded.
    #[prost(bool, tag = "6")]
    pub is_onboarded: bool,
    /// The project id of the key management project for the workload
    #[prost(string, tag = "7")]
    pub key_management_project_id: ::prost::alloc::string::String,
    /// The Google Cloud location of the workload
    #[prost(string, tag = "8")]
    pub location: ::prost::alloc::string::String,
    /// Partner associated with this workload.
    #[prost(enumeration = "workload::Partner", tag = "9")]
    pub partner: i32,
}
/// Nested message and enum types in `Workload`.
pub mod workload {
    /// Supported Assured Workloads Partners.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Partner {
        /// Unknown Partner.
        Unspecified = 0,
        /// Enum representing S3NS (Thales) partner.
        LocalControlsByS3ns = 1,
        /// Enum representing T_SYSTEM (TSI) partner.
        SovereignControlsByTSystems = 2,
        /// Enum representing SIA_MINSAIT (Indra) partner.
        SovereignControlsBySiaMinsait = 3,
        /// Enum representing PSN (TIM) partner.
        SovereignControlsByPsn = 4,
        /// Enum representing CNTXT (Kingdom of Saudi Arabia) partner.
        SovereignControlsByCntxt = 6,
        /// Enum representing CNXT (Kingdom of Saudi Arabia) partner offering without
        /// EKM provisioning.
        SovereignControlsByCntxtNoEkm = 7,
    }
    impl Partner {
        /// 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 {
                Partner::Unspecified => "PARTNER_UNSPECIFIED",
                Partner::LocalControlsByS3ns => "PARTNER_LOCAL_CONTROLS_BY_S3NS",
                Partner::SovereignControlsByTSystems => {
                    "PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS"
                }
                Partner::SovereignControlsBySiaMinsait => {
                    "PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT"
                }
                Partner::SovereignControlsByPsn => "PARTNER_SOVEREIGN_CONTROLS_BY_PSN",
                Partner::SovereignControlsByCntxt => {
                    "PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT"
                }
                Partner::SovereignControlsByCntxtNoEkm => {
                    "PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM"
                }
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "PARTNER_UNSPECIFIED" => Some(Self::Unspecified),
                "PARTNER_LOCAL_CONTROLS_BY_S3NS" => Some(Self::LocalControlsByS3ns),
                "PARTNER_SOVEREIGN_CONTROLS_BY_T_SYSTEMS" => {
                    Some(Self::SovereignControlsByTSystems)
                }
                "PARTNER_SOVEREIGN_CONTROLS_BY_SIA_MINSAIT" => {
                    Some(Self::SovereignControlsBySiaMinsait)
                }
                "PARTNER_SOVEREIGN_CONTROLS_BY_PSN" => Some(Self::SovereignControlsByPsn),
                "PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT" => {
                    Some(Self::SovereignControlsByCntxt)
                }
                "PARTNER_SOVEREIGN_CONTROLS_BY_CNTXT_NO_EKM" => {
                    Some(Self::SovereignControlsByCntxtNoEkm)
                }
                _ => None,
            }
        }
    }
}
/// Request to list customer workloads.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkloadsRequest {
    /// Required. Parent resource
    /// Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of workloads to return. The service may return fewer
    /// than this value. If unspecified, at most 500 workloads will be returned.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token, received from a previous `ListWorkloads` call.
    /// Provide this to retrieve the subsequent page.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// Optional. Filtering results.
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
    /// Optional. Hint for how to order the results.
    #[prost(string, tag = "5")]
    pub order_by: ::prost::alloc::string::String,
}
/// Response message for list customer workloads requests.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkloadsResponse {
    /// List of customer workloads
    #[prost(message, repeated, tag = "1")]
    pub workloads: ::prost::alloc::vec::Vec<Workload>,
    /// A token that can be sent as `page_token` to retrieve the next page.
    /// If this field is omitted, there are no subsequent pages.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Locations that could not be reached.
    #[prost(string, repeated, tag = "3")]
    pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Message for getting a customer workload.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkloadRequest {
    /// Required. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Container for workload onboarding steps.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkloadOnboardingState {
    /// List of workload onboarding steps.
    #[prost(message, repeated, tag = "1")]
    pub onboarding_steps: ::prost::alloc::vec::Vec<WorkloadOnboardingStep>,
}
/// Container for workload onboarding information.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct WorkloadOnboardingStep {
    /// The onboarding step.
    #[prost(enumeration = "workload_onboarding_step::Step", tag = "1")]
    pub step: i32,
    /// The starting time of the onboarding step.
    #[prost(message, optional, tag = "2")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The completion time of the onboarding step.
    #[prost(message, optional, tag = "3")]
    pub completion_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The completion state of the onboarding step.
    #[prost(enumeration = "CompletionState", tag = "4")]
    pub completion_state: i32,
}
/// Nested message and enum types in `WorkloadOnboardingStep`.
pub mod workload_onboarding_step {
    /// Enum for possible onboarding steps.
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Step {
        /// Unspecified step.
        Unspecified = 0,
        /// EKM Provisioned step.
        EkmProvisioned = 1,
        /// Signed Access Approval step.
        SignedAccessApprovalConfigured = 2,
    }
    impl Step {
        /// 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 {
                Step::Unspecified => "STEP_UNSPECIFIED",
                Step::EkmProvisioned => "EKM_PROVISIONED",
                Step::SignedAccessApprovalConfigured => {
                    "SIGNED_ACCESS_APPROVAL_CONFIGURED"
                }
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STEP_UNSPECIFIED" => Some(Self::Unspecified),
                "EKM_PROVISIONED" => Some(Self::EkmProvisioned),
                "SIGNED_ACCESS_APPROVAL_CONFIGURED" => {
                    Some(Self::SignedAccessApprovalConfigured)
                }
                _ => None,
            }
        }
    }
}
/// Contains metadata around a Cloud Controls Partner Customer
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Customer {
    /// Identifier. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The customer organization's display name. E.g. "google.com".
    #[prost(string, tag = "2")]
    pub display_name: ::prost::alloc::string::String,
    /// Container for customer onboarding steps
    #[prost(message, optional, tag = "3")]
    pub customer_onboarding_state: ::core::option::Option<CustomerOnboardingState>,
    /// Indicates whether a customer is fully onboarded
    #[prost(bool, tag = "4")]
    pub is_onboarded: bool,
}
/// Request to list customers
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomersRequest {
    /// Required. Parent resource
    /// Format: organizations/{organization}/locations/{location}
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// The maximum number of Customers to return. The service may return fewer
    /// than this value. If unspecified, at most 500 Customers will be returned.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// A page token, received from a previous `ListCustomers` call.
    /// Provide this to retrieve the subsequent page.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// Optional. Filtering results
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
    /// Optional. Hint for how to order the results
    #[prost(string, tag = "5")]
    pub order_by: ::prost::alloc::string::String,
}
/// Response message for list customer Customers requests
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCustomersResponse {
    /// List of customers
    #[prost(message, repeated, tag = "1")]
    pub customers: ::prost::alloc::vec::Vec<Customer>,
    /// A token that can be sent as `page_token` to retrieve the next page.
    /// If this field is omitted, there are no subsequent pages.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Locations that could not be reached.
    #[prost(string, repeated, tag = "3")]
    pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Message for getting a customer
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCustomerRequest {
    /// Required. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Container for customer onboarding steps
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerOnboardingState {
    /// List of customer onboarding steps
    #[prost(message, repeated, tag = "1")]
    pub onboarding_steps: ::prost::alloc::vec::Vec<CustomerOnboardingStep>,
}
/// Container for customer onboarding information
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomerOnboardingStep {
    /// The onboarding step
    #[prost(enumeration = "customer_onboarding_step::Step", tag = "1")]
    pub step: i32,
    /// The starting time of the onboarding step
    #[prost(message, optional, tag = "2")]
    pub start_time: ::core::option::Option<::prost_types::Timestamp>,
    /// The completion time of the onboarding step
    #[prost(message, optional, tag = "3")]
    pub completion_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Current state of the step
    #[prost(enumeration = "CompletionState", tag = "4")]
    pub completion_state: i32,
}
/// Nested message and enum types in `CustomerOnboardingStep`.
pub mod customer_onboarding_step {
    /// Enum for possible onboarding steps
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Step {
        /// Unspecified step
        Unspecified = 0,
        /// KAJ Enrollment
        KajEnrollment = 1,
        /// Customer Environment
        CustomerEnvironment = 2,
    }
    impl Step {
        /// 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 {
                Step::Unspecified => "STEP_UNSPECIFIED",
                Step::KajEnrollment => "KAJ_ENROLLMENT",
                Step::CustomerEnvironment => "CUSTOMER_ENVIRONMENT",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STEP_UNSPECIFIED" => Some(Self::Unspecified),
                "KAJ_ENROLLMENT" => Some(Self::KajEnrollment),
                "CUSTOMER_ENVIRONMENT" => Some(Self::CustomerEnvironment),
                _ => None,
            }
        }
    }
}
/// The permissions granted to the partner for a workload
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PartnerPermissions {
    /// Identifier. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// The partner permissions granted for the workload
    #[prost(enumeration = "partner_permissions::Permission", repeated, tag = "2")]
    pub partner_permissions: ::prost::alloc::vec::Vec<i32>,
}
/// Nested message and enum types in `PartnerPermissions`.
pub mod partner_permissions {
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum Permission {
        /// Unspecified partner permission
        Unspecified = 0,
        /// Permission for Access Transparency and emergency logs
        AccessTransparencyAndEmergencyAccessLogs = 1,
        /// Permission for Assured Workloads monitoring violations
        AssuredWorkloadsMonitoring = 2,
        /// Permission for Access Approval requests
        AccessApprovalRequests = 3,
        /// Permission for External Key Manager connection status
        AssuredWorkloadsEkmConnectionStatus = 4,
    }
    impl Permission {
        /// 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 {
                Permission::Unspecified => "PERMISSION_UNSPECIFIED",
                Permission::AccessTransparencyAndEmergencyAccessLogs => {
                    "ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS"
                }
                Permission::AssuredWorkloadsMonitoring => "ASSURED_WORKLOADS_MONITORING",
                Permission::AccessApprovalRequests => "ACCESS_APPROVAL_REQUESTS",
                Permission::AssuredWorkloadsEkmConnectionStatus => {
                    "ASSURED_WORKLOADS_EKM_CONNECTION_STATUS"
                }
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "PERMISSION_UNSPECIFIED" => Some(Self::Unspecified),
                "ACCESS_TRANSPARENCY_AND_EMERGENCY_ACCESS_LOGS" => {
                    Some(Self::AccessTransparencyAndEmergencyAccessLogs)
                }
                "ASSURED_WORKLOADS_MONITORING" => Some(Self::AssuredWorkloadsMonitoring),
                "ACCESS_APPROVAL_REQUESTS" => Some(Self::AccessApprovalRequests),
                "ASSURED_WORKLOADS_EKM_CONNECTION_STATUS" => {
                    Some(Self::AssuredWorkloadsEkmConnectionStatus)
                }
                _ => None,
            }
        }
    }
}
/// Request for getting the partner permissions granted for a workload
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPartnerPermissionsRequest {
    /// Required. Name of the resource to get in the format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/partnerPermissions
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Message describing Partner resource
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Partner {
    /// Identifier. The resource name of the partner.
    /// Format: organizations/{organization}/locations/{location}/partner
    /// Example: "organizations/123456/locations/us-central1/partner"
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// List of SKUs the partner is offering
    #[prost(message, repeated, tag = "3")]
    pub skus: ::prost::alloc::vec::Vec<Sku>,
    /// List of Google Cloud supported EKM partners supported by the partner
    #[prost(message, repeated, tag = "4")]
    pub ekm_solutions: ::prost::alloc::vec::Vec<EkmMetadata>,
    /// List of Google Cloud regions that the partner sells services to customers.
    /// Valid Google Cloud regions found here:
    /// <https://cloud.google.com/compute/docs/regions-zones>
    #[prost(string, repeated, tag = "5")]
    pub operated_cloud_regions: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// Google Cloud project ID in the partner's Google Cloud organization for
    /// receiving enhanced Logs for Partners.
    #[prost(string, tag = "7")]
    pub partner_project_id: ::prost::alloc::string::String,
    /// Output only. Time the resource was created
    #[prost(message, optional, tag = "9")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The last time the resource was updated
    #[prost(message, optional, tag = "10")]
    pub update_time: ::core::option::Option<::prost_types::Timestamp>,
}
/// Message for getting a Partner
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetPartnerRequest {
    /// Required. Format: organizations/{organization}/locations/{location}/partner
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Represents the SKU a partner owns inside Google Cloud to sell to customers.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Sku {
    /// Argentum product SKU, that is associated with the partner offerings to
    /// customers used by Syntro for billing purposes. SKUs can represent resold
    /// Google products or support services.
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// Display name of the product identified by the SKU. A partner may want to
    /// show partner branded names for their offerings such as local sovereign
    /// cloud solutions.
    #[prost(string, tag = "2")]
    pub display_name: ::prost::alloc::string::String,
}
/// Holds information needed by Mudbray to use partner EKMs for workloads.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EkmMetadata {
    /// The Cloud EKM partner.
    #[prost(enumeration = "ekm_metadata::EkmSolution", tag = "1")]
    pub ekm_solution: i32,
    /// Endpoint for sending requests to the EKM for key provisioning during
    /// Assured Workload creation.
    #[prost(string, tag = "2")]
    pub ekm_endpoint_uri: ::prost::alloc::string::String,
}
/// Nested message and enum types in `EkmMetadata`.
pub mod ekm_metadata {
    /// Represents Google Cloud supported external key management partners
    /// [Google Cloud EKM partners
    /// docs](<https://cloud.google.com/kms/docs/ekm#supported_partners>).
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum EkmSolution {
        /// Unspecified EKM solution
        Unspecified = 0,
        /// EKM Partner Fortanix
        Fortanix = 1,
        /// EKM Partner FutureX
        Futurex = 2,
        /// EKM Partner Thales
        Thales = 3,
        /// EKM Partner Virtu
        Virtru = 4,
    }
    impl EkmSolution {
        /// 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 {
                EkmSolution::Unspecified => "EKM_SOLUTION_UNSPECIFIED",
                EkmSolution::Fortanix => "FORTANIX",
                EkmSolution::Futurex => "FUTUREX",
                EkmSolution::Thales => "THALES",
                EkmSolution::Virtru => "VIRTRU",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "EKM_SOLUTION_UNSPECIFIED" => Some(Self::Unspecified),
                "FORTANIX" => Some(Self::Fortanix),
                "FUTUREX" => Some(Self::Futurex),
                "THALES" => Some(Self::Thales),
                "VIRTRU" => Some(Self::Virtru),
                _ => None,
            }
        }
    }
}
/// Represents the metadata of the long-running operation.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OperationMetadata {
    /// Output only. The time the operation was created.
    #[prost(message, optional, tag = "1")]
    pub create_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The time the operation finished running.
    #[prost(message, optional, tag = "2")]
    pub end_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Server-defined resource path for the target of the operation.
    #[prost(string, tag = "3")]
    pub target: ::prost::alloc::string::String,
    /// Output only. Name of the verb executed by the operation.
    #[prost(string, tag = "4")]
    pub verb: ::prost::alloc::string::String,
    /// Output only. Human-readable status of the operation, if any.
    #[prost(string, tag = "5")]
    pub status_message: ::prost::alloc::string::String,
    /// Output only. Identifies whether the user has requested cancellation
    /// of the operation. Operations that have been cancelled successfully
    /// have [Operation.error][] value with a
    /// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
    /// `Code.CANCELLED`.
    #[prost(bool, tag = "6")]
    pub requested_cancellation: bool,
    /// Output only. API version used to start the operation.
    #[prost(string, tag = "7")]
    pub api_version: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod cloud_controls_partner_core_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Service describing handlers for resources
    #[derive(Debug, Clone)]
    pub struct CloudControlsPartnerCoreClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl<T> CloudControlsPartnerCoreClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> CloudControlsPartnerCoreClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            CloudControlsPartnerCoreClient::new(
                InterceptedService::new(inner, interceptor),
            )
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Gets details of a single workload
        pub async fn get_workload(
            &mut self,
            request: impl tonic::IntoRequest<super::GetWorkloadRequest>,
        ) -> std::result::Result<tonic::Response<super::Workload>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetWorkload",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore",
                        "GetWorkload",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists customer workloads for a given customer org id
        pub async fn list_workloads(
            &mut self,
            request: impl tonic::IntoRequest<super::ListWorkloadsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListWorkloadsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListWorkloads",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore",
                        "ListWorkloads",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets details of a single customer
        pub async fn get_customer(
            &mut self,
            request: impl tonic::IntoRequest<super::GetCustomerRequest>,
        ) -> std::result::Result<tonic::Response<super::Customer>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetCustomer",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore",
                        "GetCustomer",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists customers of a partner identified by its Google Cloud organization ID
        pub async fn list_customers(
            &mut self,
            request: impl tonic::IntoRequest<super::ListCustomersRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListCustomersResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListCustomers",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore",
                        "ListCustomers",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets the EKM connections associated with a workload
        pub async fn get_ekm_connections(
            &mut self,
            request: impl tonic::IntoRequest<super::GetEkmConnectionsRequest>,
        ) -> std::result::Result<tonic::Response<super::EkmConnections>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetEkmConnections",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore",
                        "GetEkmConnections",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets the partner permissions granted for a workload
        pub async fn get_partner_permissions(
            &mut self,
            request: impl tonic::IntoRequest<super::GetPartnerPermissionsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::PartnerPermissions>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetPartnerPermissions",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore",
                        "GetPartnerPermissions",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Lists access requests associated with a workload
        pub async fn list_access_approval_requests(
            &mut self,
            request: impl tonic::IntoRequest<super::ListAccessApprovalRequestsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListAccessApprovalRequestsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/ListAccessApprovalRequests",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore",
                        "ListAccessApprovalRequests",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Get details of a Partner.
        pub async fn get_partner(
            &mut self,
            request: impl tonic::IntoRequest<super::GetPartnerRequest>,
        ) -> std::result::Result<tonic::Response<super::Partner>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore/GetPartner",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore",
                        "GetPartner",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}
/// Details of resource Violation
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Violation {
    /// Identifier. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
    /// Output only. Description for the Violation.
    /// e.g. OrgPolicy gcp.resourceLocations has non compliant value.
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    /// Output only. Time of the event which triggered the Violation.
    #[prost(message, optional, tag = "3")]
    pub begin_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. The last time when the Violation record was updated.
    #[prost(message, optional, tag = "4")]
    pub update_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Time of the event which fixed the Violation.
    /// If the violation is ACTIVE this will be empty.
    #[prost(message, optional, tag = "5")]
    pub resolve_time: ::core::option::Option<::prost_types::Timestamp>,
    /// Output only. Category under which this violation is mapped.
    /// e.g. Location, Service Usage, Access, Encryption, etc.
    #[prost(string, tag = "6")]
    pub category: ::prost::alloc::string::String,
    /// Output only. State of the violation
    #[prost(enumeration = "violation::State", tag = "7")]
    pub state: i32,
    /// Output only. Immutable. Name of the OrgPolicy which was modified with
    /// non-compliant change and resulted this violation. Format:
    ///   projects/{project_number}/policies/{constraint_name}
    ///   folders/{folder_id}/policies/{constraint_name}
    ///   organizations/{organization_id}/policies/{constraint_name}
    #[prost(string, tag = "8")]
    pub non_compliant_org_policy: ::prost::alloc::string::String,
    /// The folder_id of the violation
    #[prost(int64, tag = "9")]
    pub folder_id: i64,
    /// Output only. Compliance violation remediation
    #[prost(message, optional, tag = "13")]
    pub remediation: ::core::option::Option<violation::Remediation>,
}
/// Nested message and enum types in `Violation`.
pub mod violation {
    /// Represents remediation guidance to resolve compliance violation for
    /// AssuredWorkload
    #[allow(clippy::derive_partial_eq_without_eq)]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Remediation {
        /// Required. Remediation instructions to resolve violations
        #[prost(message, optional, tag = "1")]
        pub instructions: ::core::option::Option<remediation::Instructions>,
        /// Values that can resolve the violation
        /// For example: for list org policy violations, this will either be the list
        /// of allowed or denied values
        #[prost(string, repeated, tag = "2")]
        pub compliant_values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
        /// Output only. Remediation type based on the type of org policy values
        /// violated
        #[prost(enumeration = "remediation::RemediationType", tag = "3")]
        pub remediation_type: i32,
    }
    /// Nested message and enum types in `Remediation`.
    pub mod remediation {
        /// Instructions to remediate violation
        #[allow(clippy::derive_partial_eq_without_eq)]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct Instructions {
            /// Remediation instructions to resolve violation via gcloud cli
            #[prost(message, optional, tag = "1")]
            pub gcloud_instructions: ::core::option::Option<instructions::Gcloud>,
            /// Remediation instructions to resolve violation via cloud console
            #[prost(message, optional, tag = "2")]
            pub console_instructions: ::core::option::Option<instructions::Console>,
        }
        /// Nested message and enum types in `Instructions`.
        pub mod instructions {
            /// Remediation instructions to resolve violation via gcloud cli
            #[allow(clippy::derive_partial_eq_without_eq)]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Gcloud {
                /// Gcloud command to resolve violation
                #[prost(string, repeated, tag = "1")]
                pub gcloud_commands: ::prost::alloc::vec::Vec<
                    ::prost::alloc::string::String,
                >,
                /// Steps to resolve violation via gcloud cli
                #[prost(string, repeated, tag = "2")]
                pub steps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
                /// Additional urls for more information about steps
                #[prost(string, repeated, tag = "3")]
                pub additional_links: ::prost::alloc::vec::Vec<
                    ::prost::alloc::string::String,
                >,
            }
            /// Remediation instructions to resolve violation via cloud console
            #[allow(clippy::derive_partial_eq_without_eq)]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Console {
                /// Link to console page where violations can be resolved
                #[prost(string, repeated, tag = "1")]
                pub console_uris: ::prost::alloc::vec::Vec<
                    ::prost::alloc::string::String,
                >,
                /// Steps to resolve violation via cloud console
                #[prost(string, repeated, tag = "2")]
                pub steps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
                /// Additional urls for more information about steps
                #[prost(string, repeated, tag = "3")]
                pub additional_links: ::prost::alloc::vec::Vec<
                    ::prost::alloc::string::String,
                >,
            }
        }
        /// Classifying remediation into various types based on the kind of
        /// violation. For example, violations caused due to changes in boolean org
        /// policy requires different remediation instructions compared to violation
        /// caused due to changes in allowed values of list org policy.
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum RemediationType {
            /// Unspecified remediation type
            Unspecified = 0,
            /// Remediation type for boolean org policy
            RemediationBooleanOrgPolicyViolation = 1,
            /// Remediation type for list org policy which have allowed values in the
            /// monitoring rule
            RemediationListAllowedValuesOrgPolicyViolation = 2,
            /// Remediation type for list org policy which have denied values in the
            /// monitoring rule
            RemediationListDeniedValuesOrgPolicyViolation = 3,
            /// Remediation type for gcp.restrictCmekCryptoKeyProjects
            RemediationRestrictCmekCryptoKeyProjectsOrgPolicyViolation = 4,
            /// Remediation type for resource violation.
            RemediationResourceViolation = 5,
        }
        impl RemediationType {
            /// 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 {
                    RemediationType::Unspecified => "REMEDIATION_TYPE_UNSPECIFIED",
                    RemediationType::RemediationBooleanOrgPolicyViolation => {
                        "REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION"
                    }
                    RemediationType::RemediationListAllowedValuesOrgPolicyViolation => {
                        "REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION"
                    }
                    RemediationType::RemediationListDeniedValuesOrgPolicyViolation => {
                        "REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION"
                    }
                    RemediationType::RemediationRestrictCmekCryptoKeyProjectsOrgPolicyViolation => {
                        "REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION"
                    }
                    RemediationType::RemediationResourceViolation => {
                        "REMEDIATION_RESOURCE_VIOLATION"
                    }
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "REMEDIATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                    "REMEDIATION_BOOLEAN_ORG_POLICY_VIOLATION" => {
                        Some(Self::RemediationBooleanOrgPolicyViolation)
                    }
                    "REMEDIATION_LIST_ALLOWED_VALUES_ORG_POLICY_VIOLATION" => {
                        Some(Self::RemediationListAllowedValuesOrgPolicyViolation)
                    }
                    "REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION" => {
                        Some(Self::RemediationListDeniedValuesOrgPolicyViolation)
                    }
                    "REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION" => {
                        Some(
                            Self::RemediationRestrictCmekCryptoKeyProjectsOrgPolicyViolation,
                        )
                    }
                    "REMEDIATION_RESOURCE_VIOLATION" => {
                        Some(Self::RemediationResourceViolation)
                    }
                    _ => None,
                }
            }
        }
    }
    /// Violation State Values
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum State {
        /// Unspecified state.
        Unspecified = 0,
        /// Violation is resolved.
        Resolved = 1,
        /// Violation is Unresolved
        Unresolved = 2,
        /// Violation is Exception
        Exception = 3,
    }
    impl State {
        /// 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 {
                State::Unspecified => "STATE_UNSPECIFIED",
                State::Resolved => "RESOLVED",
                State::Unresolved => "UNRESOLVED",
                State::Exception => "EXCEPTION",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "STATE_UNSPECIFIED" => Some(Self::Unspecified),
                "RESOLVED" => Some(Self::Resolved),
                "UNRESOLVED" => Some(Self::Unresolved),
                "EXCEPTION" => Some(Self::Exception),
                _ => None,
            }
        }
    }
}
/// Message for requesting list of Violations
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListViolationsRequest {
    /// Required. Parent resource
    /// Format
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}
    #[prost(string, tag = "1")]
    pub parent: ::prost::alloc::string::String,
    /// Optional. The maximum number of customers row to return. The service may
    /// return fewer than this value. If unspecified, at most 10 customers will be
    /// returned.
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    /// Optional. A page token, received from a previous `ListViolations` call.
    /// Provide this to retrieve the subsequent page.
    #[prost(string, tag = "3")]
    pub page_token: ::prost::alloc::string::String,
    /// Optional. Filtering results
    #[prost(string, tag = "4")]
    pub filter: ::prost::alloc::string::String,
    /// Optional. Hint for how to order the results
    #[prost(string, tag = "5")]
    pub order_by: ::prost::alloc::string::String,
    /// Optional. Specifies the interval for retrieving violations.
    /// if unspecified, all violations will be returned.
    #[prost(message, optional, tag = "6")]
    pub interval: ::core::option::Option<super::super::super::r#type::Interval>,
}
/// Response message for list customer violation requests
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListViolationsResponse {
    /// List of violation
    #[prost(message, repeated, tag = "1")]
    pub violations: ::prost::alloc::vec::Vec<Violation>,
    /// A token that can be sent as `page_token` to retrieve the next page.
    /// If this field is omitted, there are no subsequent pages.
    #[prost(string, tag = "2")]
    pub next_page_token: ::prost::alloc::string::String,
    /// Workloads that could not be reached due to permission errors or any other
    /// error. Ref: <https://google.aip.dev/217>
    #[prost(string, repeated, tag = "3")]
    pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
/// Message for getting a Violation
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetViolationRequest {
    /// Required. Format:
    /// organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}/violations/{violation}
    #[prost(string, tag = "1")]
    pub name: ::prost::alloc::string::String,
}
/// Generated client implementations.
pub mod cloud_controls_partner_monitoring_client {
    #![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    /// Service describing handlers for resources
    #[derive(Debug, Clone)]
    pub struct CloudControlsPartnerMonitoringClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl<T> CloudControlsPartnerMonitoringClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> CloudControlsPartnerMonitoringClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::BoxBody>,
            >>::Error: Into<StdError> + Send + Sync,
        {
            CloudControlsPartnerMonitoringClient::new(
                InterceptedService::new(inner, interceptor),
            )
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// Lists Violations for a workload
        /// Callers may also choose to read across multiple Customers or for a single
        /// customer as per
        /// [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
        /// character) as a wildcard character instead of {customer} & {workload}.
        /// Format:
        /// `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`
        pub async fn list_violations(
            &mut self,
            request: impl tonic::IntoRequest<super::ListViolationsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListViolationsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/ListViolations",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring",
                        "ListViolations",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
        /// Gets details of a single Violation.
        pub async fn get_violation(
            &mut self,
            request: impl tonic::IntoRequest<super::GetViolationRequest>,
        ) -> std::result::Result<tonic::Response<super::Violation>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::new(
                        tonic::Code::Unknown,
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring/GetViolation",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new(
                        "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring",
                        "GetViolation",
                    ),
                );
            self.inner.unary(req, path, codec).await
        }
    }
}