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
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterNamespaceRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub description: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub owner_email: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub workflow_execution_retention_period: ::core::option::Option<::prost_types::Duration>,
    #[prost(message, repeated, tag = "5")]
    pub clusters: ::prost::alloc::vec::Vec<super::super::replication::v1::ClusterReplicationConfig>,
    #[prost(string, tag = "6")]
    pub active_cluster_name: ::prost::alloc::string::String,
    /// A key-value map for any customized purpose.
    #[prost(map = "string, string", tag = "7")]
    pub data:
        ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
    #[prost(string, tag = "8")]
    pub security_token: ::prost::alloc::string::String,
    #[prost(bool, tag = "9")]
    pub is_global_namespace: bool,
    /// If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
    #[prost(enumeration = "super::super::enums::v1::ArchivalState", tag = "10")]
    pub history_archival_state: i32,
    #[prost(string, tag = "11")]
    pub history_archival_uri: ::prost::alloc::string::String,
    /// If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
    #[prost(enumeration = "super::super::enums::v1::ArchivalState", tag = "12")]
    pub visibility_archival_state: i32,
    #[prost(string, tag = "13")]
    pub visibility_archival_uri: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterNamespaceResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNamespacesRequest {
    #[prost(int32, tag = "1")]
    pub page_size: i32,
    #[prost(bytes = "vec", tag = "2")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListNamespacesResponse {
    #[prost(message, repeated, tag = "1")]
    pub namespaces: ::prost::alloc::vec::Vec<DescribeNamespaceResponse>,
    #[prost(bytes = "vec", tag = "2")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeNamespaceRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeNamespaceResponse {
    #[prost(message, optional, tag = "1")]
    pub namespace_info: ::core::option::Option<super::super::namespace::v1::NamespaceInfo>,
    #[prost(message, optional, tag = "2")]
    pub config: ::core::option::Option<super::super::namespace::v1::NamespaceConfig>,
    #[prost(message, optional, tag = "3")]
    pub replication_config:
        ::core::option::Option<super::super::replication::v1::NamespaceReplicationConfig>,
    #[prost(int64, tag = "4")]
    pub failover_version: i64,
    #[prost(bool, tag = "5")]
    pub is_global_namespace: bool,
}
/// (-- api-linter: core::0134::request-mask-required=disabled
///     aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)
/// (-- api-linter: core::0134::request-resource-required=disabled
///     aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateNamespaceRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub update_info: ::core::option::Option<super::super::namespace::v1::UpdateNamespaceInfo>,
    #[prost(message, optional, tag = "3")]
    pub config: ::core::option::Option<super::super::namespace::v1::NamespaceConfig>,
    #[prost(message, optional, tag = "4")]
    pub replication_config:
        ::core::option::Option<super::super::replication::v1::NamespaceReplicationConfig>,
    #[prost(string, tag = "5")]
    pub security_token: ::prost::alloc::string::String,
    #[prost(string, tag = "6")]
    pub delete_bad_binary: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateNamespaceResponse {
    #[prost(message, optional, tag = "1")]
    pub namespace_info: ::core::option::Option<super::super::namespace::v1::NamespaceInfo>,
    #[prost(message, optional, tag = "2")]
    pub config: ::core::option::Option<super::super::namespace::v1::NamespaceConfig>,
    #[prost(message, optional, tag = "3")]
    pub replication_config:
        ::core::option::Option<super::super::replication::v1::NamespaceReplicationConfig>,
    #[prost(int64, tag = "4")]
    pub failover_version: i64,
    #[prost(bool, tag = "5")]
    pub is_global_namespace: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeprecateNamespaceRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub security_token: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeprecateNamespaceResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartWorkflowExecutionRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workflow_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub workflow_type: ::core::option::Option<super::super::common::v1::WorkflowType>,
    #[prost(message, optional, tag = "4")]
    pub task_queue: ::core::option::Option<super::super::taskqueue::v1::TaskQueue>,
    #[prost(message, optional, tag = "5")]
    pub input: ::core::option::Option<super::super::common::v1::Payloads>,
    /// Total workflow execution timeout including retries and continue as new.
    #[prost(message, optional, tag = "6")]
    pub workflow_execution_timeout: ::core::option::Option<::prost_types::Duration>,
    /// Timeout of a single workflow run.
    #[prost(message, optional, tag = "7")]
    pub workflow_run_timeout: ::core::option::Option<::prost_types::Duration>,
    /// Timeout of a single workflow task.
    #[prost(message, optional, tag = "8")]
    pub workflow_task_timeout: ::core::option::Option<::prost_types::Duration>,
    #[prost(string, tag = "9")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "10")]
    pub request_id: ::prost::alloc::string::String,
    /// Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
    #[prost(
        enumeration = "super::super::enums::v1::WorkflowIdReusePolicy",
        tag = "11"
    )]
    pub workflow_id_reuse_policy: i32,
    /// Retries up to workflow_execution_timeout_seconds.
    #[prost(message, optional, tag = "12")]
    pub retry_policy: ::core::option::Option<super::super::common::v1::RetryPolicy>,
    #[prost(string, tag = "13")]
    pub cron_schedule: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "14")]
    pub memo: ::core::option::Option<super::super::common::v1::Memo>,
    #[prost(message, optional, tag = "15")]
    pub search_attributes: ::core::option::Option<super::super::common::v1::SearchAttributes>,
    #[prost(message, optional, tag = "16")]
    pub header: ::core::option::Option<super::super::common::v1::Header>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StartWorkflowExecutionResponse {
    #[prost(string, tag = "1")]
    pub run_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkflowExecutionHistoryRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
    #[prost(int32, tag = "3")]
    pub maximum_page_size: i32,
    #[prost(bytes = "vec", tag = "4")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(bool, tag = "5")]
    pub wait_new_event: bool,
    /// Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT.
    #[prost(
        enumeration = "super::super::enums::v1::HistoryEventFilterType",
        tag = "6"
    )]
    pub history_event_filter_type: i32,
    #[prost(bool, tag = "7")]
    pub skip_archival: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetWorkflowExecutionHistoryResponse {
    #[prost(message, optional, tag = "1")]
    pub history: ::core::option::Option<super::super::history::v1::History>,
    #[prost(message, repeated, tag = "2")]
    pub raw_history: ::prost::alloc::vec::Vec<super::super::common::v1::DataBlob>,
    #[prost(bytes = "vec", tag = "3")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(bool, tag = "4")]
    pub archived: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PollWorkflowTaskQueueRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub task_queue: ::core::option::Option<super::super::taskqueue::v1::TaskQueue>,
    #[prost(string, tag = "3")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub binary_checksum: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PollWorkflowTaskQueueResponse {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, optional, tag = "2")]
    pub workflow_execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
    #[prost(message, optional, tag = "3")]
    pub workflow_type: ::core::option::Option<super::super::common::v1::WorkflowType>,
    #[prost(int64, tag = "4")]
    pub previous_started_event_id: i64,
    #[prost(int64, tag = "5")]
    pub started_event_id: i64,
    #[prost(int32, tag = "6")]
    pub attempt: i32,
    #[prost(int64, tag = "7")]
    pub backlog_count_hint: i64,
    #[prost(message, optional, tag = "8")]
    pub history: ::core::option::Option<super::super::history::v1::History>,
    #[prost(bytes = "vec", tag = "9")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, optional, tag = "10")]
    pub query: ::core::option::Option<super::super::query::v1::WorkflowQuery>,
    #[prost(message, optional, tag = "11")]
    pub workflow_execution_task_queue:
        ::core::option::Option<super::super::taskqueue::v1::TaskQueue>,
    #[prost(message, optional, tag = "12")]
    pub scheduled_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "13")]
    pub started_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(map = "string, message", tag = "14")]
    pub queries: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        super::super::query::v1::WorkflowQuery,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondWorkflowTaskCompletedRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, repeated, tag = "2")]
    pub commands: ::prost::alloc::vec::Vec<super::super::command::v1::Command>,
    #[prost(string, tag = "3")]
    pub identity: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub sticky_attributes:
        ::core::option::Option<super::super::taskqueue::v1::StickyExecutionAttributes>,
    #[prost(bool, tag = "5")]
    pub return_new_workflow_task: bool,
    #[prost(bool, tag = "6")]
    pub force_create_new_workflow_task: bool,
    #[prost(string, tag = "7")]
    pub binary_checksum: ::prost::alloc::string::String,
    #[prost(map = "string, message", tag = "8")]
    pub query_results: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        super::super::query::v1::WorkflowQueryResult,
    >,
    #[prost(string, tag = "9")]
    pub namespace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondWorkflowTaskCompletedResponse {
    #[prost(message, optional, tag = "1")]
    pub workflow_task: ::core::option::Option<PollWorkflowTaskQueueResponse>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondWorkflowTaskFailedRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(
        enumeration = "super::super::enums::v1::WorkflowTaskFailedCause",
        tag = "2"
    )]
    pub cause: i32,
    #[prost(message, optional, tag = "3")]
    pub failure: ::core::option::Option<super::super::failure::v1::Failure>,
    #[prost(string, tag = "4")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub binary_checksum: ::prost::alloc::string::String,
    #[prost(string, tag = "6")]
    pub namespace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondWorkflowTaskFailedResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PollActivityTaskQueueRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub task_queue: ::core::option::Option<super::super::taskqueue::v1::TaskQueue>,
    #[prost(string, tag = "3")]
    pub identity: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub task_queue_metadata: ::core::option::Option<super::super::taskqueue::v1::TaskQueueMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PollActivityTaskQueueResponse {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, tag = "2")]
    pub workflow_namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub workflow_type: ::core::option::Option<super::super::common::v1::WorkflowType>,
    #[prost(message, optional, tag = "4")]
    pub workflow_execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
    #[prost(message, optional, tag = "5")]
    pub activity_type: ::core::option::Option<super::super::common::v1::ActivityType>,
    #[prost(string, tag = "6")]
    pub activity_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "7")]
    pub header: ::core::option::Option<super::super::common::v1::Header>,
    #[prost(message, optional, tag = "8")]
    pub input: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(message, optional, tag = "9")]
    pub heartbeat_details: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(message, optional, tag = "10")]
    pub scheduled_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "11")]
    pub current_attempt_scheduled_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "12")]
    pub started_time: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(int32, tag = "13")]
    pub attempt: i32,
    /// (-- api-linter: core::0140::prepositions=disabled
    ///     aip.dev/not-precedent: "to" is used to indicate interval. --)
    #[prost(message, optional, tag = "14")]
    pub schedule_to_close_timeout: ::core::option::Option<::prost_types::Duration>,
    /// (-- api-linter: core::0140::prepositions=disabled
    ///     aip.dev/not-precedent: "to" is used to indicate interval. --)
    #[prost(message, optional, tag = "15")]
    pub start_to_close_timeout: ::core::option::Option<::prost_types::Duration>,
    #[prost(message, optional, tag = "16")]
    pub heartbeat_timeout: ::core::option::Option<::prost_types::Duration>,
    /// This is an actual retry policy the service uses.
    /// It can be different from the one provided (or not) during activity scheduling
    /// as the service can override the provided one in case its values are not specified
    /// or exceed configured system limits.
    #[prost(message, optional, tag = "17")]
    pub retry_policy: ::core::option::Option<super::super::common::v1::RetryPolicy>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecordActivityTaskHeartbeatRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, optional, tag = "2")]
    pub details: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "3")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub namespace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecordActivityTaskHeartbeatResponse {
    #[prost(bool, tag = "1")]
    pub cancel_requested: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecordActivityTaskHeartbeatByIdRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workflow_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub run_id: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub activity_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "5")]
    pub details: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "6")]
    pub identity: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecordActivityTaskHeartbeatByIdResponse {
    #[prost(bool, tag = "1")]
    pub cancel_requested: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskCompletedRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, optional, tag = "2")]
    pub result: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "3")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub namespace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskCompletedResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskCompletedByIdRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workflow_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub run_id: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub activity_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "5")]
    pub result: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "6")]
    pub identity: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskCompletedByIdResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskFailedRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, optional, tag = "2")]
    pub failure: ::core::option::Option<super::super::failure::v1::Failure>,
    #[prost(string, tag = "3")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub namespace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskFailedResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskFailedByIdRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workflow_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub run_id: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub activity_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "5")]
    pub failure: ::core::option::Option<super::super::failure::v1::Failure>,
    #[prost(string, tag = "6")]
    pub identity: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskFailedByIdResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskCanceledRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, optional, tag = "2")]
    pub details: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "3")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub namespace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskCanceledResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskCanceledByIdRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workflow_id: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub run_id: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub activity_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "5")]
    pub details: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "6")]
    pub identity: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondActivityTaskCanceledByIdResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestCancelWorkflowExecutionRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub workflow_execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
    #[prost(string, tag = "3")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub request_id: ::prost::alloc::string::String,
    #[prost(string, tag = "5")]
    pub first_execution_run_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestCancelWorkflowExecutionResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignalWorkflowExecutionRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub workflow_execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
    #[prost(string, tag = "3")]
    pub signal_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub input: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "5")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "6")]
    pub request_id: ::prost::alloc::string::String,
    #[prost(string, tag = "7")]
    pub control: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignalWorkflowExecutionResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignalWithStartWorkflowExecutionRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub workflow_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub workflow_type: ::core::option::Option<super::super::common::v1::WorkflowType>,
    #[prost(message, optional, tag = "4")]
    pub task_queue: ::core::option::Option<super::super::taskqueue::v1::TaskQueue>,
    #[prost(message, optional, tag = "5")]
    pub input: ::core::option::Option<super::super::common::v1::Payloads>,
    /// Total workflow execution timeout including retries and continue as new
    #[prost(message, optional, tag = "6")]
    pub workflow_execution_timeout: ::core::option::Option<::prost_types::Duration>,
    /// Timeout of a single workflow run
    #[prost(message, optional, tag = "7")]
    pub workflow_run_timeout: ::core::option::Option<::prost_types::Duration>,
    /// Timeout of a single workflow task
    #[prost(message, optional, tag = "8")]
    pub workflow_task_timeout: ::core::option::Option<::prost_types::Duration>,
    #[prost(string, tag = "9")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "10")]
    pub request_id: ::prost::alloc::string::String,
    #[prost(
        enumeration = "super::super::enums::v1::WorkflowIdReusePolicy",
        tag = "11"
    )]
    pub workflow_id_reuse_policy: i32,
    #[prost(string, tag = "12")]
    pub signal_name: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "13")]
    pub signal_input: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "14")]
    pub control: ::prost::alloc::string::String,
    /// Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
    #[prost(message, optional, tag = "15")]
    pub retry_policy: ::core::option::Option<super::super::common::v1::RetryPolicy>,
    #[prost(string, tag = "16")]
    pub cron_schedule: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "17")]
    pub memo: ::core::option::Option<super::super::common::v1::Memo>,
    #[prost(message, optional, tag = "18")]
    pub search_attributes: ::core::option::Option<super::super::common::v1::SearchAttributes>,
    #[prost(message, optional, tag = "19")]
    pub header: ::core::option::Option<super::super::common::v1::Header>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SignalWithStartWorkflowExecutionResponse {
    #[prost(string, tag = "1")]
    pub run_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResetWorkflowExecutionRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub workflow_execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
    #[prost(string, tag = "3")]
    pub reason: ::prost::alloc::string::String,
    #[prost(int64, tag = "4")]
    pub workflow_task_finish_event_id: i64,
    #[prost(string, tag = "5")]
    pub request_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResetWorkflowExecutionResponse {
    #[prost(string, tag = "1")]
    pub run_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TerminateWorkflowExecutionRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub workflow_execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
    #[prost(string, tag = "3")]
    pub reason: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub details: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "5")]
    pub identity: ::prost::alloc::string::String,
    #[prost(string, tag = "6")]
    pub first_execution_run_id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TerminateWorkflowExecutionResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOpenWorkflowExecutionsRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(int32, tag = "2")]
    pub maximum_page_size: i32,
    #[prost(bytes = "vec", tag = "3")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, optional, tag = "4")]
    pub start_time_filter: ::core::option::Option<super::super::filter::v1::StartTimeFilter>,
    #[prost(
        oneof = "list_open_workflow_executions_request::Filters",
        tags = "5, 6"
    )]
    pub filters: ::core::option::Option<list_open_workflow_executions_request::Filters>,
}
/// Nested message and enum types in `ListOpenWorkflowExecutionsRequest`.
pub mod list_open_workflow_executions_request {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Filters {
        #[prost(message, tag = "5")]
        ExecutionFilter(super::super::super::filter::v1::WorkflowExecutionFilter),
        #[prost(message, tag = "6")]
        TypeFilter(super::super::super::filter::v1::WorkflowTypeFilter),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListOpenWorkflowExecutionsResponse {
    #[prost(message, repeated, tag = "1")]
    pub executions: ::prost::alloc::vec::Vec<super::super::workflow::v1::WorkflowExecutionInfo>,
    #[prost(bytes = "vec", tag = "2")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListClosedWorkflowExecutionsRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(int32, tag = "2")]
    pub maximum_page_size: i32,
    #[prost(bytes = "vec", tag = "3")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(message, optional, tag = "4")]
    pub start_time_filter: ::core::option::Option<super::super::filter::v1::StartTimeFilter>,
    #[prost(
        oneof = "list_closed_workflow_executions_request::Filters",
        tags = "5, 6, 7"
    )]
    pub filters: ::core::option::Option<list_closed_workflow_executions_request::Filters>,
}
/// Nested message and enum types in `ListClosedWorkflowExecutionsRequest`.
pub mod list_closed_workflow_executions_request {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Filters {
        #[prost(message, tag = "5")]
        ExecutionFilter(super::super::super::filter::v1::WorkflowExecutionFilter),
        #[prost(message, tag = "6")]
        TypeFilter(super::super::super::filter::v1::WorkflowTypeFilter),
        #[prost(message, tag = "7")]
        StatusFilter(super::super::super::filter::v1::StatusFilter),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListClosedWorkflowExecutionsResponse {
    #[prost(message, repeated, tag = "1")]
    pub executions: ::prost::alloc::vec::Vec<super::super::workflow::v1::WorkflowExecutionInfo>,
    #[prost(bytes = "vec", tag = "2")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkflowExecutionsRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    #[prost(bytes = "vec", tag = "3")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, tag = "4")]
    pub query: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListWorkflowExecutionsResponse {
    #[prost(message, repeated, tag = "1")]
    pub executions: ::prost::alloc::vec::Vec<super::super::workflow::v1::WorkflowExecutionInfo>,
    #[prost(bytes = "vec", tag = "2")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListArchivedWorkflowExecutionsRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    #[prost(bytes = "vec", tag = "3")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, tag = "4")]
    pub query: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListArchivedWorkflowExecutionsResponse {
    #[prost(message, repeated, tag = "1")]
    pub executions: ::prost::alloc::vec::Vec<super::super::workflow::v1::WorkflowExecutionInfo>,
    #[prost(bytes = "vec", tag = "2")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScanWorkflowExecutionsRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(int32, tag = "2")]
    pub page_size: i32,
    #[prost(bytes = "vec", tag = "3")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(string, tag = "4")]
    pub query: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScanWorkflowExecutionsResponse {
    #[prost(message, repeated, tag = "1")]
    pub executions: ::prost::alloc::vec::Vec<super::super::workflow::v1::WorkflowExecutionInfo>,
    #[prost(bytes = "vec", tag = "2")]
    pub next_page_token: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountWorkflowExecutionsRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub query: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CountWorkflowExecutionsResponse {
    #[prost(int64, tag = "1")]
    pub count: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSearchAttributesRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSearchAttributesResponse {
    #[prost(
        map = "string, enumeration(super::super::enums::v1::IndexedValueType)",
        tag = "1"
    )]
    pub keys: ::std::collections::HashMap<::prost::alloc::string::String, i32>,
}
/// TODO:  deprecated APIs
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondQueryTaskCompletedRequest {
    #[prost(bytes = "vec", tag = "1")]
    pub task_token: ::prost::alloc::vec::Vec<u8>,
    #[prost(enumeration = "super::super::enums::v1::QueryResultType", tag = "2")]
    pub completed_type: i32,
    #[prost(message, optional, tag = "3")]
    pub query_result: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(string, tag = "4")]
    pub error_message: ::prost::alloc::string::String,
    #[prost(string, tag = "6")]
    pub namespace: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RespondQueryTaskCompletedResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResetStickyTaskQueueRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResetStickyTaskQueueResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryWorkflowRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
    #[prost(message, optional, tag = "3")]
    pub query: ::core::option::Option<super::super::query::v1::WorkflowQuery>,
    /// QueryRejectCondition can used to reject the query if workflow state does not satisfy condition.
    /// Default: QUERY_REJECT_CONDITION_NONE.
    #[prost(
        enumeration = "super::super::enums::v1::QueryRejectCondition",
        tag = "4"
    )]
    pub query_reject_condition: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryWorkflowResponse {
    #[prost(message, optional, tag = "1")]
    pub query_result: ::core::option::Option<super::super::common::v1::Payloads>,
    #[prost(message, optional, tag = "2")]
    pub query_rejected: ::core::option::Option<super::super::query::v1::QueryRejected>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeWorkflowExecutionRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub execution: ::core::option::Option<super::super::common::v1::WorkflowExecution>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeWorkflowExecutionResponse {
    #[prost(message, optional, tag = "1")]
    pub execution_config:
        ::core::option::Option<super::super::workflow::v1::WorkflowExecutionConfig>,
    #[prost(message, optional, tag = "2")]
    pub workflow_execution_info:
        ::core::option::Option<super::super::workflow::v1::WorkflowExecutionInfo>,
    #[prost(message, repeated, tag = "3")]
    pub pending_activities:
        ::prost::alloc::vec::Vec<super::super::workflow::v1::PendingActivityInfo>,
    #[prost(message, repeated, tag = "4")]
    pub pending_children:
        ::prost::alloc::vec::Vec<super::super::workflow::v1::PendingChildExecutionInfo>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeTaskQueueRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub task_queue: ::core::option::Option<super::super::taskqueue::v1::TaskQueue>,
    #[prost(enumeration = "super::super::enums::v1::TaskQueueType", tag = "3")]
    pub task_queue_type: i32,
    #[prost(bool, tag = "4")]
    pub include_task_queue_status: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DescribeTaskQueueResponse {
    #[prost(message, repeated, tag = "1")]
    pub pollers: ::prost::alloc::vec::Vec<super::super::taskqueue::v1::PollerInfo>,
    #[prost(message, optional, tag = "2")]
    pub task_queue_status: ::core::option::Option<super::super::taskqueue::v1::TaskQueueStatus>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetClusterInfoRequest {}
/// GetClusterInfoResponse contains information about Temporal cluster.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetClusterInfoResponse {
    /// Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
    /// Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
    #[prost(map = "string, string", tag = "1")]
    pub supported_clients:
        ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
    #[prost(string, tag = "2")]
    pub server_version: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub cluster_id: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "4")]
    pub version_info: ::core::option::Option<super::super::version::v1::VersionInfo>,
    #[prost(string, tag = "5")]
    pub cluster_name: ::prost::alloc::string::String,
    #[prost(int32, tag = "6")]
    pub history_shard_count: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTaskQueuePartitionsRequest {
    #[prost(string, tag = "1")]
    pub namespace: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "2")]
    pub task_queue: ::core::option::Option<super::super::taskqueue::v1::TaskQueue>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTaskQueuePartitionsResponse {
    #[prost(message, repeated, tag = "1")]
    pub activity_task_queue_partitions:
        ::prost::alloc::vec::Vec<super::super::taskqueue::v1::TaskQueuePartitionMetadata>,
    #[prost(message, repeated, tag = "2")]
    pub workflow_task_queue_partitions:
        ::prost::alloc::vec::Vec<super::super::taskqueue::v1::TaskQueuePartitionMetadata>,
}
#[doc = r" Generated client implementations."]
pub mod workflow_service_client {
    #![allow(unused_variables, dead_code, missing_docs)]
    use tonic::codegen::*;
    #[doc = " WorkflowService API is exposed to provide support for long running applications.  Application is expected to call"]
    #[doc = " StartWorkflowExecution to create an instance for each instance of long running workflow.  Such applications are expected"]
    #[doc = " to have a worker which regularly polls for WorkflowTask and ActivityTask from the WorkflowService.  For each"]
    #[doc = " WorkflowTask, application is expected to process the history of events for that session and respond back with next"]
    #[doc = " commands.  For each ActivityTask, application is expected to execute the actual logic for that task and respond back"]
    #[doc = " with completion or failure.  Worker is expected to regularly heartbeat while activity task is running."]
    pub struct WorkflowServiceClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl WorkflowServiceClient<tonic::transport::Channel> {
        #[doc = r" Attempt to create a new client by connecting to a given endpoint."]
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: std::convert::TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> WorkflowServiceClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::BoxBody>,
        T::ResponseBody: Body + HttpBody + Send + 'static,
        T::Error: Into<StdError>,
        <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_interceptor(inner: T, interceptor: impl Into<tonic::Interceptor>) -> Self {
            let inner = tonic::client::Grpc::with_interceptor(inner, interceptor);
            Self { inner }
        }
        #[doc = " RegisterNamespace creates a new namespace which can be used as a container for all resources.  Namespace is a top level"]
        #[doc = " entity within Temporal, used as a container for all resources like workflow executions, task queues, etc.  Namespace"]
        #[doc = " acts as a sandbox and provides isolation for all resources within the namespace.  All resources belongs to exactly one"]
        #[doc = " namespace."]
        pub async fn register_namespace(
            &mut self,
            request: impl tonic::IntoRequest<super::RegisterNamespaceRequest>,
        ) -> Result<tonic::Response<super::RegisterNamespaceResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RegisterNamespace",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " DescribeNamespace returns the information and configuration for a registered namespace."]
        pub async fn describe_namespace(
            &mut self,
            request: impl tonic::IntoRequest<super::DescribeNamespaceRequest>,
        ) -> Result<tonic::Response<super::DescribeNamespaceResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/DescribeNamespace",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " ListNamespaces returns the information and configuration for all namespaces."]
        pub async fn list_namespaces(
            &mut self,
            request: impl tonic::IntoRequest<super::ListNamespacesRequest>,
        ) -> Result<tonic::Response<super::ListNamespacesResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ListNamespaces",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " (-- api-linter: core::0134::method-signature=disabled"]
        #[doc = "     aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)"]
        #[doc = " (-- api-linter: core::0134::response-message-name=disabled"]
        #[doc = "     aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)"]
        #[doc = " UpdateNamespace is used to update the information and configuration for a registered namespace."]
        pub async fn update_namespace(
            &mut self,
            request: impl tonic::IntoRequest<super::UpdateNamespaceRequest>,
        ) -> Result<tonic::Response<super::UpdateNamespaceResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/UpdateNamespace",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " DeprecateNamespace is used to update state of a registered namespace to DEPRECATED.  Once the namespace is deprecated"]
        #[doc = " it cannot be used to start new workflow executions.  Existing workflow executions will continue to run on"]
        #[doc = " deprecated namespaces."]
        pub async fn deprecate_namespace(
            &mut self,
            request: impl tonic::IntoRequest<super::DeprecateNamespaceRequest>,
        ) -> Result<tonic::Response<super::DeprecateNamespaceResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/DeprecateNamespace",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " StartWorkflowExecution starts a new long running workflow instance.  It will create the instance with"]
        #[doc = " 'WorkflowExecutionStarted' event in history and also schedule the first WorkflowTask for the worker to make the"]
        #[doc = " first command for this instance.  It will return 'WorkflowExecutionAlreadyStartedFailure', if an instance already"]
        #[doc = " exists with same workflowId."]
        pub async fn start_workflow_execution(
            &mut self,
            request: impl tonic::IntoRequest<super::StartWorkflowExecutionRequest>,
        ) -> Result<tonic::Response<super::StartWorkflowExecutionResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/StartWorkflowExecution",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " GetWorkflowExecutionHistory returns the history of specified workflow execution.  It fails with 'NotFoundFailure' if specified workflow"]
        #[doc = " execution in unknown to the service."]
        pub async fn get_workflow_execution_history(
            &mut self,
            request: impl tonic::IntoRequest<super::GetWorkflowExecutionHistoryRequest>,
        ) -> Result<tonic::Response<super::GetWorkflowExecutionHistoryResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/GetWorkflowExecutionHistory",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " PollWorkflowTaskQueue is called by application worker to process WorkflowTask from a specific task queue.  A"]
        #[doc = " WorkflowTask is dispatched to callers for active workflow executions, with pending workflow tasks."]
        #[doc = " Application is then expected to call 'RespondWorkflowTaskCompleted' API when it is done processing the WorkflowTask."]
        #[doc = " It will also create a 'WorkflowTaskStarted' event in the history for that session before handing off WorkflowTask to"]
        #[doc = " application worker."]
        pub async fn poll_workflow_task_queue(
            &mut self,
            request: impl tonic::IntoRequest<super::PollWorkflowTaskQueueRequest>,
        ) -> Result<tonic::Response<super::PollWorkflowTaskQueueResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/PollWorkflowTaskQueue",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " RespondWorkflowTaskCompleted is called by application worker to complete a WorkflowTask handed as a result of"]
        #[doc = " 'PollWorkflowTaskQueue' API call.  Completing a WorkflowTask will result in new events for the workflow execution and"]
        #[doc = " potentially new ActivityTask being created for corresponding commands.  It will also create a WorkflowTaskCompleted"]
        #[doc = " event in the history for that session.  Use the 'taskToken' provided as response of PollWorkflowTaskQueue API call"]
        #[doc = " for completing the WorkflowTask."]
        #[doc = " The response could contain a new workflow task if there is one or if the request asking for one."]
        pub async fn respond_workflow_task_completed(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondWorkflowTaskCompletedRequest>,
        ) -> Result<tonic::Response<super::RespondWorkflowTaskCompletedResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondWorkflowTaskCompleted",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " RespondWorkflowTaskFailed is called by application worker to indicate failure.  This results in"]
        #[doc = " WorkflowTaskFailedEvent written to the history and a new WorkflowTask created.  This API can be used by client to"]
        #[doc = " either clear sticky task queue or report any panics during WorkflowTask processing.  Temporal will only append first"]
        #[doc = " WorkflowTaskFailed event to the history of workflow execution for consecutive failures."]
        pub async fn respond_workflow_task_failed(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondWorkflowTaskFailedRequest>,
        ) -> Result<tonic::Response<super::RespondWorkflowTaskFailedResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondWorkflowTaskFailed",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " PollActivityTaskQueue is called by application worker to process ActivityTask from a specific task queue.  ActivityTask"]
        #[doc = " is dispatched to callers whenever a ScheduleTask command is made for a workflow execution."]
        #[doc = " Application is expected to call 'RespondActivityTaskCompleted' or 'RespondActivityTaskFailed' once it is done"]
        #[doc = " processing the task."]
        #[doc = " Application also needs to call 'RecordActivityTaskHeartbeat' API within 'heartbeatTimeoutSeconds' interval to"]
        #[doc = " prevent the task from getting timed out.  An event 'ActivityTaskStarted' event is also written to workflow execution"]
        #[doc = " history before the ActivityTask is dispatched to application worker."]
        pub async fn poll_activity_task_queue(
            &mut self,
            request: impl tonic::IntoRequest<super::PollActivityTaskQueueRequest>,
        ) -> Result<tonic::Response<super::PollActivityTaskQueueResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/PollActivityTaskQueue",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " RecordActivityTaskHeartbeat is called by application worker while it is processing an ActivityTask.  If worker fails"]
        #[doc = " to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timedout and"]
        #[doc = " 'ActivityTaskTimedOut' event will be written to the workflow history.  Calling 'RecordActivityTaskHeartbeat' will"]
        #[doc = " fail with 'NotFoundFailure' in such situations.  Use the 'taskToken' provided as response of"]
        #[doc = " PollActivityTaskQueue API call for heart beating."]
        pub async fn record_activity_task_heartbeat(
            &mut self,
            request: impl tonic::IntoRequest<super::RecordActivityTaskHeartbeatRequest>,
        ) -> Result<tonic::Response<super::RecordActivityTaskHeartbeatResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RecordActivityTaskHeartbeat",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " (-- api-linter: core::0136::prepositions=disabled"]
        #[doc = "     aip.dev/not-precedent: \"By\" is used to indicate request type. --)"]
        #[doc = " RecordActivityTaskHeartbeatById is called by application worker while it is processing an ActivityTask.  If worker fails"]
        #[doc = " to heartbeat within 'heartbeatTimeoutSeconds' interval for the ActivityTask, then it will be marked as timed out and"]
        #[doc = " 'ActivityTaskTimedOut' event will be written to the workflow history.  Calling 'RecordActivityTaskHeartbeatById' will"]
        #[doc = " fail with 'NotFoundFailure' in such situations.  Instead of using 'taskToken' like in RecordActivityTaskHeartbeat,"]
        #[doc = " use Namespace, WorkflowId and ActivityId"]
        pub async fn record_activity_task_heartbeat_by_id(
            &mut self,
            request: impl tonic::IntoRequest<super::RecordActivityTaskHeartbeatByIdRequest>,
        ) -> Result<tonic::Response<super::RecordActivityTaskHeartbeatByIdResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RecordActivityTaskHeartbeatById",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " RespondActivityTaskCompleted is called by application worker when it is done processing an ActivityTask.  It will"]
        #[doc = " result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new WorkflowTask"]
        #[doc = " created for the workflow so new commands could be made.  Use the 'taskToken' provided as response of"]
        #[doc = " PollActivityTaskQueue API call for completion. It fails with 'NotFoundFailure' if the taskToken is not valid"]
        #[doc = " anymore due to activity timeout."]
        pub async fn respond_activity_task_completed(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondActivityTaskCompletedRequest>,
        ) -> Result<tonic::Response<super::RespondActivityTaskCompletedResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCompleted",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " (-- api-linter: core::0136::prepositions=disabled"]
        #[doc = "     aip.dev/not-precedent: \"By\" is used to indicate request type. --)"]
        #[doc = " RespondActivityTaskCompletedById is called by application worker when it is done processing an ActivityTask."]
        #[doc = " It will result in a new 'ActivityTaskCompleted' event being written to the workflow history and a new WorkflowTask"]
        #[doc = " created for the workflow so new commands could be made.  Similar to RespondActivityTaskCompleted but use Namespace,"]
        #[doc = " WorkflowId and ActivityId instead of 'taskToken' for completion. It fails with 'NotFoundFailure'"]
        #[doc = " if the these Ids are not valid anymore due to activity timeout."]
        pub async fn respond_activity_task_completed_by_id(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondActivityTaskCompletedByIdRequest>,
        ) -> Result<tonic::Response<super::RespondActivityTaskCompletedByIdResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCompletedById",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " RespondActivityTaskFailed is called by application worker when it is done processing an ActivityTask.  It will"]
        #[doc = " result in a new 'ActivityTaskFailed' event being written to the workflow history and a new WorkflowTask"]
        #[doc = " created for the workflow instance so new commands could be made.  Use the 'taskToken' provided as response of"]
        #[doc = " PollActivityTaskQueue API call for completion. It fails with 'NotFoundFailure' if the taskToken is not valid"]
        #[doc = " anymore due to activity timeout."]
        pub async fn respond_activity_task_failed(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondActivityTaskFailedRequest>,
        ) -> Result<tonic::Response<super::RespondActivityTaskFailedResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskFailed",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " (-- api-linter: core::0136::prepositions=disabled"]
        #[doc = "     aip.dev/not-precedent: \"By\" is used to indicate request type. --)"]
        #[doc = " RespondActivityTaskFailedById is called by application worker when it is done processing an ActivityTask."]
        #[doc = " It will result in a new 'ActivityTaskFailed' event being written to the workflow history and a new WorkflowTask"]
        #[doc = " created for the workflow instance so new commands could be made.  Similar to RespondActivityTaskFailed but use"]
        #[doc = " Namespace, WorkflowId and ActivityId instead of 'taskToken' for completion. It fails with 'NotFoundFailure'"]
        #[doc = " if the these Ids are not valid anymore due to activity timeout."]
        pub async fn respond_activity_task_failed_by_id(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondActivityTaskFailedByIdRequest>,
        ) -> Result<tonic::Response<super::RespondActivityTaskFailedByIdResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskFailedById",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " RespondActivityTaskCanceled is called by application worker when it is successfully canceled an ActivityTask.  It will"]
        #[doc = " result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new WorkflowTask"]
        #[doc = " created for the workflow instance so new commands could be made.  Use the 'taskToken' provided as response of"]
        #[doc = " PollActivityTaskQueue API call for completion. It fails with 'NotFoundFailure' if the taskToken is not valid"]
        #[doc = " anymore due to activity timeout."]
        pub async fn respond_activity_task_canceled(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondActivityTaskCanceledRequest>,
        ) -> Result<tonic::Response<super::RespondActivityTaskCanceledResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCanceled",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " (-- api-linter: core::0136::prepositions=disabled"]
        #[doc = "     aip.dev/not-precedent: \"By\" is used to indicate request type. --)"]
        #[doc = " RespondActivityTaskCanceledById is called by application worker when it is successfully canceled an ActivityTask."]
        #[doc = " It will result in a new 'ActivityTaskCanceled' event being written to the workflow history and a new WorkflowTask"]
        #[doc = " created for the workflow instance so new commands could be made.  Similar to RespondActivityTaskCanceled but use"]
        #[doc = " Namespace, WorkflowId and ActivityId instead of 'taskToken' for completion. It fails with 'NotFoundFailure'"]
        #[doc = " if the these Ids are not valid anymore due to activity timeout."]
        pub async fn respond_activity_task_canceled_by_id(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondActivityTaskCanceledByIdRequest>,
        ) -> Result<tonic::Response<super::RespondActivityTaskCanceledByIdResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCanceledById",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " RequestCancelWorkflowExecution is called by application worker when it wants to request cancellation of a workflow instance."]
        #[doc = " It will result in a new 'WorkflowExecutionCancelRequested' event being written to the workflow history and a new WorkflowTask"]
        #[doc = " created for the workflow instance so new commands could be made. It fails with 'NotFoundFailure' if the workflow is not valid"]
        #[doc = " anymore due to completion or doesn't exist."]
        pub async fn request_cancel_workflow_execution(
            &mut self,
            request: impl tonic::IntoRequest<super::RequestCancelWorkflowExecutionRequest>,
        ) -> Result<tonic::Response<super::RequestCancelWorkflowExecutionResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RequestCancelWorkflowExecution",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " SignalWorkflowExecution is used to send a signal event to running workflow execution.  This results in"]
        #[doc = " WorkflowExecutionSignaled event recorded in the history and a workflow task being created for the execution."]
        pub async fn signal_workflow_execution(
            &mut self,
            request: impl tonic::IntoRequest<super::SignalWorkflowExecutionRequest>,
        ) -> Result<tonic::Response<super::SignalWorkflowExecutionResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/SignalWorkflowExecution",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " (-- api-linter: core::0136::prepositions=disabled"]
        #[doc = "     aip.dev/not-precedent: \"With\" is used to indicate combined operation. --)"]
        #[doc = " SignalWithStartWorkflowExecution is used to ensure sending signal to a workflow."]
        #[doc = " If the workflow is running, this results in WorkflowExecutionSignaled event being recorded in the history"]
        #[doc = " and a workflow task being created for the execution."]
        #[doc = " If the workflow is not running or not found, this results in WorkflowExecutionStarted and WorkflowExecutionSignaled"]
        #[doc = " events being recorded in history, and a workflow task being created for the execution"]
        pub async fn signal_with_start_workflow_execution(
            &mut self,
            request: impl tonic::IntoRequest<super::SignalWithStartWorkflowExecutionRequest>,
        ) -> Result<tonic::Response<super::SignalWithStartWorkflowExecutionResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/SignalWithStartWorkflowExecution",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " ResetWorkflowExecution reset an existing workflow execution to WorkflowTaskCompleted event(exclusive)."]
        #[doc = " And it will immediately terminating the current execution instance."]
        pub async fn reset_workflow_execution(
            &mut self,
            request: impl tonic::IntoRequest<super::ResetWorkflowExecutionRequest>,
        ) -> Result<tonic::Response<super::ResetWorkflowExecutionResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ResetWorkflowExecution",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " TerminateWorkflowExecution terminates an existing workflow execution by recording WorkflowExecutionTerminated event"]
        #[doc = " in the history and immediately terminating the execution instance."]
        pub async fn terminate_workflow_execution(
            &mut self,
            request: impl tonic::IntoRequest<super::TerminateWorkflowExecutionRequest>,
        ) -> Result<tonic::Response<super::TerminateWorkflowExecutionResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/TerminateWorkflowExecution",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific namespace."]
        pub async fn list_open_workflow_executions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListOpenWorkflowExecutionsRequest>,
        ) -> Result<tonic::Response<super::ListOpenWorkflowExecutionsResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ListOpenWorkflowExecutions",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific namespace."]
        pub async fn list_closed_workflow_executions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListClosedWorkflowExecutionsRequest>,
        ) -> Result<tonic::Response<super::ListClosedWorkflowExecutionsResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ListClosedWorkflowExecutions",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " ListWorkflowExecutions is a visibility API to list workflow executions in a specific namespace."]
        pub async fn list_workflow_executions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListWorkflowExecutionsRequest>,
        ) -> Result<tonic::Response<super::ListWorkflowExecutionsResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ListWorkflowExecutions",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific namespace."]
        pub async fn list_archived_workflow_executions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListArchivedWorkflowExecutionsRequest>,
        ) -> Result<tonic::Response<super::ListArchivedWorkflowExecutionsResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ListArchivedWorkflowExecutions",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific namespace without order."]
        pub async fn scan_workflow_executions(
            &mut self,
            request: impl tonic::IntoRequest<super::ScanWorkflowExecutionsRequest>,
        ) -> Result<tonic::Response<super::ScanWorkflowExecutionsResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ScanWorkflowExecutions",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace."]
        pub async fn count_workflow_executions(
            &mut self,
            request: impl tonic::IntoRequest<super::CountWorkflowExecutionsRequest>,
        ) -> Result<tonic::Response<super::CountWorkflowExecutionsResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/CountWorkflowExecutions",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs"]
        pub async fn get_search_attributes(
            &mut self,
            request: impl tonic::IntoRequest<super::GetSearchAttributesRequest>,
        ) -> Result<tonic::Response<super::GetSearchAttributesResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/GetSearchAttributes",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " RespondQueryTaskCompleted is called by application worker to complete a QueryTask (which is a WorkflowTask for query)"]
        #[doc = " as a result of 'PollWorkflowTaskQueue' API call. Completing a QueryTask will unblock the client call to 'QueryWorkflow'"]
        #[doc = " API and return the query result to client as a response to 'QueryWorkflow' API call."]
        pub async fn respond_query_task_completed(
            &mut self,
            request: impl tonic::IntoRequest<super::RespondQueryTaskCompletedRequest>,
        ) -> Result<tonic::Response<super::RespondQueryTaskCompletedResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/RespondQueryTaskCompleted",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " ResetStickyTaskQueue resets the sticky task queue related information in mutable state of a given workflow."]
        #[doc = " Things cleared are:"]
        #[doc = " 1. StickyTaskQueue"]
        #[doc = " 2. StickyScheduleToStartTimeout"]
        pub async fn reset_sticky_task_queue(
            &mut self,
            request: impl tonic::IntoRequest<super::ResetStickyTaskQueueRequest>,
        ) -> Result<tonic::Response<super::ResetStickyTaskQueueResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ResetStickyTaskQueue",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " QueryWorkflow returns query result for a specified workflow execution"]
        pub async fn query_workflow(
            &mut self,
            request: impl tonic::IntoRequest<super::QueryWorkflowRequest>,
        ) -> Result<tonic::Response<super::QueryWorkflowResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/QueryWorkflow",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " DescribeWorkflowExecution returns information about the specified workflow execution."]
        pub async fn describe_workflow_execution(
            &mut self,
            request: impl tonic::IntoRequest<super::DescribeWorkflowExecutionRequest>,
        ) -> Result<tonic::Response<super::DescribeWorkflowExecutionResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/DescribeWorkflowExecution",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " DescribeTaskQueue returns information about the target task queue, right now this API returns the"]
        #[doc = " pollers which polled this task queue in last few minutes."]
        pub async fn describe_task_queue(
            &mut self,
            request: impl tonic::IntoRequest<super::DescribeTaskQueueRequest>,
        ) -> Result<tonic::Response<super::DescribeTaskQueueResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/DescribeTaskQueue",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        #[doc = " GetClusterInfo returns information about temporal cluster"]
        pub async fn get_cluster_info(
            &mut self,
            request: impl tonic::IntoRequest<super::GetClusterInfoRequest>,
        ) -> Result<tonic::Response<super::GetClusterInfoResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/GetClusterInfo",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
        pub async fn list_task_queue_partitions(
            &mut self,
            request: impl tonic::IntoRequest<super::ListTaskQueuePartitionsRequest>,
        ) -> Result<tonic::Response<super::ListTaskQueuePartitionsResponse>, 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(
                "/temporal.api.workflowservice.v1.WorkflowService/ListTaskQueuePartitions",
            );
            self.inner.unary(request.into_request(), path, codec).await
        }
    }
    impl<T: Clone> Clone for WorkflowServiceClient<T> {
        fn clone(&self) -> Self {
            Self {
                inner: self.inner.clone(),
            }
        }
    }
    impl<T> std::fmt::Debug for WorkflowServiceClient<T> {
        fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
            write!(f, "WorkflowServiceClient {{ ... }}")
        }
    }
}