From 10082a71605e503842ad62fb81cf414f79a159c3 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Tue, 25 Mar 2025 17:13:46 -0700 Subject: [PATCH 01/15] Update Core --- temporalio/bridge/Cargo.lock | 789 +++++++++++++++++++++-------------- temporalio/bridge/sdk-core | 2 +- 2 files changed, 470 insertions(+), 321 deletions(-) diff --git a/temporalio/bridge/Cargo.lock b/temporalio/bridge/Cargo.lock index 638673e6a..b5e428f03 100644 --- a/temporalio/bridge/Cargo.lock +++ b/temporalio/bridge/Cargo.lock @@ -51,9 +51,9 @@ checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9" [[package]] name = "anyhow" -version = "1.0.94" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7" +checksum = "dcfed56ad506cb2c684a14971b8861fdc3baaaae314b9e5f9bb532cbe3ba7a4f" [[package]] name = "arbitrary" @@ -88,9 +88,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.83" +version = "0.1.88" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" +checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5" dependencies = [ "proc-macro2", "quote", @@ -162,9 +162,9 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b62ddb9cb1ec0a098ad4bbf9344d0713fa193ae1a80af55febcff2627b6a00c1" dependencies = [ - "getrandom", + "getrandom 0.2.15", "instant", - "rand", + "rand 0.8.5", ] [[package]] @@ -179,7 +179,7 @@ dependencies = [ "miniz_oxide", "object", "rustc-demangle", - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -190,9 +190,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bitflags" -version = "2.6.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd" [[package]] name = "block-buffer" @@ -205,9 +205,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.16.0" +version = "3.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" +checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" [[package]] name = "byteorder" @@ -217,36 +217,34 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.9.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" +checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" [[package]] name = "bzip2" -version = "0.4.4" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" +checksum = "49ecfb22d906f800d4fe833b6282cf4dc1c298f5057ca0b5445e5c209735ca47" dependencies = [ "bzip2-sys", - "libc", ] [[package]] name = "bzip2-sys" -version = "0.1.11+1.0.8" +version = "0.1.13+1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +checksum = "225bff33b2141874fe80d71e07d6eec4f85c5c216453dd96388240f96e1acc14" dependencies = [ "cc", - "libc", "pkg-config", ] [[package]] name = "cc" -version = "1.2.5" +version = "1.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31a0499c1dc64f458ad13872de75c0eb7e3fdb0e67964610c914b034fc5956e" +checksum = "1fcb57c740ae1daf453ae85f16e37396f672b039e00d9d866e07ddb24e328e3a" dependencies = [ "jobserver", "libc", @@ -267,9 +265,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chrono" -version = "0.4.39" +version = "0.4.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" +checksum = "1a7964611d71df112cb1730f2ee67324fcf4d0fc6606acbbe9bfe06df124637c" dependencies = [ "num-traits", "serde", @@ -309,9 +307,9 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "cpufeatures" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b80225097f2e5ae4e7179dd2266824648f3e2f49d9134d584b76389d31c4c3" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" dependencies = [ "libc", ] @@ -431,9 +429,9 @@ checksum = "da692b8d1080ea3045efaab14434d40468c3d8657e42abddfffca87b428f4c1b" [[package]] name = "deranged" -version = "0.3.11" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" +checksum = "28cfac68e08048ae1883171632c2aef3ebc555621ae56fbccce1cbf22dd7f058" dependencies = [ "powerfmt", ] @@ -482,18 +480,18 @@ dependencies = [ [[package]] name = "derive_more" -version = "1.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" +checksum = "093242cf7570c207c83073cf82f79706fe7b8317e98620a47d5be7c3d8497678" dependencies = [ "derive_more-impl", ] [[package]] name = "derive_more-impl" -version = "1.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" +checksum = "bda628edc44c4bb645fbe0f758797143e4e07926f7ebf4e9bdfbd3d2ce621df3" dependencies = [ "proc-macro2", "quote", @@ -531,9 +529,9 @@ checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" [[package]] name = "either" -version = "1.13.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" [[package]] name = "enum-iterator" @@ -569,15 +567,15 @@ dependencies = [ [[package]] name = "equivalent" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] name = "erased-serde" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24e2389d65ab4fab27dc2a5de7b191e1f6617d1f1c8855c0dc569c94a4cbb18d" +checksum = "e004d887f51fcb9fef17317a2f3525c887d8aa3f4f50fed920816a688284a5b7" dependencies = [ "serde", "typeid", @@ -613,15 +611,15 @@ dependencies = [ [[package]] name = "fixedbitset" -version = "0.4.2" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" [[package]] name = "flate2" -version = "1.0.35" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" +checksum = "11faaf5a5236997af9848be0bef4db95824b1d534ebc64d0f0c6cf3e67bd38dc" dependencies = [ "crc32fast", "miniz_oxide", @@ -635,9 +633,9 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "foldhash" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" [[package]] name = "form_urlencoded" @@ -650,9 +648,9 @@ dependencies = [ [[package]] name = "fragile" -version = "2.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" +checksum = "28dd6caf6059519a65843af8fe2a3ae298b14b80179855aeb4adc2c1934ee619" [[package]] name = "futures" @@ -779,7 +777,21 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73fea8450eea4bac3940448fb7ae50d91f034f941199fcd9d909a5a07aa455f0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi", + "wasi 0.14.2+wasi-0.2.4", "wasm-bindgen", ] @@ -791,36 +803,38 @@ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "glob" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "governor" -version = "0.7.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0746aa765db78b521451ef74221663b57ba595bf83f75d0ce23cc09447c8139f" +checksum = "be93b4ec2e4710b04d9264c0c7350cdd62a8c20e5e4ac732552ebb8f0debe8eb" dependencies = [ "cfg-if", "dashmap", "futures-sink", "futures-timer", "futures-util", + "getrandom 0.3.2", "no-std-compat", "nonzero_ext", "parking_lot", "portable-atomic", "quanta", - "rand", + "rand 0.9.0", "smallvec", "spinning_top", + "web-time", ] [[package]] name = "h2" -version = "0.4.7" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e" +checksum = "5017294ff4bb30944501348f6f8e42e6ad28f42c8bbef7a74029aff064a4e3c2" dependencies = [ "atomic-waker", "bytes", @@ -828,7 +842,7 @@ dependencies = [ "futures-core", "futures-sink", "http", - "indexmap 2.7.0", + "indexmap 2.8.0", "slab", "tokio", "tokio-util", @@ -881,9 +895,9 @@ dependencies = [ [[package]] name = "http" -version = "1.2.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea" +checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565" dependencies = [ "bytes", "fnv", @@ -902,12 +916,12 @@ dependencies = [ [[package]] name = "http-body-util" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" dependencies = [ "bytes", - "futures-util", + "futures-core", "http", "http-body", "pin-project-lite", @@ -915,9 +929,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.9.5" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" [[package]] name = "httpdate" @@ -927,9 +941,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "1.5.2" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256fb8d4bd6413123cc9d91832d78325c48ff41677595be797d90f42969beae0" +checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80" dependencies = [ "bytes", "futures-channel", @@ -1153,9 +1167,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.7.0" +version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" +checksum = "3954d50fe15b02142bf25d3b8bdadb634ec3948f103d04ffe3031bc8fe9d7058" dependencies = [ "equivalent", "hashbrown 0.15.2", @@ -1163,15 +1177,15 @@ dependencies = [ [[package]] name = "indoc" -version = "2.0.5" +version = "2.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" +checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd" [[package]] name = "inout" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [ "generic-array", ] @@ -1187,33 +1201,33 @@ dependencies = [ [[package]] name = "inventory" -version = "0.3.16" +version = "0.3.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5d80fade88dd420ce0d9ab6f7c58ef2272dde38db874657950f827d4982c817" +checksum = "ab08d7cd2c5897f2c949e5383ea7c7db03fb19130ffcfbf7eda795137ae3cb83" dependencies = [ "rustversion", ] [[package]] name = "ipnet" -version = "2.10.1" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" [[package]] name = "itertools" -version = "0.13.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" dependencies = [ "either", ] [[package]] name = "itoa" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" +checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" [[package]] name = "jobserver" @@ -1226,9 +1240,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.76" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" dependencies = [ "once_cell", "wasm-bindgen", @@ -1242,9 +1256,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.169" +version = "0.2.171" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" +checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6" [[package]] name = "libredox" @@ -1259,15 +1273,15 @@ dependencies = [ [[package]] name = "linux-raw-sys" -version = "0.4.14" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +checksum = "fe7db12097d22ec582439daf8618b8fdd1a7bef6270e9af3b1ebcd30893cf413" [[package]] name = "litemap" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" +checksum = "23fb14cb19457329c82206317a5663005a4d404783dc74f4252769b0d5f42856" [[package]] name = "lock_api" @@ -1287,15 +1301,15 @@ checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" [[package]] name = "log" -version = "0.4.22" +version = "0.4.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" +checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" [[package]] name = "lru" -version = "0.12.5" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" +checksum = "227748d55f2f0ab4735d87fd623798cb6b664512fe979705f829c9f81c934465" dependencies = [ "hashbrown 0.15.2", ] @@ -1310,6 +1324,17 @@ dependencies = [ "crc", ] +[[package]] +name = "lzma-sys" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "matchers" version = "0.1.0" @@ -1348,9 +1373,9 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "miniz_oxide" -version = "0.8.2" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ffbe83022cedc1d264172192511ae958937694cd57ce297164951b8b3568394" +checksum = "8e3e04debbb59698c15bacbb6d93584a8c0ca9cc3213cb423d31f760d8843ce5" dependencies = [ "adler2", ] @@ -1362,7 +1387,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ "libc", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "windows-sys 0.52.0", ] @@ -1446,24 +1471,24 @@ dependencies = [ [[package]] name = "object" -version = "0.36.5" +version = "0.36.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.20.2" +version = "1.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" +checksum = "d75b0bedcc4fe52caa0e03d9f1151a323e4aa5e2d78ba3580400cd3c9e2bc4bc" [[package]] name = "openssl-probe" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" [[package]] name = "opentelemetry" @@ -1550,7 +1575,7 @@ dependencies = [ "once_cell", "opentelemetry", "percent-encoding", - "rand", + "rand 0.8.5", "serde_json", "thiserror 1.0.69", "tokio", @@ -1583,7 +1608,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -1604,12 +1629,12 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "petgraph" -version = "0.6.5" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" +checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772" dependencies = [ "fixedbitset", - "indexmap 2.7.0", + "indexmap 2.8.0", ] [[package]] @@ -1623,18 +1648,18 @@ dependencies = [ [[package]] name = "pin-project" -version = "1.1.7" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95" +checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a" dependencies = [ "pin-project-internal", ] [[package]] name = "pin-project-internal" -version = "1.1.7" +version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" +checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861" dependencies = [ "proc-macro2", "quote", @@ -1643,9 +1668,9 @@ dependencies = [ [[package]] name = "pin-project-lite" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" [[package]] name = "pin-utils" @@ -1655,15 +1680,24 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "pkg-config" -version = "0.3.31" +version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" [[package]] name = "portable-atomic" -version = "1.10.0" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e" + +[[package]] +name = "portable-atomic-util" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6" +checksum = "d8a2f0d8d040d7848a709caf78912debcc3f33ee4b3cac47d73d1e1069e83507" +dependencies = [ + "portable-atomic", +] [[package]] name = "powerfmt" @@ -1673,9 +1707,9 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" -version = "0.2.20" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" dependencies = [ "zerocopy", ] @@ -1708,9 +1742,9 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.2.25" +version = "0.2.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" +checksum = "5316f57387668042f561aae71480de936257848f9c43ce528e311d89a07cadeb" dependencies = [ "proc-macro2", "syn", @@ -1718,9 +1752,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.92" +version = "1.0.94" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" +checksum = "a31971752e70b8b2686d7e46ec17fb38dad4051d94024c88df49b667caea9c84" dependencies = [ "unicode-ident", ] @@ -1742,9 +1776,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.13.4" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c0fef6c4230e4ccf618a35c59d7ede15dea37de8427500f50aff708806e42ec" +checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5" dependencies = [ "bytes", "prost-derive", @@ -1752,9 +1786,9 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.13.4" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0f3e5beed80eb580c68e2c600937ac2c4eedabdfd5ef1e5b7ea4f3fba84497b" +checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf" dependencies = [ "heck 0.5.0", "itertools", @@ -1772,9 +1806,9 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.13.4" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "157c5a9d7ea5c2ed2d9fb8f495b64759f7816c7eaea54ba3978f0d63000162e3" +checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d" dependencies = [ "anyhow", "itertools", @@ -1785,9 +1819,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.13.4" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc2f1e56baa61e93533aebc21af4d2134b70f66275e0fcdf3cbe43d77ff7e8fc" +checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" dependencies = [ "prost", ] @@ -1933,52 +1967,54 @@ dependencies = [ [[package]] name = "quanta" -version = "0.12.4" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773ce68d0bb9bc7ef20be3536ffe94e223e1f365bd374108b2659fac0c65cfe6" +checksum = "3bd1fe6824cea6538803de3ff1bc0cf3949024db3d43c9643024bfb33a807c0e" dependencies = [ "crossbeam-utils", "libc", "once_cell", "raw-cpuid", - "wasi", + "wasi 0.11.0+wasi-snapshot-preview1", "web-sys", "winapi", ] [[package]] name = "quinn" -version = "0.11.6" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" +checksum = "c3bd15a6f2967aef83887dcb9fec0014580467e33720d073560cf015a5683012" dependencies = [ "bytes", + "cfg_aliases", "pin-project-lite", "quinn-proto", "quinn-udp", "rustc-hash", "rustls", "socket2", - "thiserror 2.0.8", + "thiserror 2.0.12", "tokio", "tracing", + "web-time", ] [[package]] name = "quinn-proto" -version = "0.11.9" +version = "0.11.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" +checksum = "b820744eb4dc9b57a3398183639c511b5a26d2ed702cedd3febaa1393caa22cc" dependencies = [ "bytes", - "getrandom", - "rand", + "getrandom 0.3.2", + "rand 0.9.0", "ring", "rustc-hash", "rustls", "rustls-pki-types", "slab", - "thiserror 2.0.8", + "thiserror 2.0.12", "tinyvec", "tracing", "web-time", @@ -1986,9 +2022,9 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.9" +version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904" +checksum = "541d0f57c6ec747a90738a52741d3221f7960e8ac2f0ff4b1a63680e033b4ab5" dependencies = [ "cfg_aliases", "libc", @@ -2000,13 +2036,19 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.37" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" +checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" + [[package]] name = "rand" version = "0.8.5" @@ -2014,8 +2056,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha", - "rand_core", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3779b94aeb87e8bd4e834cee3650289ee9e0d5677f976ecdb6d219e5f4f6cd94" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.3", + "zerocopy", ] [[package]] @@ -2025,7 +2078,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", - "rand_core", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.3", ] [[package]] @@ -2034,23 +2097,32 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom", + "getrandom 0.2.15", +] + +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom 0.3.2", ] [[package]] name = "raw-cpuid" -version = "11.2.0" +version = "11.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ab240315c661615f2ee9f0f2cd32d5a7343a84d5ebcccb99d46e6637565e7b0" +checksum = "c6df7ab838ed27997ba19a4664507e6f82b41fe6e20be42929332156e5e85146" dependencies = [ "bitflags", ] [[package]] name = "redox_syscall" -version = "0.5.8" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" +checksum = "0b8c0c260b63a8219631167be35e6a988e9554dbd323f8bd08439c8ed1302bd1" dependencies = [ "bitflags", ] @@ -2101,9 +2173,9 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "reqwest" -version = "0.12.9" +version = "0.12.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a77c62af46e79de0a562e1a9849205ffcb7fc1238876e9bd743357570e04046f" +checksum = "d19c46a6fdd48bc4dab94b6103fccc55d34c67cc0ad04653aad4ea2a07cd7bbb" dependencies = [ "base64", "bytes", @@ -2135,6 +2207,7 @@ dependencies = [ "tokio", "tokio-rustls", "tokio-util", + "tower 0.5.2", "tower-service", "url", "wasm-bindgen", @@ -2146,27 +2219,27 @@ dependencies = [ [[package]] name = "ring" -version = "0.17.8" +version = "0.17.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", - "getrandom", + "getrandom 0.2.15", "libc", - "spin", "untrusted", "windows-sys 0.52.0", ] [[package]] name = "ringbuf" -version = "0.4.7" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "726bb493fe9cac765e8f96a144c3a8396bdf766dedad22e504b70b908dcbceb4" +checksum = "fe47b720588c8702e34b5979cb3271a8b1842c7cb6f57408efa70c779363488c" dependencies = [ "crossbeam-utils", "portable-atomic", + "portable-atomic-util", ] [[package]] @@ -2177,9 +2250,9 @@ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" [[package]] name = "rustfsm" @@ -2206,9 +2279,9 @@ version = "0.1.0" [[package]] name = "rustix" -version = "0.38.42" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93dc38ecbab2eb790ff964bb77fa94faf256fd3e73285fd7ba0903b76bedb85" +checksum = "e56a18552996ac8d29ecc3b190b4fdbb2d91ca4ec396de7bbffaf43f3d637e96" dependencies = [ "bitflags", "errno", @@ -2219,9 +2292,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.20" +version = "0.23.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5065c3f250cbd332cd894be57c40fa52387247659b14a2d6041d121547903b1b" +checksum = "822ee9188ac4ec04a2f0531e55d035fb2de73f18b41a63c70c2712503b6fb13c" dependencies = [ "log", "once_cell", @@ -2255,18 +2328,18 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.10.1" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2bf47e6ff922db3825eb750c4e2ff784c6ff8fb9e13046ef6a1d1c5401b0b37" +checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" dependencies = [ "web-time", ] [[package]] name = "rustls-webpki" -version = "0.102.8" +version = "0.103.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" +checksum = "fef8b8769aaccf73098557a87cd1816b4f9c7c16811c9c77142aa695c16f2c03" dependencies = [ "ring", "rustls-pki-types", @@ -2275,15 +2348,15 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.18" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" +checksum = "eded382c5f5f786b989652c49544c4877d9f015cc22e145a5ea8ea66c2921cd2" [[package]] name = "ryu" -version = "1.0.18" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" [[package]] name = "schannel" @@ -2302,9 +2375,9 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] name = "security-framework" -version = "3.1.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81d3f8c9bfcc3cbb6b0179eb57042d75b1582bdc65c3cb95f3fa999509c03cbc" +checksum = "271720403f46ca04f7ba6f55d438f8bd878d6b8ca0a1046e8228c4145bcbb316" dependencies = [ "bitflags", "core-foundation", @@ -2315,9 +2388,9 @@ dependencies = [ [[package]] name = "security-framework-sys" -version = "2.13.0" +version = "2.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1863fd3768cd83c56a7f60faa4dc0d403f1b6df0a38c3c25f44b7894e45370d5" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" dependencies = [ "core-foundation-sys", "libc", @@ -2325,18 +2398,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.216" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" +checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.216" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" +checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" dependencies = [ "proc-macro2", "quote", @@ -2345,9 +2418,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.133" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" +checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" dependencies = [ "itoa", "memchr", @@ -2434,9 +2507,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.13.2" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" [[package]] name = "socket2" @@ -2448,12 +2521,6 @@ dependencies = [ "windows-sys 0.52.0", ] -[[package]] -name = "spin" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" - [[package]] name = "spinning_top" version = "0.3.0" @@ -2483,9 +2550,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" -version = "2.0.90" +version = "2.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" +checksum = "b09a44accad81e1ba1cd74a32461ba89dee89095ba17b32f5d03683b1b1fc2a0" dependencies = [ "proc-macro2", "quote", @@ -2514,9 +2581,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.32.1" +version = "0.33.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c33cd241af0f2e9e3b5c32163b873b29956890b5342e6745b917ce9d490f4af" +checksum = "4fc858248ea01b66f19d8e8a6d55f41deaf91e9d495246fd01368d99935c6c01" dependencies = [ "core-foundation-sys", "libc", @@ -2527,9 +2594,9 @@ dependencies = [ [[package]] name = "tar" -version = "0.4.43" +version = "0.4.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c65998313f8e17d0d553d28f91a0df93e4dbbbf770279c7bc21ca0f09ea1a1f6" +checksum = "1d863878d212c87a19c1a610eb53bb01fe12951c0501cf5a0d65f724914a667a" dependencies = [ "filetime", "libc", @@ -2544,12 +2611,12 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tempfile" -version = "3.14.0" +version = "3.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" +checksum = "7437ac7763b9b123ccf33c338a5cc1bac6f69b45a136c19bdd8a65e3916435bf" dependencies = [ - "cfg-if", "fastrand", + "getrandom 0.3.2", "once_cell", "rustix", "windows-sys 0.59.0", @@ -2572,11 +2639,10 @@ dependencies = [ "hyper", "hyper-util", "parking_lot", - "prost-types", "slotmap", "temporal-sdk-core-api", "temporal-sdk-core-protos", - "thiserror 2.0.8", + "thiserror 2.0.12", "tokio", "tonic", "tower 0.5.2", @@ -2642,7 +2708,7 @@ dependencies = [ "prometheus", "prost", "prost-wkt-types", - "rand", + "rand 0.9.0", "reqwest", "ringbuf", "rustfsm", @@ -2655,7 +2721,7 @@ dependencies = [ "temporal-client", "temporal-sdk-core-api", "temporal-sdk-core-protos", - "thiserror 2.0.8", + "thiserror 2.0.12", "tokio", "tokio-stream", "tokio-util", @@ -2676,10 +2742,9 @@ dependencies = [ "derive_more", "opentelemetry", "prost", - "prost-types", "serde_json", "temporal-sdk-core-protos", - "thiserror 2.0.8", + "thiserror 2.0.12", "tonic", "tracing-core", "url", @@ -2694,14 +2759,13 @@ dependencies = [ "derive_more", "prost", "prost-build", - "prost-types", "prost-wkt", "prost-wkt-build", "prost-wkt-types", - "rand", + "rand 0.9.0", "serde", "serde_json", - "thiserror 2.0.8", + "thiserror 2.0.12", "tonic", "tonic-build", "uuid", @@ -2724,11 +2788,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.8" +version = "2.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f5383f3e0071702bf93ab5ee99b52d26936be9dedd9413067cbdcddcb6141a" +checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" dependencies = [ - "thiserror-impl 2.0.8", + "thiserror-impl 2.0.12", ] [[package]] @@ -2744,9 +2808,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.8" +version = "2.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f357fcec90b3caef6623a099691be676d033b40a058ac95d2a6ade6fa0c943" +checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" dependencies = [ "proc-macro2", "quote", @@ -2765,9 +2829,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.37" +version = "0.3.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35e7868883861bd0e56d9ac6efcaaca0d6d5d82a2a7ec8209ff492c07cf37b21" +checksum = "8a7619e19bc266e0f9c5e6686659d394bc57973859340060a69221e57dbc0c40" dependencies = [ "deranged", "num-conv", @@ -2778,9 +2842,9 @@ dependencies = [ [[package]] name = "time-core" -version = "0.1.2" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" +checksum = "c9e9a38711f559d9e3ce1cdb06dd7c5b8ea546bc90052da6d06bb76da74bb07c" [[package]] name = "tinystr" @@ -2794,9 +2858,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.8.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" +checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71" dependencies = [ "tinyvec_macros", ] @@ -2809,9 +2873,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.42.0" +version = "1.44.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cec9b21b0450273377fc97bd4c33a8acffc8c996c987a7c5b319a0083707551" +checksum = "f382da615b842244d4b8738c82ed1275e6c5dd90c459a30941cd07080b06c91a" dependencies = [ "backtrace", "bytes", @@ -2827,9 +2891,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" dependencies = [ "proc-macro2", "quote", @@ -2838,9 +2902,9 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.26.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37" +checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b" dependencies = [ "rustls", "tokio", @@ -2859,9 +2923,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.13" +version = "0.7.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" +checksum = "6b9590b93e6fcc1739458317cccd391ad3955e2bde8913edf6f95f9e65a8f034" dependencies = [ "bytes", "futures-core", @@ -2928,7 +2992,7 @@ dependencies = [ "indexmap 1.9.3", "pin-project", "pin-project-lite", - "rand", + "rand 0.8.5", "slab", "tokio", "tokio-util", @@ -2947,6 +3011,7 @@ dependencies = [ "futures-util", "pin-project-lite", "sync_wrapper", + "tokio", "tower-layer", "tower-service", ] @@ -2995,17 +3060,6 @@ dependencies = [ "valuable", ] -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - [[package]] name = "tracing-subscriber" version = "0.3.19" @@ -3018,11 +3072,9 @@ dependencies = [ "parking_lot", "regex", "sharded-slab", - "smallvec", "thread_local", "tracing", "tracing-core", - "tracing-log", ] [[package]] @@ -3033,21 +3085,21 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "typeid" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e13db2e0ccd5e14a544e8a246ba2312cd25223f616442d7f2cb0e3db614236e" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" [[package]] name = "typenum" -version = "1.17.0" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" +checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" [[package]] name = "typetag" -version = "0.2.19" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "044fc3365ddd307c297fe0fe7b2e70588cdab4d0f62dc52055ca0d11b174cf0e" +checksum = "73f22b40dd7bfe8c14230cf9702081366421890435b2d625fa92b4acc4c3de6f" dependencies = [ "erased-serde", "inventory", @@ -3058,9 +3110,9 @@ dependencies = [ [[package]] name = "typetag-impl" -version = "0.2.19" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9d30226ac9cbd2d1ff775f74e8febdab985dab14fb14aa2582c29a92d5555dc" +checksum = "35f5380909ffc31b4de4f4bdf96b877175a016aa2ca98cee39fcfd8c4d53d952" dependencies = [ "proc-macro2", "quote", @@ -3069,9 +3121,9 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.14" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" +checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" [[package]] name = "unicode-xid" @@ -3081,9 +3133,9 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "unindent" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce" +checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3" [[package]] name = "untrusted" @@ -3116,18 +3168,18 @@ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" [[package]] name = "uuid" -version = "1.11.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" +checksum = "458f7a779bf54acc9f347480ac654f68407d3aab21269a6e3c9f922acd9e2da9" dependencies = [ - "getrandom", + "getrandom 0.3.2", ] [[package]] name = "valuable" -version = "0.1.0" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "version_check" @@ -3150,22 +3202,32 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasi" +version = "0.14.2+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +dependencies = [ + "wit-bindgen-rt", +] + [[package]] name = "wasm-bindgen" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", @@ -3177,9 +3239,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.49" +version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ "cfg-if", "js-sys", @@ -3190,9 +3252,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3200,9 +3262,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", @@ -3213,9 +3275,12 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.99" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "wasm-streams" @@ -3232,9 +3297,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.76" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" dependencies = [ "js-sys", "wasm-bindgen", @@ -3279,7 +3344,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143" dependencies = [ "windows-core", - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -3291,7 +3356,7 @@ dependencies = [ "windows-implement", "windows-interface", "windows-result 0.1.2", - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -3316,15 +3381,21 @@ dependencies = [ "syn", ] +[[package]] +name = "windows-link" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38" + [[package]] name = "windows-registry" -version = "0.2.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" +checksum = "4286ad90ddb45071efd1a66dfa43eb02dd0dfbae1545ad6cc3c51cf34d7e8ba3" dependencies = [ - "windows-result 0.2.0", + "windows-result 0.3.2", "windows-strings", - "windows-targets", + "windows-targets 0.53.0", ] [[package]] @@ -3333,26 +3404,25 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8" dependencies = [ - "windows-targets", + "windows-targets 0.52.6", ] [[package]] name = "windows-result" -version = "0.2.0" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +checksum = "c64fd11a4fd95df68efcfee5f44a294fe71b8bc6a91993e2791938abcc712252" dependencies = [ - "windows-targets", + "windows-link", ] [[package]] name = "windows-strings" -version = "0.1.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +checksum = "87fa48cc5d406560701792be122a10132491cff9d0aeb23583cc2dcafc847319" dependencies = [ - "windows-result 0.2.0", - "windows-targets", + "windows-link", ] [[package]] @@ -3361,7 +3431,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -3370,7 +3440,7 @@ version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" dependencies = [ - "windows-targets", + "windows-targets 0.52.6", ] [[package]] @@ -3379,14 +3449,30 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_gnullvm", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e4c7e8ceaaf9cb7d7507c974735728ab453b67ef8f18febdd7c11fe59dca8b" +dependencies = [ + "windows_aarch64_gnullvm 0.53.0", + "windows_aarch64_msvc 0.53.0", + "windows_i686_gnu 0.53.0", + "windows_i686_gnullvm 0.53.0", + "windows_i686_msvc 0.53.0", + "windows_x86_64_gnu 0.53.0", + "windows_x86_64_gnullvm 0.53.0", + "windows_x86_64_msvc 0.53.0", ] [[package]] @@ -3395,48 +3481,105 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" + [[package]] name = "windows_aarch64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" + [[package]] name = "windows_i686_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" +[[package]] +name = "windows_i686_gnu" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" + [[package]] name = "windows_i686_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" + [[package]] name = "windows_i686_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" +[[package]] +name = "windows_i686_msvc" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" + [[package]] name = "windows_x86_64_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" + [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" + [[package]] name = "windows_x86_64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" + +[[package]] +name = "wit-bindgen-rt" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" +dependencies = [ + "bitflags", +] + [[package]] name = "write16" version = "1.0.0" @@ -3451,15 +3594,23 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" [[package]] name = "xattr" -version = "1.3.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" +checksum = "0d65cbf2f12c15564212d48f4e3dfb87923d25d611f2aed18f4cb23f0413d89e" dependencies = [ "libc", - "linux-raw-sys", "rustix", ] +[[package]] +name = "xz2" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2" +dependencies = [ + "lzma-sys", +] + [[package]] name = "yoke" version = "0.7.5" @@ -3486,19 +3637,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.35" +version = "0.8.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +checksum = "2586fea28e186957ef732a5f8b3be2da217d65c5969d4b1e17f973ebbe876879" dependencies = [ - "byteorder", "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.35" +version = "0.8.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +checksum = "a996a8f63c5c4448cd959ac1bab0aaa3306ccfd060472f85943ee0750f0169be" dependencies = [ "proc-macro2", "quote", @@ -3507,18 +3657,18 @@ dependencies = [ [[package]] name = "zerofrom" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" dependencies = [ "zerofrom-derive", ] [[package]] name = "zerofrom-derive" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" dependencies = [ "proc-macro2", "quote", @@ -3570,9 +3720,9 @@ dependencies = [ [[package]] name = "zip" -version = "2.2.2" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae9c1ea7b3a5e1f4b922ff856a129881167511563dc219869afe3787fc0c1a45" +checksum = "27c03817464f64e23f6f37574b4fdc8cf65925b5bfd2b0f2aedf959791941f88" dependencies = [ "aes", "arbitrary", @@ -3581,17 +3731,16 @@ dependencies = [ "crc32fast", "crossbeam-utils", "deflate64", - "displaydoc", "flate2", + "getrandom 0.3.2", "hmac", - "indexmap 2.7.0", + "indexmap 2.8.0", "lzma-rs", "memchr", "pbkdf2", - "rand", "sha1", - "thiserror 2.0.8", "time", + "xz2", "zeroize", "zopfli", "zstd", @@ -3613,27 +3762,27 @@ dependencies = [ [[package]] name = "zstd" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" +checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "7.2.1" +version = "7.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" +checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d" dependencies = [ "zstd-sys", ] [[package]] name = "zstd-sys" -version = "2.0.13+zstd.1.5.6" +version = "2.0.15+zstd.1.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" +checksum = "eb81183ddd97d0c74cedf1d50d85c8d08c1b8b68ee863bdee9e706eedba1a237" dependencies = [ "cc", "pkg-config", diff --git a/temporalio/bridge/sdk-core b/temporalio/bridge/sdk-core index f0418936c..97093c5ea 160000 --- a/temporalio/bridge/sdk-core +++ b/temporalio/bridge/sdk-core @@ -1 +1 @@ -Subproject commit f0418936c4eec664faab931d0b174b9e57c65668 +Subproject commit 97093c5ea4b0d933513f4c8999f7960f0c16f05f From 80a9e4f5ec9c9d3eba5a6b6eb8367a861fbd774c Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Tue, 25 Mar 2025 17:26:43 -0700 Subject: [PATCH 02/15] Add download TTL field to ephem server configs --- temporalio/bridge/src/testing.rs | 6 ++++++ temporalio/bridge/testing.py | 2 ++ temporalio/testing/_workflow.py | 14 ++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/temporalio/bridge/src/testing.rs b/temporalio/bridge/src/testing.rs index eb5ec2590..db78242e9 100644 --- a/temporalio/bridge/src/testing.rs +++ b/temporalio/bridge/src/testing.rs @@ -1,3 +1,5 @@ +use std::time::Duration; + use pyo3::exceptions::{PyRuntimeError, PyValueError}; use pyo3::prelude::*; use temporal_sdk_core::ephemeral_server; @@ -17,6 +19,7 @@ pub struct DevServerConfig { sdk_version: String, download_version: String, download_dest_dir: Option, + download_ttl_ms: Option, namespace: String, ip: String, port: Option, @@ -34,6 +37,7 @@ pub struct TestServerConfig { sdk_version: String, download_version: String, download_dest_dir: Option, + download_ttl_ms: Option, port: Option, extra_args: Vec, } @@ -123,6 +127,7 @@ impl TryFrom for ephemeral_server::TemporalDevServerConfig { } }, dest_dir: conf.download_dest_dir, + ttl: conf.download_ttl_ms.map(|ttl| Duration::from_millis(ttl)), } }) .namespace(conf.namespace) @@ -155,6 +160,7 @@ impl TryFrom for ephemeral_server::TestServerConfig { } }, dest_dir: conf.download_dest_dir, + ttl: conf.download_ttl_ms.map(|ttl| Duration::from_millis(ttl)), } }) .port(conf.port) diff --git a/temporalio/bridge/testing.py b/temporalio/bridge/testing.py index 021f2ebf0..667ec13ea 100644 --- a/temporalio/bridge/testing.py +++ b/temporalio/bridge/testing.py @@ -21,6 +21,7 @@ class DevServerConfig: sdk_version: str download_version: str download_dest_dir: Optional[str] + download_ttl_ms: Optional[int] namespace: str ip: str port: Optional[int] @@ -40,6 +41,7 @@ class TestServerConfig: sdk_version: str download_version: str download_dest_dir: Optional[str] + download_ttl_ms: Optional[int] port: Optional[int] extra_args: Sequence[str] diff --git a/temporalio/testing/_workflow.py b/temporalio/testing/_workflow.py index d6992a067..ca7e56b41 100644 --- a/temporalio/testing/_workflow.py +++ b/temporalio/testing/_workflow.py @@ -98,6 +98,7 @@ async def start_local( dev_server_log_level: Optional[str] = "warn", dev_server_download_version: str = "default", dev_server_extra_args: Sequence[str] = [], + dev_server_download_ttl: Optional[timedelta] = None, ) -> WorkflowEnvironment: """Start a full Temporal server locally, downloading if necessary. @@ -154,6 +155,8 @@ async def start_local( Defaults to ``default`` which downloads the version known to work best with this SDK. dev_server_extra_args: Extra arguments for the CLI binary. + dev_server_download_ttl_ms: TTL for the downloaded CLI binary. If unset, it will be + cached indefinitely. Returns: The started CLI dev server workflow environment. @@ -180,6 +183,9 @@ async def start_local( dev_server_extra_args = new_args # Start CLI dev server runtime = runtime or temporalio.runtime.Runtime.default() + download_ttl_ms = None + if dev_server_download_ttl is not None: + download_ttl_ms = int(dev_server_download_ttl.total_seconds() * 1000) server = await temporalio.bridge.testing.EphemeralServer.start_dev_server( runtime._core_runtime, temporalio.bridge.testing.DevServerConfig( @@ -196,6 +202,7 @@ async def start_local( log_format=dev_server_log_format, log_level=dev_server_log_level, extra_args=dev_server_extra_args, + download_ttl_ms=download_ttl_ms, ), ) # If we can't connect to the server, we should shut it down @@ -242,6 +249,7 @@ async def start_time_skipping( test_server_existing_path: Optional[str] = None, test_server_download_version: str = "default", test_server_extra_args: Sequence[str] = [], + test_server_download_ttl: Optional[timedelta] = None, ) -> WorkflowEnvironment: """Start a time skipping workflow environment. @@ -293,12 +301,17 @@ async def start_time_skipping( download. Defaults to ``default`` which downloads the version known to work best with this SDK. test_server_extra_args: Extra arguments for the test server binary. + test_server_download_ttl: TTL for the downloaded test server binary. If unset, it + will be cached indefinitely. Returns: The started workflow environment with time skipping. """ # Start test server runtime = runtime or temporalio.runtime.Runtime.default() + download_ttl_ms = None + if test_server_download_ttl: + download_ttl_ms = int(test_server_download_ttl.total_seconds() * 1000) server = await temporalio.bridge.testing.EphemeralServer.start_test_server( runtime._core_runtime, temporalio.bridge.testing.TestServerConfig( @@ -307,6 +320,7 @@ async def start_time_skipping( sdk_version=temporalio.service.__version__, download_version=test_server_download_version, download_dest_dir=download_dest_dir, + download_ttl_ms=download_ttl_ms, port=port, extra_args=test_server_extra_args, ), From 386dad7efb5bbbda11155cb7ea8aef59613f45f8 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Tue, 25 Mar 2025 18:07:35 -0700 Subject: [PATCH 03/15] Update protos --- temporalio/api/batch/v1/__init__.py | 4 + temporalio/api/batch/v1/message_pb2.py | 63 +- temporalio/api/batch/v1/message_pb2.pyi | 130 ++ temporalio/api/command/v1/message_pb2.py | 80 +- temporalio/api/command/v1/message_pb2.pyi | 22 + temporalio/api/common/v1/__init__.py | 2 + temporalio/api/common/v1/message_pb2.py | 54 +- temporalio/api/common/v1/message_pb2.pyi | 66 +- temporalio/api/deployment/__init__.py | 0 temporalio/api/deployment/v1/__init__.py | 25 + temporalio/api/deployment/v1/message_pb2.py | 269 +++ temporalio/api/deployment/v1/message_pb2.pyi | 816 +++++++ temporalio/api/enums/v1/__init__.py | 12 + .../api/enums/v1/batch_operation_pb2.py | 9 +- .../api/enums/v1/batch_operation_pb2.pyi | 2 + temporalio/api/enums/v1/common_pb2.py | 15 +- temporalio/api/enums/v1/common_pb2.pyi | 16 + temporalio/api/enums/v1/deployment_pb2.py | 49 + temporalio/api/enums/v1/deployment_pb2.pyi | 209 ++ temporalio/api/enums/v1/event_type_pb2.py | 5 +- temporalio/api/enums/v1/event_type_pb2.pyi | 4 + temporalio/api/enums/v1/failed_cause_pb2.py | 9 +- temporalio/api/enums/v1/failed_cause_pb2.pyi | 4 + temporalio/api/enums/v1/nexus_pb2.py | 38 + temporalio/api/enums/v1/nexus_pb2.pyi | 82 + temporalio/api/enums/v1/reset_pb2.py | 19 +- temporalio/api/enums/v1/reset_pb2.pyi | 4 + temporalio/api/enums/v1/workflow_pb2.py | 9 +- temporalio/api/enums/v1/workflow_pb2.pyi | 98 +- temporalio/api/errordetails/v1/__init__.py | 2 + temporalio/api/errordetails/v1/message_pb2.py | 89 +- .../api/errordetails/v1/message_pb2.pyi | 37 + temporalio/api/failure/v1/__init__.py | 2 + temporalio/api/failure/v1/message_pb2.py | 63 +- temporalio/api/failure/v1/message_pb2.pyi | 49 +- temporalio/api/history/v1/__init__.py | 2 + temporalio/api/history/v1/message_pb2.py | 265 ++- temporalio/api/history/v1/message_pb2.pyi | 217 +- temporalio/api/nexus/v1/message_pb2.py | 85 +- temporalio/api/nexus/v1/message_pb2.pyi | 50 +- temporalio/api/query/v1/message_pb2.py | 17 +- temporalio/api/query/v1/message_pb2.pyi | 24 +- temporalio/api/taskqueue/v1/__init__.py | 4 + temporalio/api/taskqueue/v1/message_pb2.py | 117 +- temporalio/api/taskqueue/v1/message_pb2.pyi | 108 + temporalio/api/workflow/v1/__init__.py | 14 + temporalio/api/workflow/v1/message_pb2.py | 177 +- temporalio/api/workflow/v1/message_pb2.pyi | 493 ++++- temporalio/api/workflowservice/v1/__init__.py | 88 +- .../v1/request_response_pb2.py | 1278 +++++++---- .../v1/request_response_pb2.pyi | 1967 +++++++++++++++-- .../api/workflowservice/v1/service_pb2.py | 90 +- .../workflowservice/v1/service_pb2_grpc.py | 843 ++++++- .../workflowservice/v1/service_pb2_grpc.pyi | 444 +++- .../workflow_activation_pb2.py | 96 +- .../workflow_activation_pb2.pyi | 36 +- .../workflow_commands_pb2.py | 132 +- .../workflow_commands_pb2.pyi | 35 +- 58 files changed, 7588 insertions(+), 1351 deletions(-) create mode 100644 temporalio/api/deployment/__init__.py create mode 100644 temporalio/api/deployment/v1/__init__.py create mode 100644 temporalio/api/deployment/v1/message_pb2.py create mode 100644 temporalio/api/deployment/v1/message_pb2.pyi create mode 100644 temporalio/api/enums/v1/deployment_pb2.py create mode 100644 temporalio/api/enums/v1/deployment_pb2.pyi create mode 100644 temporalio/api/enums/v1/nexus_pb2.py create mode 100644 temporalio/api/enums/v1/nexus_pb2.pyi diff --git a/temporalio/api/batch/v1/__init__.py b/temporalio/api/batch/v1/__init__.py index 7da45d2c2..15949f62c 100644 --- a/temporalio/api/batch/v1/__init__.py +++ b/temporalio/api/batch/v1/__init__.py @@ -5,6 +5,8 @@ BatchOperationReset, BatchOperationSignal, BatchOperationTermination, + BatchOperationUnpauseActivities, + BatchOperationUpdateWorkflowExecutionOptions, ) __all__ = [ @@ -14,4 +16,6 @@ "BatchOperationReset", "BatchOperationSignal", "BatchOperationTermination", + "BatchOperationUnpauseActivities", + "BatchOperationUpdateWorkflowExecutionOptions", ] diff --git a/temporalio/api/batch/v1/message_pb2.py b/temporalio/api/batch/v1/message_pb2.py index c0115b6f6..987ccdf0d 100644 --- a/temporalio/api/batch/v1/message_pb2.py +++ b/temporalio/api/batch/v1/message_pb2.py @@ -14,6 +14,8 @@ _sym_db = _symbol_database.Default() +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 +from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from temporalio.api.common.v1 import ( @@ -25,9 +27,12 @@ from temporalio.api.enums.v1 import ( reset_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_reset__pb2, ) +from temporalio.api.workflow.v1 import ( + message_pb2 as temporal_dot_api_dot_workflow_dot_v1_dot_message__pb2, +) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n#temporal/api/batch/v1/message.proto\x12\x15temporal.api.batch.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a+temporal/api/enums/v1/batch_operation.proto\x1a!temporal/api/enums/v1/reset.proto"\xbf\x01\n\x12\x42\x61tchOperationInfo\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x39\n\x05state\x18\x02 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"`\n\x19\x42\x61tchOperationTermination\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x02 \x01(\t"\x99\x01\n\x14\x42\x61tchOperationSignal\x12\x0e\n\x06signal\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x10\n\x08identity\x18\x04 \x01(\t".\n\x1a\x42\x61tchOperationCancellation\x12\x10\n\x08identity\x18\x01 \x01(\t"*\n\x16\x42\x61tchOperationDeletion\x12\x10\n\x08identity\x18\x01 \x01(\t"\xd9\x01\n\x13\x42\x61tchOperationReset\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x35\n\x07options\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.ResetOptions\x12\x34\n\nreset_type\x18\x01 \x01(\x0e\x32 .temporal.api.enums.v1.ResetType\x12\x43\n\x12reset_reapply_type\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyTypeB\x84\x01\n\x18io.temporal.api.batch.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/batch/v1;batch\xaa\x02\x17Temporalio.Api.Batch.V1\xea\x02\x1aTemporalio::Api::Batch::V1b\x06proto3' + b'\n#temporal/api/batch/v1/message.proto\x12\x15temporal.api.batch.v1\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a+temporal/api/enums/v1/batch_operation.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/workflow/v1/message.proto"\xbf\x01\n\x12\x42\x61tchOperationInfo\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x39\n\x05state\x18\x02 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"`\n\x19\x42\x61tchOperationTermination\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x02 \x01(\t"\x99\x01\n\x14\x42\x61tchOperationSignal\x12\x0e\n\x06signal\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x10\n\x08identity\x18\x04 \x01(\t".\n\x1a\x42\x61tchOperationCancellation\x12\x10\n\x08identity\x18\x01 \x01(\t"*\n\x16\x42\x61tchOperationDeletion\x12\x10\n\x08identity\x18\x01 \x01(\t"\xd9\x01\n\x13\x42\x61tchOperationReset\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x35\n\x07options\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.ResetOptions\x12\x34\n\nreset_type\x18\x01 \x01(\x0e\x32 .temporal.api.enums.v1.ResetType\x12\x43\n\x12reset_reapply_type\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType"\xc9\x01\n,BatchOperationUpdateWorkflowExecutionOptions\x12\x10\n\x08identity\x18\x01 \x01(\t\x12V\n\x1aworkflow_execution_options\x18\x02 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\xc0\x01\n\x1f\x42\x61tchOperationUnpauseActivities\x12\x10\n\x08identity\x18\x01 \x01(\t\x12\x0e\n\x04type\x18\x02 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\x03 \x01(\x08H\x00\x12\x16\n\x0ereset_attempts\x18\x04 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x05 \x01(\x08\x12)\n\x06jitter\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\n\n\x08\x61\x63tivityB\x84\x01\n\x18io.temporal.api.batch.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/batch/v1;batch\xaa\x02\x17Temporalio.Api.Batch.V1\xea\x02\x1aTemporalio::Api::Batch::V1b\x06proto3' ) @@ -41,6 +46,12 @@ ] _BATCHOPERATIONDELETION = DESCRIPTOR.message_types_by_name["BatchOperationDeletion"] _BATCHOPERATIONRESET = DESCRIPTOR.message_types_by_name["BatchOperationReset"] +_BATCHOPERATIONUPDATEWORKFLOWEXECUTIONOPTIONS = DESCRIPTOR.message_types_by_name[ + "BatchOperationUpdateWorkflowExecutionOptions" +] +_BATCHOPERATIONUNPAUSEACTIVITIES = DESCRIPTOR.message_types_by_name[ + "BatchOperationUnpauseActivities" +] BatchOperationInfo = _reflection.GeneratedProtocolMessageType( "BatchOperationInfo", (_message.Message,), @@ -107,19 +118,45 @@ ) _sym_db.RegisterMessage(BatchOperationReset) +BatchOperationUpdateWorkflowExecutionOptions = _reflection.GeneratedProtocolMessageType( + "BatchOperationUpdateWorkflowExecutionOptions", + (_message.Message,), + { + "DESCRIPTOR": _BATCHOPERATIONUPDATEWORKFLOWEXECUTIONOPTIONS, + "__module__": "temporal.api.batch.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptions) + }, +) +_sym_db.RegisterMessage(BatchOperationUpdateWorkflowExecutionOptions) + +BatchOperationUnpauseActivities = _reflection.GeneratedProtocolMessageType( + "BatchOperationUnpauseActivities", + (_message.Message,), + { + "DESCRIPTOR": _BATCHOPERATIONUNPAUSEACTIVITIES, + "__module__": "temporal.api.batch.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationUnpauseActivities) + }, +) +_sym_db.RegisterMessage(BatchOperationUnpauseActivities) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.batch.v1B\014MessageProtoP\001Z!go.temporal.io/api/batch/v1;batch\252\002\027Temporalio.Api.Batch.V1\352\002\032Temporalio::Api::Batch::V1" - _BATCHOPERATIONINFO._serialized_start = 214 - _BATCHOPERATIONINFO._serialized_end = 405 - _BATCHOPERATIONTERMINATION._serialized_start = 407 - _BATCHOPERATIONTERMINATION._serialized_end = 503 - _BATCHOPERATIONSIGNAL._serialized_start = 506 - _BATCHOPERATIONSIGNAL._serialized_end = 659 - _BATCHOPERATIONCANCELLATION._serialized_start = 661 - _BATCHOPERATIONCANCELLATION._serialized_end = 707 - _BATCHOPERATIONDELETION._serialized_start = 709 - _BATCHOPERATIONDELETION._serialized_end = 751 - _BATCHOPERATIONRESET._serialized_start = 754 - _BATCHOPERATIONRESET._serialized_end = 971 + _BATCHOPERATIONINFO._serialized_start = 320 + _BATCHOPERATIONINFO._serialized_end = 511 + _BATCHOPERATIONTERMINATION._serialized_start = 513 + _BATCHOPERATIONTERMINATION._serialized_end = 609 + _BATCHOPERATIONSIGNAL._serialized_start = 612 + _BATCHOPERATIONSIGNAL._serialized_end = 765 + _BATCHOPERATIONCANCELLATION._serialized_start = 767 + _BATCHOPERATIONCANCELLATION._serialized_end = 813 + _BATCHOPERATIONDELETION._serialized_start = 815 + _BATCHOPERATIONDELETION._serialized_end = 857 + _BATCHOPERATIONRESET._serialized_start = 860 + _BATCHOPERATIONRESET._serialized_end = 1077 + _BATCHOPERATIONUPDATEWORKFLOWEXECUTIONOPTIONS._serialized_start = 1080 + _BATCHOPERATIONUPDATEWORKFLOWEXECUTIONOPTIONS._serialized_end = 1281 + _BATCHOPERATIONUNPAUSEACTIVITIES._serialized_start = 1284 + _BATCHOPERATIONUNPAUSEACTIVITIES._serialized_end = 1476 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/batch/v1/message_pb2.pyi b/temporalio/api/batch/v1/message_pb2.pyi index e4128640e..7c0a411f6 100644 --- a/temporalio/api/batch/v1/message_pb2.pyi +++ b/temporalio/api/batch/v1/message_pb2.pyi @@ -28,12 +28,15 @@ import builtins import sys import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.field_mask_pb2 import google.protobuf.message import google.protobuf.timestamp_pb2 import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.batch_operation_pb2 import temporalio.api.enums.v1.reset_pb2 +import temporalio.api.workflow.v1.message_pb2 if sys.version_info >= (3, 8): import typing as typing_extensions @@ -262,3 +265,130 @@ class BatchOperationReset(google.protobuf.message.Message): ) -> None: ... global___BatchOperationReset = BatchOperationReset + +class BatchOperationUpdateWorkflowExecutionOptions(google.protobuf.message.Message): + """BatchOperationUpdateWorkflowExecutionOptions sends UpdateWorkflowExecutionOptions requests to batch workflows. + Keep the parameters in sync with temporalio.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IDENTITY_FIELD_NUMBER: builtins.int + WORKFLOW_EXECUTION_OPTIONS_FIELD_NUMBER: builtins.int + UPDATE_MASK_FIELD_NUMBER: builtins.int + identity: builtins.str + """The identity of the worker/client.""" + @property + def workflow_execution_options( + self, + ) -> temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions: + """Workflow Execution options. Partial updates are accepted and controlled by update_mask.""" + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: + """Controls which fields from `workflow_execution_options` will be applied. + To unset a field, set it to null and use the update mask to indicate that it should be mutated. + """ + def __init__( + self, + *, + identity: builtins.str = ..., + workflow_execution_options: temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions + | None = ..., + update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "update_mask", + b"update_mask", + "workflow_execution_options", + b"workflow_execution_options", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "identity", + b"identity", + "update_mask", + b"update_mask", + "workflow_execution_options", + b"workflow_execution_options", + ], + ) -> None: ... + +global___BatchOperationUpdateWorkflowExecutionOptions = ( + BatchOperationUpdateWorkflowExecutionOptions +) + +class BatchOperationUnpauseActivities(google.protobuf.message.Message): + """BatchOperationUnpauseActivities sends unpause requests to batch workflows.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IDENTITY_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + MATCH_ALL_FIELD_NUMBER: builtins.int + RESET_ATTEMPTS_FIELD_NUMBER: builtins.int + RESET_HEARTBEAT_FIELD_NUMBER: builtins.int + JITTER_FIELD_NUMBER: builtins.int + identity: builtins.str + """The identity of the worker/client.""" + type: builtins.str + match_all: builtins.bool + reset_attempts: builtins.bool + """Providing this flag will also reset the number of attempts.""" + reset_heartbeat: builtins.bool + """Providing this flag will also reset the heartbeat details.""" + @property + def jitter(self) -> google.protobuf.duration_pb2.Duration: + """If set, the activity will start at a random time within the specified jitter + duration, introducing variability to the start time. + """ + def __init__( + self, + *, + identity: builtins.str = ..., + type: builtins.str = ..., + match_all: builtins.bool = ..., + reset_attempts: builtins.bool = ..., + reset_heartbeat: builtins.bool = ..., + jitter: google.protobuf.duration_pb2.Duration | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "activity", + b"activity", + "jitter", + b"jitter", + "match_all", + b"match_all", + "type", + b"type", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "activity", + b"activity", + "identity", + b"identity", + "jitter", + b"jitter", + "match_all", + b"match_all", + "reset_attempts", + b"reset_attempts", + "reset_heartbeat", + b"reset_heartbeat", + "type", + b"type", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["activity", b"activity"] + ) -> typing_extensions.Literal["type", "match_all"] | None: ... + +global___BatchOperationUnpauseActivities = BatchOperationUnpauseActivities diff --git a/temporalio/api/command/v1/message_pb2.py b/temporalio/api/command/v1/message_pb2.py index 307b29f03..c832f88bc 100644 --- a/temporalio/api/command/v1/message_pb2.py +++ b/temporalio/api/command/v1/message_pb2.py @@ -36,7 +36,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n%temporal/api/command/v1/message.proto\x12\x17temporal.api.command.v1\x1a\x1egoogle/protobuf/duration.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a(temporal/api/enums/v1/command_type.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\x82\x05\n%ScheduleActivityTaskCommandAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1f\n\x17request_eager_execution\x18\x0c \x01(\x08\x12\x1d\n\x15use_workflow_build_id\x18\r \x01(\x08J\x04\x08\x03\x10\x04"H\n*RequestCancelActivityTaskCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"i\n\x1bStartTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"^\n*CompleteWorkflowExecutionCommandAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n&FailWorkflowExecutionCommandAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"0\n\x1c\x43\x61ncelTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t"]\n(CancelWorkflowExecutionCommandAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xaf\x01\n7RequestCancelExternalWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xa7\x02\n0SignalExternalWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x06 \x01(\x08\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"v\n/UpsertWorkflowSearchAttributesCommandAttributes\x12\x43\n\x11search_attributes\x18\x01 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"`\n)ModifyWorkflowPropertiesCommandAttributes\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xbf\x02\n\x1dRecordMarkerCommandAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xcb\x06\n/ContinueAsNewWorkflowExecutionCommandAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x07 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12@\n\tinitiator\x18\x08 \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\t \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\n \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rcron_schedule\x18\x0b \x01(\t\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x0f \x01(\x08"\xe5\x06\n,StartChildWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12.\n\x06header\x18\x0e \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x0f \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x10 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x11 \x01(\x08"6\n ProtocolMessageCommandAttributes\x12\x12\n\nmessage_id\x18\x01 \x01(\t"\xea\x02\n\'ScheduleNexusOperationCommandAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12g\n\x0cnexus_header\x18\x06 \x03(\x0b\x32Q.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"J\n,RequestCancelNexusOperationCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"\xc2\x11\n\x07\x43ommand\x12\x38\n\x0c\x63ommand_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.CommandType\x12\x39\n\ruser_metadata\x18\xad\x02 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12s\n)schedule_activity_task_command_attributes\x18\x02 \x01(\x0b\x32>.temporal.api.command.v1.ScheduleActivityTaskCommandAttributesH\x00\x12^\n\x1estart_timer_command_attributes\x18\x03 \x01(\x0b\x32\x34.temporal.api.command.v1.StartTimerCommandAttributesH\x00\x12}\n.complete_workflow_execution_command_attributes\x18\x04 \x01(\x0b\x32\x43.temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributesH\x00\x12u\n*fail_workflow_execution_command_attributes\x18\x05 \x01(\x0b\x32?.temporal.api.command.v1.FailWorkflowExecutionCommandAttributesH\x00\x12~\n/request_cancel_activity_task_command_attributes\x18\x06 \x01(\x0b\x32\x43.temporal.api.command.v1.RequestCancelActivityTaskCommandAttributesH\x00\x12`\n\x1f\x63\x61ncel_timer_command_attributes\x18\x07 \x01(\x0b\x32\x35.temporal.api.command.v1.CancelTimerCommandAttributesH\x00\x12y\n,cancel_workflow_execution_command_attributes\x18\x08 \x01(\x0b\x32\x41.temporal.api.command.v1.CancelWorkflowExecutionCommandAttributesH\x00\x12\x99\x01\n=request_cancel_external_workflow_execution_command_attributes\x18\t \x01(\x0b\x32P.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributesH\x00\x12\x62\n record_marker_command_attributes\x18\n \x01(\x0b\x32\x36.temporal.api.command.v1.RecordMarkerCommandAttributesH\x00\x12\x89\x01\n5continue_as_new_workflow_execution_command_attributes\x18\x0b \x01(\x0b\x32H.temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributesH\x00\x12\x82\x01\n1start_child_workflow_execution_command_attributes\x18\x0c \x01(\x0b\x32\x45.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributesH\x00\x12\x8a\x01\n5signal_external_workflow_execution_command_attributes\x18\r \x01(\x0b\x32I.temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributesH\x00\x12\x88\x01\n4upsert_workflow_search_attributes_command_attributes\x18\x0e \x01(\x0b\x32H.temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributesH\x00\x12h\n#protocol_message_command_attributes\x18\x0f \x01(\x0b\x32\x39.temporal.api.command.v1.ProtocolMessageCommandAttributesH\x00\x12{\n-modify_workflow_properties_command_attributes\x18\x11 \x01(\x0b\x32\x42.temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributesH\x00\x12w\n+schedule_nexus_operation_command_attributes\x18\x12 \x01(\x0b\x32@.temporal.api.command.v1.ScheduleNexusOperationCommandAttributesH\x00\x12\x82\x01\n1request_cancel_nexus_operation_command_attributes\x18\x13 \x01(\x0b\x32\x45.temporal.api.command.v1.RequestCancelNexusOperationCommandAttributesH\x00\x42\x0c\n\nattributesB\x8e\x01\n\x1aio.temporal.api.command.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/command/v1;command\xaa\x02\x19Temporalio.Api.Command.V1\xea\x02\x1cTemporalio::Api::Command::V1b\x06proto3' + b'\n%temporal/api/command/v1/message.proto\x12\x17temporal.api.command.v1\x1a\x1egoogle/protobuf/duration.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a(temporal/api/enums/v1/command_type.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xb6\x05\n%ScheduleActivityTaskCommandAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1f\n\x17request_eager_execution\x18\x0c \x01(\x08\x12\x1d\n\x15use_workflow_build_id\x18\r \x01(\x08\x12\x32\n\x08priority\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.PriorityJ\x04\x08\x03\x10\x04"H\n*RequestCancelActivityTaskCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"i\n\x1bStartTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"^\n*CompleteWorkflowExecutionCommandAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n&FailWorkflowExecutionCommandAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"0\n\x1c\x43\x61ncelTimerCommandAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t"]\n(CancelWorkflowExecutionCommandAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xaf\x01\n7RequestCancelExternalWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xa7\x02\n0SignalExternalWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x06 \x01(\x08\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"v\n/UpsertWorkflowSearchAttributesCommandAttributes\x12\x43\n\x11search_attributes\x18\x01 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"`\n)ModifyWorkflowPropertiesCommandAttributes\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xbf\x02\n\x1dRecordMarkerCommandAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xcb\x06\n/ContinueAsNewWorkflowExecutionCommandAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x07 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12@\n\tinitiator\x18\x08 \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\t \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\n \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rcron_schedule\x18\x0b \x01(\t\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x0f \x01(\x08"\x99\x07\n,StartChildWorkflowExecutionCommandAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12.\n\x06header\x18\x0e \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x0f \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x10 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x11 \x01(\x08\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority"6\n ProtocolMessageCommandAttributes\x12\x12\n\nmessage_id\x18\x01 \x01(\t"\xea\x02\n\'ScheduleNexusOperationCommandAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12g\n\x0cnexus_header\x18\x06 \x03(\x0b\x32Q.temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"J\n,RequestCancelNexusOperationCommandAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03"\xc2\x11\n\x07\x43ommand\x12\x38\n\x0c\x63ommand_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.CommandType\x12\x39\n\ruser_metadata\x18\xad\x02 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12s\n)schedule_activity_task_command_attributes\x18\x02 \x01(\x0b\x32>.temporal.api.command.v1.ScheduleActivityTaskCommandAttributesH\x00\x12^\n\x1estart_timer_command_attributes\x18\x03 \x01(\x0b\x32\x34.temporal.api.command.v1.StartTimerCommandAttributesH\x00\x12}\n.complete_workflow_execution_command_attributes\x18\x04 \x01(\x0b\x32\x43.temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributesH\x00\x12u\n*fail_workflow_execution_command_attributes\x18\x05 \x01(\x0b\x32?.temporal.api.command.v1.FailWorkflowExecutionCommandAttributesH\x00\x12~\n/request_cancel_activity_task_command_attributes\x18\x06 \x01(\x0b\x32\x43.temporal.api.command.v1.RequestCancelActivityTaskCommandAttributesH\x00\x12`\n\x1f\x63\x61ncel_timer_command_attributes\x18\x07 \x01(\x0b\x32\x35.temporal.api.command.v1.CancelTimerCommandAttributesH\x00\x12y\n,cancel_workflow_execution_command_attributes\x18\x08 \x01(\x0b\x32\x41.temporal.api.command.v1.CancelWorkflowExecutionCommandAttributesH\x00\x12\x99\x01\n=request_cancel_external_workflow_execution_command_attributes\x18\t \x01(\x0b\x32P.temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributesH\x00\x12\x62\n record_marker_command_attributes\x18\n \x01(\x0b\x32\x36.temporal.api.command.v1.RecordMarkerCommandAttributesH\x00\x12\x89\x01\n5continue_as_new_workflow_execution_command_attributes\x18\x0b \x01(\x0b\x32H.temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributesH\x00\x12\x82\x01\n1start_child_workflow_execution_command_attributes\x18\x0c \x01(\x0b\x32\x45.temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributesH\x00\x12\x8a\x01\n5signal_external_workflow_execution_command_attributes\x18\r \x01(\x0b\x32I.temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributesH\x00\x12\x88\x01\n4upsert_workflow_search_attributes_command_attributes\x18\x0e \x01(\x0b\x32H.temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributesH\x00\x12h\n#protocol_message_command_attributes\x18\x0f \x01(\x0b\x32\x39.temporal.api.command.v1.ProtocolMessageCommandAttributesH\x00\x12{\n-modify_workflow_properties_command_attributes\x18\x11 \x01(\x0b\x32\x42.temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributesH\x00\x12w\n+schedule_nexus_operation_command_attributes\x18\x12 \x01(\x0b\x32@.temporal.api.command.v1.ScheduleNexusOperationCommandAttributesH\x00\x12\x82\x01\n1request_cancel_nexus_operation_command_attributes\x18\x13 \x01(\x0b\x32\x45.temporal.api.command.v1.RequestCancelNexusOperationCommandAttributesH\x00\x42\x0c\n\nattributesB\x8e\x01\n\x1aio.temporal.api.command.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/command/v1;command\xaa\x02\x19Temporalio.Api.Command.V1\xea\x02\x1cTemporalio::Api::Command::V1b\x06proto3' ) @@ -336,43 +336,43 @@ b"8\001" ) _SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES._serialized_start = 338 - _SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES._serialized_end = 980 - _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES._serialized_start = 982 - _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES._serialized_end = 1054 - _STARTTIMERCOMMANDATTRIBUTES._serialized_start = 1056 - _STARTTIMERCOMMANDATTRIBUTES._serialized_end = 1161 - _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1163 - _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1257 - _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1259 - _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1350 - _CANCELTIMERCOMMANDATTRIBUTES._serialized_start = 1352 - _CANCELTIMERCOMMANDATTRIBUTES._serialized_end = 1400 - _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1402 - _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1495 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1498 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1673 - _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1676 - _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1971 - _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES._serialized_start = 1973 - _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES._serialized_end = 2091 - _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES._serialized_start = 2093 - _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES._serialized_end = 2189 - _RECORDMARKERCOMMANDATTRIBUTES._serialized_start = 2192 - _RECORDMARKERCOMMANDATTRIBUTES._serialized_end = 2511 - _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_start = 2431 - _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_end = 2511 - _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 2514 - _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 3357 - _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 3360 - _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 4229 - _PROTOCOLMESSAGECOMMANDATTRIBUTES._serialized_start = 4231 - _PROTOCOLMESSAGECOMMANDATTRIBUTES._serialized_end = 4285 - _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES._serialized_start = 4288 - _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES._serialized_end = 4650 - _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY._serialized_start = 4600 - _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY._serialized_end = 4650 - _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES._serialized_start = 4652 - _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES._serialized_end = 4726 - _COMMAND._serialized_start = 4729 - _COMMAND._serialized_end = 6971 + _SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES._serialized_end = 1032 + _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES._serialized_start = 1034 + _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES._serialized_end = 1106 + _STARTTIMERCOMMANDATTRIBUTES._serialized_start = 1108 + _STARTTIMERCOMMANDATTRIBUTES._serialized_end = 1213 + _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1215 + _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1309 + _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1311 + _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1402 + _CANCELTIMERCOMMANDATTRIBUTES._serialized_start = 1404 + _CANCELTIMERCOMMANDATTRIBUTES._serialized_end = 1452 + _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1454 + _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1547 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1550 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 1725 + _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 1728 + _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 2023 + _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES._serialized_start = 2025 + _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES._serialized_end = 2143 + _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES._serialized_start = 2145 + _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES._serialized_end = 2241 + _RECORDMARKERCOMMANDATTRIBUTES._serialized_start = 2244 + _RECORDMARKERCOMMANDATTRIBUTES._serialized_end = 2563 + _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_start = 2483 + _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY._serialized_end = 2563 + _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 2566 + _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 3409 + _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_start = 3412 + _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES._serialized_end = 4333 + _PROTOCOLMESSAGECOMMANDATTRIBUTES._serialized_start = 4335 + _PROTOCOLMESSAGECOMMANDATTRIBUTES._serialized_end = 4389 + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES._serialized_start = 4392 + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES._serialized_end = 4754 + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY._serialized_start = 4704 + _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY._serialized_end = 4754 + _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES._serialized_start = 4756 + _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES._serialized_end = 4830 + _COMMAND._serialized_start = 4833 + _COMMAND._serialized_end = 7075 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/command/v1/message_pb2.pyi b/temporalio/api/command/v1/message_pb2.pyi index 781a8ca0a..e7d4fa46e 100644 --- a/temporalio/api/command/v1/message_pb2.pyi +++ b/temporalio/api/command/v1/message_pb2.pyi @@ -62,6 +62,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): RETRY_POLICY_FIELD_NUMBER: builtins.int REQUEST_EAGER_EXECUTION_FIELD_NUMBER: builtins.int USE_WORKFLOW_BUILD_ID_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int activity_id: builtins.str @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... @@ -119,6 +120,11 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, Assignment rules of the activity's Task Queue will be used to determine the Build ID. """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata. If this message is not present, or any fields are not + present, they inherit the values from the workflow. + """ def __init__( self, *, @@ -134,6 +140,7 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., request_eager_execution: builtins.bool = ..., use_workflow_build_id: builtins.bool = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -146,6 +153,8 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): b"heartbeat_timeout", "input", b"input", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -171,6 +180,8 @@ class ScheduleActivityTaskCommandAttributes(google.protobuf.message.Message): b"heartbeat_timeout", "input", b"input", + "priority", + b"priority", "request_eager_execution", b"request_eager_execution", "retry_policy", @@ -753,6 +764,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa MEMO_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int namespace: builtins.str workflow_id: builtins.str @property @@ -795,6 +807,11 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment rules of the child's Task Queue will be used to independently assign a Build ID to it. """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata. If this message is not present, or any fields are not + present, they inherit the values from the workflow. + """ def __init__( self, *, @@ -816,6 +833,7 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes | None = ..., inherit_build_id: builtins.bool = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -826,6 +844,8 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa b"input", "memo", b"memo", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", @@ -861,6 +881,8 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa b"namespace", "parent_close_policy", b"parent_close_policy", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", diff --git a/temporalio/api/common/v1/__init__.py b/temporalio/api/common/v1/__init__.py index 42a75d805..21e57cda2 100644 --- a/temporalio/api/common/v1/__init__.py +++ b/temporalio/api/common/v1/__init__.py @@ -9,6 +9,7 @@ MeteringMetadata, Payload, Payloads, + Priority, ResetOptions, RetryPolicy, SearchAttributes, @@ -29,6 +30,7 @@ "MeteringMetadata", "Payload", "Payloads", + "Priority", "ResetOptions", "RetryPolicy", "SearchAttributes", diff --git a/temporalio/api/common/v1/message_pb2.py b/temporalio/api/common/v1/message_pb2.py index 4b05f3fb8..483d8fb84 100644 --- a/temporalio/api/common/v1/message_pb2.py +++ b/temporalio/api/common/v1/message_pb2.py @@ -28,7 +28,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a!temporal/api/enums/v1/reset.proto"T\n\x08\x44\x61taBlob\x12:\n\rencoding_type\x18\x01 \x01(\x0e\x32#.temporal.api.enums.v1.EncodingType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c"=\n\x08Payloads\x12\x31\n\x08payloads\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload"\x89\x01\n\x07Payload\x12?\n\x08metadata\x18\x01 \x03(\x0b\x32-.temporal.api.common.v1.Payload.MetadataEntry\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01"\xbe\x01\n\x10SearchAttributes\x12S\n\x0eindexed_fields\x18\x01 \x03(\x0b\x32;.temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry\x1aU\n\x12IndexedFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x90\x01\n\x04Memo\x12\x38\n\x06\x66ields\x18\x01 \x03(\x0b\x32(.temporal.api.common.v1.Memo.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x94\x01\n\x06Header\x12:\n\x06\x66ields\x18\x01 \x03(\x0b\x32*.temporal.api.common.v1.Header.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"8\n\x11WorkflowExecution\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t"\x1c\n\x0cWorkflowType\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1c\n\x0c\x41\x63tivityType\x12\x0c\n\x04name\x18\x01 \x01(\t"\xd1\x01\n\x0bRetryPolicy\x12\x33\n\x10initial_interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x62\x61\x63koff_coefficient\x18\x02 \x01(\x01\x12\x33\n\x10maximum_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10maximum_attempts\x18\x04 \x01(\x05\x12!\n\x19non_retryable_error_types\x18\x05 \x03(\t"F\n\x10MeteringMetadata\x12\x32\n*nonfirst_local_activity_execution_attempts\x18\r \x01(\r">\n\x12WorkerVersionStamp\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x03 \x01(\x08"E\n\x19WorkerVersionCapabilities\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x02 \x01(\x08"\xe9\x02\n\x0cResetOptions\x12\x35\n\x13\x66irst_workflow_task\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x12last_workflow_task\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x1a\n\x10workflow_task_id\x18\x03 \x01(\x03H\x00\x12\x12\n\x08\x62uild_id\x18\x04 \x01(\tH\x00\x12\x43\n\x12reset_reapply_type\x18\n \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\x12\x18\n\x10\x63urrent_run_only\x18\x0b \x01(\x08\x12S\n\x1breset_reapply_exclude_types\x18\x0c \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeTypeB\x08\n\x06target"\xb7\x02\n\x08\x43\x61llback\x12\x37\n\x05nexus\x18\x02 \x01(\x0b\x32&.temporal.api.common.v1.Callback.NexusH\x00\x12=\n\x08internal\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.Callback.InternalH\x00\x1a\x87\x01\n\x05Nexus\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x42\n\x06header\x18\x02 \x03(\x0b\x32\x32.temporal.api.common.v1.Callback.Nexus.HeaderEntry\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x18\n\x08Internal\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x42\t\n\x07variantJ\x04\x08\x01\x10\x02"\xb0\x03\n\x04Link\x12\x44\n\x0eworkflow_event\x18\x01 \x01(\x0b\x32*.temporal.api.common.v1.Link.WorkflowEventH\x00\x12:\n\tbatch_job\x18\x02 \x01(\x0b\x32%.temporal.api.common.v1.Link.BatchJobH\x00\x1a\xfe\x01\n\rWorkflowEvent\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12N\n\tevent_ref\x18\x64 \x01(\x0b\x32\x39.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceH\x00\x1aX\n\x0e\x45ventReference\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12\x34\n\nevent_type\x18\x02 \x01(\x0e\x32 .temporal.api.enums.v1.EventTypeB\x0b\n\treference\x1a\x1a\n\x08\x42\x61tchJob\x12\x0e\n\x06job_id\x18\x01 \x01(\tB\t\n\x07variantB\x89\x01\n\x19io.temporal.api.common.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/common/v1;common\xaa\x02\x18Temporalio.Api.Common.V1\xea\x02\x1bTemporalio::Api::Common::V1b\x06proto3' + b'\n$temporal/api/common/v1/message.proto\x12\x16temporal.api.common.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a"temporal/api/enums/v1/common.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a!temporal/api/enums/v1/reset.proto"T\n\x08\x44\x61taBlob\x12:\n\rencoding_type\x18\x01 \x01(\x0e\x32#.temporal.api.enums.v1.EncodingType\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c"=\n\x08Payloads\x12\x31\n\x08payloads\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload"\x89\x01\n\x07Payload\x12?\n\x08metadata\x18\x01 \x03(\x0b\x32-.temporal.api.common.v1.Payload.MetadataEntry\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01"\xbe\x01\n\x10SearchAttributes\x12S\n\x0eindexed_fields\x18\x01 \x03(\x0b\x32;.temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry\x1aU\n\x12IndexedFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x90\x01\n\x04Memo\x12\x38\n\x06\x66ields\x18\x01 \x03(\x0b\x32(.temporal.api.common.v1.Memo.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x94\x01\n\x06Header\x12:\n\x06\x66ields\x18\x01 \x03(\x0b\x32*.temporal.api.common.v1.Header.FieldsEntry\x1aN\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"8\n\x11WorkflowExecution\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t"\x1c\n\x0cWorkflowType\x12\x0c\n\x04name\x18\x01 \x01(\t"\x1c\n\x0c\x41\x63tivityType\x12\x0c\n\x04name\x18\x01 \x01(\t"\xd1\x01\n\x0bRetryPolicy\x12\x33\n\x10initial_interval\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x62\x61\x63koff_coefficient\x18\x02 \x01(\x01\x12\x33\n\x10maximum_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x10maximum_attempts\x18\x04 \x01(\x05\x12!\n\x19non_retryable_error_types\x18\x05 \x03(\t"F\n\x10MeteringMetadata\x12\x32\n*nonfirst_local_activity_execution_attempts\x18\r \x01(\r">\n\x12WorkerVersionStamp\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x03 \x01(\x08"e\n\x19WorkerVersionCapabilities\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12\x16\n\x0euse_versioning\x18\x02 \x01(\x08\x12\x1e\n\x16\x64\x65ployment_series_name\x18\x04 \x01(\t"\xe9\x02\n\x0cResetOptions\x12\x35\n\x13\x66irst_workflow_task\x18\x01 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x12last_workflow_task\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x1a\n\x10workflow_task_id\x18\x03 \x01(\x03H\x00\x12\x12\n\x08\x62uild_id\x18\x04 \x01(\tH\x00\x12\x43\n\x12reset_reapply_type\x18\n \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\x12\x18\n\x10\x63urrent_run_only\x18\x0b \x01(\x08\x12S\n\x1breset_reapply_exclude_types\x18\x0c \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeTypeB\x08\n\x06target"\xb7\x02\n\x08\x43\x61llback\x12\x37\n\x05nexus\x18\x02 \x01(\x0b\x32&.temporal.api.common.v1.Callback.NexusH\x00\x12=\n\x08internal\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.Callback.InternalH\x00\x1a\x87\x01\n\x05Nexus\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x42\n\x06header\x18\x02 \x03(\x0b\x32\x32.temporal.api.common.v1.Callback.Nexus.HeaderEntry\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x18\n\x08Internal\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x42\t\n\x07variantJ\x04\x08\x01\x10\x02"\xb0\x03\n\x04Link\x12\x44\n\x0eworkflow_event\x18\x01 \x01(\x0b\x32*.temporal.api.common.v1.Link.WorkflowEventH\x00\x12:\n\tbatch_job\x18\x02 \x01(\x0b\x32%.temporal.api.common.v1.Link.BatchJobH\x00\x1a\xfe\x01\n\rWorkflowEvent\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12N\n\tevent_ref\x18\x64 \x01(\x0b\x32\x39.temporal.api.common.v1.Link.WorkflowEvent.EventReferenceH\x00\x1aX\n\x0e\x45ventReference\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12\x34\n\nevent_type\x18\x02 \x01(\x0e\x32 .temporal.api.enums.v1.EventTypeB\x0b\n\treference\x1a\x1a\n\x08\x42\x61tchJob\x12\x0e\n\x06job_id\x18\x01 \x01(\tB\t\n\x07variant" \n\x08Priority\x12\x14\n\x0cpriority_key\x18\x01 \x01(\x05\x42\x89\x01\n\x19io.temporal.api.common.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/common/v1;common\xaa\x02\x18Temporalio.Api.Common.V1\xea\x02\x1bTemporalio::Api::Common::V1b\x06proto3' ) @@ -64,6 +64,7 @@ "EventReference" ] _LINK_BATCHJOB = _LINK.nested_types_by_name["BatchJob"] +_PRIORITY = DESCRIPTOR.message_types_by_name["Priority"] DataBlob = _reflection.GeneratedProtocolMessageType( "DataBlob", (_message.Message,), @@ -340,6 +341,17 @@ _sym_db.RegisterMessage(Link.WorkflowEvent.EventReference) _sym_db.RegisterMessage(Link.BatchJob) +Priority = _reflection.GeneratedProtocolMessageType( + "Priority", + (_message.Message,), + { + "DESCRIPTOR": _PRIORITY, + "__module__": "temporal.api.common.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Priority) + }, +) +_sym_db.RegisterMessage(Priority) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\031io.temporal.api.common.v1B\014MessageProtoP\001Z#go.temporal.io/api/common/v1;common\252\002\030Temporalio.Api.Common.V1\352\002\033Temporalio::Api::Common::V1" @@ -386,23 +398,25 @@ _WORKERVERSIONSTAMP._serialized_start = 1418 _WORKERVERSIONSTAMP._serialized_end = 1480 _WORKERVERSIONCAPABILITIES._serialized_start = 1482 - _WORKERVERSIONCAPABILITIES._serialized_end = 1551 - _RESETOPTIONS._serialized_start = 1554 - _RESETOPTIONS._serialized_end = 1915 - _CALLBACK._serialized_start = 1918 - _CALLBACK._serialized_end = 2229 - _CALLBACK_NEXUS._serialized_start = 2051 - _CALLBACK_NEXUS._serialized_end = 2186 - _CALLBACK_NEXUS_HEADERENTRY._serialized_start = 2141 - _CALLBACK_NEXUS_HEADERENTRY._serialized_end = 2186 - _CALLBACK_INTERNAL._serialized_start = 2188 - _CALLBACK_INTERNAL._serialized_end = 2212 - _LINK._serialized_start = 2232 - _LINK._serialized_end = 2664 - _LINK_WORKFLOWEVENT._serialized_start = 2371 - _LINK_WORKFLOWEVENT._serialized_end = 2625 - _LINK_WORKFLOWEVENT_EVENTREFERENCE._serialized_start = 2524 - _LINK_WORKFLOWEVENT_EVENTREFERENCE._serialized_end = 2612 - _LINK_BATCHJOB._serialized_start = 2627 - _LINK_BATCHJOB._serialized_end = 2653 + _WORKERVERSIONCAPABILITIES._serialized_end = 1583 + _RESETOPTIONS._serialized_start = 1586 + _RESETOPTIONS._serialized_end = 1947 + _CALLBACK._serialized_start = 1950 + _CALLBACK._serialized_end = 2261 + _CALLBACK_NEXUS._serialized_start = 2083 + _CALLBACK_NEXUS._serialized_end = 2218 + _CALLBACK_NEXUS_HEADERENTRY._serialized_start = 2173 + _CALLBACK_NEXUS_HEADERENTRY._serialized_end = 2218 + _CALLBACK_INTERNAL._serialized_start = 2220 + _CALLBACK_INTERNAL._serialized_end = 2244 + _LINK._serialized_start = 2264 + _LINK._serialized_end = 2696 + _LINK_WORKFLOWEVENT._serialized_start = 2403 + _LINK_WORKFLOWEVENT._serialized_end = 2657 + _LINK_WORKFLOWEVENT_EVENTREFERENCE._serialized_start = 2556 + _LINK_WORKFLOWEVENT_EVENTREFERENCE._serialized_end = 2644 + _LINK_BATCHJOB._serialized_start = 2659 + _LINK_BATCHJOB._serialized_end = 2685 + _PRIORITY._serialized_start = 2698 + _PRIORITY._serialized_end = 2730 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/common/v1/message_pb2.pyi b/temporalio/api/common/v1/message_pb2.pyi index 3a22ea802..563211beb 100644 --- a/temporalio/api/common/v1/message_pb2.pyi +++ b/temporalio/api/common/v1/message_pb2.pyi @@ -445,7 +445,9 @@ class MeteringMetadata(google.protobuf.message.Message): global___MeteringMetadata = MeteringMetadata class WorkerVersionStamp(google.protobuf.message.Message): - """Identifies the version(s) of a worker that processed a task""" + """Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`. + Identifies the version(s) of a worker that processed a task + """ DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -475,31 +477,41 @@ class WorkerVersionStamp(google.protobuf.message.Message): global___WorkerVersionStamp = WorkerVersionStamp class WorkerVersionCapabilities(google.protobuf.message.Message): - """Identifies the version(s) that a worker is compatible with when polling or identifying itself, + """Identifies the version that a worker is compatible with when polling or identifying itself, and whether or not this worker is opting into the build-id based versioning feature. This is used by matching to determine which workers ought to receive what tasks. + Deprecated. Use WorkerDeploymentOptions instead. """ DESCRIPTOR: google.protobuf.descriptor.Descriptor BUILD_ID_FIELD_NUMBER: builtins.int USE_VERSIONING_FIELD_NUMBER: builtins.int + DEPLOYMENT_SERIES_NAME_FIELD_NUMBER: builtins.int build_id: builtins.str """An opaque whole-worker identifier""" use_versioning: builtins.bool """If set, the worker is opting in to worker versioning, and wishes to only receive appropriate tasks. """ + deployment_series_name: builtins.str + """Must be sent if user has set a deployment series name (versioning-3).""" def __init__( self, *, build_id: builtins.str = ..., use_versioning: builtins.bool = ..., + deployment_series_name: builtins.str = ..., ) -> None: ... def ClearField( self, field_name: typing_extensions.Literal[ - "build_id", b"build_id", "use_versioning", b"use_versioning" + "build_id", + b"build_id", + "deployment_series_name", + b"deployment_series_name", + "use_versioning", + b"use_versioning", ], ) -> None: ... @@ -842,3 +854,51 @@ class Link(google.protobuf.message.Message): ) -> typing_extensions.Literal["workflow_event", "batch_job"] | None: ... global___Link = Link + +class Priority(google.protobuf.message.Message): + """Priority contains metadata that controls relative ordering of task processing + when tasks are backlogged in a queue. Initially, Priority will be used in + activity and workflow task queues, which are typically where backlogs exist. + Other queues in the server (such as transfer and timer queues) and rate + limiting decisions do not use Priority, but may in the future. + + Priority is attached to workflows and activities. Activities and child + workflows inherit Priority from the workflow that created them, but may + override fields when they are started or modified. For each field of a + Priority on an activity/workflow, not present or equal to zero/empty string + means to inherit the value from the calling workflow, or if there is no + calling workflow, then use the default (documented below). + + Despite being named "Priority", this message will also contains fields that + control "fairness" mechanisms. + + The overall semantics of Priority are: + 1. First, consider "priority_key": lower number goes first. + (more will be added here later) + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PRIORITY_KEY_FIELD_NUMBER: builtins.int + priority_key: builtins.int + """Priority key is a positive integer from 1 to n, where smaller integers + correspond to higher priorities (tasks run sooner). In general, tasks in + a queue should be processed in close to priority order, although small + deviations are possible. + + The maximum priority value (minimum priority) is determined by server + configuration, and defaults to 5. + + The default priority is (min+max)/2. With the default max of 5 and min of + 1, that comes out to 3. + """ + def __init__( + self, + *, + priority_key: builtins.int = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["priority_key", b"priority_key"] + ) -> None: ... + +global___Priority = Priority diff --git a/temporalio/api/deployment/__init__.py b/temporalio/api/deployment/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/temporalio/api/deployment/v1/__init__.py b/temporalio/api/deployment/v1/__init__.py new file mode 100644 index 000000000..bfc8081d7 --- /dev/null +++ b/temporalio/api/deployment/v1/__init__.py @@ -0,0 +1,25 @@ +from .message_pb2 import ( + Deployment, + DeploymentInfo, + DeploymentListInfo, + RoutingConfig, + UpdateDeploymentMetadata, + VersionDrainageInfo, + VersionMetadata, + WorkerDeploymentInfo, + WorkerDeploymentOptions, + WorkerDeploymentVersionInfo, +) + +__all__ = [ + "Deployment", + "DeploymentInfo", + "DeploymentListInfo", + "RoutingConfig", + "UpdateDeploymentMetadata", + "VersionDrainageInfo", + "VersionMetadata", + "WorkerDeploymentInfo", + "WorkerDeploymentOptions", + "WorkerDeploymentVersionInfo", +] diff --git a/temporalio/api/deployment/v1/message_pb2.py b/temporalio/api/deployment/v1/message_pb2.py new file mode 100644 index 000000000..c2f983ce9 --- /dev/null +++ b/temporalio/api/deployment/v1/message_pb2.py @@ -0,0 +1,269 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: temporal/api/deployment/v1/message.proto +"""Generated protocol buffer code.""" + +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + +from temporalio.api.common.v1 import ( + message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, +) +from temporalio.api.enums.v1 import ( + deployment_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_deployment__pb2, +) +from temporalio.api.enums.v1 import ( + task_queue_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_task__queue__pb2, +) + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n(temporal/api/deployment/v1/message.proto\x12\x1atemporal.api.deployment.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto"\x91\x01\n\x17WorkerDeploymentOptions\x12\x17\n\x0f\x64\x65ployment_name\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t\x12K\n\x16worker_versioning_mode\x18\x03 \x01(\x0e\x32+.temporal.api.enums.v1.WorkerVersioningMode"3\n\nDeployment\x12\x13\n\x0bseries_name\x18\x01 \x01(\t\x12\x10\n\x08\x62uild_id\x18\x02 \x01(\t"\x8e\x04\n\x0e\x44\x65ploymentInfo\x12:\n\ndeployment\x18\x01 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12R\n\x10task_queue_infos\x18\x03 \x03(\x0b\x32\x38.temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfo\x12J\n\x08metadata\x18\x04 \x03(\x0b\x32\x38.temporal.api.deployment.v1.DeploymentInfo.MetadataEntry\x12\x12\n\nis_current\x18\x05 \x01(\x08\x1aP\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1a\x88\x01\n\rTaskQueueInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x35\n\x11\x66irst_poller_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xea\x01\n\x18UpdateDeploymentMetadata\x12_\n\x0eupsert_entries\x18\x01 \x03(\x0b\x32G.temporal.api.deployment.v1.UpdateDeploymentMetadata.UpsertEntriesEntry\x12\x16\n\x0eremove_entries\x18\x02 \x03(\t\x1aU\n\x12UpsertEntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x95\x01\n\x12\x44\x65ploymentListInfo\x12:\n\ndeployment\x18\x01 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nis_current\x18\x03 \x01(\x08"\x84\x05\n\x1bWorkerDeploymentVersionInfo\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x38\n\x14routing_changed_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12\x63urrent_since_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12ramping_since_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0framp_percentage\x18\x07 \x01(\x02\x12\x66\n\x10task_queue_infos\x18\x08 \x03(\x0b\x32L.temporal.api.deployment.v1.WorkerDeploymentVersionInfo.VersionTaskQueueInfo\x12\x46\n\rdrainage_info\x18\t \x01(\x0b\x32/.temporal.api.deployment.v1.VersionDrainageInfo\x12=\n\x08metadata\x18\n \x01(\x0b\x32+.temporal.api.deployment.v1.VersionMetadata\x1aX\n\x14VersionTaskQueueInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType"\xc1\x01\n\x13VersionDrainageInfo\x12<\n\x06status\x18\x01 \x01(\x0e\x32,.temporal.api.enums.v1.VersionDrainageStatus\x12\x35\n\x11last_changed_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_checked_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xd0\x03\n\x14WorkerDeploymentInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12j\n\x11version_summaries\x18\x02 \x03(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0erouting_config\x18\x04 \x01(\x0b\x32).temporal.api.deployment.v1.RoutingConfig\x12\x1e\n\x16last_modifier_identity\x18\x05 \x01(\t\x1a\xa9\x01\n\x1eWorkerDeploymentVersionSummary\x12\x0f\n\x07version\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x0f\x64rainage_status\x18\x03 \x01(\x0e\x32,.temporal.api.enums.v1.VersionDrainageStatus"\xad\x01\n\x0fVersionMetadata\x12I\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x38.temporal.api.deployment.v1.VersionMetadata.EntriesEntry\x1aO\n\x0c\x45ntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\xb6\x02\n\rRoutingConfig\x12\x17\n\x0f\x63urrent_version\x18\x01 \x01(\t\x12\x17\n\x0framping_version\x18\x02 \x01(\t\x12"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12@\n\x1c\x63urrent_version_changed_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x1cramping_version_changed_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12K\n\'ramping_version_percentage_changed_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x9d\x01\n\x1dio.temporal.api.deployment.v1B\x0cMessageProtoP\x01Z+go.temporal.io/api/deployment/v1;deployment\xaa\x02\x1cTemporalio.Api.Deployment.V1\xea\x02\x1fTemporalio::Api::Deployment::V1b\x06proto3' +) + + +_WORKERDEPLOYMENTOPTIONS = DESCRIPTOR.message_types_by_name["WorkerDeploymentOptions"] +_DEPLOYMENT = DESCRIPTOR.message_types_by_name["Deployment"] +_DEPLOYMENTINFO = DESCRIPTOR.message_types_by_name["DeploymentInfo"] +_DEPLOYMENTINFO_METADATAENTRY = _DEPLOYMENTINFO.nested_types_by_name["MetadataEntry"] +_DEPLOYMENTINFO_TASKQUEUEINFO = _DEPLOYMENTINFO.nested_types_by_name["TaskQueueInfo"] +_UPDATEDEPLOYMENTMETADATA = DESCRIPTOR.message_types_by_name["UpdateDeploymentMetadata"] +_UPDATEDEPLOYMENTMETADATA_UPSERTENTRIESENTRY = ( + _UPDATEDEPLOYMENTMETADATA.nested_types_by_name["UpsertEntriesEntry"] +) +_DEPLOYMENTLISTINFO = DESCRIPTOR.message_types_by_name["DeploymentListInfo"] +_WORKERDEPLOYMENTVERSIONINFO = DESCRIPTOR.message_types_by_name[ + "WorkerDeploymentVersionInfo" +] +_WORKERDEPLOYMENTVERSIONINFO_VERSIONTASKQUEUEINFO = ( + _WORKERDEPLOYMENTVERSIONINFO.nested_types_by_name["VersionTaskQueueInfo"] +) +_VERSIONDRAINAGEINFO = DESCRIPTOR.message_types_by_name["VersionDrainageInfo"] +_WORKERDEPLOYMENTINFO = DESCRIPTOR.message_types_by_name["WorkerDeploymentInfo"] +_WORKERDEPLOYMENTINFO_WORKERDEPLOYMENTVERSIONSUMMARY = ( + _WORKERDEPLOYMENTINFO.nested_types_by_name["WorkerDeploymentVersionSummary"] +) +_VERSIONMETADATA = DESCRIPTOR.message_types_by_name["VersionMetadata"] +_VERSIONMETADATA_ENTRIESENTRY = _VERSIONMETADATA.nested_types_by_name["EntriesEntry"] +_ROUTINGCONFIG = DESCRIPTOR.message_types_by_name["RoutingConfig"] +WorkerDeploymentOptions = _reflection.GeneratedProtocolMessageType( + "WorkerDeploymentOptions", + (_message.Message,), + { + "DESCRIPTOR": _WORKERDEPLOYMENTOPTIONS, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentOptions) + }, +) +_sym_db.RegisterMessage(WorkerDeploymentOptions) + +Deployment = _reflection.GeneratedProtocolMessageType( + "Deployment", + (_message.Message,), + { + "DESCRIPTOR": _DEPLOYMENT, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.Deployment) + }, +) +_sym_db.RegisterMessage(Deployment) + +DeploymentInfo = _reflection.GeneratedProtocolMessageType( + "DeploymentInfo", + (_message.Message,), + { + "MetadataEntry": _reflection.GeneratedProtocolMessageType( + "MetadataEntry", + (_message.Message,), + { + "DESCRIPTOR": _DEPLOYMENTINFO_METADATAENTRY, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.DeploymentInfo.MetadataEntry) + }, + ), + "TaskQueueInfo": _reflection.GeneratedProtocolMessageType( + "TaskQueueInfo", + (_message.Message,), + { + "DESCRIPTOR": _DEPLOYMENTINFO_TASKQUEUEINFO, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.DeploymentInfo.TaskQueueInfo) + }, + ), + "DESCRIPTOR": _DEPLOYMENTINFO, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.DeploymentInfo) + }, +) +_sym_db.RegisterMessage(DeploymentInfo) +_sym_db.RegisterMessage(DeploymentInfo.MetadataEntry) +_sym_db.RegisterMessage(DeploymentInfo.TaskQueueInfo) + +UpdateDeploymentMetadata = _reflection.GeneratedProtocolMessageType( + "UpdateDeploymentMetadata", + (_message.Message,), + { + "UpsertEntriesEntry": _reflection.GeneratedProtocolMessageType( + "UpsertEntriesEntry", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEDEPLOYMENTMETADATA_UPSERTENTRIESENTRY, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.UpdateDeploymentMetadata.UpsertEntriesEntry) + }, + ), + "DESCRIPTOR": _UPDATEDEPLOYMENTMETADATA, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.UpdateDeploymentMetadata) + }, +) +_sym_db.RegisterMessage(UpdateDeploymentMetadata) +_sym_db.RegisterMessage(UpdateDeploymentMetadata.UpsertEntriesEntry) + +DeploymentListInfo = _reflection.GeneratedProtocolMessageType( + "DeploymentListInfo", + (_message.Message,), + { + "DESCRIPTOR": _DEPLOYMENTLISTINFO, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.DeploymentListInfo) + }, +) +_sym_db.RegisterMessage(DeploymentListInfo) + +WorkerDeploymentVersionInfo = _reflection.GeneratedProtocolMessageType( + "WorkerDeploymentVersionInfo", + (_message.Message,), + { + "VersionTaskQueueInfo": _reflection.GeneratedProtocolMessageType( + "VersionTaskQueueInfo", + (_message.Message,), + { + "DESCRIPTOR": _WORKERDEPLOYMENTVERSIONINFO_VERSIONTASKQUEUEINFO, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentVersionInfo.VersionTaskQueueInfo) + }, + ), + "DESCRIPTOR": _WORKERDEPLOYMENTVERSIONINFO, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentVersionInfo) + }, +) +_sym_db.RegisterMessage(WorkerDeploymentVersionInfo) +_sym_db.RegisterMessage(WorkerDeploymentVersionInfo.VersionTaskQueueInfo) + +VersionDrainageInfo = _reflection.GeneratedProtocolMessageType( + "VersionDrainageInfo", + (_message.Message,), + { + "DESCRIPTOR": _VERSIONDRAINAGEINFO, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.VersionDrainageInfo) + }, +) +_sym_db.RegisterMessage(VersionDrainageInfo) + +WorkerDeploymentInfo = _reflection.GeneratedProtocolMessageType( + "WorkerDeploymentInfo", + (_message.Message,), + { + "WorkerDeploymentVersionSummary": _reflection.GeneratedProtocolMessageType( + "WorkerDeploymentVersionSummary", + (_message.Message,), + { + "DESCRIPTOR": _WORKERDEPLOYMENTINFO_WORKERDEPLOYMENTVERSIONSUMMARY, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary) + }, + ), + "DESCRIPTOR": _WORKERDEPLOYMENTINFO, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.WorkerDeploymentInfo) + }, +) +_sym_db.RegisterMessage(WorkerDeploymentInfo) +_sym_db.RegisterMessage(WorkerDeploymentInfo.WorkerDeploymentVersionSummary) + +VersionMetadata = _reflection.GeneratedProtocolMessageType( + "VersionMetadata", + (_message.Message,), + { + "EntriesEntry": _reflection.GeneratedProtocolMessageType( + "EntriesEntry", + (_message.Message,), + { + "DESCRIPTOR": _VERSIONMETADATA_ENTRIESENTRY, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.VersionMetadata.EntriesEntry) + }, + ), + "DESCRIPTOR": _VERSIONMETADATA, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.VersionMetadata) + }, +) +_sym_db.RegisterMessage(VersionMetadata) +_sym_db.RegisterMessage(VersionMetadata.EntriesEntry) + +RoutingConfig = _reflection.GeneratedProtocolMessageType( + "RoutingConfig", + (_message.Message,), + { + "DESCRIPTOR": _ROUTINGCONFIG, + "__module__": "temporal.api.deployment.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.deployment.v1.RoutingConfig) + }, +) +_sym_db.RegisterMessage(RoutingConfig) + +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b"\n\035io.temporal.api.deployment.v1B\014MessageProtoP\001Z+go.temporal.io/api/deployment/v1;deployment\252\002\034Temporalio.Api.Deployment.V1\352\002\037Temporalio::Api::Deployment::V1" + _DEPLOYMENTINFO_METADATAENTRY._options = None + _DEPLOYMENTINFO_METADATAENTRY._serialized_options = b"8\001" + _UPDATEDEPLOYMENTMETADATA_UPSERTENTRIESENTRY._options = None + _UPDATEDEPLOYMENTMETADATA_UPSERTENTRIESENTRY._serialized_options = b"8\001" + _VERSIONMETADATA_ENTRIESENTRY._options = None + _VERSIONMETADATA_ENTRIESENTRY._serialized_options = b"8\001" + _WORKERDEPLOYMENTOPTIONS._serialized_start = 224 + _WORKERDEPLOYMENTOPTIONS._serialized_end = 369 + _DEPLOYMENT._serialized_start = 371 + _DEPLOYMENT._serialized_end = 422 + _DEPLOYMENTINFO._serialized_start = 425 + _DEPLOYMENTINFO._serialized_end = 951 + _DEPLOYMENTINFO_METADATAENTRY._serialized_start = 732 + _DEPLOYMENTINFO_METADATAENTRY._serialized_end = 812 + _DEPLOYMENTINFO_TASKQUEUEINFO._serialized_start = 815 + _DEPLOYMENTINFO_TASKQUEUEINFO._serialized_end = 951 + _UPDATEDEPLOYMENTMETADATA._serialized_start = 954 + _UPDATEDEPLOYMENTMETADATA._serialized_end = 1188 + _UPDATEDEPLOYMENTMETADATA_UPSERTENTRIESENTRY._serialized_start = 1103 + _UPDATEDEPLOYMENTMETADATA_UPSERTENTRIESENTRY._serialized_end = 1188 + _DEPLOYMENTLISTINFO._serialized_start = 1191 + _DEPLOYMENTLISTINFO._serialized_end = 1340 + _WORKERDEPLOYMENTVERSIONINFO._serialized_start = 1343 + _WORKERDEPLOYMENTVERSIONINFO._serialized_end = 1987 + _WORKERDEPLOYMENTVERSIONINFO_VERSIONTASKQUEUEINFO._serialized_start = 1899 + _WORKERDEPLOYMENTVERSIONINFO_VERSIONTASKQUEUEINFO._serialized_end = 1987 + _VERSIONDRAINAGEINFO._serialized_start = 1990 + _VERSIONDRAINAGEINFO._serialized_end = 2183 + _WORKERDEPLOYMENTINFO._serialized_start = 2186 + _WORKERDEPLOYMENTINFO._serialized_end = 2650 + _WORKERDEPLOYMENTINFO_WORKERDEPLOYMENTVERSIONSUMMARY._serialized_start = 2481 + _WORKERDEPLOYMENTINFO_WORKERDEPLOYMENTVERSIONSUMMARY._serialized_end = 2650 + _VERSIONMETADATA._serialized_start = 2653 + _VERSIONMETADATA._serialized_end = 2826 + _VERSIONMETADATA_ENTRIESENTRY._serialized_start = 2747 + _VERSIONMETADATA_ENTRIESENTRY._serialized_end = 2826 + _ROUTINGCONFIG._serialized_start = 2829 + _ROUTINGCONFIG._serialized_end = 3139 +# @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/deployment/v1/message_pb2.pyi b/temporalio/api/deployment/v1/message_pb2.pyi new file mode 100644 index 000000000..b4c48c711 --- /dev/null +++ b/temporalio/api/deployment/v1/message_pb2.pyi @@ -0,0 +1,816 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +The MIT License + +Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +""" + +import builtins +import collections.abc +import sys + +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 + +import temporalio.api.common.v1.message_pb2 +import temporalio.api.enums.v1.deployment_pb2 +import temporalio.api.enums.v1.task_queue_pb2 + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class WorkerDeploymentOptions(google.protobuf.message.Message): + """Worker Deployment options set in SDK that need to be sent to server in every poll. + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int + BUILD_ID_FIELD_NUMBER: builtins.int + WORKER_VERSIONING_MODE_FIELD_NUMBER: builtins.int + deployment_name: builtins.str + """Required. Worker Deployment name.""" + build_id: builtins.str + """The Build ID of the worker. Required when `worker_versioning_mode==VERSIONED`, in which case, + the worker will be part of a Deployment Version identified by ".". + """ + worker_versioning_mode: ( + temporalio.api.enums.v1.deployment_pb2.WorkerVersioningMode.ValueType + ) + """Required. Versioning Mode for this worker. Must be the same for all workers with the + same `deployment_name` and `build_id` combination, across all Task Queues. + When `worker_versioning_mode==VERSIONED`, the worker will be part of a Deployment Version + identified by ".". + """ + def __init__( + self, + *, + deployment_name: builtins.str = ..., + build_id: builtins.str = ..., + worker_versioning_mode: temporalio.api.enums.v1.deployment_pb2.WorkerVersioningMode.ValueType = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "build_id", + b"build_id", + "deployment_name", + b"deployment_name", + "worker_versioning_mode", + b"worker_versioning_mode", + ], + ) -> None: ... + +global___WorkerDeploymentOptions = WorkerDeploymentOptions + +class Deployment(google.protobuf.message.Message): + """`Deployment` identifies a deployment of Temporal workers. The combination of deployment series + name + build ID serves as the identifier. User can use `WorkerDeploymentOptions` in their worker + programs to specify these values. + Deprecated. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SERIES_NAME_FIELD_NUMBER: builtins.int + BUILD_ID_FIELD_NUMBER: builtins.int + series_name: builtins.str + """Different versions of the same worker service/application are related together by having a + shared series name. + Out of all deployments of a series, one can be designated as the current deployment, which + receives new workflow executions and new tasks of workflows with + `VERSIONING_BEHAVIOR_AUTO_UPGRADE` versioning behavior. + """ + build_id: builtins.str + """Build ID changes with each version of the worker when the worker program code and/or config + changes. + """ + def __init__( + self, + *, + series_name: builtins.str = ..., + build_id: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "build_id", b"build_id", "series_name", b"series_name" + ], + ) -> None: ... + +global___Deployment = Deployment + +class DeploymentInfo(google.protobuf.message.Message): + """`DeploymentInfo` holds information about a deployment. Deployment information is tracked + automatically by server as soon as the first poll from that deployment reaches the server. There + can be multiple task queue workers in a single deployment which are listed in this message. + Deprecated. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> temporalio.api.common.v1.message_pb2.Payload: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: temporalio.api.common.v1.message_pb2.Payload | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... + + class TaskQueueInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + FIRST_POLLER_TIME_FIELD_NUMBER: builtins.int + name: builtins.str + type: temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType + @property + def first_poller_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """When server saw the first poller for this task queue in this deployment.""" + def __init__( + self, + *, + name: builtins.str = ..., + type: temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType = ..., + first_poller_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "first_poller_time", b"first_poller_time" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "first_poller_time", + b"first_poller_time", + "name", + b"name", + "type", + b"type", + ], + ) -> None: ... + + DEPLOYMENT_FIELD_NUMBER: builtins.int + CREATE_TIME_FIELD_NUMBER: builtins.int + TASK_QUEUE_INFOS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + IS_CURRENT_FIELD_NUMBER: builtins.int + @property + def deployment(self) -> global___Deployment: ... + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def task_queue_infos( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___DeploymentInfo.TaskQueueInfo + ]: ... + @property + def metadata( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.str, temporalio.api.common.v1.message_pb2.Payload + ]: + """A user-defined set of key-values. Can be updated as part of write operations to the + deployment, such as `SetCurrentDeployment`. + """ + is_current: builtins.bool + """If this deployment is the current deployment of its deployment series.""" + def __init__( + self, + *, + deployment: global___Deployment | None = ..., + create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + task_queue_infos: collections.abc.Iterable[ + global___DeploymentInfo.TaskQueueInfo + ] + | None = ..., + metadata: collections.abc.Mapping[ + builtins.str, temporalio.api.common.v1.message_pb2.Payload + ] + | None = ..., + is_current: builtins.bool = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "create_time", b"create_time", "deployment", b"deployment" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "create_time", + b"create_time", + "deployment", + b"deployment", + "is_current", + b"is_current", + "metadata", + b"metadata", + "task_queue_infos", + b"task_queue_infos", + ], + ) -> None: ... + +global___DeploymentInfo = DeploymentInfo + +class UpdateDeploymentMetadata(google.protobuf.message.Message): + """Used as part of Deployment write APIs to update metadata attached to a deployment. + Deprecated. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class UpsertEntriesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> temporalio.api.common.v1.message_pb2.Payload: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: temporalio.api.common.v1.message_pb2.Payload | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... + + UPSERT_ENTRIES_FIELD_NUMBER: builtins.int + REMOVE_ENTRIES_FIELD_NUMBER: builtins.int + @property + def upsert_entries( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.str, temporalio.api.common.v1.message_pb2.Payload + ]: ... + @property + def remove_entries( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """List of keys to remove from the metadata.""" + def __init__( + self, + *, + upsert_entries: collections.abc.Mapping[ + builtins.str, temporalio.api.common.v1.message_pb2.Payload + ] + | None = ..., + remove_entries: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "remove_entries", b"remove_entries", "upsert_entries", b"upsert_entries" + ], + ) -> None: ... + +global___UpdateDeploymentMetadata = UpdateDeploymentMetadata + +class DeploymentListInfo(google.protobuf.message.Message): + """DeploymentListInfo is an abbreviated set of fields from DeploymentInfo that's returned in + ListDeployments. + Deprecated. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPLOYMENT_FIELD_NUMBER: builtins.int + CREATE_TIME_FIELD_NUMBER: builtins.int + IS_CURRENT_FIELD_NUMBER: builtins.int + @property + def deployment(self) -> global___Deployment: ... + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + is_current: builtins.bool + """If this deployment is the current deployment of its deployment series.""" + def __init__( + self, + *, + deployment: global___Deployment | None = ..., + create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + is_current: builtins.bool = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "create_time", b"create_time", "deployment", b"deployment" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "create_time", + b"create_time", + "deployment", + b"deployment", + "is_current", + b"is_current", + ], + ) -> None: ... + +global___DeploymentListInfo = DeploymentListInfo + +class WorkerDeploymentVersionInfo(google.protobuf.message.Message): + """A Worker Deployment Version (Version, for short) represents all workers of the same + code and config within a Deployment. Workers of the same Version are expected to + behave exactly the same so when executions move between them there are no + non-determinism issues. + Worker Deployment Versions are created in Temporal server automatically when + their first poller arrives to the server. + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class VersionTaskQueueInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + name: builtins.str + type: temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType + def __init__( + self, + *, + name: builtins.str = ..., + type: temporalio.api.enums.v1.task_queue_pb2.TaskQueueType.ValueType = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal["name", b"name", "type", b"type"], + ) -> None: ... + + VERSION_FIELD_NUMBER: builtins.int + DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int + CREATE_TIME_FIELD_NUMBER: builtins.int + ROUTING_CHANGED_TIME_FIELD_NUMBER: builtins.int + CURRENT_SINCE_TIME_FIELD_NUMBER: builtins.int + RAMPING_SINCE_TIME_FIELD_NUMBER: builtins.int + RAMP_PERCENTAGE_FIELD_NUMBER: builtins.int + TASK_QUEUE_INFOS_FIELD_NUMBER: builtins.int + DRAINAGE_INFO_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + version: builtins.str + """The fully-qualified string representation of the version, in the form ".".""" + deployment_name: builtins.str + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def routing_changed_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Last time `current_since_time`, `ramping_since_time, or `ramp_percentage` of this version changed.""" + @property + def current_since_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """(-- api-linter: core::0140::prepositions=disabled + aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + Nil if not current. + """ + @property + def ramping_since_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """(-- api-linter: core::0140::prepositions=disabled + aip.dev/not-precedent: 'Since' captures the field semantics despite being a preposition. --) + Nil if not ramping. Updated when the version first starts ramping, not on each ramp change. + """ + ramp_percentage: builtins.float + """Range: [0, 100]. Must be zero if the version is not ramping (i.e. `ramping_since_time` is nil). + Can be in the range [0, 100] if the version is ramping. + """ + @property + def task_queue_infos( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___WorkerDeploymentVersionInfo.VersionTaskQueueInfo + ]: + """All the Task Queues that have ever polled from this Deployment version.""" + @property + def drainage_info(self) -> global___VersionDrainageInfo: + """Helps user determine when it is safe to decommission the workers of this + Version. Not present when version is current or ramping. + Current limitations: + - Not supported for Unversioned mode. + - Periodically refreshed, may have delays up to few minutes (consult the + last_checked_time value). + - Refreshed only when version is not current or ramping AND the status is not + "drained" yet. + - Once the status is changed to "drained", it is not changed until the Version + becomes Current or Ramping again, at which time the drainage info is cleared. + This means if the Version is "drained" but new workflows are sent to it via + Pinned Versioning Override, the status does not account for those Pinned-override + executions and remains "drained". + """ + @property + def metadata(self) -> global___VersionMetadata: + """Arbitrary user-provided metadata attached to this version.""" + def __init__( + self, + *, + version: builtins.str = ..., + deployment_name: builtins.str = ..., + create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + routing_changed_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + current_since_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ramping_since_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ramp_percentage: builtins.float = ..., + task_queue_infos: collections.abc.Iterable[ + global___WorkerDeploymentVersionInfo.VersionTaskQueueInfo + ] + | None = ..., + drainage_info: global___VersionDrainageInfo | None = ..., + metadata: global___VersionMetadata | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "create_time", + b"create_time", + "current_since_time", + b"current_since_time", + "drainage_info", + b"drainage_info", + "metadata", + b"metadata", + "ramping_since_time", + b"ramping_since_time", + "routing_changed_time", + b"routing_changed_time", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "create_time", + b"create_time", + "current_since_time", + b"current_since_time", + "deployment_name", + b"deployment_name", + "drainage_info", + b"drainage_info", + "metadata", + b"metadata", + "ramp_percentage", + b"ramp_percentage", + "ramping_since_time", + b"ramping_since_time", + "routing_changed_time", + b"routing_changed_time", + "task_queue_infos", + b"task_queue_infos", + "version", + b"version", + ], + ) -> None: ... + +global___WorkerDeploymentVersionInfo = WorkerDeploymentVersionInfo + +class VersionDrainageInfo(google.protobuf.message.Message): + """Information about workflow drainage to help the user determine when it is safe + to decommission a Version. Not present while version is current or ramping. + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STATUS_FIELD_NUMBER: builtins.int + LAST_CHANGED_TIME_FIELD_NUMBER: builtins.int + LAST_CHECKED_TIME_FIELD_NUMBER: builtins.int + status: temporalio.api.enums.v1.deployment_pb2.VersionDrainageStatus.ValueType + """Set to DRAINING when the version first stops accepting new executions (is no longer current or ramping). + Set to DRAINED when no more open pinned workflows exist on this version. + """ + @property + def last_changed_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Last time the drainage status changed.""" + @property + def last_checked_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Last time the system checked for drainage of this version.""" + def __init__( + self, + *, + status: temporalio.api.enums.v1.deployment_pb2.VersionDrainageStatus.ValueType = ..., + last_changed_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + last_checked_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "last_changed_time", + b"last_changed_time", + "last_checked_time", + b"last_checked_time", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "last_changed_time", + b"last_changed_time", + "last_checked_time", + b"last_checked_time", + "status", + b"status", + ], + ) -> None: ... + +global___VersionDrainageInfo = VersionDrainageInfo + +class WorkerDeploymentInfo(google.protobuf.message.Message): + """A Worker Deployment (Deployment, for short) represents all workers serving + a shared set of Task Queues. Typically, a Deployment represents one service or + application. + A Deployment contains multiple Deployment Versions, each representing a different + version of workers. (see documentation of WorkerDeploymentVersionInfo) + Deployment records are created in Temporal server automatically when their + first poller arrives to the server. + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class WorkerDeploymentVersionSummary(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSION_FIELD_NUMBER: builtins.int + CREATE_TIME_FIELD_NUMBER: builtins.int + DRAINAGE_STATUS_FIELD_NUMBER: builtins.int + version: builtins.str + """The fully-qualified string representation of the version, in the form ".".""" + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + drainage_status: ( + temporalio.api.enums.v1.deployment_pb2.VersionDrainageStatus.ValueType + ) + def __init__( + self, + *, + version: builtins.str = ..., + create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + drainage_status: temporalio.api.enums.v1.deployment_pb2.VersionDrainageStatus.ValueType = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["create_time", b"create_time"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "create_time", + b"create_time", + "drainage_status", + b"drainage_status", + "version", + b"version", + ], + ) -> None: ... + + NAME_FIELD_NUMBER: builtins.int + VERSION_SUMMARIES_FIELD_NUMBER: builtins.int + CREATE_TIME_FIELD_NUMBER: builtins.int + ROUTING_CONFIG_FIELD_NUMBER: builtins.int + LAST_MODIFIER_IDENTITY_FIELD_NUMBER: builtins.int + name: builtins.str + """Identifies a Worker Deployment. Must be unique within the namespace.""" + @property + def version_summaries( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___WorkerDeploymentInfo.WorkerDeploymentVersionSummary + ]: + """Deployment Versions that are currently tracked in this Deployment. A DeploymentVersion will be + cleaned up automatically if all the following conditions meet: + - It does not receive new executions (is not current or ramping) + - It has no active pollers (see WorkerDeploymentVersionInfo.pollers_status) + - It is drained (see WorkerDeploymentVersionInfo.drainage_status) + """ + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def routing_config(self) -> global___RoutingConfig: ... + last_modifier_identity: builtins.str + """Identity of the last client who modified the configuration of this Deployment. Set to the + `identity` value sent by APIs such as `SetWorkerDeploymentCurrentVersion` and + `SetWorkerDeploymentRampingVersion`. + """ + def __init__( + self, + *, + name: builtins.str = ..., + version_summaries: collections.abc.Iterable[ + global___WorkerDeploymentInfo.WorkerDeploymentVersionSummary + ] + | None = ..., + create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + routing_config: global___RoutingConfig | None = ..., + last_modifier_identity: builtins.str = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "create_time", b"create_time", "routing_config", b"routing_config" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "create_time", + b"create_time", + "last_modifier_identity", + b"last_modifier_identity", + "name", + b"name", + "routing_config", + b"routing_config", + "version_summaries", + b"version_summaries", + ], + ) -> None: ... + +global___WorkerDeploymentInfo = WorkerDeploymentInfo + +class VersionMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class EntriesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> temporalio.api.common.v1.message_pb2.Payload: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: temporalio.api.common.v1.message_pb2.Payload | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... + + ENTRIES_FIELD_NUMBER: builtins.int + @property + def entries( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.str, temporalio.api.common.v1.message_pb2.Payload + ]: + """Arbitrary key-values.""" + def __init__( + self, + *, + entries: collections.abc.Mapping[ + builtins.str, temporalio.api.common.v1.message_pb2.Payload + ] + | None = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["entries", b"entries"] + ) -> None: ... + +global___VersionMetadata = VersionMetadata + +class RoutingConfig(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CURRENT_VERSION_FIELD_NUMBER: builtins.int + RAMPING_VERSION_FIELD_NUMBER: builtins.int + RAMPING_VERSION_PERCENTAGE_FIELD_NUMBER: builtins.int + CURRENT_VERSION_CHANGED_TIME_FIELD_NUMBER: builtins.int + RAMPING_VERSION_CHANGED_TIME_FIELD_NUMBER: builtins.int + RAMPING_VERSION_PERCENTAGE_CHANGED_TIME_FIELD_NUMBER: builtins.int + current_version: builtins.str + """Always present. Specifies which Deployment Version should should receive new workflow + executions and tasks of existing unversioned or AutoUpgrade workflows. + Can be one of the following: + - A Deployment Version identifier in the form ".". + - Or, the "__unversioned__" special value, to represent all the unversioned workers (those + with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp + is set (see `ramping_version`.) + """ + ramping_version: builtins.str + """When present, it means the traffic is being shifted from the Current Version to the Ramping + Version. + Must always be different from Current Version. Can be one of the following: + - A Deployment Version identifier in the form ".". + - Or, the "__unversioned__" special value, to represent all the unversioned workers (those + with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + Note that it is possible to ramp from one Version to another Version, or from unversioned + workers to a particular Version, or from a particular Version to unversioned workers. + """ + ramping_version_percentage: builtins.float + """Percentage of tasks that are routed to the Ramping Version instead of the Current Version. + Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but + not yet "promoted" to be the Current Version, likely due to pending validations. + """ + @property + def current_version_changed_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Last time current version was changed.""" + @property + def ramping_version_changed_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Last time ramping version was changed. Not updated if only the ramp percentage changes.""" + @property + def ramping_version_percentage_changed_time( + self, + ) -> google.protobuf.timestamp_pb2.Timestamp: + """Last time ramping version percentage was changed. + If ramping version is changed, this is also updated, even if the percentage stays the same. + """ + def __init__( + self, + *, + current_version: builtins.str = ..., + ramping_version: builtins.str = ..., + ramping_version_percentage: builtins.float = ..., + current_version_changed_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + ramping_version_changed_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + ramping_version_percentage_changed_time: google.protobuf.timestamp_pb2.Timestamp + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "current_version_changed_time", + b"current_version_changed_time", + "ramping_version_changed_time", + b"ramping_version_changed_time", + "ramping_version_percentage_changed_time", + b"ramping_version_percentage_changed_time", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "current_version", + b"current_version", + "current_version_changed_time", + b"current_version_changed_time", + "ramping_version", + b"ramping_version", + "ramping_version_changed_time", + b"ramping_version_changed_time", + "ramping_version_percentage", + b"ramping_version_percentage", + "ramping_version_percentage_changed_time", + b"ramping_version_percentage_changed_time", + ], + ) -> None: ... + +global___RoutingConfig = RoutingConfig diff --git a/temporalio/api/enums/v1/__init__.py b/temporalio/api/enums/v1/__init__.py index 83eb1c5ab..1b9be9bc6 100644 --- a/temporalio/api/enums/v1/__init__.py +++ b/temporalio/api/enums/v1/__init__.py @@ -8,6 +8,11 @@ PendingNexusOperationState, Severity, ) +from .deployment_pb2 import ( + DeploymentReachability, + VersionDrainageStatus, + WorkerVersioningMode, +) from .event_type_pb2 import EventType from .failed_cause_pb2 import ( CancelExternalWorkflowExecutionFailedCause, @@ -18,6 +23,7 @@ WorkflowTaskFailedCause, ) from .namespace_pb2 import ArchivalState, NamespaceState, ReplicationState +from .nexus_pb2 import NexusHandlerErrorRetryBehavior from .query_pb2 import QueryRejectCondition, QueryResultType from .reset_pb2 import ResetReapplyExcludeType, ResetReapplyType, ResetType from .schedule_pb2 import ScheduleOverlapPolicy @@ -37,6 +43,7 @@ PendingWorkflowTaskState, RetryState, TimeoutType, + VersioningBehavior, WorkflowExecutionStatus, WorkflowIdConflictPolicy, WorkflowIdReusePolicy, @@ -51,12 +58,14 @@ "CancelExternalWorkflowExecutionFailedCause", "CommandType", "ContinueAsNewInitiator", + "DeploymentReachability", "DescribeTaskQueueMode", "EncodingType", "EventType", "HistoryEventFilterType", "IndexedValueType", "NamespaceState", + "NexusHandlerErrorRetryBehavior", "NexusOperationCancellationState", "ParentClosePolicy", "PendingActivityState", @@ -81,6 +90,9 @@ "TimeoutType", "UpdateAdmittedEventOrigin", "UpdateWorkflowExecutionLifecycleStage", + "VersionDrainageStatus", + "VersioningBehavior", + "WorkerVersioningMode", "WorkflowExecutionStatus", "WorkflowIdConflictPolicy", "WorkflowIdReusePolicy", diff --git a/temporalio/api/enums/v1/batch_operation_pb2.py b/temporalio/api/enums/v1/batch_operation_pb2.py index d9165b8e8..10ffc98a0 100644 --- a/temporalio/api/enums/v1/batch_operation_pb2.py +++ b/temporalio/api/enums/v1/batch_operation_pb2.py @@ -16,7 +16,7 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n+temporal/api/enums/v1/batch_operation.proto\x12\x15temporal.api.enums.v1*\xe1\x01\n\x12\x42\x61tchOperationType\x12$\n BATCH_OPERATION_TYPE_UNSPECIFIED\x10\x00\x12"\n\x1e\x42\x41TCH_OPERATION_TYPE_TERMINATE\x10\x01\x12\x1f\n\x1b\x42\x41TCH_OPERATION_TYPE_CANCEL\x10\x02\x12\x1f\n\x1b\x42\x41TCH_OPERATION_TYPE_SIGNAL\x10\x03\x12\x1f\n\x1b\x42\x41TCH_OPERATION_TYPE_DELETE\x10\x04\x12\x1e\n\x1a\x42\x41TCH_OPERATION_TYPE_RESET\x10\x05*\xa6\x01\n\x13\x42\x61tchOperationState\x12%\n!BATCH_OPERATION_STATE_UNSPECIFIED\x10\x00\x12!\n\x1d\x42\x41TCH_OPERATION_STATE_RUNNING\x10\x01\x12#\n\x1f\x42\x41TCH_OPERATION_STATE_COMPLETED\x10\x02\x12 \n\x1c\x42\x41TCH_OPERATION_STATE_FAILED\x10\x03\x42\x8b\x01\n\x18io.temporal.api.enums.v1B\x13\x42\x61tchOperationProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3' + b'\n+temporal/api/enums/v1/batch_operation.proto\x12\x15temporal.api.enums.v1*\x94\x02\n\x12\x42\x61tchOperationType\x12$\n BATCH_OPERATION_TYPE_UNSPECIFIED\x10\x00\x12"\n\x1e\x42\x41TCH_OPERATION_TYPE_TERMINATE\x10\x01\x12\x1f\n\x1b\x42\x41TCH_OPERATION_TYPE_CANCEL\x10\x02\x12\x1f\n\x1b\x42\x41TCH_OPERATION_TYPE_SIGNAL\x10\x03\x12\x1f\n\x1b\x42\x41TCH_OPERATION_TYPE_DELETE\x10\x04\x12\x1e\n\x1a\x42\x41TCH_OPERATION_TYPE_RESET\x10\x05\x12\x31\n-BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS\x10\x06*\xa6\x01\n\x13\x42\x61tchOperationState\x12%\n!BATCH_OPERATION_STATE_UNSPECIFIED\x10\x00\x12!\n\x1d\x42\x41TCH_OPERATION_STATE_RUNNING\x10\x01\x12#\n\x1f\x42\x41TCH_OPERATION_STATE_COMPLETED\x10\x02\x12 \n\x1c\x42\x41TCH_OPERATION_STATE_FAILED\x10\x03\x42\x8b\x01\n\x18io.temporal.api.enums.v1B\x13\x42\x61tchOperationProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3' ) _BATCHOPERATIONTYPE = DESCRIPTOR.enum_types_by_name["BatchOperationType"] @@ -29,6 +29,7 @@ BATCH_OPERATION_TYPE_SIGNAL = 3 BATCH_OPERATION_TYPE_DELETE = 4 BATCH_OPERATION_TYPE_RESET = 5 +BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS = 6 BATCH_OPERATION_STATE_UNSPECIFIED = 0 BATCH_OPERATION_STATE_RUNNING = 1 BATCH_OPERATION_STATE_COMPLETED = 2 @@ -39,7 +40,7 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\023BatchOperationProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" _BATCHOPERATIONTYPE._serialized_start = 71 - _BATCHOPERATIONTYPE._serialized_end = 296 - _BATCHOPERATIONSTATE._serialized_start = 299 - _BATCHOPERATIONSTATE._serialized_end = 465 + _BATCHOPERATIONTYPE._serialized_end = 347 + _BATCHOPERATIONSTATE._serialized_start = 350 + _BATCHOPERATIONSTATE._serialized_end = 516 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/enums/v1/batch_operation_pb2.pyi b/temporalio/api/enums/v1/batch_operation_pb2.pyi index 5178036db..a8a3deb2e 100644 --- a/temporalio/api/enums/v1/batch_operation_pb2.pyi +++ b/temporalio/api/enums/v1/batch_operation_pb2.pyi @@ -55,6 +55,7 @@ class _BatchOperationTypeEnumTypeWrapper( BATCH_OPERATION_TYPE_SIGNAL: _BatchOperationType.ValueType # 3 BATCH_OPERATION_TYPE_DELETE: _BatchOperationType.ValueType # 4 BATCH_OPERATION_TYPE_RESET: _BatchOperationType.ValueType # 5 + BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS: _BatchOperationType.ValueType # 6 class BatchOperationType( _BatchOperationType, metaclass=_BatchOperationTypeEnumTypeWrapper @@ -66,6 +67,7 @@ BATCH_OPERATION_TYPE_CANCEL: BatchOperationType.ValueType # 2 BATCH_OPERATION_TYPE_SIGNAL: BatchOperationType.ValueType # 3 BATCH_OPERATION_TYPE_DELETE: BatchOperationType.ValueType # 4 BATCH_OPERATION_TYPE_RESET: BatchOperationType.ValueType # 5 +BATCH_OPERATION_TYPE_UPDATE_EXECUTION_OPTIONS: BatchOperationType.ValueType # 6 global___BatchOperationType = BatchOperationType class _BatchOperationState: diff --git a/temporalio/api/enums/v1/common_pb2.py b/temporalio/api/enums/v1/common_pb2.py index 1917902d1..ae7f9a289 100644 --- a/temporalio/api/enums/v1/common_pb2.py +++ b/temporalio/api/enums/v1/common_pb2.py @@ -16,7 +16,7 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n"temporal/api/enums/v1/common.proto\x12\x15temporal.api.enums.v1*_\n\x0c\x45ncodingType\x12\x1d\n\x19\x45NCODING_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45NCODING_TYPE_PROTO3\x10\x01\x12\x16\n\x12\x45NCODING_TYPE_JSON\x10\x02*\x91\x02\n\x10IndexedValueType\x12"\n\x1eINDEXED_VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17INDEXED_VALUE_TYPE_TEXT\x10\x01\x12\x1e\n\x1aINDEXED_VALUE_TYPE_KEYWORD\x10\x02\x12\x1a\n\x16INDEXED_VALUE_TYPE_INT\x10\x03\x12\x1d\n\x19INDEXED_VALUE_TYPE_DOUBLE\x10\x04\x12\x1b\n\x17INDEXED_VALUE_TYPE_BOOL\x10\x05\x12\x1f\n\x1bINDEXED_VALUE_TYPE_DATETIME\x10\x06\x12#\n\x1fINDEXED_VALUE_TYPE_KEYWORD_LIST\x10\x07*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n\rSEVERITY_HIGH\x10\x01\x12\x13\n\x0fSEVERITY_MEDIUM\x10\x02\x12\x10\n\x0cSEVERITY_LOW\x10\x03*\xc2\x01\n\rCallbackState\x12\x1e\n\x1a\x43\x41LLBACK_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x43\x41LLBACK_STATE_STANDBY\x10\x01\x12\x1c\n\x18\x43\x41LLBACK_STATE_SCHEDULED\x10\x02\x12\x1e\n\x1a\x43\x41LLBACK_STATE_BACKING_OFF\x10\x03\x12\x19\n\x15\x43\x41LLBACK_STATE_FAILED\x10\x04\x12\x1c\n\x18\x43\x41LLBACK_STATE_SUCCEEDED\x10\x05*\xd2\x01\n\x1aPendingNexusOperationState\x12-\n)PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED\x10\x00\x12+\n\'PENDING_NEXUS_OPERATION_STATE_SCHEDULED\x10\x01\x12-\n)PENDING_NEXUS_OPERATION_STATE_BACKING_OFF\x10\x02\x12)\n%PENDING_NEXUS_OPERATION_STATE_STARTED\x10\x03*\xce\x02\n\x1fNexusOperationCancellationState\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED\x10\x00\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED\x10\x01\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF\x10\x02\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED\x10\x03\x12-\n)NEXUS_OPERATION_CANCELLATION_STATE_FAILED\x10\x04\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT\x10\x05\x42\x83\x01\n\x18io.temporal.api.enums.v1B\x0b\x43ommonProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3' + b'\n"temporal/api/enums/v1/common.proto\x12\x15temporal.api.enums.v1*_\n\x0c\x45ncodingType\x12\x1d\n\x19\x45NCODING_TYPE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x45NCODING_TYPE_PROTO3\x10\x01\x12\x16\n\x12\x45NCODING_TYPE_JSON\x10\x02*\x91\x02\n\x10IndexedValueType\x12"\n\x1eINDEXED_VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17INDEXED_VALUE_TYPE_TEXT\x10\x01\x12\x1e\n\x1aINDEXED_VALUE_TYPE_KEYWORD\x10\x02\x12\x1a\n\x16INDEXED_VALUE_TYPE_INT\x10\x03\x12\x1d\n\x19INDEXED_VALUE_TYPE_DOUBLE\x10\x04\x12\x1b\n\x17INDEXED_VALUE_TYPE_BOOL\x10\x05\x12\x1f\n\x1bINDEXED_VALUE_TYPE_DATETIME\x10\x06\x12#\n\x1fINDEXED_VALUE_TYPE_KEYWORD_LIST\x10\x07*^\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x11\n\rSEVERITY_HIGH\x10\x01\x12\x13\n\x0fSEVERITY_MEDIUM\x10\x02\x12\x10\n\x0cSEVERITY_LOW\x10\x03*\xde\x01\n\rCallbackState\x12\x1e\n\x1a\x43\x41LLBACK_STATE_UNSPECIFIED\x10\x00\x12\x1a\n\x16\x43\x41LLBACK_STATE_STANDBY\x10\x01\x12\x1c\n\x18\x43\x41LLBACK_STATE_SCHEDULED\x10\x02\x12\x1e\n\x1a\x43\x41LLBACK_STATE_BACKING_OFF\x10\x03\x12\x19\n\x15\x43\x41LLBACK_STATE_FAILED\x10\x04\x12\x1c\n\x18\x43\x41LLBACK_STATE_SUCCEEDED\x10\x05\x12\x1a\n\x16\x43\x41LLBACK_STATE_BLOCKED\x10\x06*\xfd\x01\n\x1aPendingNexusOperationState\x12-\n)PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED\x10\x00\x12+\n\'PENDING_NEXUS_OPERATION_STATE_SCHEDULED\x10\x01\x12-\n)PENDING_NEXUS_OPERATION_STATE_BACKING_OFF\x10\x02\x12)\n%PENDING_NEXUS_OPERATION_STATE_STARTED\x10\x03\x12)\n%PENDING_NEXUS_OPERATION_STATE_BLOCKED\x10\x04*\xfe\x02\n\x1fNexusOperationCancellationState\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED\x10\x00\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED\x10\x01\x12\x32\n.NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF\x10\x02\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED\x10\x03\x12-\n)NEXUS_OPERATION_CANCELLATION_STATE_FAILED\x10\x04\x12\x30\n,NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT\x10\x05\x12.\n*NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED\x10\x06\x42\x83\x01\n\x18io.temporal.api.enums.v1B\x0b\x43ommonProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3' ) _ENCODINGTYPE = DESCRIPTOR.enum_types_by_name["EncodingType"] @@ -60,16 +60,19 @@ CALLBACK_STATE_BACKING_OFF = 3 CALLBACK_STATE_FAILED = 4 CALLBACK_STATE_SUCCEEDED = 5 +CALLBACK_STATE_BLOCKED = 6 PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED = 0 PENDING_NEXUS_OPERATION_STATE_SCHEDULED = 1 PENDING_NEXUS_OPERATION_STATE_BACKING_OFF = 2 PENDING_NEXUS_OPERATION_STATE_STARTED = 3 +PENDING_NEXUS_OPERATION_STATE_BLOCKED = 4 NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED = 0 NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED = 1 NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF = 2 NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED = 3 NEXUS_OPERATION_CANCELLATION_STATE_FAILED = 4 NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT = 5 +NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED = 6 if _descriptor._USE_C_DESCRIPTORS == False: @@ -82,9 +85,9 @@ _SEVERITY._serialized_start = 434 _SEVERITY._serialized_end = 528 _CALLBACKSTATE._serialized_start = 531 - _CALLBACKSTATE._serialized_end = 725 - _PENDINGNEXUSOPERATIONSTATE._serialized_start = 728 - _PENDINGNEXUSOPERATIONSTATE._serialized_end = 938 - _NEXUSOPERATIONCANCELLATIONSTATE._serialized_start = 941 - _NEXUSOPERATIONCANCELLATIONSTATE._serialized_end = 1275 + _CALLBACKSTATE._serialized_end = 753 + _PENDINGNEXUSOPERATIONSTATE._serialized_start = 756 + _PENDINGNEXUSOPERATIONSTATE._serialized_end = 1009 + _NEXUSOPERATIONCANCELLATIONSTATE._serialized_start = 1012 + _NEXUSOPERATIONCANCELLATIONSTATE._serialized_end = 1394 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/enums/v1/common_pb2.pyi b/temporalio/api/enums/v1/common_pb2.pyi index bd615e0b9..d045b1c92 100644 --- a/temporalio/api/enums/v1/common_pb2.pyi +++ b/temporalio/api/enums/v1/common_pb2.pyi @@ -139,6 +139,8 @@ class _CallbackStateEnumTypeWrapper( """Callback has failed.""" CALLBACK_STATE_SUCCEEDED: _CallbackState.ValueType # 5 """Callback has succeeded.""" + CALLBACK_STATE_BLOCKED: _CallbackState.ValueType # 6 + """Callback is blocked (eg: by circuit breaker).""" class CallbackState(_CallbackState, metaclass=_CallbackStateEnumTypeWrapper): """State of a callback.""" @@ -155,6 +157,8 @@ CALLBACK_STATE_FAILED: CallbackState.ValueType # 4 """Callback has failed.""" CALLBACK_STATE_SUCCEEDED: CallbackState.ValueType # 5 """Callback has succeeded.""" +CALLBACK_STATE_BLOCKED: CallbackState.ValueType # 6 +"""Callback is blocked (eg: by circuit breaker).""" global___CallbackState = CallbackState class _PendingNexusOperationState: @@ -180,6 +184,8 @@ class _PendingNexusOperationStateEnumTypeWrapper( """Operation has failed with a retryable error and is backing off before the next attempt.""" PENDING_NEXUS_OPERATION_STATE_STARTED: _PendingNexusOperationState.ValueType # 3 """Operation was started and will complete asynchronously.""" + PENDING_NEXUS_OPERATION_STATE_BLOCKED: _PendingNexusOperationState.ValueType # 4 + """Operation is blocked (eg: by circuit breaker).""" class PendingNexusOperationState( _PendingNexusOperationState, metaclass=_PendingNexusOperationStateEnumTypeWrapper @@ -194,6 +200,8 @@ PENDING_NEXUS_OPERATION_STATE_BACKING_OFF: PendingNexusOperationState.ValueType """Operation has failed with a retryable error and is backing off before the next attempt.""" PENDING_NEXUS_OPERATION_STATE_STARTED: PendingNexusOperationState.ValueType # 3 """Operation was started and will complete asynchronously.""" +PENDING_NEXUS_OPERATION_STATE_BLOCKED: PendingNexusOperationState.ValueType # 4 +"""Operation is blocked (eg: by circuit breaker).""" global___PendingNexusOperationState = PendingNexusOperationState class _NexusOperationCancellationState: @@ -231,6 +239,10 @@ class _NexusOperationCancellationStateEnumTypeWrapper( _NexusOperationCancellationState.ValueType ) # 5 """The associated operation timed out - exceeded the user supplied schedule-to-close timeout.""" + NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED: ( + _NexusOperationCancellationState.ValueType + ) # 6 + """Cancellation request is blocked (eg: by circuit breaker).""" class NexusOperationCancellationState( _NexusOperationCancellationState, @@ -262,4 +274,8 @@ NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: ( NexusOperationCancellationState.ValueType ) # 5 """The associated operation timed out - exceeded the user supplied schedule-to-close timeout.""" +NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED: ( + NexusOperationCancellationState.ValueType +) # 6 +"""Cancellation request is blocked (eg: by circuit breaker).""" global___NexusOperationCancellationState = NexusOperationCancellationState diff --git a/temporalio/api/enums/v1/deployment_pb2.py b/temporalio/api/enums/v1/deployment_pb2.py new file mode 100644 index 000000000..2aeaa22ff --- /dev/null +++ b/temporalio/api/enums/v1/deployment_pb2.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: temporal/api/enums/v1/deployment.proto +"""Generated protocol buffer code.""" + +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import enum_type_wrapper + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b"\n&temporal/api/enums/v1/deployment.proto\x12\x15temporal.api.enums.v1*\xc4\x01\n\x16\x44\x65ploymentReachability\x12'\n#DEPLOYMENT_REACHABILITY_UNSPECIFIED\x10\x00\x12%\n!DEPLOYMENT_REACHABILITY_REACHABLE\x10\x01\x12\x31\n-DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY\x10\x02\x12'\n#DEPLOYMENT_REACHABILITY_UNREACHABLE\x10\x03*\x8b\x01\n\x15VersionDrainageStatus\x12'\n#VERSION_DRAINAGE_STATUS_UNSPECIFIED\x10\x00\x12$\n VERSION_DRAINAGE_STATUS_DRAINING\x10\x01\x12#\n\x1fVERSION_DRAINAGE_STATUS_DRAINED\x10\x02*\x8c\x01\n\x14WorkerVersioningMode\x12&\n\"WORKER_VERSIONING_MODE_UNSPECIFIED\x10\x00\x12&\n\"WORKER_VERSIONING_MODE_UNVERSIONED\x10\x01\x12$\n WORKER_VERSIONING_MODE_VERSIONED\x10\x02\x42\x87\x01\n\x18io.temporal.api.enums.v1B\x0f\x44\x65ploymentProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" +) + +_DEPLOYMENTREACHABILITY = DESCRIPTOR.enum_types_by_name["DeploymentReachability"] +DeploymentReachability = enum_type_wrapper.EnumTypeWrapper(_DEPLOYMENTREACHABILITY) +_VERSIONDRAINAGESTATUS = DESCRIPTOR.enum_types_by_name["VersionDrainageStatus"] +VersionDrainageStatus = enum_type_wrapper.EnumTypeWrapper(_VERSIONDRAINAGESTATUS) +_WORKERVERSIONINGMODE = DESCRIPTOR.enum_types_by_name["WorkerVersioningMode"] +WorkerVersioningMode = enum_type_wrapper.EnumTypeWrapper(_WORKERVERSIONINGMODE) +DEPLOYMENT_REACHABILITY_UNSPECIFIED = 0 +DEPLOYMENT_REACHABILITY_REACHABLE = 1 +DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY = 2 +DEPLOYMENT_REACHABILITY_UNREACHABLE = 3 +VERSION_DRAINAGE_STATUS_UNSPECIFIED = 0 +VERSION_DRAINAGE_STATUS_DRAINING = 1 +VERSION_DRAINAGE_STATUS_DRAINED = 2 +WORKER_VERSIONING_MODE_UNSPECIFIED = 0 +WORKER_VERSIONING_MODE_UNVERSIONED = 1 +WORKER_VERSIONING_MODE_VERSIONED = 2 + + +if _descriptor._USE_C_DESCRIPTORS == False: + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\017DeploymentProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" + _DEPLOYMENTREACHABILITY._serialized_start = 66 + _DEPLOYMENTREACHABILITY._serialized_end = 262 + _VERSIONDRAINAGESTATUS._serialized_start = 265 + _VERSIONDRAINAGESTATUS._serialized_end = 404 + _WORKERVERSIONINGMODE._serialized_start = 407 + _WORKERVERSIONINGMODE._serialized_end = 547 +# @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/enums/v1/deployment_pb2.pyi b/temporalio/api/enums/v1/deployment_pb2.pyi new file mode 100644 index 000000000..37a579f98 --- /dev/null +++ b/temporalio/api/enums/v1/deployment_pb2.pyi @@ -0,0 +1,209 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +The MIT License + +Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +""" + +import builtins +import sys +import typing + +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _DeploymentReachability: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _DeploymentReachabilityEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _DeploymentReachability.ValueType + ], + builtins.type, +): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + DEPLOYMENT_REACHABILITY_UNSPECIFIED: _DeploymentReachability.ValueType # 0 + """Reachability level is not specified.""" + DEPLOYMENT_REACHABILITY_REACHABLE: _DeploymentReachability.ValueType # 1 + """The deployment is reachable by new and/or open workflows. The deployment cannot be + decommissioned safely. + """ + DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY: ( + _DeploymentReachability.ValueType + ) # 2 + """The deployment is not reachable by new or open workflows, but might be still needed by + Queries sent to closed workflows. The deployment can be decommissioned safely if user does + not query closed workflows. + """ + DEPLOYMENT_REACHABILITY_UNREACHABLE: _DeploymentReachability.ValueType # 3 + """The deployment is not reachable by any workflow because all the workflows who needed this + deployment went out of retention period. The deployment can be decommissioned safely. + """ + +class DeploymentReachability( + _DeploymentReachability, metaclass=_DeploymentReachabilityEnumTypeWrapper +): + """Specify the reachability level for a deployment so users can decide if it is time to + decommission the deployment. + """ + +DEPLOYMENT_REACHABILITY_UNSPECIFIED: DeploymentReachability.ValueType # 0 +"""Reachability level is not specified.""" +DEPLOYMENT_REACHABILITY_REACHABLE: DeploymentReachability.ValueType # 1 +"""The deployment is reachable by new and/or open workflows. The deployment cannot be +decommissioned safely. +""" +DEPLOYMENT_REACHABILITY_CLOSED_WORKFLOWS_ONLY: DeploymentReachability.ValueType # 2 +"""The deployment is not reachable by new or open workflows, but might be still needed by +Queries sent to closed workflows. The deployment can be decommissioned safely if user does +not query closed workflows. +""" +DEPLOYMENT_REACHABILITY_UNREACHABLE: DeploymentReachability.ValueType # 3 +"""The deployment is not reachable by any workflow because all the workflows who needed this +deployment went out of retention period. The deployment can be decommissioned safely. +""" +global___DeploymentReachability = DeploymentReachability + +class _VersionDrainageStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _VersionDrainageStatusEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _VersionDrainageStatus.ValueType + ], + builtins.type, +): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + VERSION_DRAINAGE_STATUS_UNSPECIFIED: _VersionDrainageStatus.ValueType # 0 + """Drainage Status is not specified.""" + VERSION_DRAINAGE_STATUS_DRAINING: _VersionDrainageStatus.ValueType # 1 + """The Worker Deployment Version is not used by new workflows but is still used by + open pinned workflows. The version cannot be decommissioned safely. + """ + VERSION_DRAINAGE_STATUS_DRAINED: _VersionDrainageStatus.ValueType # 2 + """The Worker Deployment Version is not used by new or open workflows, but might be still needed by + Queries sent to closed workflows. The version can be decommissioned safely if user does + not query closed workflows. If the user does query closed workflows for some time x after + workflows are closed, they should decommission the version after it has been drained for that duration. + """ + +class VersionDrainageStatus( + _VersionDrainageStatus, metaclass=_VersionDrainageStatusEnumTypeWrapper +): + """(-- api-linter: core::0216::synonyms=disabled + aip.dev/not-precedent: Call this status because it is . --) + Specify the drainage status for a Worker Deployment Version so users can decide whether they + can safely decommission the version. + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ + +VERSION_DRAINAGE_STATUS_UNSPECIFIED: VersionDrainageStatus.ValueType # 0 +"""Drainage Status is not specified.""" +VERSION_DRAINAGE_STATUS_DRAINING: VersionDrainageStatus.ValueType # 1 +"""The Worker Deployment Version is not used by new workflows but is still used by +open pinned workflows. The version cannot be decommissioned safely. +""" +VERSION_DRAINAGE_STATUS_DRAINED: VersionDrainageStatus.ValueType # 2 +"""The Worker Deployment Version is not used by new or open workflows, but might be still needed by +Queries sent to closed workflows. The version can be decommissioned safely if user does +not query closed workflows. If the user does query closed workflows for some time x after +workflows are closed, they should decommission the version after it has been drained for that duration. +""" +global___VersionDrainageStatus = VersionDrainageStatus + +class _WorkerVersioningMode: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _WorkerVersioningModeEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _WorkerVersioningMode.ValueType + ], + builtins.type, +): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + WORKER_VERSIONING_MODE_UNSPECIFIED: _WorkerVersioningMode.ValueType # 0 + WORKER_VERSIONING_MODE_UNVERSIONED: _WorkerVersioningMode.ValueType # 1 + """Workers with this mode are not distinguished from each other for task routing, even if they + have different Build IDs. + Workflows processed by this worker will be unversioned and user needs to use Patching to keep + the new code compatible with prior versions. + This mode is recommended to be used along with Rolling Upgrade deployment strategies. + Workers with this mode are represented by the special string `__unversioned__` in the APIs. + """ + WORKER_VERSIONING_MODE_VERSIONED: _WorkerVersioningMode.ValueType # 2 + """Workers with this mode are part of a Worker Deployment Version which is identified as + ".". Such workers are called "versioned" as opposed to + "unversioned". + Each Deployment Version is distinguished from other Versions for task routing and users can + configure Temporal Server to send tasks to a particular Version (see + `WorkerDeploymentInfo.routing_config`). This mode is the best option for Blue/Green and + Rainbow strategies (but typically not suitable for Rolling upgrades.) + Workflow Versioning Behaviors are enabled in this mode: each workflow type must choose + between the Pinned and AutoUpgrade behaviors. Depending on the chosen behavior, the user may + or may not need to use Patching to keep the new code compatible with prior versions. (see + VersioningBehavior enum.) + """ + +class WorkerVersioningMode( + _WorkerVersioningMode, metaclass=_WorkerVersioningModeEnumTypeWrapper +): + """Versioning Mode of a worker is set by the app developer in the worker code, and specifies the + behavior of the system in the following related aspects: + - Whether or not Temporal Server considers this worker's version (Build ID) when dispatching + tasks to it. + - Whether or not the workflows processed by this worker are versioned using the worker's version. + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ + +WORKER_VERSIONING_MODE_UNSPECIFIED: WorkerVersioningMode.ValueType # 0 +WORKER_VERSIONING_MODE_UNVERSIONED: WorkerVersioningMode.ValueType # 1 +"""Workers with this mode are not distinguished from each other for task routing, even if they +have different Build IDs. +Workflows processed by this worker will be unversioned and user needs to use Patching to keep +the new code compatible with prior versions. +This mode is recommended to be used along with Rolling Upgrade deployment strategies. +Workers with this mode are represented by the special string `__unversioned__` in the APIs. +""" +WORKER_VERSIONING_MODE_VERSIONED: WorkerVersioningMode.ValueType # 2 +"""Workers with this mode are part of a Worker Deployment Version which is identified as +".". Such workers are called "versioned" as opposed to +"unversioned". +Each Deployment Version is distinguished from other Versions for task routing and users can +configure Temporal Server to send tasks to a particular Version (see +`WorkerDeploymentInfo.routing_config`). This mode is the best option for Blue/Green and +Rainbow strategies (but typically not suitable for Rolling upgrades.) +Workflow Versioning Behaviors are enabled in this mode: each workflow type must choose +between the Pinned and AutoUpgrade behaviors. Depending on the chosen behavior, the user may +or may not need to use Patching to keep the new code compatible with prior versions. (see +VersioningBehavior enum.) +""" +global___WorkerVersioningMode = WorkerVersioningMode diff --git a/temporalio/api/enums/v1/event_type_pb2.py b/temporalio/api/enums/v1/event_type_pb2.py index 01b385d3b..1147899fd 100644 --- a/temporalio/api/enums/v1/event_type_pb2.py +++ b/temporalio/api/enums/v1/event_type_pb2.py @@ -16,7 +16,7 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/enums/v1/event_type.proto\x12\x15temporal.api.enums.v1*\xe8\x13\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12)\n%EVENT_TYPE_WORKFLOW_EXECUTION_STARTED\x10\x01\x12+\n\'EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED\x10\x02\x12(\n$EVENT_TYPE_WORKFLOW_EXECUTION_FAILED\x10\x03\x12+\n\'EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT\x10\x04\x12&\n"EVENT_TYPE_WORKFLOW_TASK_SCHEDULED\x10\x05\x12$\n EVENT_TYPE_WORKFLOW_TASK_STARTED\x10\x06\x12&\n"EVENT_TYPE_WORKFLOW_TASK_COMPLETED\x10\x07\x12&\n"EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT\x10\x08\x12#\n\x1f\x45VENT_TYPE_WORKFLOW_TASK_FAILED\x10\t\x12&\n"EVENT_TYPE_ACTIVITY_TASK_SCHEDULED\x10\n\x12$\n EVENT_TYPE_ACTIVITY_TASK_STARTED\x10\x0b\x12&\n"EVENT_TYPE_ACTIVITY_TASK_COMPLETED\x10\x0c\x12#\n\x1f\x45VENT_TYPE_ACTIVITY_TASK_FAILED\x10\r\x12&\n"EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT\x10\x0e\x12-\n)EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED\x10\x0f\x12%\n!EVENT_TYPE_ACTIVITY_TASK_CANCELED\x10\x10\x12\x1c\n\x18\x45VENT_TYPE_TIMER_STARTED\x10\x11\x12\x1a\n\x16\x45VENT_TYPE_TIMER_FIRED\x10\x12\x12\x1d\n\x19\x45VENT_TYPE_TIMER_CANCELED\x10\x13\x12\x32\n.EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED\x10\x14\x12*\n&EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED\x10\x15\x12\x43\n?EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED\x10\x16\x12@\n= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _NexusHandlerErrorRetryBehavior: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _NexusHandlerErrorRetryBehaviorEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _NexusHandlerErrorRetryBehavior.ValueType + ], + builtins.type, +): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED: ( + _NexusHandlerErrorRetryBehavior.ValueType + ) # 0 + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE: ( + _NexusHandlerErrorRetryBehavior.ValueType + ) # 1 + """A handler error is explicitly marked as retryable.""" + NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE: ( + _NexusHandlerErrorRetryBehavior.ValueType + ) # 2 + """A handler error is explicitly marked as non-retryable.""" + +class NexusHandlerErrorRetryBehavior( + _NexusHandlerErrorRetryBehavior, + metaclass=_NexusHandlerErrorRetryBehaviorEnumTypeWrapper, +): + """NexusHandlerErrorRetryBehavior allows nexus handlers to explicity set the retry behavior of a HandlerError. If not + specified, retry behavior is determined from the error type. For example internal errors are not retryable by default + unless specified otherwise. + """ + +NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_UNSPECIFIED: ( + NexusHandlerErrorRetryBehavior.ValueType +) # 0 +NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_RETRYABLE: ( + NexusHandlerErrorRetryBehavior.ValueType +) # 1 +"""A handler error is explicitly marked as retryable.""" +NEXUS_HANDLER_ERROR_RETRY_BEHAVIOR_NON_RETRYABLE: ( + NexusHandlerErrorRetryBehavior.ValueType +) # 2 +"""A handler error is explicitly marked as non-retryable.""" +global___NexusHandlerErrorRetryBehavior = NexusHandlerErrorRetryBehavior diff --git a/temporalio/api/enums/v1/reset_pb2.py b/temporalio/api/enums/v1/reset_pb2.py index e81e90a8b..00025a522 100644 --- a/temporalio/api/enums/v1/reset_pb2.py +++ b/temporalio/api/enums/v1/reset_pb2.py @@ -16,7 +16,7 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n!temporal/api/enums/v1/reset.proto\x12\x15temporal.api.enums.v1*\xb9\x01\n\x17ResetReapplyExcludeType\x12*\n&RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED\x10\x00\x12%\n!RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL\x10\x01\x12%\n!RESET_REAPPLY_EXCLUDE_TYPE_UPDATE\x10\x02\x12$\n RESET_REAPPLY_EXCLUDE_TYPE_NEXUS\x10\x03*\x97\x01\n\x10ResetReapplyType\x12"\n\x1eRESET_REAPPLY_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19RESET_REAPPLY_TYPE_SIGNAL\x10\x01\x12\x1b\n\x17RESET_REAPPLY_TYPE_NONE\x10\x02\x12#\n\x1fRESET_REAPPLY_TYPE_ALL_ELIGIBLE\x10\x03*n\n\tResetType\x12\x1a\n\x16RESET_TYPE_UNSPECIFIED\x10\x00\x12"\n\x1eRESET_TYPE_FIRST_WORKFLOW_TASK\x10\x01\x12!\n\x1dRESET_TYPE_LAST_WORKFLOW_TASK\x10\x02\x42\x82\x01\n\x18io.temporal.api.enums.v1B\nResetProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3' + b'\n!temporal/api/enums/v1/reset.proto\x12\x15temporal.api.enums.v1*\xec\x01\n\x17ResetReapplyExcludeType\x12*\n&RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED\x10\x00\x12%\n!RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL\x10\x01\x12%\n!RESET_REAPPLY_EXCLUDE_TYPE_UPDATE\x10\x02\x12$\n RESET_REAPPLY_EXCLUDE_TYPE_NEXUS\x10\x03\x12\x31\n)RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST\x10\x04\x1a\x02\x08\x01*\x97\x01\n\x10ResetReapplyType\x12"\n\x1eRESET_REAPPLY_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19RESET_REAPPLY_TYPE_SIGNAL\x10\x01\x12\x1b\n\x17RESET_REAPPLY_TYPE_NONE\x10\x02\x12#\n\x1fRESET_REAPPLY_TYPE_ALL_ELIGIBLE\x10\x03*n\n\tResetType\x12\x1a\n\x16RESET_TYPE_UNSPECIFIED\x10\x00\x12"\n\x1eRESET_TYPE_FIRST_WORKFLOW_TASK\x10\x01\x12!\n\x1dRESET_TYPE_LAST_WORKFLOW_TASK\x10\x02\x42\x82\x01\n\x18io.temporal.api.enums.v1B\nResetProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3' ) _RESETREAPPLYEXCLUDETYPE = DESCRIPTOR.enum_types_by_name["ResetReapplyExcludeType"] @@ -29,6 +29,7 @@ RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL = 1 RESET_REAPPLY_EXCLUDE_TYPE_UPDATE = 2 RESET_REAPPLY_EXCLUDE_TYPE_NEXUS = 3 +RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST = 4 RESET_REAPPLY_TYPE_UNSPECIFIED = 0 RESET_REAPPLY_TYPE_SIGNAL = 1 RESET_REAPPLY_TYPE_NONE = 2 @@ -41,10 +42,16 @@ if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.enums.v1B\nResetProtoP\001Z!go.temporal.io/api/enums/v1;enums\252\002\027Temporalio.Api.Enums.V1\352\002\032Temporalio::Api::Enums::V1" + _RESETREAPPLYEXCLUDETYPE.values_by_name[ + "RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST" + ]._options = None + _RESETREAPPLYEXCLUDETYPE.values_by_name[ + "RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST" + ]._serialized_options = b"\010\001" _RESETREAPPLYEXCLUDETYPE._serialized_start = 61 - _RESETREAPPLYEXCLUDETYPE._serialized_end = 246 - _RESETREAPPLYTYPE._serialized_start = 249 - _RESETREAPPLYTYPE._serialized_end = 400 - _RESETTYPE._serialized_start = 402 - _RESETTYPE._serialized_end = 512 + _RESETREAPPLYEXCLUDETYPE._serialized_end = 297 + _RESETREAPPLYTYPE._serialized_start = 300 + _RESETREAPPLYTYPE._serialized_end = 451 + _RESETTYPE._serialized_start = 453 + _RESETTYPE._serialized_end = 563 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/enums/v1/reset_pb2.pyi b/temporalio/api/enums/v1/reset_pb2.pyi index f23ccff27..952efae97 100644 --- a/temporalio/api/enums/v1/reset_pb2.pyi +++ b/temporalio/api/enums/v1/reset_pb2.pyi @@ -56,6 +56,8 @@ class _ResetReapplyExcludeTypeEnumTypeWrapper( """Exclude updates when reapplying events beyond the reset point.""" RESET_REAPPLY_EXCLUDE_TYPE_NEXUS: _ResetReapplyExcludeType.ValueType # 3 """Exclude nexus events when reapplying events beyond the reset point.""" + RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST: _ResetReapplyExcludeType.ValueType # 4 + """Deprecated, unimplemented option.""" class ResetReapplyExcludeType( _ResetReapplyExcludeType, metaclass=_ResetReapplyExcludeTypeEnumTypeWrapper @@ -69,6 +71,8 @@ RESET_REAPPLY_EXCLUDE_TYPE_UPDATE: ResetReapplyExcludeType.ValueType # 2 """Exclude updates when reapplying events beyond the reset point.""" RESET_REAPPLY_EXCLUDE_TYPE_NEXUS: ResetReapplyExcludeType.ValueType # 3 """Exclude nexus events when reapplying events beyond the reset point.""" +RESET_REAPPLY_EXCLUDE_TYPE_CANCEL_REQUEST: ResetReapplyExcludeType.ValueType # 4 +"""Deprecated, unimplemented option.""" global___ResetReapplyExcludeType = ResetReapplyExcludeType class _ResetReapplyType: diff --git a/temporalio/api/enums/v1/workflow_pb2.py b/temporalio/api/enums/v1/workflow_pb2.py index 6fda3ea74..19cc78887 100644 --- a/temporalio/api/enums/v1/workflow_pb2.py +++ b/temporalio/api/enums/v1/workflow_pb2.py @@ -16,7 +16,7 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b"\n$temporal/api/enums/v1/workflow.proto\x12\x15temporal.api.enums.v1*\x8b\x02\n\x15WorkflowIdReusePolicy\x12(\n$WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED\x10\x00\x12,\n(WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE\x10\x01\x12\x38\n4WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY\x10\x02\x12-\n)WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE\x10\x03\x12\x31\n-WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING\x10\x04*\xcf\x01\n\x18WorkflowIdConflictPolicy\x12+\n'WORKFLOW_ID_CONFLICT_POLICY_UNSPECIFIED\x10\x00\x12$\n WORKFLOW_ID_CONFLICT_POLICY_FAIL\x10\x01\x12,\n(WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING\x10\x02\x12\x32\n.WORKFLOW_ID_CONFLICT_POLICY_TERMINATE_EXISTING\x10\x03*\xa4\x01\n\x11ParentClosePolicy\x12#\n\x1fPARENT_CLOSE_POLICY_UNSPECIFIED\x10\x00\x12!\n\x1dPARENT_CLOSE_POLICY_TERMINATE\x10\x01\x12\x1f\n\x1bPARENT_CLOSE_POLICY_ABANDON\x10\x02\x12&\n\"PARENT_CLOSE_POLICY_REQUEST_CANCEL\x10\x03*\xbd\x01\n\x16\x43ontinueAsNewInitiator\x12)\n%CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED\x10\x00\x12&\n\"CONTINUE_AS_NEW_INITIATOR_WORKFLOW\x10\x01\x12#\n\x1f\x43ONTINUE_AS_NEW_INITIATOR_RETRY\x10\x02\x12+\n'CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE\x10\x03*\xe5\x02\n\x17WorkflowExecutionStatus\x12)\n%WORKFLOW_EXECUTION_STATUS_UNSPECIFIED\x10\x00\x12%\n!WORKFLOW_EXECUTION_STATUS_RUNNING\x10\x01\x12'\n#WORKFLOW_EXECUTION_STATUS_COMPLETED\x10\x02\x12$\n WORKFLOW_EXECUTION_STATUS_FAILED\x10\x03\x12&\n\"WORKFLOW_EXECUTION_STATUS_CANCELED\x10\x04\x12(\n$WORKFLOW_EXECUTION_STATUS_TERMINATED\x10\x05\x12.\n*WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW\x10\x06\x12'\n#WORKFLOW_EXECUTION_STATUS_TIMED_OUT\x10\x07*\xb5\x01\n\x14PendingActivityState\x12&\n\"PENDING_ACTIVITY_STATE_UNSPECIFIED\x10\x00\x12$\n PENDING_ACTIVITY_STATE_SCHEDULED\x10\x01\x12\"\n\x1ePENDING_ACTIVITY_STATE_STARTED\x10\x02\x12+\n'PENDING_ACTIVITY_STATE_CANCEL_REQUESTED\x10\x03*\x9b\x01\n\x18PendingWorkflowTaskState\x12+\n'PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED\x10\x00\x12)\n%PENDING_WORKFLOW_TASK_STATE_SCHEDULED\x10\x01\x12'\n#PENDING_WORKFLOW_TASK_STATE_STARTED\x10\x02*\x97\x01\n\x16HistoryEventFilterType\x12)\n%HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED\x10\x00\x12'\n#HISTORY_EVENT_FILTER_TYPE_ALL_EVENT\x10\x01\x12)\n%HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT\x10\x02*\x9f\x02\n\nRetryState\x12\x1b\n\x17RETRY_STATE_UNSPECIFIED\x10\x00\x12\x1b\n\x17RETRY_STATE_IN_PROGRESS\x10\x01\x12%\n!RETRY_STATE_NON_RETRYABLE_FAILURE\x10\x02\x12\x17\n\x13RETRY_STATE_TIMEOUT\x10\x03\x12(\n$RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED\x10\x04\x12$\n RETRY_STATE_RETRY_POLICY_NOT_SET\x10\x05\x12%\n!RETRY_STATE_INTERNAL_SERVER_ERROR\x10\x06\x12 \n\x1cRETRY_STATE_CANCEL_REQUESTED\x10\x07*\xb0\x01\n\x0bTimeoutType\x12\x1c\n\x18TIMEOUT_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bTIMEOUT_TYPE_START_TO_CLOSE\x10\x01\x12\"\n\x1eTIMEOUT_TYPE_SCHEDULE_TO_START\x10\x02\x12\"\n\x1eTIMEOUT_TYPE_SCHEDULE_TO_CLOSE\x10\x03\x12\x1a\n\x16TIMEOUT_TYPE_HEARTBEAT\x10\x04\x42\x85\x01\n\x18io.temporal.api.enums.v1B\rWorkflowProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" + b"\n$temporal/api/enums/v1/workflow.proto\x12\x15temporal.api.enums.v1*\x8b\x02\n\x15WorkflowIdReusePolicy\x12(\n$WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED\x10\x00\x12,\n(WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE\x10\x01\x12\x38\n4WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY\x10\x02\x12-\n)WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE\x10\x03\x12\x31\n-WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING\x10\x04*\xcf\x01\n\x18WorkflowIdConflictPolicy\x12+\n'WORKFLOW_ID_CONFLICT_POLICY_UNSPECIFIED\x10\x00\x12$\n WORKFLOW_ID_CONFLICT_POLICY_FAIL\x10\x01\x12,\n(WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING\x10\x02\x12\x32\n.WORKFLOW_ID_CONFLICT_POLICY_TERMINATE_EXISTING\x10\x03*\xa4\x01\n\x11ParentClosePolicy\x12#\n\x1fPARENT_CLOSE_POLICY_UNSPECIFIED\x10\x00\x12!\n\x1dPARENT_CLOSE_POLICY_TERMINATE\x10\x01\x12\x1f\n\x1bPARENT_CLOSE_POLICY_ABANDON\x10\x02\x12&\n\"PARENT_CLOSE_POLICY_REQUEST_CANCEL\x10\x03*\xbd\x01\n\x16\x43ontinueAsNewInitiator\x12)\n%CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED\x10\x00\x12&\n\"CONTINUE_AS_NEW_INITIATOR_WORKFLOW\x10\x01\x12#\n\x1f\x43ONTINUE_AS_NEW_INITIATOR_RETRY\x10\x02\x12+\n'CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE\x10\x03*\xe5\x02\n\x17WorkflowExecutionStatus\x12)\n%WORKFLOW_EXECUTION_STATUS_UNSPECIFIED\x10\x00\x12%\n!WORKFLOW_EXECUTION_STATUS_RUNNING\x10\x01\x12'\n#WORKFLOW_EXECUTION_STATUS_COMPLETED\x10\x02\x12$\n WORKFLOW_EXECUTION_STATUS_FAILED\x10\x03\x12&\n\"WORKFLOW_EXECUTION_STATUS_CANCELED\x10\x04\x12(\n$WORKFLOW_EXECUTION_STATUS_TERMINATED\x10\x05\x12.\n*WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW\x10\x06\x12'\n#WORKFLOW_EXECUTION_STATUS_TIMED_OUT\x10\x07*\xb5\x01\n\x14PendingActivityState\x12&\n\"PENDING_ACTIVITY_STATE_UNSPECIFIED\x10\x00\x12$\n PENDING_ACTIVITY_STATE_SCHEDULED\x10\x01\x12\"\n\x1ePENDING_ACTIVITY_STATE_STARTED\x10\x02\x12+\n'PENDING_ACTIVITY_STATE_CANCEL_REQUESTED\x10\x03*\x9b\x01\n\x18PendingWorkflowTaskState\x12+\n'PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED\x10\x00\x12)\n%PENDING_WORKFLOW_TASK_STATE_SCHEDULED\x10\x01\x12'\n#PENDING_WORKFLOW_TASK_STATE_STARTED\x10\x02*\x97\x01\n\x16HistoryEventFilterType\x12)\n%HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED\x10\x00\x12'\n#HISTORY_EVENT_FILTER_TYPE_ALL_EVENT\x10\x01\x12)\n%HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT\x10\x02*\x9f\x02\n\nRetryState\x12\x1b\n\x17RETRY_STATE_UNSPECIFIED\x10\x00\x12\x1b\n\x17RETRY_STATE_IN_PROGRESS\x10\x01\x12%\n!RETRY_STATE_NON_RETRYABLE_FAILURE\x10\x02\x12\x17\n\x13RETRY_STATE_TIMEOUT\x10\x03\x12(\n$RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED\x10\x04\x12$\n RETRY_STATE_RETRY_POLICY_NOT_SET\x10\x05\x12%\n!RETRY_STATE_INTERNAL_SERVER_ERROR\x10\x06\x12 \n\x1cRETRY_STATE_CANCEL_REQUESTED\x10\x07*\xb0\x01\n\x0bTimeoutType\x12\x1c\n\x18TIMEOUT_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bTIMEOUT_TYPE_START_TO_CLOSE\x10\x01\x12\"\n\x1eTIMEOUT_TYPE_SCHEDULE_TO_START\x10\x02\x12\"\n\x1eTIMEOUT_TYPE_SCHEDULE_TO_CLOSE\x10\x03\x12\x1a\n\x16TIMEOUT_TYPE_HEARTBEAT\x10\x04*\x7f\n\x12VersioningBehavior\x12#\n\x1fVERSIONING_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x1e\n\x1aVERSIONING_BEHAVIOR_PINNED\x10\x01\x12$\n VERSIONING_BEHAVIOR_AUTO_UPGRADE\x10\x02\x42\x85\x01\n\x18io.temporal.api.enums.v1B\rWorkflowProtoP\x01Z!go.temporal.io/api/enums/v1;enums\xaa\x02\x17Temporalio.Api.Enums.V1\xea\x02\x1aTemporalio::Api::Enums::V1b\x06proto3" ) _WORKFLOWIDREUSEPOLICY = DESCRIPTOR.enum_types_by_name["WorkflowIdReusePolicy"] @@ -39,6 +39,8 @@ RetryState = enum_type_wrapper.EnumTypeWrapper(_RETRYSTATE) _TIMEOUTTYPE = DESCRIPTOR.enum_types_by_name["TimeoutType"] TimeoutType = enum_type_wrapper.EnumTypeWrapper(_TIMEOUTTYPE) +_VERSIONINGBEHAVIOR = DESCRIPTOR.enum_types_by_name["VersioningBehavior"] +VersioningBehavior = enum_type_wrapper.EnumTypeWrapper(_VERSIONINGBEHAVIOR) WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED = 0 WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1 WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2 @@ -87,6 +89,9 @@ TIMEOUT_TYPE_SCHEDULE_TO_START = 2 TIMEOUT_TYPE_SCHEDULE_TO_CLOSE = 3 TIMEOUT_TYPE_HEARTBEAT = 4 +VERSIONING_BEHAVIOR_UNSPECIFIED = 0 +VERSIONING_BEHAVIOR_PINNED = 1 +VERSIONING_BEHAVIOR_AUTO_UPGRADE = 2 if _descriptor._USE_C_DESCRIPTORS == False: @@ -112,4 +117,6 @@ _RETRYSTATE._serialized_end = 2046 _TIMEOUTTYPE._serialized_start = 2049 _TIMEOUTTYPE._serialized_end = 2225 + _VERSIONINGBEHAVIOR._serialized_start = 2227 + _VERSIONINGBEHAVIOR._serialized_end = 2354 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/enums/v1/workflow_pb2.pyi b/temporalio/api/enums/v1/workflow_pb2.pyi index 9df29d2aa..204d9ac35 100644 --- a/temporalio/api/enums/v1/workflow_pb2.pyi +++ b/temporalio/api/enums/v1/workflow_pb2.pyi @@ -73,7 +73,7 @@ class WorkflowIdReusePolicy( _WorkflowIdReusePolicy, metaclass=_WorkflowIdReusePolicyEnumTypeWrapper ): """Defines whether to allow re-using a workflow id from a previously *closed* workflow. - If the request is denied, a `WorkflowExecutionAlreadyStartedFailure` is returned. + If the request is denied, the server returns a `WorkflowExecutionAlreadyStartedFailure` error. See `WorkflowIdConflictPolicy` for handling workflow id duplication with a *running* workflow. """ @@ -369,3 +369,99 @@ TIMEOUT_TYPE_SCHEDULE_TO_START: TimeoutType.ValueType # 2 TIMEOUT_TYPE_SCHEDULE_TO_CLOSE: TimeoutType.ValueType # 3 TIMEOUT_TYPE_HEARTBEAT: TimeoutType.ValueType # 4 global___TimeoutType = TimeoutType + +class _VersioningBehavior: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _VersioningBehaviorEnumTypeWrapper( + google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ + _VersioningBehavior.ValueType + ], + builtins.type, +): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + VERSIONING_BEHAVIOR_UNSPECIFIED: _VersioningBehavior.ValueType # 0 + """Workflow execution does not have a Versioning Behavior and is called Unversioned. This is the + legacy behavior. An Unversioned workflow's task can go to any Unversioned worker (see + `WorkerVersioningMode`.) + User needs to use Patching to keep the new code compatible with prior versions when dealing + with Unversioned workflows. + """ + VERSIONING_BEHAVIOR_PINNED: _VersioningBehavior.ValueType # 1 + """Workflow will start on the Current Deployment Version of its Task Queue, and then + will be pinned to that same Deployment Version until completion (the Version that + this Workflow is pinned to is specified in `versioning_info.version`). + This behavior eliminates most of compatibility concerns users face when changing their code. + Patching is not needed when pinned workflows code change. + Can be overridden explicitly via `UpdateWorkflowExecutionOptions` API to move the + execution to another Deployment Version. + Activities of `PINNED` workflows are sent to the same Deployment Version. Exception to this + would be when the activity Task Queue workers are not present in the workflow's Deployment + Version, in which case the activity will be sent to the Current Deployment Version of its own + task queue. + """ + VERSIONING_BEHAVIOR_AUTO_UPGRADE: _VersioningBehavior.ValueType # 2 + """Workflow will automatically move to the Current Deployment Version of its Task Queue when the + next workflow task is dispatched. + AutoUpgrade behavior is suitable for long-running workflows as it allows them to move to the + latest Deployment Version, but the user still needs to use Patching to keep the new code + compatible with prior versions for changed workflow types. + Activities of `AUTO_UPGRADE` workflows are sent to the Deployment Version of the workflow + execution (as specified in versioning_info.version based on the last completed + workflow task). Exception to this would be when the activity Task Queue workers are not + present in the workflow's Deployment Version, in which case, the activity will be sent to a + different Deployment Version according to the Current Deployment Version of its own task + queue. + Workflows stuck on a backlogged activity will still auto-upgrade if the Current Deployment + Version of their Task Queue changes, without having to wait for the backlogged activity to + complete on the old Version. + """ + +class VersioningBehavior( + _VersioningBehavior, metaclass=_VersioningBehaviorEnumTypeWrapper +): + """Versioning Behavior specifies if and how a workflow execution moves between Worker Deployment + Versions. The Versioning Behavior of a workflow execution is typically specified by the worker + who completes the first task of the execution, but is also overridable manually for new and + existing workflows (see VersioningOverride). + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ + +VERSIONING_BEHAVIOR_UNSPECIFIED: VersioningBehavior.ValueType # 0 +"""Workflow execution does not have a Versioning Behavior and is called Unversioned. This is the +legacy behavior. An Unversioned workflow's task can go to any Unversioned worker (see +`WorkerVersioningMode`.) +User needs to use Patching to keep the new code compatible with prior versions when dealing +with Unversioned workflows. +""" +VERSIONING_BEHAVIOR_PINNED: VersioningBehavior.ValueType # 1 +"""Workflow will start on the Current Deployment Version of its Task Queue, and then +will be pinned to that same Deployment Version until completion (the Version that +this Workflow is pinned to is specified in `versioning_info.version`). +This behavior eliminates most of compatibility concerns users face when changing their code. +Patching is not needed when pinned workflows code change. +Can be overridden explicitly via `UpdateWorkflowExecutionOptions` API to move the +execution to another Deployment Version. +Activities of `PINNED` workflows are sent to the same Deployment Version. Exception to this +would be when the activity Task Queue workers are not present in the workflow's Deployment +Version, in which case the activity will be sent to the Current Deployment Version of its own +task queue. +""" +VERSIONING_BEHAVIOR_AUTO_UPGRADE: VersioningBehavior.ValueType # 2 +"""Workflow will automatically move to the Current Deployment Version of its Task Queue when the +next workflow task is dispatched. +AutoUpgrade behavior is suitable for long-running workflows as it allows them to move to the +latest Deployment Version, but the user still needs to use Patching to keep the new code +compatible with prior versions for changed workflow types. +Activities of `AUTO_UPGRADE` workflows are sent to the Deployment Version of the workflow +execution (as specified in versioning_info.version based on the last completed +workflow task). Exception to this would be when the activity Task Queue workers are not +present in the workflow's Deployment Version, in which case, the activity will be sent to a +different Deployment Version according to the Current Deployment Version of its own task +queue. +Workflows stuck on a backlogged activity will still auto-upgrade if the Current Deployment +Version of their Task Queue changes, without having to wait for the backlogged activity to +complete on the old Version. +""" +global___VersioningBehavior = VersioningBehavior diff --git a/temporalio/api/errordetails/v1/__init__.py b/temporalio/api/errordetails/v1/__init__.py index 2445c783f..2afb6ec95 100644 --- a/temporalio/api/errordetails/v1/__init__.py +++ b/temporalio/api/errordetails/v1/__init__.py @@ -6,6 +6,7 @@ NamespaceInvalidStateFailure, NamespaceNotActiveFailure, NamespaceNotFoundFailure, + NamespaceUnavailableFailure, NewerBuildExistsFailure, NotFoundFailure, PermissionDeniedFailure, @@ -25,6 +26,7 @@ "NamespaceInvalidStateFailure", "NamespaceNotActiveFailure", "NamespaceNotFoundFailure", + "NamespaceUnavailableFailure", "NewerBuildExistsFailure", "NotFoundFailure", "PermissionDeniedFailure", diff --git a/temporalio/api/errordetails/v1/message_pb2.py b/temporalio/api/errordetails/v1/message_pb2.py index 96309bdd9..8f8b2c853 100644 --- a/temporalio/api/errordetails/v1/message_pb2.py +++ b/temporalio/api/errordetails/v1/message_pb2.py @@ -25,9 +25,12 @@ from temporalio.api.enums.v1 import ( namespace_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_namespace__pb2, ) +from temporalio.api.failure.v1 import ( + message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, +) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n*temporal/api/errordetails/v1/message.proto\x12\x1ctemporal.api.errordetails.v1\x1a\x19google/protobuf/any.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a%temporal/api/enums/v1/namespace.proto"B\n\x0fNotFoundFailure\x12\x17\n\x0f\x63urrent_cluster\x18\x01 \x01(\t\x12\x16\n\x0e\x61\x63tive_cluster\x18\x02 \x01(\t"R\n&WorkflowExecutionAlreadyStartedFailure\x12\x18\n\x10start_request_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t"_\n\x19NamespaceNotActiveFailure\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x63urrent_cluster\x18\x02 \x01(\t\x12\x16\n\x0e\x61\x63tive_cluster\x18\x03 \x01(\t"\xa6\x01\n\x1cNamespaceInvalidStateFailure\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32%.temporal.api.enums.v1.NamespaceState\x12=\n\x0e\x61llowed_states\x18\x03 \x03(\x0e\x32%.temporal.api.enums.v1.NamespaceState"-\n\x18NamespaceNotFoundFailure\x12\x11\n\tnamespace\x18\x01 \x01(\t"\x1f\n\x1dNamespaceAlreadyExistsFailure"k\n ClientVersionNotSupportedFailure\x12\x16\n\x0e\x63lient_version\x18\x01 \x01(\t\x12\x13\n\x0b\x63lient_name\x18\x02 \x01(\t\x12\x1a\n\x12supported_versions\x18\x03 \x01(\t"d\n ServerVersionNotSupportedFailure\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12(\n client_supported_server_versions\x18\x02 \x01(\t"%\n#CancellationAlreadyRequestedFailure"\x14\n\x12QueryFailedFailure")\n\x17PermissionDeniedFailure\x12\x0e\n\x06reason\x18\x01 \x01(\t"\x96\x01\n\x18ResourceExhaustedFailure\x12<\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32-.temporal.api.enums.v1.ResourceExhaustedCause\x12<\n\x05scope\x18\x02 \x01(\x0e\x32-.temporal.api.enums.v1.ResourceExhaustedScope"v\n\x15SystemWorkflowFailure\x12\x45\n\x12workflow_execution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x16\n\x0eworkflow_error\x18\x02 \x01(\t"\x19\n\x17WorkflowNotReadyFailure"3\n\x17NewerBuildExistsFailure\x12\x18\n\x10\x64\x65\x66\x61ult_build_id\x18\x01 \x01(\t"\xd9\x01\n\x1eMultiOperationExecutionFailure\x12^\n\x08statuses\x18\x01 \x03(\x0b\x32L.temporal.api.errordetails.v1.MultiOperationExecutionFailure.OperationStatus\x1aW\n\x0fOperationStatus\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\x12%\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyB\xa7\x01\n\x1fio.temporal.api.errordetails.v1B\x0cMessageProtoP\x01Z/go.temporal.io/api/errordetails/v1;errordetails\xaa\x02\x1eTemporalio.Api.ErrorDetails.V1\xea\x02!Temporalio::Api::ErrorDetails::V1b\x06proto3' + b'\n*temporal/api/errordetails/v1/message.proto\x12\x1ctemporal.api.errordetails.v1\x1a\x19google/protobuf/any.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a%temporal/api/failure/v1/message.proto"B\n\x0fNotFoundFailure\x12\x17\n\x0f\x63urrent_cluster\x18\x01 \x01(\t\x12\x16\n\x0e\x61\x63tive_cluster\x18\x02 \x01(\t"R\n&WorkflowExecutionAlreadyStartedFailure\x12\x18\n\x10start_request_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t"_\n\x19NamespaceNotActiveFailure\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x63urrent_cluster\x18\x02 \x01(\t\x12\x16\n\x0e\x61\x63tive_cluster\x18\x03 \x01(\t"0\n\x1bNamespaceUnavailableFailure\x12\x11\n\tnamespace\x18\x01 \x01(\t"\xa6\x01\n\x1cNamespaceInvalidStateFailure\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32%.temporal.api.enums.v1.NamespaceState\x12=\n\x0e\x61llowed_states\x18\x03 \x03(\x0e\x32%.temporal.api.enums.v1.NamespaceState"-\n\x18NamespaceNotFoundFailure\x12\x11\n\tnamespace\x18\x01 \x01(\t"\x1f\n\x1dNamespaceAlreadyExistsFailure"k\n ClientVersionNotSupportedFailure\x12\x16\n\x0e\x63lient_version\x18\x01 \x01(\t\x12\x13\n\x0b\x63lient_name\x18\x02 \x01(\t\x12\x1a\n\x12supported_versions\x18\x03 \x01(\t"d\n ServerVersionNotSupportedFailure\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12(\n client_supported_server_versions\x18\x02 \x01(\t"%\n#CancellationAlreadyRequestedFailure"G\n\x12QueryFailedFailure\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure")\n\x17PermissionDeniedFailure\x12\x0e\n\x06reason\x18\x01 \x01(\t"\x96\x01\n\x18ResourceExhaustedFailure\x12<\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32-.temporal.api.enums.v1.ResourceExhaustedCause\x12<\n\x05scope\x18\x02 \x01(\x0e\x32-.temporal.api.enums.v1.ResourceExhaustedScope"v\n\x15SystemWorkflowFailure\x12\x45\n\x12workflow_execution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x16\n\x0eworkflow_error\x18\x02 \x01(\t"\x19\n\x17WorkflowNotReadyFailure"3\n\x17NewerBuildExistsFailure\x12\x18\n\x10\x64\x65\x66\x61ult_build_id\x18\x01 \x01(\t"\xd9\x01\n\x1eMultiOperationExecutionFailure\x12^\n\x08statuses\x18\x01 \x03(\x0b\x32L.temporal.api.errordetails.v1.MultiOperationExecutionFailure.OperationStatus\x1aW\n\x0fOperationStatus\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\x12%\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyB\xa7\x01\n\x1fio.temporal.api.errordetails.v1B\x0cMessageProtoP\x01Z/go.temporal.io/api/errordetails/v1;errordetails\xaa\x02\x1eTemporalio.Api.ErrorDetails.V1\xea\x02!Temporalio::Api::ErrorDetails::V1b\x06proto3' ) @@ -38,6 +41,9 @@ _NAMESPACENOTACTIVEFAILURE = DESCRIPTOR.message_types_by_name[ "NamespaceNotActiveFailure" ] +_NAMESPACEUNAVAILABLEFAILURE = DESCRIPTOR.message_types_by_name[ + "NamespaceUnavailableFailure" +] _NAMESPACEINVALIDSTATEFAILURE = DESCRIPTOR.message_types_by_name[ "NamespaceInvalidStateFailure" ] @@ -99,6 +105,17 @@ ) _sym_db.RegisterMessage(NamespaceNotActiveFailure) +NamespaceUnavailableFailure = _reflection.GeneratedProtocolMessageType( + "NamespaceUnavailableFailure", + (_message.Message,), + { + "DESCRIPTOR": _NAMESPACEUNAVAILABLEFAILURE, + "__module__": "temporal.api.errordetails.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.NamespaceUnavailableFailure) + }, +) +_sym_db.RegisterMessage(NamespaceUnavailableFailure) + NamespaceInvalidStateFailure = _reflection.GeneratedProtocolMessageType( "NamespaceInvalidStateFailure", (_message.Message,), @@ -255,38 +272,40 @@ if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\037io.temporal.api.errordetails.v1B\014MessageProtoP\001Z/go.temporal.io/api/errordetails/v1;errordetails\252\002\036Temporalio.Api.ErrorDetails.V1\352\002!Temporalio::Api::ErrorDetails::V1" - _NOTFOUNDFAILURE._serialized_start = 222 - _NOTFOUNDFAILURE._serialized_end = 288 - _WORKFLOWEXECUTIONALREADYSTARTEDFAILURE._serialized_start = 290 - _WORKFLOWEXECUTIONALREADYSTARTEDFAILURE._serialized_end = 372 - _NAMESPACENOTACTIVEFAILURE._serialized_start = 374 - _NAMESPACENOTACTIVEFAILURE._serialized_end = 469 - _NAMESPACEINVALIDSTATEFAILURE._serialized_start = 472 - _NAMESPACEINVALIDSTATEFAILURE._serialized_end = 638 - _NAMESPACENOTFOUNDFAILURE._serialized_start = 640 - _NAMESPACENOTFOUNDFAILURE._serialized_end = 685 - _NAMESPACEALREADYEXISTSFAILURE._serialized_start = 687 - _NAMESPACEALREADYEXISTSFAILURE._serialized_end = 718 - _CLIENTVERSIONNOTSUPPORTEDFAILURE._serialized_start = 720 - _CLIENTVERSIONNOTSUPPORTEDFAILURE._serialized_end = 827 - _SERVERVERSIONNOTSUPPORTEDFAILURE._serialized_start = 829 - _SERVERVERSIONNOTSUPPORTEDFAILURE._serialized_end = 929 - _CANCELLATIONALREADYREQUESTEDFAILURE._serialized_start = 931 - _CANCELLATIONALREADYREQUESTEDFAILURE._serialized_end = 968 - _QUERYFAILEDFAILURE._serialized_start = 970 - _QUERYFAILEDFAILURE._serialized_end = 990 - _PERMISSIONDENIEDFAILURE._serialized_start = 992 - _PERMISSIONDENIEDFAILURE._serialized_end = 1033 - _RESOURCEEXHAUSTEDFAILURE._serialized_start = 1036 - _RESOURCEEXHAUSTEDFAILURE._serialized_end = 1186 - _SYSTEMWORKFLOWFAILURE._serialized_start = 1188 - _SYSTEMWORKFLOWFAILURE._serialized_end = 1306 - _WORKFLOWNOTREADYFAILURE._serialized_start = 1308 - _WORKFLOWNOTREADYFAILURE._serialized_end = 1333 - _NEWERBUILDEXISTSFAILURE._serialized_start = 1335 - _NEWERBUILDEXISTSFAILURE._serialized_end = 1386 - _MULTIOPERATIONEXECUTIONFAILURE._serialized_start = 1389 - _MULTIOPERATIONEXECUTIONFAILURE._serialized_end = 1606 - _MULTIOPERATIONEXECUTIONFAILURE_OPERATIONSTATUS._serialized_start = 1519 - _MULTIOPERATIONEXECUTIONFAILURE_OPERATIONSTATUS._serialized_end = 1606 + _NOTFOUNDFAILURE._serialized_start = 261 + _NOTFOUNDFAILURE._serialized_end = 327 + _WORKFLOWEXECUTIONALREADYSTARTEDFAILURE._serialized_start = 329 + _WORKFLOWEXECUTIONALREADYSTARTEDFAILURE._serialized_end = 411 + _NAMESPACENOTACTIVEFAILURE._serialized_start = 413 + _NAMESPACENOTACTIVEFAILURE._serialized_end = 508 + _NAMESPACEUNAVAILABLEFAILURE._serialized_start = 510 + _NAMESPACEUNAVAILABLEFAILURE._serialized_end = 558 + _NAMESPACEINVALIDSTATEFAILURE._serialized_start = 561 + _NAMESPACEINVALIDSTATEFAILURE._serialized_end = 727 + _NAMESPACENOTFOUNDFAILURE._serialized_start = 729 + _NAMESPACENOTFOUNDFAILURE._serialized_end = 774 + _NAMESPACEALREADYEXISTSFAILURE._serialized_start = 776 + _NAMESPACEALREADYEXISTSFAILURE._serialized_end = 807 + _CLIENTVERSIONNOTSUPPORTEDFAILURE._serialized_start = 809 + _CLIENTVERSIONNOTSUPPORTEDFAILURE._serialized_end = 916 + _SERVERVERSIONNOTSUPPORTEDFAILURE._serialized_start = 918 + _SERVERVERSIONNOTSUPPORTEDFAILURE._serialized_end = 1018 + _CANCELLATIONALREADYREQUESTEDFAILURE._serialized_start = 1020 + _CANCELLATIONALREADYREQUESTEDFAILURE._serialized_end = 1057 + _QUERYFAILEDFAILURE._serialized_start = 1059 + _QUERYFAILEDFAILURE._serialized_end = 1130 + _PERMISSIONDENIEDFAILURE._serialized_start = 1132 + _PERMISSIONDENIEDFAILURE._serialized_end = 1173 + _RESOURCEEXHAUSTEDFAILURE._serialized_start = 1176 + _RESOURCEEXHAUSTEDFAILURE._serialized_end = 1326 + _SYSTEMWORKFLOWFAILURE._serialized_start = 1328 + _SYSTEMWORKFLOWFAILURE._serialized_end = 1446 + _WORKFLOWNOTREADYFAILURE._serialized_start = 1448 + _WORKFLOWNOTREADYFAILURE._serialized_end = 1473 + _NEWERBUILDEXISTSFAILURE._serialized_start = 1475 + _NEWERBUILDEXISTSFAILURE._serialized_end = 1526 + _MULTIOPERATIONEXECUTIONFAILURE._serialized_start = 1529 + _MULTIOPERATIONEXECUTIONFAILURE._serialized_end = 1746 + _MULTIOPERATIONEXECUTIONFAILURE_OPERATIONSTATUS._serialized_start = 1659 + _MULTIOPERATIONEXECUTIONFAILURE_OPERATIONSTATUS._serialized_end = 1746 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/errordetails/v1/message_pb2.pyi b/temporalio/api/errordetails/v1/message_pb2.pyi index bd0079cb4..4857dbf31 100644 --- a/temporalio/api/errordetails/v1/message_pb2.pyi +++ b/temporalio/api/errordetails/v1/message_pb2.pyi @@ -17,6 +17,7 @@ import google.protobuf.message import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.failed_cause_pb2 import temporalio.api.enums.v1.namespace_pb2 +import temporalio.api.failure.v1.message_pb2 if sys.version_info >= (3, 8): import typing as typing_extensions @@ -99,6 +100,27 @@ class NamespaceNotActiveFailure(google.protobuf.message.Message): global___NamespaceNotActiveFailure = NamespaceNotActiveFailure +class NamespaceUnavailableFailure(google.protobuf.message.Message): + """NamespaceUnavailableFailure is returned by the service when a request addresses a namespace that is unavailable. For + example, when a namespace is in the process of failing over between clusters. + This is a transient error that should be automatically retried by clients. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + namespace: builtins.str + def __init__( + self, + *, + namespace: builtins.str = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["namespace", b"namespace"] + ) -> None: ... + +global___NamespaceUnavailableFailure = NamespaceUnavailableFailure + class NamespaceInvalidStateFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -233,8 +255,23 @@ global___CancellationAlreadyRequestedFailure = CancellationAlreadyRequestedFailu class QueryFailedFailure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + FAILURE_FIELD_NUMBER: builtins.int + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The full reason for this query failure. May not be available if the response is generated by an old + SDK. This field can be encoded by the SDK's failure converter to support E2E encryption of messages and stack + traces. + """ def __init__( self, + *, + failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["failure", b"failure"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["failure", b"failure"] ) -> None: ... global___QueryFailedFailure = QueryFailedFailure diff --git a/temporalio/api/failure/v1/__init__.py b/temporalio/api/failure/v1/__init__.py index c5f8d7e03..a17e5e25e 100644 --- a/temporalio/api/failure/v1/__init__.py +++ b/temporalio/api/failure/v1/__init__.py @@ -5,6 +5,7 @@ ChildWorkflowExecutionFailureInfo, Failure, MultiOperationExecutionAborted, + NexusHandlerFailureInfo, NexusOperationFailureInfo, ResetWorkflowFailureInfo, ServerFailureInfo, @@ -19,6 +20,7 @@ "ChildWorkflowExecutionFailureInfo", "Failure", "MultiOperationExecutionAborted", + "NexusHandlerFailureInfo", "NexusOperationFailureInfo", "ResetWorkflowFailureInfo", "ServerFailureInfo", diff --git a/temporalio/api/failure/v1/message_pb2.py b/temporalio/api/failure/v1/message_pb2.py index 58036f244..ee932baf7 100644 --- a/temporalio/api/failure/v1/message_pb2.py +++ b/temporalio/api/failure/v1/message_pb2.py @@ -19,12 +19,15 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.enums.v1 import ( + nexus_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_nexus__pb2, +) from temporalio.api.enums.v1 import ( workflow_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_workflow__pb2, ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n%temporal/api/failure/v1/message.proto\x12\x17temporal.api.failure.v1\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a\x1egoogle/protobuf/duration.proto"\xa5\x01\n\x16\x41pplicationFailureInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x15\n\rnon_retryable\x18\x02 \x01(\x08\x12\x31\n\x07\x64\x65tails\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x33\n\x10next_retry_delay\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration"\x90\x01\n\x12TimeoutFailureInfo\x12\x38\n\x0ctimeout_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType\x12@\n\x16last_heartbeat_details\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"H\n\x13\x43\x61nceledFailureInfo\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\x17\n\x15TerminatedFailureInfo"*\n\x11ServerFailureInfo\x12\x15\n\rnon_retryable\x18\x01 \x01(\x08"\\\n\x18ResetWorkflowFailureInfo\x12@\n\x16last_heartbeat_details\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe7\x01\n\x13\x41\x63tivityFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12;\n\ractivity_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x05 \x01(\t\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xa8\x02\n!ChildWorkflowExecutionFailureInfo\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x83\x01\n\x19NexusOperationFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12\x14\n\x0coperation_id\x18\x05 \x01(\t"\xc8\x07\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x0bstack_trace\x18\x03 \x01(\t\x12;\n\x12\x65ncoded_attributes\x18\x14 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12/\n\x05\x63\x61use\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12S\n\x18\x61pplication_failure_info\x18\x05 \x01(\x0b\x32/.temporal.api.failure.v1.ApplicationFailureInfoH\x00\x12K\n\x14timeout_failure_info\x18\x06 \x01(\x0b\x32+.temporal.api.failure.v1.TimeoutFailureInfoH\x00\x12M\n\x15\x63\x61nceled_failure_info\x18\x07 \x01(\x0b\x32,.temporal.api.failure.v1.CanceledFailureInfoH\x00\x12Q\n\x17terminated_failure_info\x18\x08 \x01(\x0b\x32..temporal.api.failure.v1.TerminatedFailureInfoH\x00\x12I\n\x13server_failure_info\x18\t \x01(\x0b\x32*.temporal.api.failure.v1.ServerFailureInfoH\x00\x12X\n\x1breset_workflow_failure_info\x18\n \x01(\x0b\x32\x31.temporal.api.failure.v1.ResetWorkflowFailureInfoH\x00\x12M\n\x15\x61\x63tivity_failure_info\x18\x0b \x01(\x0b\x32,.temporal.api.failure.v1.ActivityFailureInfoH\x00\x12k\n%child_workflow_execution_failure_info\x18\x0c \x01(\x0b\x32:.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoH\x00\x12\x64\n&nexus_operation_execution_failure_info\x18\r \x01(\x0b\x32\x32.temporal.api.failure.v1.NexusOperationFailureInfoH\x00\x42\x0e\n\x0c\x66\x61ilure_info" \n\x1eMultiOperationExecutionAbortedB\x8e\x01\n\x1aio.temporal.api.failure.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/failure/v1;failure\xaa\x02\x19Temporalio.Api.Failure.V1\xea\x02\x1cTemporalio::Api::Failure::V1b\x06proto3' + b'\n%temporal/api/failure/v1/message.proto\x12\x17temporal.api.failure.v1\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a\x1egoogle/protobuf/duration.proto"\xa5\x01\n\x16\x41pplicationFailureInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x15\n\rnon_retryable\x18\x02 \x01(\x08\x12\x31\n\x07\x64\x65tails\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x33\n\x10next_retry_delay\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration"\x90\x01\n\x12TimeoutFailureInfo\x12\x38\n\x0ctimeout_type\x18\x01 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType\x12@\n\x16last_heartbeat_details\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"H\n\x13\x43\x61nceledFailureInfo\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\x17\n\x15TerminatedFailureInfo"*\n\x11ServerFailureInfo\x12\x15\n\rnon_retryable\x18\x01 \x01(\x08"\\\n\x18ResetWorkflowFailureInfo\x12@\n\x16last_heartbeat_details\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe7\x01\n\x13\x41\x63tivityFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12;\n\ractivity_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x05 \x01(\t\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xa8\x02\n!ChildWorkflowExecutionFailureInfo\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x9c\x01\n\x19NexusOperationFailureInfo\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12\x14\n\x0coperation_id\x18\x05 \x01(\t\x12\x17\n\x0foperation_token\x18\x06 \x01(\t"v\n\x17NexusHandlerFailureInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12M\n\x0eretry_behavior\x18\x02 \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusHandlerErrorRetryBehavior"\xa0\x08\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x0e\n\x06source\x18\x02 \x01(\t\x12\x13\n\x0bstack_trace\x18\x03 \x01(\t\x12;\n\x12\x65ncoded_attributes\x18\x14 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12/\n\x05\x63\x61use\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12S\n\x18\x61pplication_failure_info\x18\x05 \x01(\x0b\x32/.temporal.api.failure.v1.ApplicationFailureInfoH\x00\x12K\n\x14timeout_failure_info\x18\x06 \x01(\x0b\x32+.temporal.api.failure.v1.TimeoutFailureInfoH\x00\x12M\n\x15\x63\x61nceled_failure_info\x18\x07 \x01(\x0b\x32,.temporal.api.failure.v1.CanceledFailureInfoH\x00\x12Q\n\x17terminated_failure_info\x18\x08 \x01(\x0b\x32..temporal.api.failure.v1.TerminatedFailureInfoH\x00\x12I\n\x13server_failure_info\x18\t \x01(\x0b\x32*.temporal.api.failure.v1.ServerFailureInfoH\x00\x12X\n\x1breset_workflow_failure_info\x18\n \x01(\x0b\x32\x31.temporal.api.failure.v1.ResetWorkflowFailureInfoH\x00\x12M\n\x15\x61\x63tivity_failure_info\x18\x0b \x01(\x0b\x32,.temporal.api.failure.v1.ActivityFailureInfoH\x00\x12k\n%child_workflow_execution_failure_info\x18\x0c \x01(\x0b\x32:.temporal.api.failure.v1.ChildWorkflowExecutionFailureInfoH\x00\x12\x64\n&nexus_operation_execution_failure_info\x18\r \x01(\x0b\x32\x32.temporal.api.failure.v1.NexusOperationFailureInfoH\x00\x12V\n\x1anexus_handler_failure_info\x18\x0e \x01(\x0b\x32\x30.temporal.api.failure.v1.NexusHandlerFailureInfoH\x00\x42\x0e\n\x0c\x66\x61ilure_info" \n\x1eMultiOperationExecutionAbortedB\x8e\x01\n\x1aio.temporal.api.failure.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/failure/v1;failure\xaa\x02\x19Temporalio.Api.Failure.V1\xea\x02\x1cTemporalio::Api::Failure::V1b\x06proto3' ) @@ -41,6 +44,7 @@ _NEXUSOPERATIONFAILUREINFO = DESCRIPTOR.message_types_by_name[ "NexusOperationFailureInfo" ] +_NEXUSHANDLERFAILUREINFO = DESCRIPTOR.message_types_by_name["NexusHandlerFailureInfo"] _FAILURE = DESCRIPTOR.message_types_by_name["Failure"] _MULTIOPERATIONEXECUTIONABORTED = DESCRIPTOR.message_types_by_name[ "MultiOperationExecutionAborted" @@ -144,6 +148,17 @@ ) _sym_db.RegisterMessage(NexusOperationFailureInfo) +NexusHandlerFailureInfo = _reflection.GeneratedProtocolMessageType( + "NexusHandlerFailureInfo", + (_message.Message,), + { + "DESCRIPTOR": _NEXUSHANDLERFAILUREINFO, + "__module__": "temporal.api.failure.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.NexusHandlerFailureInfo) + }, +) +_sym_db.RegisterMessage(NexusHandlerFailureInfo) + Failure = _reflection.GeneratedProtocolMessageType( "Failure", (_message.Message,), @@ -169,26 +184,28 @@ if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.failure.v1B\014MessageProtoP\001Z%go.temporal.io/api/failure/v1;failure\252\002\031Temporalio.Api.Failure.V1\352\002\034Temporalio::Api::Failure::V1" - _APPLICATIONFAILUREINFO._serialized_start = 175 - _APPLICATIONFAILUREINFO._serialized_end = 340 - _TIMEOUTFAILUREINFO._serialized_start = 343 - _TIMEOUTFAILUREINFO._serialized_end = 487 - _CANCELEDFAILUREINFO._serialized_start = 489 - _CANCELEDFAILUREINFO._serialized_end = 561 - _TERMINATEDFAILUREINFO._serialized_start = 563 - _TERMINATEDFAILUREINFO._serialized_end = 586 - _SERVERFAILUREINFO._serialized_start = 588 - _SERVERFAILUREINFO._serialized_end = 630 - _RESETWORKFLOWFAILUREINFO._serialized_start = 632 - _RESETWORKFLOWFAILUREINFO._serialized_end = 724 - _ACTIVITYFAILUREINFO._serialized_start = 727 - _ACTIVITYFAILUREINFO._serialized_end = 958 - _CHILDWORKFLOWEXECUTIONFAILUREINFO._serialized_start = 961 - _CHILDWORKFLOWEXECUTIONFAILUREINFO._serialized_end = 1257 - _NEXUSOPERATIONFAILUREINFO._serialized_start = 1260 - _NEXUSOPERATIONFAILUREINFO._serialized_end = 1391 - _FAILURE._serialized_start = 1394 - _FAILURE._serialized_end = 2362 - _MULTIOPERATIONEXECUTIONABORTED._serialized_start = 2364 - _MULTIOPERATIONEXECUTIONABORTED._serialized_end = 2396 + _APPLICATIONFAILUREINFO._serialized_start = 210 + _APPLICATIONFAILUREINFO._serialized_end = 375 + _TIMEOUTFAILUREINFO._serialized_start = 378 + _TIMEOUTFAILUREINFO._serialized_end = 522 + _CANCELEDFAILUREINFO._serialized_start = 524 + _CANCELEDFAILUREINFO._serialized_end = 596 + _TERMINATEDFAILUREINFO._serialized_start = 598 + _TERMINATEDFAILUREINFO._serialized_end = 621 + _SERVERFAILUREINFO._serialized_start = 623 + _SERVERFAILUREINFO._serialized_end = 665 + _RESETWORKFLOWFAILUREINFO._serialized_start = 667 + _RESETWORKFLOWFAILUREINFO._serialized_end = 759 + _ACTIVITYFAILUREINFO._serialized_start = 762 + _ACTIVITYFAILUREINFO._serialized_end = 993 + _CHILDWORKFLOWEXECUTIONFAILUREINFO._serialized_start = 996 + _CHILDWORKFLOWEXECUTIONFAILUREINFO._serialized_end = 1292 + _NEXUSOPERATIONFAILUREINFO._serialized_start = 1295 + _NEXUSOPERATIONFAILUREINFO._serialized_end = 1451 + _NEXUSHANDLERFAILUREINFO._serialized_start = 1453 + _NEXUSHANDLERFAILUREINFO._serialized_end = 1571 + _FAILURE._serialized_start = 1574 + _FAILURE._serialized_end = 2630 + _MULTIOPERATIONEXECUTIONABORTED._serialized_start = 2632 + _MULTIOPERATIONEXECUTIONABORTED._serialized_end = 2664 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/failure/v1/message_pb2.pyi b/temporalio/api/failure/v1/message_pb2.pyi index 8e78b9f95..f95b0901a 100644 --- a/temporalio/api/failure/v1/message_pb2.pyi +++ b/temporalio/api/failure/v1/message_pb2.pyi @@ -32,6 +32,7 @@ import google.protobuf.duration_pb2 import google.protobuf.message import temporalio.api.common.v1.message_pb2 +import temporalio.api.enums.v1.nexus_pb2 import temporalio.api.enums.v1.workflow_pb2 if sys.version_info >= (3, 8): @@ -314,6 +315,7 @@ class NexusOperationFailureInfo(google.protobuf.message.Message): SERVICE_FIELD_NUMBER: builtins.int OPERATION_FIELD_NUMBER: builtins.int OPERATION_ID_FIELD_NUMBER: builtins.int + OPERATION_TOKEN_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The NexusOperationScheduled event ID.""" endpoint: builtins.str @@ -323,7 +325,12 @@ class NexusOperationFailureInfo(google.protobuf.message.Message): operation: builtins.str """Operation name.""" operation_id: builtins.str - """Operation ID - may be empty if the operation completed synchronously.""" + """Operation ID - may be empty if the operation completed synchronously. + + Deprecated: Renamed to operation_token. + """ + operation_token: builtins.str + """Operation token - may be empty if the operation completed synchronously.""" def __init__( self, *, @@ -332,6 +339,7 @@ class NexusOperationFailureInfo(google.protobuf.message.Message): service: builtins.str = ..., operation: builtins.str = ..., operation_id: builtins.str = ..., + operation_token: builtins.str = ..., ) -> None: ... def ClearField( self, @@ -342,6 +350,8 @@ class NexusOperationFailureInfo(google.protobuf.message.Message): b"operation", "operation_id", b"operation_id", + "operation_token", + b"operation_token", "scheduled_event_id", b"scheduled_event_id", "service", @@ -351,6 +361,34 @@ class NexusOperationFailureInfo(google.protobuf.message.Message): global___NexusOperationFailureInfo = NexusOperationFailureInfo +class NexusHandlerFailureInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + RETRY_BEHAVIOR_FIELD_NUMBER: builtins.int + type: builtins.str + """The Nexus error type as defined in the spec: + https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors. + """ + retry_behavior: ( + temporalio.api.enums.v1.nexus_pb2.NexusHandlerErrorRetryBehavior.ValueType + ) + """Retry behavior, defaults to the retry behavior of the error type as defined in the spec.""" + def __init__( + self, + *, + type: builtins.str = ..., + retry_behavior: temporalio.api.enums.v1.nexus_pb2.NexusHandlerErrorRetryBehavior.ValueType = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "retry_behavior", b"retry_behavior", "type", b"type" + ], + ) -> None: ... + +global___NexusHandlerFailureInfo = NexusHandlerFailureInfo + class Failure(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -368,6 +406,7 @@ class Failure(google.protobuf.message.Message): ACTIVITY_FAILURE_INFO_FIELD_NUMBER: builtins.int CHILD_WORKFLOW_EXECUTION_FAILURE_INFO_FIELD_NUMBER: builtins.int NEXUS_OPERATION_EXECUTION_FAILURE_INFO_FIELD_NUMBER: builtins.int + NEXUS_HANDLER_FAILURE_INFO_FIELD_NUMBER: builtins.int message: builtins.str source: builtins.str """The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK @@ -416,6 +455,8 @@ class Failure(google.protobuf.message.Message): def nexus_operation_execution_failure_info( self, ) -> global___NexusOperationFailureInfo: ... + @property + def nexus_handler_failure_info(self) -> global___NexusHandlerFailureInfo: ... def __init__( self, *, @@ -435,6 +476,7 @@ class Failure(google.protobuf.message.Message): | None = ..., nexus_operation_execution_failure_info: global___NexusOperationFailureInfo | None = ..., + nexus_handler_failure_info: global___NexusHandlerFailureInfo | None = ..., ) -> None: ... def HasField( self, @@ -453,6 +495,8 @@ class Failure(google.protobuf.message.Message): b"encoded_attributes", "failure_info", b"failure_info", + "nexus_handler_failure_info", + b"nexus_handler_failure_info", "nexus_operation_execution_failure_info", b"nexus_operation_execution_failure_info", "reset_workflow_failure_info", @@ -484,6 +528,8 @@ class Failure(google.protobuf.message.Message): b"failure_info", "message", b"message", + "nexus_handler_failure_info", + b"nexus_handler_failure_info", "nexus_operation_execution_failure_info", b"nexus_operation_execution_failure_info", "reset_workflow_failure_info", @@ -513,6 +559,7 @@ class Failure(google.protobuf.message.Message): "activity_failure_info", "child_workflow_execution_failure_info", "nexus_operation_execution_failure_info", + "nexus_handler_failure_info", ] | None ): ... diff --git a/temporalio/api/history/v1/__init__.py b/temporalio/api/history/v1/__init__.py index 30500e3c9..087a96653 100644 --- a/temporalio/api/history/v1/__init__.py +++ b/temporalio/api/history/v1/__init__.py @@ -40,6 +40,7 @@ WorkflowExecutionCompletedEventAttributes, WorkflowExecutionContinuedAsNewEventAttributes, WorkflowExecutionFailedEventAttributes, + WorkflowExecutionOptionsUpdatedEventAttributes, WorkflowExecutionSignaledEventAttributes, WorkflowExecutionStartedEventAttributes, WorkflowExecutionTerminatedEventAttributes, @@ -99,6 +100,7 @@ "WorkflowExecutionCompletedEventAttributes", "WorkflowExecutionContinuedAsNewEventAttributes", "WorkflowExecutionFailedEventAttributes", + "WorkflowExecutionOptionsUpdatedEventAttributes", "WorkflowExecutionSignaledEventAttributes", "WorkflowExecutionStartedEventAttributes", "WorkflowExecutionTerminatedEventAttributes", diff --git a/temporalio/api/history/v1/message_pb2.py b/temporalio/api/history/v1/message_pb2.py index 1c9a1f061..2fff8cf0c 100644 --- a/temporalio/api/history/v1/message_pb2.py +++ b/temporalio/api/history/v1/message_pb2.py @@ -20,6 +20,9 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.deployment.v1 import ( + message_pb2 as temporal_dot_api_dot_deployment_dot_v1_dot_message__pb2, +) from temporalio.api.enums.v1 import ( event_type_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_event__type__pb2, ) @@ -52,7 +55,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n%temporal/api/history/v1/message.proto\x12\x17temporal.api.history.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a"temporal/api/enums/v1/update.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xf9\x0c\n\'WorkflowExecutionStartedEventAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19parent_workflow_namespace\x18\x02 \x01(\t\x12$\n\x1cparent_workflow_namespace_id\x18\x1b \x01(\t\x12L\n\x19parent_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19parent_initiated_event_id\x18\x04 \x01(\x03\x12\x38\n\ntask_queue\x18\x05 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12"\n\x1a\x63ontinued_execution_run_id\x18\n \x01(\t\x12@\n\tinitiator\x18\x0b \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\x0c \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12!\n\x19original_execution_run_id\x18\x0e \x01(\t\x12\x10\n\x08identity\x18\x0f \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x10 \x01(\t\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x12 \x01(\x05\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rcron_schedule\x18\x14 \x01(\t\x12>\n\x1b\x66irst_workflow_task_backoff\x18\x15 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x16 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x17 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x45\n\x16prev_auto_reset_points\x18\x18 \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12.\n\x06header\x18\x19 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12&\n\x1eparent_initiated_event_version\x18\x1a \x01(\x03\x12\x13\n\x0bworkflow_id\x18\x1c \x01(\t\x12H\n\x14source_version_stamp\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12>\n\x14\x63ompletion_callbacks\x18\x1e \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12J\n\x17root_workflow_execution\x18\x1f \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12inherited_build_id\x18 \x01(\t"\xa5\x01\n)WorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x03 \x01(\t"\xdb\x01\n&WorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x36\n\x0bretry_state\x18\x02 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x04 \x01(\t"\x80\x01\n(WorkflowExecutionTimedOutEventAttributes\x12\x36\n\x0bretry_state\x18\x01 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x1c\n\x14new_execution_run_id\x18\x02 \x01(\t"\xc0\x06\n.WorkflowExecutionContinuedAsNewEventAttributes\x12\x1c\n\x14new_execution_run_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\tinitiator\x18\t \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0b \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x0f \x01(\x08"\xac\x01\n$WorkflowTaskScheduledEventAttributes\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x39\n\x16start_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05"\x8a\x02\n"WorkflowTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x1f\n\x17suggest_continue_as_new\x18\x04 \x01(\x08\x12\x1a\n\x12history_size_bytes\x18\x05 \x01(\x03\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12!\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03"\xda\x02\n$WorkflowTaskCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12H\n\x0csdk_metadata\x18\x06 \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata"\x95\x01\n#WorkflowTaskTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x38\n\x0ctimeout_type\x18\x03 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType"\xff\x02\n!WorkflowTaskFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12=\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x62\x61se_run_id\x18\x06 \x01(\t\x12\x12\n\nnew_run_id\x18\x07 \x01(\t\x12\x1a\n\x12\x66ork_event_version\x18\x08 \x01(\x03\x12\x17\n\x0f\x62inary_checksum\x18\t \x01(\t\x12\x42\n\x0eworker_version\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x8a\x05\n$ActivityTaskScheduledEventAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1d\n\x15use_workflow_build_id\x18\r \x01(\x08J\x04\x08\x03\x10\x04"\x96\x02\n"ActivityTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12\x36\n\x0clast_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12!\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03"\xe4\x01\n$ActivityTaskCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x9a\x02\n!ActivityTaskFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x36\n\x0bretry_state\x18\x05 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\xc6\x01\n#ActivityTaskTimedOutEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x36\n\x0bretry_state\x18\x04 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"r\n*ActivityTaskCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x8e\x02\n#ActivityTaskCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n latest_cancel_requested_event_id\x18\x02 \x01(\x03\x12\x1a\n\x12scheduled_event_id\x18\x03 \x01(\x03\x12\x18\n\x10started_event_id\x18\x04 \x01(\x03\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x93\x01\n\x1bTimerStartedEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03"G\n\x19TimerFiredEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03"\x86\x01\n\x1cTimerCanceledEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t"\xc7\x01\n/WorkflowExecutionCancelRequestedEventAttributes\x12\r\n\x05\x63\x61use\x18\x01 \x01(\t\x12#\n\x1b\x65xternal_initiated_event_id\x18\x02 \x01(\x03\x12N\n\x1b\x65xternal_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x04 \x01(\t"\x87\x01\n(WorkflowExecutionCanceledEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe9\x02\n\x1dMarkerRecordedEventAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xa7\x02\n(WorkflowExecutionSignaledEventAttributes\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12#\n\x1bskip_generate_workflow_task\x18\x05 \x01(\x08\x12N\n\x1b\x65xternal_workflow_execution\x18\x06 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x81\x01\n*WorkflowExecutionTerminatedEventAttributes\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t"\x98\x02\n>RequestCancelExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xd6\x02\n;RequestCancelExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t"\xc5\x01\n7ExternalWorkflowExecutionCancelRequestedEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xf7\x02\n7SignalExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\t \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x07 \x01(\x08\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xcf\x02\n4SignalExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t"\xcf\x01\n0ExternalWorkflowExecutionSignaledEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x05 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t"\x9e\x01\n-UpsertWorkflowSearchAttributesEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x43\n\x11search_attributes\x18\x02 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x8a\x01\n)WorkflowPropertiesModifiedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x33\n\rupserted_memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xac\x07\n3StartChildWorkflowExecutionInitiatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x12 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12.\n\x06header\x18\x0f \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x10 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x11 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x13 \x01(\x08"\xd2\x02\n0StartChildWorkflowExecutionFailedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12L\n\x05\x63\x61use\x18\x04 \x01(\x0e\x32=.temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x06 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03"\xa7\x02\n,ChildWorkflowExecutionStartedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x02 \x01(\x03\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xc5\x02\n.ChildWorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xfb\x02\n+ChildWorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03\x12\x36\n\x0bretry_state\x18\x07 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xc5\x02\n-ChildWorkflowExecutionCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xca\x02\n-ChildWorkflowExecutionTimedOutEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x94\x02\n/ChildWorkflowExecutionTerminatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03"\xc0\x02\n3WorkflowPropertiesModifiedExternallyEventAttributes\x12\x16\n\x0enew_task_queue\x18\x01 \x01(\t\x12<\n\x19new_workflow_task_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18new_workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1enew_workflow_execution_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\rupserted_memo\x18\x05 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x90\x01\n3ActivityPropertiesModifiedExternallyEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12=\n\x10new_retry_policy\x18\x02 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\xdc\x01\n.WorkflowExecutionUpdateAcceptedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1b\x61\x63\x63\x65pted_request_message_id\x18\x02 \x01(\t\x12,\n$accepted_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10\x61\x63\x63\x65pted_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xaa\x01\n/WorkflowExecutionUpdateCompletedEventAttributes\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x19\n\x11\x61\x63\x63\x65pted_event_id\x18\x03 \x01(\x03\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome"\x8f\x02\n.WorkflowExecutionUpdateRejectedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1brejected_request_message_id\x18\x02 \x01(\t\x12,\n$rejected_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10rejected_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xa4\x01\n.WorkflowExecutionUpdateAdmittedEventAttributes\x12\x30\n\x07request\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12@\n\x06origin\x18\x02 \x01(\x0e\x32\x30.temporal.api.enums.v1.UpdateAdmittedEventOrigin"\xbb\x03\n&NexusOperationScheduledEventAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x66\n\x0cnexus_header\x18\x06 \x03(\x0b\x32P.temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x12\n\nrequest_id\x18\x08 \x01(\t\x12\x13\n\x0b\x65ndpoint_id\x18\t \x01(\t\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"l\n$NexusOperationStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x14\n\x0coperation_id\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t"\x89\x01\n&NexusOperationCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12/\n\x06result\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x88\x01\n#NexusOperationFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x8a\x01\n%NexusOperationTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x8a\x01\n%NexusOperationCanceledEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"t\n,NexusOperationCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x93\x38\n\x0cHistoryEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nevent_type\x18\x03 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x0f\n\x07task_id\x18\x05 \x01(\x03\x12\x1a\n\x11worker_may_ignore\x18\xac\x02 \x01(\x08\x12\x39\n\ruser_metadata\x18\xad\x02 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12,\n\x05links\x18\xae\x02 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12w\n+workflow_execution_started_event_attributes\x18\x06 \x01(\x0b\x32@.temporal.api.history.v1.WorkflowExecutionStartedEventAttributesH\x00\x12{\n-workflow_execution_completed_event_attributes\x18\x07 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowExecutionCompletedEventAttributesH\x00\x12u\n*workflow_execution_failed_event_attributes\x18\x08 \x01(\x0b\x32?.temporal.api.history.v1.WorkflowExecutionFailedEventAttributesH\x00\x12z\n-workflow_execution_timed_out_event_attributes\x18\t \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributesH\x00\x12q\n(workflow_task_scheduled_event_attributes\x18\n \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesH\x00\x12m\n&workflow_task_started_event_attributes\x18\x0b \x01(\x0b\x32;.temporal.api.history.v1.WorkflowTaskStartedEventAttributesH\x00\x12q\n(workflow_task_completed_event_attributes\x18\x0c \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskCompletedEventAttributesH\x00\x12p\n(workflow_task_timed_out_event_attributes\x18\r \x01(\x0b\x32<.temporal.api.history.v1.WorkflowTaskTimedOutEventAttributesH\x00\x12k\n%workflow_task_failed_event_attributes\x18\x0e \x01(\x0b\x32:.temporal.api.history.v1.WorkflowTaskFailedEventAttributesH\x00\x12q\n(activity_task_scheduled_event_attributes\x18\x0f \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskScheduledEventAttributesH\x00\x12m\n&activity_task_started_event_attributes\x18\x10 \x01(\x0b\x32;.temporal.api.history.v1.ActivityTaskStartedEventAttributesH\x00\x12q\n(activity_task_completed_event_attributes\x18\x11 \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskCompletedEventAttributesH\x00\x12k\n%activity_task_failed_event_attributes\x18\x12 \x01(\x0b\x32:.temporal.api.history.v1.ActivityTaskFailedEventAttributesH\x00\x12p\n(activity_task_timed_out_event_attributes\x18\x13 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskTimedOutEventAttributesH\x00\x12^\n\x1etimer_started_event_attributes\x18\x14 \x01(\x0b\x32\x34.temporal.api.history.v1.TimerStartedEventAttributesH\x00\x12Z\n\x1ctimer_fired_event_attributes\x18\x15 \x01(\x0b\x32\x32.temporal.api.history.v1.TimerFiredEventAttributesH\x00\x12~\n/activity_task_cancel_requested_event_attributes\x18\x16 \x01(\x0b\x32\x43.temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributesH\x00\x12o\n\'activity_task_canceled_event_attributes\x18\x17 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskCanceledEventAttributesH\x00\x12`\n\x1ftimer_canceled_event_attributes\x18\x18 \x01(\x0b\x32\x35.temporal.api.history.v1.TimerCanceledEventAttributesH\x00\x12\x62\n marker_recorded_event_attributes\x18\x19 \x01(\x0b\x32\x36.temporal.api.history.v1.MarkerRecordedEventAttributesH\x00\x12y\n,workflow_execution_signaled_event_attributes\x18\x1a \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionSignaledEventAttributesH\x00\x12}\n.workflow_execution_terminated_event_attributes\x18\x1b \x01(\x0b\x32\x43.temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_cancel_requested_event_attributes\x18\x1c \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributesH\x00\x12y\n,workflow_execution_canceled_event_attributes\x18\x1d \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionCanceledEventAttributesH\x00\x12\xa8\x01\nErequest_cancel_external_workflow_execution_initiated_event_attributes\x18\x1e \x01(\x0b\x32W.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\xa2\x01\nBrequest_cancel_external_workflow_execution_failed_event_attributes\x18\x1f \x01(\x0b\x32T.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x99\x01\n=external_workflow_execution_cancel_requested_event_attributes\x18 \x01(\x0b\x32P.temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributesH\x00\x12\x87\x01\n4workflow_execution_continued_as_new_event_attributes\x18! \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributesH\x00\x12\x91\x01\n9start_child_workflow_execution_initiated_event_attributes\x18" \x01(\x0b\x32L.temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributesH\x00\x12\x8b\x01\n6start_child_workflow_execution_failed_event_attributes\x18# \x01(\x0b\x32I.temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributesH\x00\x12\x82\x01\n1child_workflow_execution_started_event_attributes\x18$ \x01(\x0b\x32\x45.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesH\x00\x12\x86\x01\n3child_workflow_execution_completed_event_attributes\x18% \x01(\x0b\x32G.temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributesH\x00\x12\x80\x01\n0child_workflow_execution_failed_event_attributes\x18& \x01(\x0b\x32\x44.temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributesH\x00\x12\x84\x01\n2child_workflow_execution_canceled_event_attributes\x18\' \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributesH\x00\x12\x85\x01\n3child_workflow_execution_timed_out_event_attributes\x18( \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributesH\x00\x12\x88\x01\n4child_workflow_execution_terminated_event_attributes\x18) \x01(\x0b\x32H.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesH\x00\x12\x99\x01\n=signal_external_workflow_execution_initiated_event_attributes\x18* \x01(\x0b\x32P.temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\x93\x01\n:signal_external_workflow_execution_failed_event_attributes\x18+ \x01(\x0b\x32M.temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x8a\x01\n5external_workflow_execution_signaled_event_attributes\x18, \x01(\x0b\x32I.temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributesH\x00\x12\x84\x01\n2upsert_workflow_search_attributes_event_attributes\x18- \x01(\x0b\x32\x46.temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_accepted_event_attributes\x18. \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_rejected_event_attributes\x18/ \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_update_completed_event_attributes\x18\x30 \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributesH\x00\x12\x90\x01\n8workflow_properties_modified_externally_event_attributes\x18\x31 \x01(\x0b\x32L.temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributesH\x00\x12\x90\x01\n8activity_properties_modified_externally_event_attributes\x18\x32 \x01(\x0b\x32L.temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributesH\x00\x12{\n-workflow_properties_modified_event_attributes\x18\x33 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_admitted_event_attributes\x18\x34 \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributesH\x00\x12u\n*nexus_operation_scheduled_event_attributes\x18\x35 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationScheduledEventAttributesH\x00\x12q\n(nexus_operation_started_event_attributes\x18\x36 \x01(\x0b\x32=.temporal.api.history.v1.NexusOperationStartedEventAttributesH\x00\x12u\n*nexus_operation_completed_event_attributes\x18\x37 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationCompletedEventAttributesH\x00\x12o\n\'nexus_operation_failed_event_attributes\x18\x38 \x01(\x0b\x32<.temporal.api.history.v1.NexusOperationFailedEventAttributesH\x00\x12s\n)nexus_operation_canceled_event_attributes\x18\x39 \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationCanceledEventAttributesH\x00\x12t\n*nexus_operation_timed_out_event_attributes\x18: \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationTimedOutEventAttributesH\x00\x12\x82\x01\n1nexus_operation_cancel_requested_event_attributes\x18; \x01(\x0b\x32\x45.temporal.api.history.v1.NexusOperationCancelRequestedEventAttributesH\x00\x42\x0c\n\nattributes"@\n\x07History\x12\x35\n\x06\x65vents\x18\x01 \x03(\x0b\x32%.temporal.api.history.v1.HistoryEventB\x8e\x01\n\x1aio.temporal.api.history.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/history/v1;history\xaa\x02\x19Temporalio.Api.History.V1\xea\x02\x1cTemporalio::Api::History::V1b\x06proto3' + b'\n%temporal/api/history/v1/message.proto\x12\x17temporal.api.history.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a&temporal/api/enums/v1/event_type.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a"temporal/api/enums/v1/update.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xa9\x0e\n\'WorkflowExecutionStartedEventAttributes\x12;\n\rworkflow_type\x18\x01 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19parent_workflow_namespace\x18\x02 \x01(\t\x12$\n\x1cparent_workflow_namespace_id\x18\x1b \x01(\t\x12L\n\x19parent_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19parent_initiated_event_id\x18\x04 \x01(\x03\x12\x38\n\ntask_queue\x18\x05 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12"\n\x1a\x63ontinued_execution_run_id\x18\n \x01(\t\x12@\n\tinitiator\x18\x0b \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\x0c \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12!\n\x19original_execution_run_id\x18\x0e \x01(\t\x12\x10\n\x08identity\x18\x0f \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x10 \x01(\t\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x12 \x01(\x05\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x15\n\rcron_schedule\x18\x14 \x01(\t\x12>\n\x1b\x66irst_workflow_task_backoff\x18\x15 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x16 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x17 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x45\n\x16prev_auto_reset_points\x18\x18 \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12.\n\x06header\x18\x19 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12&\n\x1eparent_initiated_event_version\x18\x1a \x01(\x03\x12\x13\n\x0bworkflow_id\x18\x1c \x01(\t\x12H\n\x14source_version_stamp\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12>\n\x14\x63ompletion_callbacks\x18\x1e \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12J\n\x17root_workflow_execution\x18\x1f \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12inherited_build_id\x18 \x01(\t\x12I\n\x13versioning_override\x18! \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12/\n\'parent_pinned_worker_deployment_version\x18" \x01(\t\x12\x32\n\x08priority\x18# \x01(\x0b\x32 .temporal.api.common.v1.Priority"\xa5\x01\n)WorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x03 \x01(\t"\xdb\x01\n&WorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x36\n\x0bretry_state\x18\x02 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x1c\n\x14new_execution_run_id\x18\x04 \x01(\t"\x80\x01\n(WorkflowExecutionTimedOutEventAttributes\x12\x36\n\x0bretry_state\x18\x01 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x1c\n\x14new_execution_run_id\x18\x02 \x01(\t"\xc0\x06\n.WorkflowExecutionContinuedAsNewEventAttributes\x12\x1c\n\x14new_execution_run_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_run_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x39\n\x16\x62\x61\x63koff_start_interval\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\tinitiator\x18\t \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12\x31\n\x07\x66\x61ilure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0b \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x0c \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\r \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x0f \x01(\x08"\xac\x01\n$WorkflowTaskScheduledEventAttributes\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x39\n\x16start_to_close_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05"\x8a\x02\n"WorkflowTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x1f\n\x17suggest_continue_as_new\x18\x04 \x01(\x08\x12\x1a\n\x12history_size_bytes\x18\x05 \x01(\x03\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12!\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03"\xa5\x04\n$WorkflowTaskCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12H\n\x0csdk_metadata\x18\x06 \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12>\n\ndeployment\x18\x07 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x46\n\x13versioning_behavior\x18\x08 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12!\n\x19worker_deployment_version\x18\t \x01(\t\x12\x1e\n\x16worker_deployment_name\x18\n \x01(\t"\x95\x01\n#WorkflowTaskTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12\x38\n\x0ctimeout_type\x18\x03 \x01(\x0e\x32".temporal.api.enums.v1.TimeoutType"\xff\x02\n!WorkflowTaskFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12=\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x62\x61se_run_id\x18\x06 \x01(\t\x12\x12\n\nnew_run_id\x18\x07 \x01(\t\x12\x1a\n\x12\x66ork_event_version\x18\x08 \x01(\x03\x12\x17\n\x0f\x62inary_checksum\x18\t \x01(\t\x12\x42\n\x0eworker_version\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\xbe\x05\n$ActivityTaskScheduledEventAttributes\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x06 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x1d\n\x15use_workflow_build_id\x18\r \x01(\x08\x12\x32\n\x08priority\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.PriorityJ\x04\x08\x03\x10\x04"\x96\x02\n"ActivityTaskStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\x05\x12\x36\n\x0clast_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12!\n\x19\x62uild_id_redirect_counter\x18\x07 \x01(\x03"\xe4\x01\n$ActivityTaskCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x9a\x02\n!ActivityTaskFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x36\n\x0bretry_state\x18\x05 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\xc6\x01\n#ActivityTaskTimedOutEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1a\n\x12scheduled_event_id\x18\x02 \x01(\x03\x12\x18\n\x10started_event_id\x18\x03 \x01(\x03\x12\x36\n\x0bretry_state\x18\x04 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"r\n*ActivityTaskCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x8e\x02\n#ActivityTaskCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12(\n latest_cancel_requested_event_id\x18\x02 \x01(\x03\x12\x1a\n\x12scheduled_event_id\x18\x03 \x01(\x03\x12\x18\n\x10started_event_id\x18\x04 \x01(\x03\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"\x93\x01\n\x1bTimerStartedEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03"G\n\x19TimerFiredEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03"\x86\x01\n\x1cTimerCanceledEventAttributes\x12\x10\n\x08timer_id\x18\x01 \x01(\t\x12\x18\n\x10started_event_id\x18\x02 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12\x10\n\x08identity\x18\x04 \x01(\t"\xc7\x01\n/WorkflowExecutionCancelRequestedEventAttributes\x12\r\n\x05\x63\x61use\x18\x01 \x01(\t\x12#\n\x1b\x65xternal_initiated_event_id\x18\x02 \x01(\x03\x12N\n\x1b\x65xternal_workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x04 \x01(\t"\x87\x01\n(WorkflowExecutionCanceledEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"\xe9\x02\n\x1dMarkerRecordedEventAttributes\x12\x13\n\x0bmarker_name\x18\x01 \x01(\t\x12T\n\x07\x64\x65tails\x18\x02 \x03(\x0b\x32\x43.temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry\x12(\n workflow_task_completed_event_id\x18\x03 \x01(\x03\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x1aP\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12/\n\x05value\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads:\x02\x38\x01"\xab\x02\n(WorkflowExecutionSignaledEventAttributes\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12/\n\x05input\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12.\n\x06header\x18\x04 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\'\n\x1bskip_generate_workflow_task\x18\x05 \x01(\x08\x42\x02\x18\x01\x12N\n\x1b\x65xternal_workflow_execution\x18\x06 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x81\x01\n*WorkflowExecutionTerminatedEventAttributes\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t"\x98\x02\n>RequestCancelExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x05 \x01(\x08\x12\x0e\n\x06reason\x18\x06 \x01(\t"\xd6\x02\n;RequestCancelExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t"\xc5\x01\n7ExternalWorkflowExecutionCancelRequestedEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x04 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xf7\x02\n7SignalExternalWorkflowExecutionInitiatedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\t \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t\x12\x1b\n\x13\x63hild_workflow_only\x18\x07 \x01(\x08\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xcf\x02\n4SignalExternalWorkflowExecutionFailedEventAttributes\x12P\n\x05\x63\x61use\x18\x01 \x01(\x0e\x32\x41.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x63ontrol\x18\x06 \x01(\t"\xcf\x01\n0ExternalWorkflowExecutionSignaledEventAttributes\x12\x1a\n\x12initiated_event_id\x18\x01 \x01(\x03\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x05 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0f\n\x07\x63ontrol\x18\x04 \x01(\t"\x9e\x01\n-UpsertWorkflowSearchAttributesEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x43\n\x11search_attributes\x18\x02 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x8a\x01\n)WorkflowPropertiesModifiedEventAttributes\x12(\n workflow_task_completed_event_id\x18\x01 \x01(\x03\x12\x33\n\rupserted_memo\x18\x02 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xe0\x07\n3StartChildWorkflowExecutionInitiatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x12 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x45\n\x13parent_close_policy\x18\t \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy\x12\x0f\n\x07\x63ontrol\x18\n \x01(\t\x12(\n workflow_task_completed_event_id\x18\x0b \x01(\x03\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12.\n\x06header\x18\x0f \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12*\n\x04memo\x18\x10 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x11 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x18\n\x10inherit_build_id\x18\x13 \x01(\x08\x12\x32\n\x08priority\x18\x14 \x01(\x0b\x32 .temporal.api.common.v1.Priority"\xd2\x02\n0StartChildWorkflowExecutionFailedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12L\n\x05\x63\x61use\x18\x04 \x01(\x0e\x32=.temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause\x12\x0f\n\x07\x63ontrol\x18\x05 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x06 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03"\xa7\x02\n,ChildWorkflowExecutionStartedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x1a\n\x12initiated_event_id\x18\x02 \x01(\x03\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\x06header\x18\x05 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xc5\x02\n.ChildWorkflowExecutionCompletedEventAttributes\x12\x30\n\x06result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xfb\x02\n+ChildWorkflowExecutionFailedEventAttributes\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x08 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03\x12\x36\n\x0bretry_state\x18\x07 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\xc5\x02\n-ChildWorkflowExecutionCanceledEventAttributes\x12\x31\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x04 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x05 \x01(\x03\x12\x18\n\x10started_event_id\x18\x06 \x01(\x03"\xca\x02\n-ChildWorkflowExecutionTimedOutEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x07 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x36\n\x0bretry_state\x18\x06 \x01(\x0e\x32!.temporal.api.enums.v1.RetryState"\x94\x02\n/ChildWorkflowExecutionTerminatedEventAttributes\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0cnamespace_id\x18\x06 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x1a\n\x12initiated_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03"\x84\x02\n.WorkflowExecutionOptionsUpdatedEventAttributes\x12I\n\x13versioning_override\x18\x01 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12!\n\x19unset_versioning_override\x18\x02 \x01(\x08\x12\x1b\n\x13\x61ttached_request_id\x18\x03 \x01(\t\x12G\n\x1d\x61ttached_completion_callbacks\x18\x04 \x03(\x0b\x32 .temporal.api.common.v1.Callback"\xc0\x02\n3WorkflowPropertiesModifiedExternallyEventAttributes\x12\x16\n\x0enew_task_queue\x18\x01 \x01(\t\x12<\n\x19new_workflow_task_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x18new_workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x1enew_workflow_execution_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\rupserted_memo\x18\x05 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x90\x01\n3ActivityPropertiesModifiedExternallyEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12=\n\x10new_retry_policy\x18\x02 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\xdc\x01\n.WorkflowExecutionUpdateAcceptedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1b\x61\x63\x63\x65pted_request_message_id\x18\x02 \x01(\t\x12,\n$accepted_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10\x61\x63\x63\x65pted_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xaa\x01\n/WorkflowExecutionUpdateCompletedEventAttributes\x12*\n\x04meta\x18\x01 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x19\n\x11\x61\x63\x63\x65pted_event_id\x18\x03 \x01(\x03\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome"\x8f\x02\n.WorkflowExecutionUpdateRejectedEventAttributes\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12#\n\x1brejected_request_message_id\x18\x02 \x01(\t\x12,\n$rejected_request_sequencing_event_id\x18\x03 \x01(\x03\x12\x39\n\x10rejected_request\x18\x04 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xa4\x01\n.WorkflowExecutionUpdateAdmittedEventAttributes\x12\x30\n\x07request\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request\x12@\n\x06origin\x18\x02 \x01(\x0e\x32\x30.temporal.api.enums.v1.UpdateAdmittedEventOrigin"\xbb\x03\n&NexusOperationScheduledEventAttributes\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x66\n\x0cnexus_header\x18\x06 \x03(\x0b\x32P.temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry\x12(\n workflow_task_completed_event_id\x18\x07 \x01(\x03\x12\x12\n\nrequest_id\x18\x08 \x01(\t\x12\x13\n\x0b\x65ndpoint_id\x18\t \x01(\t\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x85\x01\n$NexusOperationStartedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x14\n\x0coperation_id\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x17\n\x0foperation_token\x18\x05 \x01(\t"\x89\x01\n&NexusOperationCompletedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12/\n\x06result\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x88\x01\n#NexusOperationFailedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x8a\x01\n%NexusOperationTimedOutEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"\x8a\x01\n%NexusOperationCanceledEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x12\n\nrequest_id\x18\x03 \x01(\t"t\n,NexusOperationCancelRequestedEventAttributes\x12\x1a\n\x12scheduled_event_id\x18\x01 \x01(\x03\x12(\n workflow_task_completed_event_id\x18\x02 \x01(\x03"\x9c\x39\n\x0cHistoryEvent\x12\x10\n\x08\x65vent_id\x18\x01 \x01(\x03\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\nevent_type\x18\x03 \x01(\x0e\x32 .temporal.api.enums.v1.EventType\x12\x0f\n\x07version\x18\x04 \x01(\x03\x12\x0f\n\x07task_id\x18\x05 \x01(\x03\x12\x1a\n\x11worker_may_ignore\x18\xac\x02 \x01(\x08\x12\x39\n\ruser_metadata\x18\xad\x02 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12,\n\x05links\x18\xae\x02 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12w\n+workflow_execution_started_event_attributes\x18\x06 \x01(\x0b\x32@.temporal.api.history.v1.WorkflowExecutionStartedEventAttributesH\x00\x12{\n-workflow_execution_completed_event_attributes\x18\x07 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowExecutionCompletedEventAttributesH\x00\x12u\n*workflow_execution_failed_event_attributes\x18\x08 \x01(\x0b\x32?.temporal.api.history.v1.WorkflowExecutionFailedEventAttributesH\x00\x12z\n-workflow_execution_timed_out_event_attributes\x18\t \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributesH\x00\x12q\n(workflow_task_scheduled_event_attributes\x18\n \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesH\x00\x12m\n&workflow_task_started_event_attributes\x18\x0b \x01(\x0b\x32;.temporal.api.history.v1.WorkflowTaskStartedEventAttributesH\x00\x12q\n(workflow_task_completed_event_attributes\x18\x0c \x01(\x0b\x32=.temporal.api.history.v1.WorkflowTaskCompletedEventAttributesH\x00\x12p\n(workflow_task_timed_out_event_attributes\x18\r \x01(\x0b\x32<.temporal.api.history.v1.WorkflowTaskTimedOutEventAttributesH\x00\x12k\n%workflow_task_failed_event_attributes\x18\x0e \x01(\x0b\x32:.temporal.api.history.v1.WorkflowTaskFailedEventAttributesH\x00\x12q\n(activity_task_scheduled_event_attributes\x18\x0f \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskScheduledEventAttributesH\x00\x12m\n&activity_task_started_event_attributes\x18\x10 \x01(\x0b\x32;.temporal.api.history.v1.ActivityTaskStartedEventAttributesH\x00\x12q\n(activity_task_completed_event_attributes\x18\x11 \x01(\x0b\x32=.temporal.api.history.v1.ActivityTaskCompletedEventAttributesH\x00\x12k\n%activity_task_failed_event_attributes\x18\x12 \x01(\x0b\x32:.temporal.api.history.v1.ActivityTaskFailedEventAttributesH\x00\x12p\n(activity_task_timed_out_event_attributes\x18\x13 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskTimedOutEventAttributesH\x00\x12^\n\x1etimer_started_event_attributes\x18\x14 \x01(\x0b\x32\x34.temporal.api.history.v1.TimerStartedEventAttributesH\x00\x12Z\n\x1ctimer_fired_event_attributes\x18\x15 \x01(\x0b\x32\x32.temporal.api.history.v1.TimerFiredEventAttributesH\x00\x12~\n/activity_task_cancel_requested_event_attributes\x18\x16 \x01(\x0b\x32\x43.temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributesH\x00\x12o\n\'activity_task_canceled_event_attributes\x18\x17 \x01(\x0b\x32<.temporal.api.history.v1.ActivityTaskCanceledEventAttributesH\x00\x12`\n\x1ftimer_canceled_event_attributes\x18\x18 \x01(\x0b\x32\x35.temporal.api.history.v1.TimerCanceledEventAttributesH\x00\x12\x62\n marker_recorded_event_attributes\x18\x19 \x01(\x0b\x32\x36.temporal.api.history.v1.MarkerRecordedEventAttributesH\x00\x12y\n,workflow_execution_signaled_event_attributes\x18\x1a \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionSignaledEventAttributesH\x00\x12}\n.workflow_execution_terminated_event_attributes\x18\x1b \x01(\x0b\x32\x43.temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_cancel_requested_event_attributes\x18\x1c \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributesH\x00\x12y\n,workflow_execution_canceled_event_attributes\x18\x1d \x01(\x0b\x32\x41.temporal.api.history.v1.WorkflowExecutionCanceledEventAttributesH\x00\x12\xa8\x01\nErequest_cancel_external_workflow_execution_initiated_event_attributes\x18\x1e \x01(\x0b\x32W.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\xa2\x01\nBrequest_cancel_external_workflow_execution_failed_event_attributes\x18\x1f \x01(\x0b\x32T.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x99\x01\n=external_workflow_execution_cancel_requested_event_attributes\x18 \x01(\x0b\x32P.temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributesH\x00\x12\x87\x01\n4workflow_execution_continued_as_new_event_attributes\x18! \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributesH\x00\x12\x91\x01\n9start_child_workflow_execution_initiated_event_attributes\x18" \x01(\x0b\x32L.temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributesH\x00\x12\x8b\x01\n6start_child_workflow_execution_failed_event_attributes\x18# \x01(\x0b\x32I.temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributesH\x00\x12\x82\x01\n1child_workflow_execution_started_event_attributes\x18$ \x01(\x0b\x32\x45.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesH\x00\x12\x86\x01\n3child_workflow_execution_completed_event_attributes\x18% \x01(\x0b\x32G.temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributesH\x00\x12\x80\x01\n0child_workflow_execution_failed_event_attributes\x18& \x01(\x0b\x32\x44.temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributesH\x00\x12\x84\x01\n2child_workflow_execution_canceled_event_attributes\x18\' \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributesH\x00\x12\x85\x01\n3child_workflow_execution_timed_out_event_attributes\x18( \x01(\x0b\x32\x46.temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributesH\x00\x12\x88\x01\n4child_workflow_execution_terminated_event_attributes\x18) \x01(\x0b\x32H.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesH\x00\x12\x99\x01\n=signal_external_workflow_execution_initiated_event_attributes\x18* \x01(\x0b\x32P.temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributesH\x00\x12\x93\x01\n:signal_external_workflow_execution_failed_event_attributes\x18+ \x01(\x0b\x32M.temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributesH\x00\x12\x8a\x01\n5external_workflow_execution_signaled_event_attributes\x18, \x01(\x0b\x32I.temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributesH\x00\x12\x84\x01\n2upsert_workflow_search_attributes_event_attributes\x18- \x01(\x0b\x32\x46.temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_accepted_event_attributes\x18. \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_rejected_event_attributes\x18/ \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributesH\x00\x12\x88\x01\n4workflow_execution_update_completed_event_attributes\x18\x30 \x01(\x0b\x32H.temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributesH\x00\x12\x90\x01\n8workflow_properties_modified_externally_event_attributes\x18\x31 \x01(\x0b\x32L.temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributesH\x00\x12\x90\x01\n8activity_properties_modified_externally_event_attributes\x18\x32 \x01(\x0b\x32L.temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributesH\x00\x12{\n-workflow_properties_modified_event_attributes\x18\x33 \x01(\x0b\x32\x42.temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_update_admitted_event_attributes\x18\x34 \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributesH\x00\x12u\n*nexus_operation_scheduled_event_attributes\x18\x35 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationScheduledEventAttributesH\x00\x12q\n(nexus_operation_started_event_attributes\x18\x36 \x01(\x0b\x32=.temporal.api.history.v1.NexusOperationStartedEventAttributesH\x00\x12u\n*nexus_operation_completed_event_attributes\x18\x37 \x01(\x0b\x32?.temporal.api.history.v1.NexusOperationCompletedEventAttributesH\x00\x12o\n\'nexus_operation_failed_event_attributes\x18\x38 \x01(\x0b\x32<.temporal.api.history.v1.NexusOperationFailedEventAttributesH\x00\x12s\n)nexus_operation_canceled_event_attributes\x18\x39 \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationCanceledEventAttributesH\x00\x12t\n*nexus_operation_timed_out_event_attributes\x18: \x01(\x0b\x32>.temporal.api.history.v1.NexusOperationTimedOutEventAttributesH\x00\x12\x82\x01\n1nexus_operation_cancel_requested_event_attributes\x18; \x01(\x0b\x32\x45.temporal.api.history.v1.NexusOperationCancelRequestedEventAttributesH\x00\x12\x86\x01\n3workflow_execution_options_updated_event_attributes\x18< \x01(\x0b\x32G.temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributesH\x00\x42\x0c\n\nattributes"@\n\x07History\x12\x35\n\x06\x65vents\x18\x01 \x03(\x0b\x32%.temporal.api.history.v1.HistoryEventB\x8e\x01\n\x1aio.temporal.api.history.v1B\x0cMessageProtoP\x01Z%go.temporal.io/api/history/v1;history\xaa\x02\x19Temporalio.Api.History.V1\xea\x02\x1cTemporalio::Api::History::V1b\x06proto3' ) @@ -192,6 +195,9 @@ _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ "ChildWorkflowExecutionTerminatedEventAttributes" ] +_WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ + "WorkflowExecutionOptionsUpdatedEventAttributes" +] _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES = DESCRIPTOR.message_types_by_name[ "WorkflowPropertiesModifiedExternallyEventAttributes" ] @@ -725,6 +731,19 @@ ) _sym_db.RegisterMessage(ChildWorkflowExecutionTerminatedEventAttributes) +WorkflowExecutionOptionsUpdatedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionOptionsUpdatedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionOptionsUpdatedEventAttributes) + }, + ) +) +_sym_db.RegisterMessage(WorkflowExecutionOptionsUpdatedEventAttributes) + WorkflowPropertiesModifiedExternallyEventAttributes = ( _reflection.GeneratedProtocolMessageType( "WorkflowPropertiesModifiedExternallyEventAttributes", @@ -915,130 +934,142 @@ if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\032io.temporal.api.history.v1B\014MessageProtoP\001Z%go.temporal.io/api/history/v1;history\252\002\031Temporalio.Api.History.V1\352\002\034Temporalio::Api::History::V1" + _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES.fields_by_name["deployment"]._options = None + _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES.fields_by_name[ + "deployment" + ]._serialized_options = b"\030\001" _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._options = None _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_options = b"8\001" + _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES.fields_by_name[ + "skip_generate_workflow_task" + ]._options = None + _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES.fields_by_name[ + "skip_generate_workflow_task" + ]._serialized_options = b"\030\001" _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._options = None _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_options = ( b"8\001" ) - _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 575 - _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 2232 - _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 2235 - _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 2400 - _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 2403 - _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 2622 - _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 2625 - _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 2753 - _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_start = 2756 - _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_end = 3588 - _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 3591 - _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 3763 - _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_start = 3766 - _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_end = 4032 - _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 4035 - _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 4381 - _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 4384 - _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 4533 - _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_start = 4536 - _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_end = 4919 - _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 4922 - _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 5572 - _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_start = 5575 - _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_end = 5853 - _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 5856 - _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 6084 - _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_start = 6087 - _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_end = 6369 - _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 6372 - _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 6570 - _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 6572 - _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 6686 - _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_start = 6689 - _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_end = 6959 - _TIMERSTARTEDEVENTATTRIBUTES._serialized_start = 6962 - _TIMERSTARTEDEVENTATTRIBUTES._serialized_end = 7109 - _TIMERFIREDEVENTATTRIBUTES._serialized_start = 7111 - _TIMERFIREDEVENTATTRIBUTES._serialized_end = 7182 - _TIMERCANCELEDEVENTATTRIBUTES._serialized_start = 7185 - _TIMERCANCELEDEVENTATTRIBUTES._serialized_end = 7319 - _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 7322 - _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 7521 - _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 7524 - _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 7659 - _MARKERRECORDEDEVENTATTRIBUTES._serialized_start = 7662 - _MARKERRECORDEDEVENTATTRIBUTES._serialized_end = 8023 - _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_start = 7943 - _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_end = 8023 - _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 8026 - _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 8321 - _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 8324 - _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 8453 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 8456 + _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 617 + _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 2450 + _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 2453 + _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 2618 + _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 2621 + _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 2840 + _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 2843 + _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 2971 + _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_start = 2974 + _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES._serialized_end = 3806 + _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 3809 + _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 3981 + _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_start = 3984 + _WORKFLOWTASKSTARTEDEVENTATTRIBUTES._serialized_end = 4250 + _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 4253 + _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 4802 + _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 4805 + _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 4954 + _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_start = 4957 + _WORKFLOWTASKFAILEDEVENTATTRIBUTES._serialized_end = 5340 + _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_start = 5343 + _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES._serialized_end = 6045 + _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_start = 6048 + _ACTIVITYTASKSTARTEDEVENTATTRIBUTES._serialized_end = 6326 + _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_start = 6329 + _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES._serialized_end = 6557 + _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_start = 6560 + _ACTIVITYTASKFAILEDEVENTATTRIBUTES._serialized_end = 6842 + _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_start = 6845 + _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES._serialized_end = 7043 + _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 7045 + _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 7159 + _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_start = 7162 + _ACTIVITYTASKCANCELEDEVENTATTRIBUTES._serialized_end = 7432 + _TIMERSTARTEDEVENTATTRIBUTES._serialized_start = 7435 + _TIMERSTARTEDEVENTATTRIBUTES._serialized_end = 7582 + _TIMERFIREDEVENTATTRIBUTES._serialized_start = 7584 + _TIMERFIREDEVENTATTRIBUTES._serialized_end = 7655 + _TIMERCANCELEDEVENTATTRIBUTES._serialized_start = 7658 + _TIMERCANCELEDEVENTATTRIBUTES._serialized_end = 7792 + _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 7795 + _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 7994 + _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 7997 + _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 8132 + _MARKERRECORDEDEVENTATTRIBUTES._serialized_start = 8135 + _MARKERRECORDEDEVENTATTRIBUTES._serialized_end = 8496 + _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_start = 8416 + _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY._serialized_end = 8496 + _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 8499 + _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 8798 + _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 8801 + _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 8930 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 8933 _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = ( - 8736 + 9213 ) _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = ( - 8739 + 9216 ) - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 9081 - _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 9084 - _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 9281 - _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 9284 - _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 9659 - _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 9662 - _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 9997 - _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 10000 - _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 10207 - _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_start = 10210 - _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_end = 10368 - _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_start = 10371 - _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_end = 10509 - _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 10512 - _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 11452 - _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 11455 - _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 11793 - _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 11796 - _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 12091 - _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 12094 - _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 12419 - _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 12422 - _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 12801 - _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 12804 - _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 13129 - _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 13132 - _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 13462 - _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 13465 - _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 13741 - _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 13744 - _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 14064 - _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 14067 - _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 14211 - _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_start = 14214 - _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_end = 14434 - _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_start = 14437 - _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_end = 14607 - _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_start = 14610 - _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_end = 14881 - _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_start = 14884 - _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_end = 15048 - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_start = 15051 - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_end = 15494 - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_start = 15444 - _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_end = 15494 - _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_start = 15496 - _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_end = 15604 - _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 15607 - _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 15744 - _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_start = 15747 - _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_end = 15883 - _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 15886 - _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 16024 - _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_start = 16027 - _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_end = 16165 - _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 16167 - _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 16283 - _HISTORYEVENT._serialized_start = 16286 - _HISTORYEVENT._serialized_end = 23473 - _HISTORY._serialized_start = 23475 - _HISTORY._serialized_end = 23539 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 9558 + _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 9561 + _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 9758 + _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 9761 + _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 10136 + _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 10139 + _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 10474 + _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_start = 10477 + _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 10684 + _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_start = 10687 + _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES._serialized_end = 10845 + _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_start = 10848 + _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES._serialized_end = 10986 + _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 10989 + _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = 11981 + _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 11984 + _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 12322 + _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_start = 12325 + _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES._serialized_end = 12620 + _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 12623 + _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 12948 + _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_start = 12951 + _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES._serialized_end = 13330 + _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_start = 13333 + _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES._serialized_end = 13658 + _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 13661 + _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 13991 + _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 13994 + _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 14270 + _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES._serialized_start = 14273 + _WORKFLOWEXECUTIONOPTIONSUPDATEDEVENTATTRIBUTES._serialized_end = 14533 + _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 14536 + _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 14856 + _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_start = 14859 + _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES._serialized_end = 15003 + _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_start = 15006 + _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES._serialized_end = 15226 + _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_start = 15229 + _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES._serialized_end = 15399 + _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_start = 15402 + _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES._serialized_end = 15673 + _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_start = 15676 + _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES._serialized_end = 15840 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_start = 15843 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES._serialized_end = 16286 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_start = 16236 + _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY._serialized_end = 16286 + _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_start = 16289 + _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES._serialized_end = 16422 + _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_start = 16425 + _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES._serialized_end = 16562 + _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_start = 16565 + _NEXUSOPERATIONFAILEDEVENTATTRIBUTES._serialized_end = 16701 + _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_start = 16704 + _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES._serialized_end = 16842 + _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_start = 16845 + _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES._serialized_end = 16983 + _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_start = 16985 + _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES._serialized_end = 17101 + _HISTORYEVENT._serialized_start = 17104 + _HISTORYEVENT._serialized_end = 24428 + _HISTORY._serialized_start = 24430 + _HISTORY._serialized_end = 24494 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/history/v1/message_pb2.pyi b/temporalio/api/history/v1/message_pb2.pyi index c2b299ef4..3579f71ab 100644 --- a/temporalio/api/history/v1/message_pb2.pyi +++ b/temporalio/api/history/v1/message_pb2.pyi @@ -35,6 +35,7 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import temporalio.api.common.v1.message_pb2 +import temporalio.api.deployment.v1.message_pb2 import temporalio.api.enums.v1.event_type_pb2 import temporalio.api.enums.v1.failed_cause_pb2 import temporalio.api.enums.v1.update_pb2 @@ -90,6 +91,9 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int ROOT_WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int INHERITED_BUILD_ID_FIELD_NUMBER: builtins.int + VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int + PARENT_PINNED_WORKER_DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... parent_workflow_namespace: builtins.str @@ -184,7 +188,7 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): ) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: """If this workflow intends to use anything other than the current overall default version for the queue, then we include it here. - Deprecated. use `inherited_build_id` instead + Deprecated. [cleanup-experimental-wv] """ @property def completion_callbacks( @@ -216,7 +220,24 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): - The root workflow of W1 is W1 and the root workflow of W2 is W2. """ inherited_build_id: builtins.str - """When present, this execution is assigned to the build ID of its parent or previous execution.""" + """When present, this execution is assigned to the build ID of its parent or previous execution. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ + @property + def versioning_override( + self, + ) -> temporalio.api.workflow.v1.message_pb2.VersioningOverride: + """Versioning override applied to this workflow when it was started.""" + parent_pinned_worker_deployment_version: builtins.str + """When present, it means this is a child workflow of a parent that is Pinned to this Worker + Deployment Version. In this case, child workflow will start as Pinned to this Version instead + of starting on the Current Version of its Task Queue. + This is set only if the child workflow is starting on a Task Queue belonging to the same + Worker Deployment Version. + """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata""" def __init__( self, *, @@ -262,6 +283,10 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): root_workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution | None = ..., inherited_build_id: builtins.str = ..., + versioning_override: temporalio.api.workflow.v1.message_pb2.VersioningOverride + | None = ..., + parent_pinned_worker_deployment_version: builtins.str = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -282,6 +307,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"parent_workflow_execution", "prev_auto_reset_points", b"prev_auto_reset_points", + "priority", + b"priority", "retry_policy", b"retry_policy", "root_workflow_execution", @@ -292,6 +319,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"source_version_stamp", "task_queue", b"task_queue", + "versioning_override", + b"versioning_override", "workflow_execution_expiration_time", b"workflow_execution_expiration_time", "workflow_execution_timeout", @@ -341,6 +370,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"parent_initiated_event_id", "parent_initiated_event_version", b"parent_initiated_event_version", + "parent_pinned_worker_deployment_version", + b"parent_pinned_worker_deployment_version", "parent_workflow_execution", b"parent_workflow_execution", "parent_workflow_namespace", @@ -349,6 +380,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"parent_workflow_namespace_id", "prev_auto_reset_points", b"prev_auto_reset_points", + "priority", + b"priority", "retry_policy", b"retry_policy", "root_workflow_execution", @@ -359,6 +392,8 @@ class WorkflowExecutionStartedEventAttributes(google.protobuf.message.Message): b"source_version_stamp", "task_queue", b"task_queue", + "versioning_override", + b"versioning_override", "workflow_execution_expiration_time", b"workflow_execution_expiration_time", "workflow_execution_timeout", @@ -710,10 +745,13 @@ class WorkflowTaskStartedEventAttributes(google.protobuf.message.Message): """ @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: - """Version info of the worker to whom this task was dispatched.""" + """Version info of the worker to whom this task was dispatched. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ build_id_redirect_counter: builtins.int """Used by server internally to properly reapply build ID redirects to an execution when rebuilding it from events. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ def __init__( self, @@ -762,6 +800,10 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): WORKER_VERSION_FIELD_NUMBER: builtins.int SDK_METADATA_FIELD_NUMBER: builtins.int METERING_METADATA_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int + WORKER_DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int + WORKER_DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to""" started_event_id: builtins.int @@ -775,7 +817,7 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): """Version info of the worker who processed this workflow task. If present, the `build_id` field within is also used as `binary_checksum`, which may be omitted in that case (it may also be populated to preserve compatibility). - Deprecated. Use the info inside the corresponding WorkflowTaskStartedEvent + Deprecated. Use `deployment` and `versioning_behavior` instead. """ @property def sdk_metadata( @@ -789,6 +831,30 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): self, ) -> temporalio.api.common.v1.message_pb2.MeteringMetadata: """Local usage data sent during workflow task completion and recorded here for posterity""" + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """The deployment that completed this task. May or may not be set for unversioned workers, + depending on whether a value is sent by the SDK. This value updates workflow execution's + `versioning_info.deployment`. + Deprecated. Replaced with `worker_deployment_version`. + """ + versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType + ) + """Versioning behavior sent by the worker that completed this task for this particular workflow + execution. UNSPECIFIED means the task was completed by an unversioned worker. This value + updates workflow execution's `versioning_info.behavior`. + """ + worker_deployment_version: builtins.str + """The Worker Deployment Version that completed this task. Must be set if `versioning_behavior` + is set. This value updates workflow execution's `versioning_info.version`. + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ + worker_deployment_name: builtins.str + """The name of Worker Deployment that completed this task. Must be set if `versioning_behavior` + is set. This value updates workflow execution's `worker_deployment_name`. + Experimental. Worker Deployments are experimental and might significantly change in the future. + """ def __init__( self, *, @@ -802,10 +868,16 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): | None = ..., metering_metadata: temporalio.api.common.v1.message_pb2.MeteringMetadata | None = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + versioning_behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType = ..., + worker_deployment_version: builtins.str = ..., + worker_deployment_name: builtins.str = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ + "deployment", + b"deployment", "metering_metadata", b"metering_metadata", "sdk_metadata", @@ -819,6 +891,8 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): field_name: typing_extensions.Literal[ "binary_checksum", b"binary_checksum", + "deployment", + b"deployment", "identity", b"identity", "metering_metadata", @@ -829,6 +903,12 @@ class WorkflowTaskCompletedEventAttributes(google.protobuf.message.Message): b"sdk_metadata", "started_event_id", b"started_event_id", + "versioning_behavior", + b"versioning_behavior", + "worker_deployment_name", + b"worker_deployment_name", + "worker_deployment_version", + b"worker_deployment_version", "worker_version", b"worker_version", ], @@ -972,6 +1052,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): WORKFLOW_TASK_COMPLETED_EVENT_ID_FIELD_NUMBER: builtins.int RETRY_POLICY_FIELD_NUMBER: builtins.int USE_WORKFLOW_BUILD_ID_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int activity_id: builtins.str """The worker/user assigned identifier for the activity""" @property @@ -1024,6 +1105,11 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): """If this is set, the activity would be assigned to the Build ID of the workflow. Otherwise, Assignment rules of the activity's Task Queue will be used to determine the Build ID. """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata. If this message is not present, or any fields are not + present, they inherit the values from the workflow. + """ def __init__( self, *, @@ -1039,6 +1125,7 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): workflow_task_completed_event_id: builtins.int = ..., retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., use_workflow_build_id: builtins.bool = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -1051,6 +1138,8 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): b"heartbeat_timeout", "input", b"input", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -1076,6 +1165,8 @@ class ActivityTaskScheduledEventAttributes(google.protobuf.message.Message): b"heartbeat_timeout", "input", b"input", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -1120,10 +1211,13 @@ class ActivityTaskStartedEventAttributes(google.protobuf.message.Message): """ @property def worker_version(self) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: - """Version info of the worker to whom this task was dispatched.""" + """Version info of the worker to whom this task was dispatched. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ build_id_redirect_counter: builtins.int """Used by server internally to properly reapply build ID redirects to an execution when rebuilding it from events. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ def __init__( self, @@ -1714,7 +1808,7 @@ class WorkflowExecutionSignaledEventAttributes(google.protobuf.message.Message): server into the workflow task. """ skip_generate_workflow_task: builtins.bool - """Indicates the signal did not generate a new workflow task when received.""" + """This field is deprecated and never respected. It should always be set to false.""" @property def external_workflow_execution( self, @@ -2312,6 +2406,7 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( MEMO_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int INHERIT_BUILD_ID_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the child workflow. SDKs and UI tools should use `namespace` field but server must use `namespace_id` only. @@ -2361,6 +2456,9 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( """If this is set, the child workflow inherits the Build ID of the parent. Otherwise, the assignment rules of the child's Task Queue will be used to independently assign a Build ID to it. """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata""" def __init__( self, *, @@ -2384,6 +2482,7 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes | None = ..., inherit_build_id: builtins.bool = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -2394,6 +2493,8 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( b"input", "memo", b"memo", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", @@ -2431,6 +2532,8 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( b"namespace_id", "parent_close_policy", b"parent_close_policy", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", @@ -2957,9 +3060,74 @@ global___ChildWorkflowExecutionTerminatedEventAttributes = ( ChildWorkflowExecutionTerminatedEventAttributes ) +class WorkflowExecutionOptionsUpdatedEventAttributes(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int + UNSET_VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int + ATTACHED_REQUEST_ID_FIELD_NUMBER: builtins.int + ATTACHED_COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int + @property + def versioning_override( + self, + ) -> temporalio.api.workflow.v1.message_pb2.VersioningOverride: + """Versioning override upserted in this event. + Ignored if nil or if unset_versioning_override is true. + """ + unset_versioning_override: builtins.bool + """Versioning override removed in this event.""" + attached_request_id: builtins.str + """Request ID attachedto the running workflow execution so that subsequent requests with same + request ID will be deduped. + """ + @property + def attached_completion_callbacks( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.common.v1.message_pb2.Callback + ]: + """Completion callbacks attached to the running workflow execution.""" + def __init__( + self, + *, + versioning_override: temporalio.api.workflow.v1.message_pb2.VersioningOverride + | None = ..., + unset_versioning_override: builtins.bool = ..., + attached_request_id: builtins.str = ..., + attached_completion_callbacks: collections.abc.Iterable[ + temporalio.api.common.v1.message_pb2.Callback + ] + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "versioning_override", b"versioning_override" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "attached_completion_callbacks", + b"attached_completion_callbacks", + "attached_request_id", + b"attached_request_id", + "unset_versioning_override", + b"unset_versioning_override", + "versioning_override", + b"versioning_override", + ], + ) -> None: ... + +global___WorkflowExecutionOptionsUpdatedEventAttributes = ( + WorkflowExecutionOptionsUpdatedEventAttributes +) + class WorkflowPropertiesModifiedExternallyEventAttributes( google.protobuf.message.Message ): + """Not used anywhere. Use case is replaced by WorkflowExecutionOptionsUpdatedEventAttributes""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor NEW_TASK_QUEUE_FIELD_NUMBER: builtins.int @@ -2968,24 +3136,19 @@ class WorkflowPropertiesModifiedExternallyEventAttributes( NEW_WORKFLOW_EXECUTION_TIMEOUT_FIELD_NUMBER: builtins.int UPSERTED_MEMO_FIELD_NUMBER: builtins.int new_task_queue: builtins.str - """If set to a nonempty string, future workflow tasks for this workflow shall be dispatched on - the provided queue. - """ + """Not used.""" @property def new_workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: - """If set, update the workflow task timeout to this value.""" + """Not used.""" @property def new_workflow_run_timeout(self) -> google.protobuf.duration_pb2.Duration: - """If set, update the workflow run timeout to this value. May be set to 0 for no timeout.""" + """Not used.""" @property def new_workflow_execution_timeout(self) -> google.protobuf.duration_pb2.Duration: - """If set, update the workflow execution timeout to this value. May be set to 0 for no timeout.""" + """Not used.""" @property def upserted_memo(self) -> temporalio.api.common.v1.message_pb2.Memo: - """If set, update the workflow memo with the provided values. The values will be merged with - the existing memo. If the user wants to delete values, a default/empty Payload should be - used as the value for the key being deleted. - """ + """Not used.""" def __init__( self, *, @@ -3377,26 +3540,36 @@ class NexusOperationStartedEventAttributes(google.protobuf.message.Message): SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int OPERATION_ID_FIELD_NUMBER: builtins.int REQUEST_ID_FIELD_NUMBER: builtins.int + OPERATION_TOKEN_FIELD_NUMBER: builtins.int scheduled_event_id: builtins.int """The ID of the `NEXUS_OPERATION_SCHEDULED` event this task corresponds to.""" operation_id: builtins.str """The operation ID returned by the Nexus handler in the response to the StartOperation request. This ID is used when canceling the operation. + + Deprecated: Renamed to operation_token. """ request_id: builtins.str """The request ID allocated at schedule time.""" + operation_token: builtins.str + """The operation token returned by the Nexus handler in the response to the StartOperation request. + This token is used when canceling the operation. + """ def __init__( self, *, scheduled_event_id: builtins.int = ..., operation_id: builtins.str = ..., request_id: builtins.str = ..., + operation_token: builtins.str = ..., ) -> None: ... def ClearField( self, field_name: typing_extensions.Literal[ "operation_id", b"operation_id", + "operation_token", + b"operation_token", "request_id", b"request_id", "scheduled_event_id", @@ -3672,6 +3845,7 @@ class HistoryEvent(google.protobuf.message.Message): NEXUS_OPERATION_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int NEXUS_OPERATION_TIMED_OUT_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int NEXUS_OPERATION_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + WORKFLOW_EXECUTION_OPTIONS_UPDATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int event_id: builtins.int """Monotonically increasing event number, starts at 1.""" @property @@ -3919,6 +4093,10 @@ class HistoryEvent(google.protobuf.message.Message): def nexus_operation_cancel_requested_event_attributes( self, ) -> global___NexusOperationCancelRequestedEventAttributes: ... + @property + def workflow_execution_options_updated_event_attributes( + self, + ) -> global___WorkflowExecutionOptionsUpdatedEventAttributes: ... def __init__( self, *, @@ -4039,6 +4217,8 @@ class HistoryEvent(google.protobuf.message.Message): | None = ..., nexus_operation_cancel_requested_event_attributes: global___NexusOperationCancelRequestedEventAttributes | None = ..., + workflow_execution_options_updated_event_attributes: global___WorkflowExecutionOptionsUpdatedEventAttributes + | None = ..., ) -> None: ... def HasField( self, @@ -4127,6 +4307,8 @@ class HistoryEvent(google.protobuf.message.Message): b"workflow_execution_continued_as_new_event_attributes", "workflow_execution_failed_event_attributes", b"workflow_execution_failed_event_attributes", + "workflow_execution_options_updated_event_attributes", + b"workflow_execution_options_updated_event_attributes", "workflow_execution_signaled_event_attributes", b"workflow_execution_signaled_event_attributes", "workflow_execution_started_event_attributes", @@ -4258,6 +4440,8 @@ class HistoryEvent(google.protobuf.message.Message): b"workflow_execution_continued_as_new_event_attributes", "workflow_execution_failed_event_attributes", b"workflow_execution_failed_event_attributes", + "workflow_execution_options_updated_event_attributes", + b"workflow_execution_options_updated_event_attributes", "workflow_execution_signaled_event_attributes", b"workflow_execution_signaled_event_attributes", "workflow_execution_started_event_attributes", @@ -4348,6 +4532,7 @@ class HistoryEvent(google.protobuf.message.Message): "nexus_operation_canceled_event_attributes", "nexus_operation_timed_out_event_attributes", "nexus_operation_cancel_requested_event_attributes", + "workflow_execution_options_updated_event_attributes", ] | None ): ... diff --git a/temporalio/api/nexus/v1/message_pb2.py b/temporalio/api/nexus/v1/message_pb2.py index ed0da7601..8884720ff 100644 --- a/temporalio/api/nexus/v1/message_pb2.py +++ b/temporalio/api/nexus/v1/message_pb2.py @@ -19,9 +19,12 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.enums.v1 import ( + nexus_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_nexus__pb2, +) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n#temporal/api/nexus/v1/message.proto\x12\x15temporal.api.nexus.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto"\x9c\x01\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12>\n\x08metadata\x18\x02 \x03(\x0b\x32,.temporal.api.nexus.v1.Failure.MetadataEntry\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"S\n\x0cHandlerError\x12\x12\n\nerror_type\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure"f\n\x1aUnsuccessfulOperationError\x12\x17\n\x0foperation_state\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure"!\n\x04Link\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t"\xd1\x02\n\x15StartOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x10\n\x08\x63\x61llback\x18\x04 \x01(\t\x12\x30\n\x07payload\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12Y\n\x0f\x63\x61llback_header\x18\x06 \x03(\x0b\x32@.temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry\x12*\n\x05links\x18\x07 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x1a\x35\n\x13\x43\x61llbackHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"R\n\x16\x43\x61ncelOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x14\n\x0coperation_id\x18\x03 \x01(\t"\xc7\x02\n\x07Request\x12:\n\x06header\x18\x01 \x03(\x0b\x32*.temporal.api.nexus.v1.Request.HeaderEntry\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12G\n\x0fstart_operation\x18\x03 \x01(\x0b\x32,.temporal.api.nexus.v1.StartOperationRequestH\x00\x12I\n\x10\x63\x61ncel_operation\x18\x04 \x01(\x0b\x32-.temporal.api.nexus.v1.CancelOperationRequestH\x00\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07variant"\x90\x03\n\x16StartOperationResponse\x12J\n\x0csync_success\x18\x01 \x01(\x0b\x32\x32.temporal.api.nexus.v1.StartOperationResponse.SyncH\x00\x12L\n\rasync_success\x18\x02 \x01(\x0b\x32\x33.temporal.api.nexus.v1.StartOperationResponse.AsyncH\x00\x12L\n\x0foperation_error\x18\x03 \x01(\x0b\x32\x31.temporal.api.nexus.v1.UnsuccessfulOperationErrorH\x00\x1a\x38\n\x04Sync\x12\x30\n\x07payload\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x1aI\n\x05\x41sync\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12*\n\x05links\x18\x02 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.LinkB\t\n\x07variant"\x19\n\x17\x43\x61ncelOperationResponse"\xab\x01\n\x08Response\x12H\n\x0fstart_operation\x18\x01 \x01(\x0b\x32-.temporal.api.nexus.v1.StartOperationResponseH\x00\x12J\n\x10\x63\x61ncel_operation\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.CancelOperationResponseH\x00\x42\t\n\x07variant"\xd8\x01\n\x08\x45ndpoint\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\n\n\x02id\x18\x02 \x01(\t\x12\x31\n\x04spec\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec\x12\x30\n\x0c\x63reated_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nurl_prefix\x18\x06 \x01(\t"\x89\x01\n\x0c\x45ndpointSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x35\n\x06target\x18\x03 \x01(\x0b\x32%.temporal.api.nexus.v1.EndpointTarget"\xe9\x01\n\x0e\x45ndpointTarget\x12>\n\x06worker\x18\x01 \x01(\x0b\x32,.temporal.api.nexus.v1.EndpointTarget.WorkerH\x00\x12\x42\n\x08\x65xternal\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.EndpointTarget.ExternalH\x00\x1a/\n\x06Worker\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x1a\x17\n\x08\x45xternal\x12\x0b\n\x03url\x18\x01 \x01(\tB\t\n\x07variantB\x84\x01\n\x18io.temporal.api.nexus.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/nexus/v1;nexus\xaa\x02\x17Temporalio.Api.Nexus.V1\xea\x02\x1aTemporalio::Api::Nexus::V1b\x06proto3' + b'\n#temporal/api/nexus/v1/message.proto\x12\x15temporal.api.nexus.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a!temporal/api/enums/v1/nexus.proto"\x9c\x01\n\x07\x46\x61ilure\x12\x0f\n\x07message\x18\x01 \x01(\t\x12>\n\x08metadata\x18\x02 \x03(\x0b\x32,.temporal.api.nexus.v1.Failure.MetadataEntry\x12\x0f\n\x07\x64\x65tails\x18\x03 \x01(\x0c\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xa2\x01\n\x0cHandlerError\x12\x12\n\nerror_type\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure\x12M\n\x0eretry_behavior\x18\x03 \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusHandlerErrorRetryBehavior"f\n\x1aUnsuccessfulOperationError\x12\x17\n\x0foperation_state\x18\x01 \x01(\t\x12/\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Failure"!\n\x04Link\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t"\xd1\x02\n\x15StartOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x10\n\x08\x63\x61llback\x18\x04 \x01(\t\x12\x30\n\x07payload\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12Y\n\x0f\x63\x61llback_header\x18\x06 \x03(\x0b\x32@.temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry\x12*\n\x05links\x18\x07 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x1a\x35\n\x13\x43\x61llbackHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"k\n\x16\x43\x61ncelOperationRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x14\n\x0coperation_id\x18\x03 \x01(\t\x12\x17\n\x0foperation_token\x18\x04 \x01(\t"\xc7\x02\n\x07Request\x12:\n\x06header\x18\x01 \x03(\x0b\x32*.temporal.api.nexus.v1.Request.HeaderEntry\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12G\n\x0fstart_operation\x18\x03 \x01(\x0b\x32,.temporal.api.nexus.v1.StartOperationRequestH\x00\x12I\n\x10\x63\x61ncel_operation\x18\x04 \x01(\x0b\x32-.temporal.api.nexus.v1.CancelOperationRequestH\x00\x1a-\n\x0bHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07variant"\xd5\x03\n\x16StartOperationResponse\x12J\n\x0csync_success\x18\x01 \x01(\x0b\x32\x32.temporal.api.nexus.v1.StartOperationResponse.SyncH\x00\x12L\n\rasync_success\x18\x02 \x01(\x0b\x32\x33.temporal.api.nexus.v1.StartOperationResponse.AsyncH\x00\x12L\n\x0foperation_error\x18\x03 \x01(\x0b\x32\x31.temporal.api.nexus.v1.UnsuccessfulOperationErrorH\x00\x1a\x64\n\x04Sync\x12\x30\n\x07payload\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12*\n\x05links\x18\x02 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x1a\x62\n\x05\x41sync\x12\x14\n\x0coperation_id\x18\x01 \x01(\t\x12*\n\x05links\x18\x02 \x03(\x0b\x32\x1b.temporal.api.nexus.v1.Link\x12\x17\n\x0foperation_token\x18\x03 \x01(\tB\t\n\x07variant"\x19\n\x17\x43\x61ncelOperationResponse"\xab\x01\n\x08Response\x12H\n\x0fstart_operation\x18\x01 \x01(\x0b\x32-.temporal.api.nexus.v1.StartOperationResponseH\x00\x12J\n\x10\x63\x61ncel_operation\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.CancelOperationResponseH\x00\x42\t\n\x07variant"\xd8\x01\n\x08\x45ndpoint\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\n\n\x02id\x18\x02 \x01(\t\x12\x31\n\x04spec\x18\x03 \x01(\x0b\x32#.temporal.api.nexus.v1.EndpointSpec\x12\x30\n\x0c\x63reated_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_modified_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nurl_prefix\x18\x06 \x01(\t"\x89\x01\n\x0c\x45ndpointSpec\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x35\n\x06target\x18\x03 \x01(\x0b\x32%.temporal.api.nexus.v1.EndpointTarget"\xe9\x01\n\x0e\x45ndpointTarget\x12>\n\x06worker\x18\x01 \x01(\x0b\x32,.temporal.api.nexus.v1.EndpointTarget.WorkerH\x00\x12\x42\n\x08\x65xternal\x18\x02 \x01(\x0b\x32..temporal.api.nexus.v1.EndpointTarget.ExternalH\x00\x1a/\n\x06Worker\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x1a\x17\n\x08\x45xternal\x12\x0b\n\x03url\x18\x01 \x01(\tB\t\n\x07variantB\x84\x01\n\x18io.temporal.api.nexus.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/nexus/v1;nexus\xaa\x02\x17Temporalio.Api.Nexus.V1\xea\x02\x1aTemporalio::Api::Nexus::V1b\x06proto3' ) @@ -271,44 +274,44 @@ _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_options = b"8\001" _REQUEST_HEADERENTRY._options = None _REQUEST_HEADERENTRY._serialized_options = b"8\001" - _FAILURE._serialized_start = 134 - _FAILURE._serialized_end = 290 - _FAILURE_METADATAENTRY._serialized_start = 243 - _FAILURE_METADATAENTRY._serialized_end = 290 - _HANDLERERROR._serialized_start = 292 - _HANDLERERROR._serialized_end = 375 - _UNSUCCESSFULOPERATIONERROR._serialized_start = 377 - _UNSUCCESSFULOPERATIONERROR._serialized_end = 479 - _LINK._serialized_start = 481 - _LINK._serialized_end = 514 - _STARTOPERATIONREQUEST._serialized_start = 517 - _STARTOPERATIONREQUEST._serialized_end = 854 - _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_start = 801 - _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_end = 854 - _CANCELOPERATIONREQUEST._serialized_start = 856 - _CANCELOPERATIONREQUEST._serialized_end = 938 - _REQUEST._serialized_start = 941 - _REQUEST._serialized_end = 1268 - _REQUEST_HEADERENTRY._serialized_start = 1212 - _REQUEST_HEADERENTRY._serialized_end = 1257 - _STARTOPERATIONRESPONSE._serialized_start = 1271 - _STARTOPERATIONRESPONSE._serialized_end = 1671 - _STARTOPERATIONRESPONSE_SYNC._serialized_start = 1529 - _STARTOPERATIONRESPONSE_SYNC._serialized_end = 1585 - _STARTOPERATIONRESPONSE_ASYNC._serialized_start = 1587 - _STARTOPERATIONRESPONSE_ASYNC._serialized_end = 1660 - _CANCELOPERATIONRESPONSE._serialized_start = 1673 - _CANCELOPERATIONRESPONSE._serialized_end = 1698 - _RESPONSE._serialized_start = 1701 - _RESPONSE._serialized_end = 1872 - _ENDPOINT._serialized_start = 1875 - _ENDPOINT._serialized_end = 2091 - _ENDPOINTSPEC._serialized_start = 2094 - _ENDPOINTSPEC._serialized_end = 2231 - _ENDPOINTTARGET._serialized_start = 2234 - _ENDPOINTTARGET._serialized_end = 2467 - _ENDPOINTTARGET_WORKER._serialized_start = 2384 - _ENDPOINTTARGET_WORKER._serialized_end = 2431 - _ENDPOINTTARGET_EXTERNAL._serialized_start = 2433 - _ENDPOINTTARGET_EXTERNAL._serialized_end = 2456 + _FAILURE._serialized_start = 169 + _FAILURE._serialized_end = 325 + _FAILURE_METADATAENTRY._serialized_start = 278 + _FAILURE_METADATAENTRY._serialized_end = 325 + _HANDLERERROR._serialized_start = 328 + _HANDLERERROR._serialized_end = 490 + _UNSUCCESSFULOPERATIONERROR._serialized_start = 492 + _UNSUCCESSFULOPERATIONERROR._serialized_end = 594 + _LINK._serialized_start = 596 + _LINK._serialized_end = 629 + _STARTOPERATIONREQUEST._serialized_start = 632 + _STARTOPERATIONREQUEST._serialized_end = 969 + _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_start = 916 + _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY._serialized_end = 969 + _CANCELOPERATIONREQUEST._serialized_start = 971 + _CANCELOPERATIONREQUEST._serialized_end = 1078 + _REQUEST._serialized_start = 1081 + _REQUEST._serialized_end = 1408 + _REQUEST_HEADERENTRY._serialized_start = 1352 + _REQUEST_HEADERENTRY._serialized_end = 1397 + _STARTOPERATIONRESPONSE._serialized_start = 1411 + _STARTOPERATIONRESPONSE._serialized_end = 1880 + _STARTOPERATIONRESPONSE_SYNC._serialized_start = 1669 + _STARTOPERATIONRESPONSE_SYNC._serialized_end = 1769 + _STARTOPERATIONRESPONSE_ASYNC._serialized_start = 1771 + _STARTOPERATIONRESPONSE_ASYNC._serialized_end = 1869 + _CANCELOPERATIONRESPONSE._serialized_start = 1882 + _CANCELOPERATIONRESPONSE._serialized_end = 1907 + _RESPONSE._serialized_start = 1910 + _RESPONSE._serialized_end = 2081 + _ENDPOINT._serialized_start = 2084 + _ENDPOINT._serialized_end = 2300 + _ENDPOINTSPEC._serialized_start = 2303 + _ENDPOINTSPEC._serialized_end = 2440 + _ENDPOINTTARGET._serialized_start = 2443 + _ENDPOINTTARGET._serialized_end = 2676 + _ENDPOINTTARGET_WORKER._serialized_start = 2593 + _ENDPOINTTARGET_WORKER._serialized_end = 2640 + _ENDPOINTTARGET_EXTERNAL._serialized_start = 2642 + _ENDPOINTTARGET_EXTERNAL._serialized_end = 2665 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/nexus/v1/message_pb2.pyi b/temporalio/api/nexus/v1/message_pb2.pyi index 27d15e7a8..f9279f6b2 100644 --- a/temporalio/api/nexus/v1/message_pb2.pyi +++ b/temporalio/api/nexus/v1/message_pb2.pyi @@ -32,6 +32,7 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import temporalio.api.common.v1.message_pb2 +import temporalio.api.enums.v1.nexus_pb2 if sys.version_info >= (3, 8): import typing as typing_extensions @@ -74,6 +75,7 @@ class Failure(google.protobuf.message.Message): self, ) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... details: builtins.bytes + """UTF-8 encoded JSON serializable details.""" def __init__( self, *, @@ -95,15 +97,21 @@ class HandlerError(google.protobuf.message.Message): ERROR_TYPE_FIELD_NUMBER: builtins.int FAILURE_FIELD_NUMBER: builtins.int + RETRY_BEHAVIOR_FIELD_NUMBER: builtins.int error_type: builtins.str """See https://github.com/nexus-rpc/api/blob/main/SPEC.md#predefined-handler-errors.""" @property def failure(self) -> global___Failure: ... + retry_behavior: ( + temporalio.api.enums.v1.nexus_pb2.NexusHandlerErrorRetryBehavior.ValueType + ) + """Retry behavior, defaults to the retry behavior of the error type as defined in the spec.""" def __init__( self, *, error_type: builtins.str = ..., failure: global___Failure | None = ..., + retry_behavior: temporalio.api.enums.v1.nexus_pb2.NexusHandlerErrorRetryBehavior.ValueType = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal["failure", b"failure"] @@ -111,7 +119,12 @@ class HandlerError(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ - "error_type", b"error_type", "failure", b"failure" + "error_type", + b"error_type", + "failure", + b"failure", + "retry_behavior", + b"retry_behavior", ], ) -> None: ... @@ -262,18 +275,25 @@ class CancelOperationRequest(google.protobuf.message.Message): SERVICE_FIELD_NUMBER: builtins.int OPERATION_FIELD_NUMBER: builtins.int OPERATION_ID_FIELD_NUMBER: builtins.int + OPERATION_TOKEN_FIELD_NUMBER: builtins.int service: builtins.str """Service name.""" operation: builtins.str """Type of operation to cancel.""" operation_id: builtins.str - """Operation ID as originally generated by a Handler.""" + """Operation ID as originally generated by a Handler. + + Deprecated: Renamed to operation_token. + """ + operation_token: builtins.str + """Operation token as originally generated by a Handler.""" def __init__( self, *, service: builtins.str = ..., operation: builtins.str = ..., operation_id: builtins.str = ..., + operation_token: builtins.str = ..., ) -> None: ... def ClearField( self, @@ -282,6 +302,8 @@ class CancelOperationRequest(google.protobuf.message.Message): b"operation", "operation_id", b"operation_id", + "operation_token", + b"operation_token", "service", b"service", ], @@ -386,18 +408,29 @@ class StartOperationResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor PAYLOAD_FIELD_NUMBER: builtins.int + LINKS_FIELD_NUMBER: builtins.int @property def payload(self) -> temporalio.api.common.v1.message_pb2.Payload: ... + @property + def links( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___Link + ]: ... def __init__( self, *, payload: temporalio.api.common.v1.message_pb2.Payload | None = ..., + links: collections.abc.Iterable[global___Link] | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal["payload", b"payload"] ) -> builtins.bool: ... def ClearField( - self, field_name: typing_extensions.Literal["payload", b"payload"] + self, + field_name: typing_extensions.Literal[ + "links", b"links", "payload", b"payload" + ], ) -> None: ... class Async(google.protobuf.message.Message): @@ -409,23 +442,32 @@ class StartOperationResponse(google.protobuf.message.Message): OPERATION_ID_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int + OPERATION_TOKEN_FIELD_NUMBER: builtins.int operation_id: builtins.str + """Deprecated: Renamed to operation_token.""" @property def links( self, ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ global___Link ]: ... + operation_token: builtins.str def __init__( self, *, operation_id: builtins.str = ..., links: collections.abc.Iterable[global___Link] | None = ..., + operation_token: builtins.str = ..., ) -> None: ... def ClearField( self, field_name: typing_extensions.Literal[ - "links", b"links", "operation_id", b"operation_id" + "links", + b"links", + "operation_id", + b"operation_id", + "operation_token", + b"operation_token", ], ) -> None: ... diff --git a/temporalio/api/query/v1/message_pb2.py b/temporalio/api/query/v1/message_pb2.py index 01c2839ec..805b30f7e 100644 --- a/temporalio/api/query/v1/message_pb2.py +++ b/temporalio/api/query/v1/message_pb2.py @@ -23,9 +23,12 @@ from temporalio.api.enums.v1 import ( workflow_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_workflow__pb2, ) +from temporalio.api.failure.v1 import ( + message_pb2 as temporal_dot_api_dot_failure_dot_v1_dot_message__pb2, +) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n#temporal/api/query/v1/message.proto\x12\x15temporal.api.query.v1\x1a!temporal/api/enums/v1/query.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto"\x89\x01\n\rWorkflowQuery\x12\x12\n\nquery_type\x18\x01 \x01(\t\x12\x34\n\nquery_args\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\x9b\x01\n\x13WorkflowQueryResult\x12;\n\x0bresult_type\x18\x01 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x30\n\x06\x61nswer\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x03 \x01(\t"O\n\rQueryRejected\x12>\n\x06status\x18\x01 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatusB\x84\x01\n\x18io.temporal.api.query.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/query/v1;query\xaa\x02\x17Temporalio.Api.Query.V1\xea\x02\x1aTemporalio::Api::Query::V1b\x06proto3' + b'\n#temporal/api/query/v1/message.proto\x12\x15temporal.api.query.v1\x1a!temporal/api/enums/v1/query.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto"\x89\x01\n\rWorkflowQuery\x12\x12\n\nquery_type\x18\x01 \x01(\t\x12\x34\n\nquery_args\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12.\n\x06header\x18\x03 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header"\xce\x01\n\x13WorkflowQueryResult\x12;\n\x0bresult_type\x18\x01 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x30\n\x06\x61nswer\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x03 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"O\n\rQueryRejected\x12>\n\x06status\x18\x01 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatusB\x84\x01\n\x18io.temporal.api.query.v1B\x0cMessageProtoP\x01Z!go.temporal.io/api/query/v1;query\xaa\x02\x17Temporalio.Api.Query.V1\xea\x02\x1aTemporalio::Api::Query::V1b\x06proto3' ) @@ -68,10 +71,10 @@ if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\030io.temporal.api.query.v1B\014MessageProtoP\001Z!go.temporal.io/api/query/v1;query\252\002\027Temporalio.Api.Query.V1\352\002\032Temporalio::Api::Query::V1" - _WORKFLOWQUERY._serialized_start = 174 - _WORKFLOWQUERY._serialized_end = 311 - _WORKFLOWQUERYRESULT._serialized_start = 314 - _WORKFLOWQUERYRESULT._serialized_end = 469 - _QUERYREJECTED._serialized_start = 471 - _QUERYREJECTED._serialized_end = 550 + _WORKFLOWQUERY._serialized_start = 213 + _WORKFLOWQUERY._serialized_end = 350 + _WORKFLOWQUERYRESULT._serialized_start = 353 + _WORKFLOWQUERYRESULT._serialized_end = 559 + _QUERYREJECTED._serialized_start = 561 + _QUERYREJECTED._serialized_end = 640 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/query/v1/message_pb2.pyi b/temporalio/api/query/v1/message_pb2.pyi index 753985513..1eb9be868 100644 --- a/temporalio/api/query/v1/message_pb2.pyi +++ b/temporalio/api/query/v1/message_pb2.pyi @@ -33,6 +33,7 @@ import google.protobuf.message import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.query_pb2 import temporalio.api.enums.v1.workflow_pb2 +import temporalio.api.failure.v1.message_pb2 if sys.version_info >= (3, 8): import typing as typing_extensions @@ -94,22 +95,37 @@ class WorkflowQueryResult(google.protobuf.message.Message): RESULT_TYPE_FIELD_NUMBER: builtins.int ANSWER_FIELD_NUMBER: builtins.int ERROR_MESSAGE_FIELD_NUMBER: builtins.int + FAILURE_FIELD_NUMBER: builtins.int result_type: temporalio.api.enums.v1.query_pb2.QueryResultType.ValueType """Did the query succeed or fail?""" @property def answer(self) -> temporalio.api.common.v1.message_pb2.Payloads: - """Set when the query succeeds with the results""" + """Set when the query succeeds with the results. + Mutually exclusive with `error_message` and `failure`. + """ error_message: builtins.str - """Mutually exclusive with `answer`. Set when the query fails.""" + """Mutually exclusive with `answer`. Set when the query fails. + See also the newer `failure` field. + """ + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The full reason for this query failure. This field is newer than `error_message` and can be encoded by the SDK's + failure converter to support E2E encryption of messages and stack traces. + Mutually exclusive with `answer`. Set when the query fails. + """ def __init__( self, *, result_type: temporalio.api.enums.v1.query_pb2.QueryResultType.ValueType = ..., answer: temporalio.api.common.v1.message_pb2.Payloads | None = ..., error_message: builtins.str = ..., + failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["answer", b"answer"] + self, + field_name: typing_extensions.Literal[ + "answer", b"answer", "failure", b"failure" + ], ) -> builtins.bool: ... def ClearField( self, @@ -118,6 +134,8 @@ class WorkflowQueryResult(google.protobuf.message.Message): b"answer", "error_message", b"error_message", + "failure", + b"failure", "result_type", b"result_type", ], diff --git a/temporalio/api/taskqueue/v1/__init__.py b/temporalio/api/taskqueue/v1/__init__.py index 70a5614c3..0c13fc708 100644 --- a/temporalio/api/taskqueue/v1/__init__.py +++ b/temporalio/api/taskqueue/v1/__init__.py @@ -4,6 +4,7 @@ CompatibleBuildIdRedirectRule, CompatibleVersionSet, PollerInfo, + PollerScalingDecision, RampByPercentage, StickyExecutionAttributes, TaskIdBlock, @@ -15,6 +16,7 @@ TaskQueueStatus, TaskQueueTypeInfo, TaskQueueVersionInfo, + TaskQueueVersioningInfo, TaskQueueVersionSelection, TimestampedBuildIdAssignmentRule, TimestampedCompatibleBuildIdRedirectRule, @@ -26,6 +28,7 @@ "CompatibleBuildIdRedirectRule", "CompatibleVersionSet", "PollerInfo", + "PollerScalingDecision", "RampByPercentage", "StickyExecutionAttributes", "TaskIdBlock", @@ -38,6 +41,7 @@ "TaskQueueTypeInfo", "TaskQueueVersionInfo", "TaskQueueVersionSelection", + "TaskQueueVersioningInfo", "TimestampedBuildIdAssignmentRule", "TimestampedCompatibleBuildIdRedirectRule", ] diff --git a/temporalio/api/taskqueue/v1/message_pb2.py b/temporalio/api/taskqueue/v1/message_pb2.py index 46c1bea11..f46012215 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.py +++ b/temporalio/api/taskqueue/v1/message_pb2.py @@ -21,17 +21,21 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.deployment.v1 import ( + message_pb2 as temporal_dot_api_dot_deployment_dot_v1_dot_message__pb2, +) from temporalio.api.enums.v1 import ( task_queue_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_task__queue__pb2, ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01"\x85\x01\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats"\xa4\x01\n\x0eTaskQueueStats\x12!\n\x19\x61pproximate_backlog_count\x18\x01 \x01(\x03\x12:\n\x17\x61pproximate_backlog_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0etasks_add_rate\x18\x03 \x01(\x02\x12\x1b\n\x13tasks_dispatch_rate\x18\x04 \x01(\x02"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t"\xc5\x01\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12V\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3' + b'\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue"\xa0\x01\n\x17TaskQueueVersioningInfo\x12\x17\n\x0f\x63urrent_version\x18\x01 \x01(\t\x12\x17\n\x0framping_version\x18\x02 \x01(\t\x12"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01"\x85\x01\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats"\xa4\x01\n\x0eTaskQueueStats\x12!\n\x19\x61pproximate_backlog_count\x18\x01 \x01(\x03\x12:\n\x17\x61pproximate_backlog_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0etasks_add_rate\x18\x03 \x01(\x02\x12\x1b\n\x13tasks_dispatch_rate\x18\x04 \x01(\x02"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t"\x9a\x02\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp">\n\x15PollerScalingDecision\x12%\n\x1dpoll_request_delta_suggestion\x18\x01 \x01(\x05\x42\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3' ) _TASKQUEUE = DESCRIPTOR.message_types_by_name["TaskQueue"] _TASKQUEUEMETADATA = DESCRIPTOR.message_types_by_name["TaskQueueMetadata"] +_TASKQUEUEVERSIONINGINFO = DESCRIPTOR.message_types_by_name["TaskQueueVersioningInfo"] _TASKQUEUEVERSIONSELECTION = DESCRIPTOR.message_types_by_name[ "TaskQueueVersionSelection" ] @@ -64,6 +68,7 @@ _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE = DESCRIPTOR.message_types_by_name[ "TimestampedCompatibleBuildIdRedirectRule" ] +_POLLERSCALINGDECISION = DESCRIPTOR.message_types_by_name["PollerScalingDecision"] TaskQueue = _reflection.GeneratedProtocolMessageType( "TaskQueue", (_message.Message,), @@ -86,6 +91,17 @@ ) _sym_db.RegisterMessage(TaskQueueMetadata) +TaskQueueVersioningInfo = _reflection.GeneratedProtocolMessageType( + "TaskQueueVersioningInfo", + (_message.Message,), + { + "DESCRIPTOR": _TASKQUEUEVERSIONINGINFO, + "__module__": "temporal.api.taskqueue.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersioningInfo) + }, +) +_sym_db.RegisterMessage(TaskQueueVersioningInfo) + TaskQueueVersionSelection = _reflection.GeneratedProtocolMessageType( "TaskQueueVersionSelection", (_message.Message,), @@ -283,49 +299,68 @@ ) _sym_db.RegisterMessage(TimestampedCompatibleBuildIdRedirectRule) +PollerScalingDecision = _reflection.GeneratedProtocolMessageType( + "PollerScalingDecision", + (_message.Message,), + { + "DESCRIPTOR": _POLLERSCALINGDECISION, + "__module__": "temporal.api.taskqueue.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.PollerScalingDecision) + }, +) +_sym_db.RegisterMessage(PollerScalingDecision) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\034io.temporal.api.taskqueue.v1B\014MessageProtoP\001Z)go.temporal.io/api/taskqueue/v1;taskqueue\252\002\033Temporalio.Api.TaskQueue.V1\352\002\036Temporalio::Api::TaskQueue::V1" _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._options = None _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_options = b"8\001" - _TASKQUEUE._serialized_start = 245 - _TASKQUEUE._serialized_end = 343 - _TASKQUEUEMETADATA._serialized_start = 345 - _TASKQUEUEMETADATA._serialized_end = 424 - _TASKQUEUEVERSIONSELECTION._serialized_start = 426 - _TASKQUEUEVERSIONSELECTION._serialized_end = 513 - _TASKQUEUEVERSIONINFO._serialized_start = 516 - _TASKQUEUEVERSIONINFO._serialized_end = 793 - _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_start = 699 - _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_end = 793 - _TASKQUEUETYPEINFO._serialized_start = 796 - _TASKQUEUETYPEINFO._serialized_end = 929 - _TASKQUEUESTATS._serialized_start = 932 - _TASKQUEUESTATS._serialized_end = 1096 - _TASKQUEUESTATUS._serialized_start = 1099 - _TASKQUEUESTATUS._serialized_end = 1271 - _TASKIDBLOCK._serialized_start = 1273 - _TASKIDBLOCK._serialized_end = 1320 - _TASKQUEUEPARTITIONMETADATA._serialized_start = 1322 - _TASKQUEUEPARTITIONMETADATA._serialized_end = 1388 - _POLLERINFO._serialized_start = 1391 - _POLLERINFO._serialized_end = 1588 - _STICKYEXECUTIONATTRIBUTES._serialized_start = 1591 - _STICKYEXECUTIONATTRIBUTES._serialized_end = 1745 - _COMPATIBLEVERSIONSET._serialized_start = 1747 - _COMPATIBLEVERSIONSET._serialized_end = 1788 - _TASKQUEUEREACHABILITY._serialized_start = 1790 - _TASKQUEUEREACHABILITY._serialized_end = 1896 - _BUILDIDREACHABILITY._serialized_start = 1898 - _BUILDIDREACHABILITY._serialized_end = 2020 - _RAMPBYPERCENTAGE._serialized_start = 2022 - _RAMPBYPERCENTAGE._serialized_end = 2065 - _BUILDIDASSIGNMENTRULE._serialized_start = 2068 - _BUILDIDASSIGNMENTRULE._serialized_end = 2196 - _COMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2198 - _COMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2279 - _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_start = 2282 - _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_end = 2429 - _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2432 - _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2595 + _POLLERINFO.fields_by_name["worker_version_capabilities"]._options = None + _POLLERINFO.fields_by_name[ + "worker_version_capabilities" + ]._serialized_options = b"\030\001" + _TASKQUEUE._serialized_start = 287 + _TASKQUEUE._serialized_end = 385 + _TASKQUEUEMETADATA._serialized_start = 387 + _TASKQUEUEMETADATA._serialized_end = 466 + _TASKQUEUEVERSIONINGINFO._serialized_start = 469 + _TASKQUEUEVERSIONINGINFO._serialized_end = 629 + _TASKQUEUEVERSIONSELECTION._serialized_start = 631 + _TASKQUEUEVERSIONSELECTION._serialized_end = 718 + _TASKQUEUEVERSIONINFO._serialized_start = 721 + _TASKQUEUEVERSIONINFO._serialized_end = 998 + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_start = 904 + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_end = 998 + _TASKQUEUETYPEINFO._serialized_start = 1001 + _TASKQUEUETYPEINFO._serialized_end = 1134 + _TASKQUEUESTATS._serialized_start = 1137 + _TASKQUEUESTATS._serialized_end = 1301 + _TASKQUEUESTATUS._serialized_start = 1304 + _TASKQUEUESTATUS._serialized_end = 1476 + _TASKIDBLOCK._serialized_start = 1478 + _TASKIDBLOCK._serialized_end = 1525 + _TASKQUEUEPARTITIONMETADATA._serialized_start = 1527 + _TASKQUEUEPARTITIONMETADATA._serialized_end = 1593 + _POLLERINFO._serialized_start = 1596 + _POLLERINFO._serialized_end = 1878 + _STICKYEXECUTIONATTRIBUTES._serialized_start = 1881 + _STICKYEXECUTIONATTRIBUTES._serialized_end = 2035 + _COMPATIBLEVERSIONSET._serialized_start = 2037 + _COMPATIBLEVERSIONSET._serialized_end = 2078 + _TASKQUEUEREACHABILITY._serialized_start = 2080 + _TASKQUEUEREACHABILITY._serialized_end = 2186 + _BUILDIDREACHABILITY._serialized_start = 2188 + _BUILDIDREACHABILITY._serialized_end = 2310 + _RAMPBYPERCENTAGE._serialized_start = 2312 + _RAMPBYPERCENTAGE._serialized_end = 2355 + _BUILDIDASSIGNMENTRULE._serialized_start = 2358 + _BUILDIDASSIGNMENTRULE._serialized_end = 2486 + _COMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2488 + _COMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2569 + _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_start = 2572 + _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_end = 2719 + _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2722 + _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2885 + _POLLERSCALINGDECISION._serialized_start = 2887 + _POLLERSCALINGDECISION._serialized_end = 2949 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/taskqueue/v1/message_pb2.pyi b/temporalio/api/taskqueue/v1/message_pb2.pyi index 4425f3144..ba61aa1ce 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.pyi +++ b/temporalio/api/taskqueue/v1/message_pb2.pyi @@ -36,6 +36,7 @@ import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 import temporalio.api.common.v1.message_pb2 +import temporalio.api.deployment.v1.message_pb2 import temporalio.api.enums.v1.task_queue_pb2 if sys.version_info >= (3, 8): @@ -105,6 +106,70 @@ class TaskQueueMetadata(google.protobuf.message.Message): global___TaskQueueMetadata = TaskQueueMetadata +class TaskQueueVersioningInfo(google.protobuf.message.Message): + """Experimental. Worker Deployments are experimental and might significantly change in the future.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CURRENT_VERSION_FIELD_NUMBER: builtins.int + RAMPING_VERSION_FIELD_NUMBER: builtins.int + RAMPING_VERSION_PERCENTAGE_FIELD_NUMBER: builtins.int + UPDATE_TIME_FIELD_NUMBER: builtins.int + current_version: builtins.str + """Always present. Specifies which Deployment Version should receive new workflow + executions and tasks of existing unversioned or AutoUpgrade workflows. + Can be one of the following: + - A Deployment Version identifier in the form ".". + - Or, the "__unversioned__" special value, to represent all the unversioned workers (those + with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + Note: Current Version is overridden by the Ramping Version for a portion of traffic when a ramp + is set (see `ramping_version`.) + """ + ramping_version: builtins.str + """When present, it means the traffic is being shifted from the Current Version to the Ramping + Version. + Must always be different from `current_version`. Can be one of the following: + - A Deployment Version identifier in the form ".". + - Or, the "__unversioned__" special value, to represent all the unversioned workers (those + with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + Note that it is possible to ramp from one Version to another Version, or from unversioned + workers to a particular Version, or from a particular Version to unversioned workers. + """ + ramping_version_percentage: builtins.float + """Percentage of tasks that are routed to the Ramping Version instead of the Current Version. + Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but + not yet "promoted" to be the Current Version, likely due to pending validations. + """ + @property + def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Last time versioning information of this Task Queue changed.""" + def __init__( + self, + *, + current_version: builtins.str = ..., + ramping_version: builtins.str = ..., + ramping_version_percentage: builtins.float = ..., + update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["update_time", b"update_time"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "current_version", + b"current_version", + "ramping_version", + b"ramping_version", + "ramping_version_percentage", + b"ramping_version_percentage", + "update_time", + b"update_time", + ], + ) -> None: ... + +global___TaskQueueVersioningInfo = TaskQueueVersioningInfo + class TaskQueueVersionSelection(google.protobuf.message.Message): """Used for specifying versions the caller is interested in.""" @@ -427,6 +492,7 @@ class PollerInfo(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int RATE_PER_SECOND_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int @property def last_access_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... identity: builtins.str @@ -437,7 +503,13 @@ class PollerInfo(google.protobuf.message.Message): ) -> temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities: """If a worker has opted into the worker versioning feature while polling, its capabilities will appear here. + Deprecated. Replaced by deployment_options. """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that SDK sent to server.""" def __init__( self, *, @@ -446,10 +518,14 @@ class PollerInfo(google.protobuf.message.Message): rate_per_second: builtins.float = ..., worker_version_capabilities: temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities | None = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ + "deployment_options", + b"deployment_options", "last_access_time", b"last_access_time", "worker_version_capabilities", @@ -459,6 +535,8 @@ class PollerInfo(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ + "deployment_options", + b"deployment_options", "identity", b"identity", "last_access_time", @@ -816,3 +894,33 @@ class TimestampedCompatibleBuildIdRedirectRule(google.protobuf.message.Message): global___TimestampedCompatibleBuildIdRedirectRule = ( TimestampedCompatibleBuildIdRedirectRule ) + +class PollerScalingDecision(google.protobuf.message.Message): + """Attached to task responses to give hints to the SDK about how it may adjust its number of + pollers. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + POLL_REQUEST_DELTA_SUGGESTION_FIELD_NUMBER: builtins.int + poll_request_delta_suggestion: builtins.int + """How many poll requests to suggest should be added or removed, if any. As of now, server only + scales up or down by 1. However, SDKs should allow for other values (while staying within + defined min/max). + + The SDK is free to ignore this suggestion, EX: making more polls would not make sense because + all slots are already occupied. + """ + def __init__( + self, + *, + poll_request_delta_suggestion: builtins.int = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "poll_request_delta_suggestion", b"poll_request_delta_suggestion" + ], + ) -> None: ... + +global___PollerScalingDecision = PollerScalingDecision diff --git a/temporalio/api/workflow/v1/__init__.py b/temporalio/api/workflow/v1/__init__.py index 42a68eb32..b49f64a9e 100644 --- a/temporalio/api/workflow/v1/__init__.py +++ b/temporalio/api/workflow/v1/__init__.py @@ -1,27 +1,41 @@ from .message_pb2 import ( CallbackInfo, + DeploymentTransition, + DeploymentVersionTransition, NewWorkflowExecutionInfo, NexusOperationCancellationInfo, + OnConflictOptions, PendingActivityInfo, PendingChildExecutionInfo, PendingNexusOperationInfo, PendingWorkflowTaskInfo, ResetPointInfo, ResetPoints, + VersioningOverride, WorkflowExecutionConfig, + WorkflowExecutionExtendedInfo, WorkflowExecutionInfo, + WorkflowExecutionOptions, + WorkflowExecutionVersioningInfo, ) __all__ = [ "CallbackInfo", + "DeploymentTransition", + "DeploymentVersionTransition", "NewWorkflowExecutionInfo", "NexusOperationCancellationInfo", + "OnConflictOptions", "PendingActivityInfo", "PendingChildExecutionInfo", "PendingNexusOperationInfo", "PendingWorkflowTaskInfo", "ResetPointInfo", "ResetPoints", + "VersioningOverride", "WorkflowExecutionConfig", + "WorkflowExecutionExtendedInfo", "WorkflowExecutionInfo", + "WorkflowExecutionOptions", + "WorkflowExecutionVersioningInfo", ] diff --git a/temporalio/api/workflow/v1/message_pb2.py b/temporalio/api/workflow/v1/message_pb2.py index 181586f83..05b8ce6bb 100644 --- a/temporalio/api/workflow/v1/message_pb2.py +++ b/temporalio/api/workflow/v1/message_pb2.py @@ -21,6 +21,9 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.deployment.v1 import ( + message_pb2 as temporal_dot_api_dot_deployment_dot_v1_dot_message__pb2, +) from temporalio.api.enums.v1 import ( common_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_common__pb2, ) @@ -38,11 +41,21 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n&temporal/api/workflow/v1/message.proto\x12\x18temporal.api.workflow.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\xf7\x07\n\x15WorkflowExecutionInfo\x12<\n\texecution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x04type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12\x16\n\x0ehistory_length\x18\x06 \x01(\x03\x12\x1b\n\x13parent_namespace_id\x18\x07 \x01(\t\x12\x43\n\x10parent_execution\x18\x08 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x0e\x65xecution_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x04memo\x18\n \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0b \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12@\n\x11\x61uto_reset_points\x18\x0c \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12\x12\n\ntask_queue\x18\r \x01(\t\x12\x1e\n\x16state_transition_count\x18\x0e \x01(\x03\x12\x1a\n\x12history_size_bytes\x18\x0f \x01(\x03\x12T\n most_recent_worker_version_stamp\x18\x10 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x35\n\x12\x65xecution_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x0eroot_execution\x18\x12 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11\x61ssigned_build_id\x18\x13 \x01(\t\x12\x1a\n\x12inherited_build_id\x18\x14 \x01(\t\x12\x14\n\x0c\x66irst_run_id\x18\x15 \x01(\t"\xc7\x02\n\x17WorkflowExecutionConfig\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x1aworkflow_execution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\x1d\x64\x65\x66\x61ult_workflow_task_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x05 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata"\xd2\x07\n\x13PendingActivityInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12:\n\x05state\x18\x03 \x01(\x0e\x32+.temporal.api.enums.v1.PendingActivityState\x12;\n\x11heartbeat_details\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x13last_heartbeat_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x07 \x01(\x05\x12\x18\n\x10maximum_attempts\x18\x08 \x01(\x05\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x0clast_failure\x18\x0b \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x0c \x01(\t\x12\x37\n\x15use_workflow_build_id\x18\r \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12.\n$last_independently_assigned_build_id\x18\x0e \x01(\tH\x00\x12M\n\x19last_worker_version_stamp\x18\x0f \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x39\n\x16\x63urrent_retry_interval\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1alast_attempt_complete_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1anext_attempt_schedule_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06paused\x18\x13 \x01(\x08\x42\x13\n\x11\x61ssigned_build_id"\xb9\x01\n\x19PendingChildExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x1a\n\x12workflow_type_name\x18\x03 \x01(\t\x12\x14\n\x0cinitiated_id\x18\x04 \x01(\x03\x12\x45\n\x13parent_close_policy\x18\x05 \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy"\x8d\x02\n\x17PendingWorkflowTaskInfo\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.PendingWorkflowTaskState\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17original_scheduled_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05"G\n\x0bResetPoints\x12\x38\n\x06points\x18\x01 \x03(\x0b\x32(.temporal.api.workflow.v1.ResetPointInfo"\xeb\x01\n\x0eResetPointInfo\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12(\n first_workflow_task_completed_id\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresettable\x18\x06 \x01(\x08"\x86\x06\n\x18NewWorkflowExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x18workflow_id_reuse_policy\x18\x08 \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\n \x01(\t\x12*\n\x04memo\x18\x0b \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0c \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\r \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x0e \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata"\xba\x04\n\x0c\x43\x61llbackInfo\x12\x32\n\x08\x63\x61llback\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Callback\x12?\n\x07trigger\x18\x02 \x01(\x0b\x32..temporal.api.workflow.v1.CallbackInfo.Trigger\x12\x35\n\x11registration_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.CallbackState\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x10\n\x0eWorkflowClosed\x1a\x66\n\x07Trigger\x12P\n\x0fworkflow_closed\x18\x01 \x01(\x0b\x32\x35.temporal.api.workflow.v1.CallbackInfo.WorkflowClosedH\x00\x42\t\n\x07variant"\xdd\x04\n\x19PendingNexusOperationInfo\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12\x14\n\x0coperation_id\x18\x04 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0escheduled_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x05state\x18\x07 \x01(\x0e\x32\x31.temporal.api.enums.v1.PendingNexusOperationState\x12\x0f\n\x07\x61ttempt\x18\x08 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x11\x63\x61ncellation_info\x18\x0c \x01(\x0b\x32\x38.temporal.api.workflow.v1.NexusOperationCancellationInfo\x12\x1a\n\x12scheduled_event_id\x18\r \x01(\x03"\xec\x02\n\x1eNexusOperationCancellationInfo\x12\x32\n\x0erequested_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x05state\x18\x02 \x01(\x0e\x32\x36.temporal.api.enums.v1.NexusOperationCancellationState\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x93\x01\n\x1bio.temporal.api.workflow.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/workflow/v1;workflow\xaa\x02\x1aTemporalio.Api.Workflow.V1\xea\x02\x1dTemporalio::Api::Workflow::V1b\x06proto3' + b'\n&temporal/api/workflow/v1/message.proto\x12\x18temporal.api.workflow.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto"\x9f\t\n\x15WorkflowExecutionInfo\x12<\n\texecution\x18\x01 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x04type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12\x16\n\x0ehistory_length\x18\x06 \x01(\x03\x12\x1b\n\x13parent_namespace_id\x18\x07 \x01(\t\x12\x43\n\x10parent_execution\x18\x08 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x0e\x65xecution_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12*\n\x04memo\x18\n \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0b \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12@\n\x11\x61uto_reset_points\x18\x0c \x01(\x0b\x32%.temporal.api.workflow.v1.ResetPoints\x12\x12\n\ntask_queue\x18\r \x01(\t\x12\x1e\n\x16state_transition_count\x18\x0e \x01(\x03\x12\x1a\n\x12history_size_bytes\x18\x0f \x01(\x03\x12T\n most_recent_worker_version_stamp\x18\x10 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x35\n\x12\x65xecution_duration\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x41\n\x0eroot_execution\x18\x12 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11\x61ssigned_build_id\x18\x13 \x01(\t\x12\x1a\n\x12inherited_build_id\x18\x14 \x01(\t\x12\x14\n\x0c\x66irst_run_id\x18\x15 \x01(\t\x12R\n\x0fversioning_info\x18\x16 \x01(\x0b\x32\x39.temporal.api.workflow.v1.WorkflowExecutionVersioningInfo\x12\x1e\n\x16worker_deployment_name\x18\x17 \x01(\t\x12\x32\n\x08priority\x18\x18 \x01(\x0b\x32 .temporal.api.common.v1.Priority"\x9f\x02\n\x1dWorkflowExecutionExtendedInfo\x12=\n\x19\x65xecution_expiration_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13run_expiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x63\x61ncel_requested\x18\x03 \x01(\x08\x12\x33\n\x0flast_reset_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13original_start_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa0\x03\n\x1fWorkflowExecutionVersioningInfo\x12;\n\x08\x62\x65havior\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12>\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x0f\n\x07version\x18\x05 \x01(\t\x12I\n\x13versioning_override\x18\x03 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12Q\n\x15\x64\x65ployment_transition\x18\x04 \x01(\x0b\x32..temporal.api.workflow.v1.DeploymentTransitionB\x02\x18\x01\x12Q\n\x12version_transition\x18\x06 \x01(\x0b\x32\x35.temporal.api.workflow.v1.DeploymentVersionTransition"R\n\x14\x44\x65ploymentTransition\x12:\n\ndeployment\x18\x01 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment".\n\x1b\x44\x65ploymentVersionTransition\x12\x0f\n\x07version\x18\x01 \x01(\t"\xc7\x02\n\x17WorkflowExecutionConfig\x12\x38\n\ntask_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x1aworkflow_execution_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12@\n\x1d\x64\x65\x66\x61ult_workflow_task_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x05 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata"\xf3\x08\n\x13PendingActivityInfo\x12\x13\n\x0b\x61\x63tivity_id\x18\x01 \x01(\t\x12;\n\ractivity_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12:\n\x05state\x18\x03 \x01(\x0e\x32+.temporal.api.enums.v1.PendingActivityState\x12;\n\x11heartbeat_details\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x13last_heartbeat_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11last_started_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x07 \x01(\x05\x12\x18\n\x10maximum_attempts\x18\x08 \x01(\x05\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x65xpiration_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x0clast_failure\x18\x0b \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x1c\n\x14last_worker_identity\x18\x0c \x01(\t\x12\x37\n\x15use_workflow_build_id\x18\r \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12.\n$last_independently_assigned_build_id\x18\x0e \x01(\tH\x00\x12M\n\x19last_worker_version_stamp\x18\x0f \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x39\n\x16\x63urrent_retry_interval\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x1alast_attempt_complete_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x1anext_attempt_schedule_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06paused\x18\x13 \x01(\x08\x12\x43\n\x0flast_deployment\x18\x14 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12&\n\x1elast_worker_deployment_version\x18\x15 \x01(\t\x12\x32\n\x08priority\x18\x16 \x01(\x0b\x32 .temporal.api.common.v1.PriorityB\x13\n\x11\x61ssigned_build_id"\xb9\x01\n\x19PendingChildExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12\x1a\n\x12workflow_type_name\x18\x03 \x01(\t\x12\x14\n\x0cinitiated_id\x18\x04 \x01(\x03\x12\x45\n\x13parent_close_policy\x18\x05 \x01(\x0e\x32(.temporal.api.enums.v1.ParentClosePolicy"\x8d\x02\n\x17PendingWorkflowTaskInfo\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.PendingWorkflowTaskState\x12\x32\n\x0escheduled_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x17original_scheduled_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05"G\n\x0bResetPoints\x12\x38\n\x06points\x18\x01 \x03(\x0b\x32(.temporal.api.workflow.v1.ResetPointInfo"\xeb\x01\n\x0eResetPointInfo\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x01 \x01(\t\x12\x0e\n\x06run_id\x18\x02 \x01(\t\x12(\n first_workflow_task_completed_id\x18\x03 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x65xpire_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nresettable\x18\x06 \x01(\x08"\x85\x07\n\x18NewWorkflowExecutionInfo\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12;\n\rworkflow_type\x18\x02 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x18workflow_id_reuse_policy\x18\x08 \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\n \x01(\t\x12*\n\x04memo\x18\x0b \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0c \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\r \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x0e \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12I\n\x13versioning_override\x18\x0f \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x10 \x01(\x0b\x32 .temporal.api.common.v1.Priority"\xd2\x04\n\x0c\x43\x61llbackInfo\x12\x32\n\x08\x63\x61llback\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Callback\x12?\n\x07trigger\x18\x02 \x01(\x0b\x32..temporal.api.workflow.v1.CallbackInfo.Trigger\x12\x35\n\x11registration_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.CallbackState\x12\x0f\n\x07\x61ttempt\x18\x05 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\t \x01(\t\x1a\x10\n\x0eWorkflowClosed\x1a\x66\n\x07Trigger\x12P\n\x0fworkflow_closed\x18\x01 \x01(\x0b\x32\x35.temporal.api.workflow.v1.CallbackInfo.WorkflowClosedH\x00\x42\t\n\x07variant"\x8e\x05\n\x19PendingNexusOperationInfo\x12\x10\n\x08\x65ndpoint\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x11\n\toperation\x18\x03 \x01(\t\x12\x14\n\x0coperation_id\x18\x04 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0escheduled_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\x05state\x18\x07 \x01(\x0e\x32\x31.temporal.api.enums.v1.PendingNexusOperationState\x12\x0f\n\x07\x61ttempt\x18\x08 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\n \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12S\n\x11\x63\x61ncellation_info\x18\x0c \x01(\x0b\x32\x38.temporal.api.workflow.v1.NexusOperationCancellationInfo\x12\x1a\n\x12scheduled_event_id\x18\r \x01(\x03\x12\x16\n\x0e\x62locked_reason\x18\x0e \x01(\t\x12\x17\n\x0foperation_token\x18\x0f \x01(\t"\x84\x03\n\x1eNexusOperationCancellationInfo\x12\x32\n\x0erequested_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x05state\x18\x02 \x01(\x0e\x32\x36.temporal.api.enums.v1.NexusOperationCancellationState\x12\x0f\n\x07\x61ttempt\x18\x03 \x01(\x05\x12>\n\x1alast_attempt_complete_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12>\n\x14last_attempt_failure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12>\n\x1anext_attempt_schedule_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0e\x62locked_reason\x18\x07 \x01(\t"e\n\x18WorkflowExecutionOptions\x12I\n\x13versioning_override\x18\x01 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride"\xa9\x01\n\x12VersioningOverride\x12;\n\x08\x62\x65havior\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12>\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x16\n\x0epinned_version\x18\t \x01(\t"i\n\x11OnConflictOptions\x12\x19\n\x11\x61ttach_request_id\x18\x01 \x01(\x08\x12#\n\x1b\x61ttach_completion_callbacks\x18\x02 \x01(\x08\x12\x14\n\x0c\x61ttach_links\x18\x03 \x01(\x08\x42\x93\x01\n\x1bio.temporal.api.workflow.v1B\x0cMessageProtoP\x01Z\'go.temporal.io/api/workflow/v1;workflow\xaa\x02\x1aTemporalio.Api.Workflow.V1\xea\x02\x1dTemporalio::Api::Workflow::V1b\x06proto3' ) _WORKFLOWEXECUTIONINFO = DESCRIPTOR.message_types_by_name["WorkflowExecutionInfo"] +_WORKFLOWEXECUTIONEXTENDEDINFO = DESCRIPTOR.message_types_by_name[ + "WorkflowExecutionExtendedInfo" +] +_WORKFLOWEXECUTIONVERSIONINGINFO = DESCRIPTOR.message_types_by_name[ + "WorkflowExecutionVersioningInfo" +] +_DEPLOYMENTTRANSITION = DESCRIPTOR.message_types_by_name["DeploymentTransition"] +_DEPLOYMENTVERSIONTRANSITION = DESCRIPTOR.message_types_by_name[ + "DeploymentVersionTransition" +] _WORKFLOWEXECUTIONCONFIG = DESCRIPTOR.message_types_by_name["WorkflowExecutionConfig"] _PENDINGACTIVITYINFO = DESCRIPTOR.message_types_by_name["PendingActivityInfo"] _PENDINGCHILDEXECUTIONINFO = DESCRIPTOR.message_types_by_name[ @@ -61,6 +74,9 @@ _NEXUSOPERATIONCANCELLATIONINFO = DESCRIPTOR.message_types_by_name[ "NexusOperationCancellationInfo" ] +_WORKFLOWEXECUTIONOPTIONS = DESCRIPTOR.message_types_by_name["WorkflowExecutionOptions"] +_VERSIONINGOVERRIDE = DESCRIPTOR.message_types_by_name["VersioningOverride"] +_ONCONFLICTOPTIONS = DESCRIPTOR.message_types_by_name["OnConflictOptions"] WorkflowExecutionInfo = _reflection.GeneratedProtocolMessageType( "WorkflowExecutionInfo", (_message.Message,), @@ -72,6 +88,50 @@ ) _sym_db.RegisterMessage(WorkflowExecutionInfo) +WorkflowExecutionExtendedInfo = _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionExtendedInfo", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONEXTENDEDINFO, + "__module__": "temporal.api.workflow.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionExtendedInfo) + }, +) +_sym_db.RegisterMessage(WorkflowExecutionExtendedInfo) + +WorkflowExecutionVersioningInfo = _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionVersioningInfo", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONVERSIONINGINFO, + "__module__": "temporal.api.workflow.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionVersioningInfo) + }, +) +_sym_db.RegisterMessage(WorkflowExecutionVersioningInfo) + +DeploymentTransition = _reflection.GeneratedProtocolMessageType( + "DeploymentTransition", + (_message.Message,), + { + "DESCRIPTOR": _DEPLOYMENTTRANSITION, + "__module__": "temporal.api.workflow.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.DeploymentTransition) + }, +) +_sym_db.RegisterMessage(DeploymentTransition) + +DeploymentVersionTransition = _reflection.GeneratedProtocolMessageType( + "DeploymentVersionTransition", + (_message.Message,), + { + "DESCRIPTOR": _DEPLOYMENTVERSIONTRANSITION, + "__module__": "temporal.api.workflow.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.DeploymentVersionTransition) + }, +) +_sym_db.RegisterMessage(DeploymentVersionTransition) + WorkflowExecutionConfig = _reflection.GeneratedProtocolMessageType( "WorkflowExecutionConfig", (_message.Message,), @@ -202,33 +262,96 @@ ) _sym_db.RegisterMessage(NexusOperationCancellationInfo) +WorkflowExecutionOptions = _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionOptions", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONOPTIONS, + "__module__": "temporal.api.workflow.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionOptions) + }, +) +_sym_db.RegisterMessage(WorkflowExecutionOptions) + +VersioningOverride = _reflection.GeneratedProtocolMessageType( + "VersioningOverride", + (_message.Message,), + { + "DESCRIPTOR": _VERSIONINGOVERRIDE, + "__module__": "temporal.api.workflow.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.VersioningOverride) + }, +) +_sym_db.RegisterMessage(VersioningOverride) + +OnConflictOptions = _reflection.GeneratedProtocolMessageType( + "OnConflictOptions", + (_message.Message,), + { + "DESCRIPTOR": _ONCONFLICTOPTIONS, + "__module__": "temporal.api.workflow.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.OnConflictOptions) + }, +) +_sym_db.RegisterMessage(OnConflictOptions) + if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\033io.temporal.api.workflow.v1B\014MessageProtoP\001Z'go.temporal.io/api/workflow/v1;workflow\252\002\032Temporalio.Api.Workflow.V1\352\002\035Temporalio::Api::Workflow::V1" - _WORKFLOWEXECUTIONINFO._serialized_start = 396 - _WORKFLOWEXECUTIONINFO._serialized_end = 1411 - _WORKFLOWEXECUTIONCONFIG._serialized_start = 1414 - _WORKFLOWEXECUTIONCONFIG._serialized_end = 1741 - _PENDINGACTIVITYINFO._serialized_start = 1744 - _PENDINGACTIVITYINFO._serialized_end = 2722 - _PENDINGCHILDEXECUTIONINFO._serialized_start = 2725 - _PENDINGCHILDEXECUTIONINFO._serialized_end = 2910 - _PENDINGWORKFLOWTASKINFO._serialized_start = 2913 - _PENDINGWORKFLOWTASKINFO._serialized_end = 3182 - _RESETPOINTS._serialized_start = 3184 - _RESETPOINTS._serialized_end = 3255 - _RESETPOINTINFO._serialized_start = 3258 - _RESETPOINTINFO._serialized_end = 3493 - _NEWWORKFLOWEXECUTIONINFO._serialized_start = 3496 - _NEWWORKFLOWEXECUTIONINFO._serialized_end = 4270 - _CALLBACKINFO._serialized_start = 4273 - _CALLBACKINFO._serialized_end = 4843 - _CALLBACKINFO_WORKFLOWCLOSED._serialized_start = 4723 - _CALLBACKINFO_WORKFLOWCLOSED._serialized_end = 4739 - _CALLBACKINFO_TRIGGER._serialized_start = 4741 - _CALLBACKINFO_TRIGGER._serialized_end = 4843 - _PENDINGNEXUSOPERATIONINFO._serialized_start = 4846 - _PENDINGNEXUSOPERATIONINFO._serialized_end = 5451 - _NEXUSOPERATIONCANCELLATIONINFO._serialized_start = 5454 - _NEXUSOPERATIONCANCELLATIONINFO._serialized_end = 5818 + _WORKFLOWEXECUTIONVERSIONINGINFO.fields_by_name["deployment"]._options = None + _WORKFLOWEXECUTIONVERSIONINGINFO.fields_by_name[ + "deployment" + ]._serialized_options = b"\030\001" + _WORKFLOWEXECUTIONVERSIONINGINFO.fields_by_name[ + "deployment_transition" + ]._options = None + _WORKFLOWEXECUTIONVERSIONINGINFO.fields_by_name[ + "deployment_transition" + ]._serialized_options = b"\030\001" + _PENDINGACTIVITYINFO.fields_by_name["last_deployment"]._options = None + _PENDINGACTIVITYINFO.fields_by_name[ + "last_deployment" + ]._serialized_options = b"\030\001" + _VERSIONINGOVERRIDE.fields_by_name["deployment"]._options = None + _VERSIONINGOVERRIDE.fields_by_name["deployment"]._serialized_options = b"\030\001" + _WORKFLOWEXECUTIONINFO._serialized_start = 438 + _WORKFLOWEXECUTIONINFO._serialized_end = 1621 + _WORKFLOWEXECUTIONEXTENDEDINFO._serialized_start = 1624 + _WORKFLOWEXECUTIONEXTENDEDINFO._serialized_end = 1911 + _WORKFLOWEXECUTIONVERSIONINGINFO._serialized_start = 1914 + _WORKFLOWEXECUTIONVERSIONINGINFO._serialized_end = 2330 + _DEPLOYMENTTRANSITION._serialized_start = 2332 + _DEPLOYMENTTRANSITION._serialized_end = 2414 + _DEPLOYMENTVERSIONTRANSITION._serialized_start = 2416 + _DEPLOYMENTVERSIONTRANSITION._serialized_end = 2462 + _WORKFLOWEXECUTIONCONFIG._serialized_start = 2465 + _WORKFLOWEXECUTIONCONFIG._serialized_end = 2792 + _PENDINGACTIVITYINFO._serialized_start = 2795 + _PENDINGACTIVITYINFO._serialized_end = 3934 + _PENDINGCHILDEXECUTIONINFO._serialized_start = 3937 + _PENDINGCHILDEXECUTIONINFO._serialized_end = 4122 + _PENDINGWORKFLOWTASKINFO._serialized_start = 4125 + _PENDINGWORKFLOWTASKINFO._serialized_end = 4394 + _RESETPOINTS._serialized_start = 4396 + _RESETPOINTS._serialized_end = 4467 + _RESETPOINTINFO._serialized_start = 4470 + _RESETPOINTINFO._serialized_end = 4705 + _NEWWORKFLOWEXECUTIONINFO._serialized_start = 4708 + _NEWWORKFLOWEXECUTIONINFO._serialized_end = 5609 + _CALLBACKINFO._serialized_start = 5612 + _CALLBACKINFO._serialized_end = 6206 + _CALLBACKINFO_WORKFLOWCLOSED._serialized_start = 6086 + _CALLBACKINFO_WORKFLOWCLOSED._serialized_end = 6102 + _CALLBACKINFO_TRIGGER._serialized_start = 6104 + _CALLBACKINFO_TRIGGER._serialized_end = 6206 + _PENDINGNEXUSOPERATIONINFO._serialized_start = 6209 + _PENDINGNEXUSOPERATIONINFO._serialized_end = 6863 + _NEXUSOPERATIONCANCELLATIONINFO._serialized_start = 6866 + _NEXUSOPERATIONCANCELLATIONINFO._serialized_end = 7254 + _WORKFLOWEXECUTIONOPTIONS._serialized_start = 7256 + _WORKFLOWEXECUTIONOPTIONS._serialized_end = 7357 + _VERSIONINGOVERRIDE._serialized_start = 7360 + _VERSIONINGOVERRIDE._serialized_end = 7529 + _ONCONFLICTOPTIONS._serialized_start = 7531 + _ONCONFLICTOPTIONS._serialized_end = 7636 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflow/v1/message_pb2.pyi b/temporalio/api/workflow/v1/message_pb2.pyi index d64c9c97d..3a666ad1b 100644 --- a/temporalio/api/workflow/v1/message_pb2.pyi +++ b/temporalio/api/workflow/v1/message_pb2.pyi @@ -36,6 +36,7 @@ import google.protobuf.message import google.protobuf.timestamp_pb2 import temporalio.api.common.v1.message_pb2 +import temporalio.api.deployment.v1.message_pb2 import temporalio.api.enums.v1.common_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 @@ -50,6 +51,10 @@ else: DESCRIPTOR: google.protobuf.descriptor.FileDescriptor class WorkflowExecutionInfo(google.protobuf.message.Message): + """Hold basic information about a workflow execution. + This structure is a part of visibility, and thus contain a limited subset of information. + """ + DESCRIPTOR: google.protobuf.descriptor.Descriptor EXECUTION_FIELD_NUMBER: builtins.int @@ -73,6 +78,9 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): ASSIGNED_BUILD_ID_FIELD_NUMBER: builtins.int INHERITED_BUILD_ID_FIELD_NUMBER: builtins.int FIRST_RUN_ID_FIELD_NUMBER: builtins.int + VERSIONING_INFO_FIELD_NUMBER: builtins.int + WORKER_DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int @property def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property @@ -105,7 +113,9 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): def most_recent_worker_version_stamp( self, ) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: - """If set, the most recent worker version stamp that appeared in a workflow task completion""" + """If set, the most recent worker version stamp that appeared in a workflow task completion + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ @property def execution_duration(self) -> google.protobuf.duration_pb2.Duration: """Workflow execution duration is defined as difference between close time and execution time. @@ -138,10 +148,12 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): again, the assigned build ID may change according to the latest versioning rules. Assigned build ID can also change in the middle of a execution if Compatible Redirect Rules are applied to this execution. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ inherited_build_id: builtins.str """Build ID inherited from a previous/parent execution. If present, assigned_build_id will be set to this, instead of using the assignment rules. + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] """ first_run_id: builtins.str """The first run ID in the execution chain. @@ -151,6 +163,19 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): - Workflow Reset - Cron Schedule """ + @property + def versioning_info(self) -> global___WorkflowExecutionVersioningInfo: + """Absent value means the workflow execution is not versioned. When present, the execution might + be versioned or unversioned, depending on `versioning_info.behavior` and `versioning_info.versioning_override`. + Experimental. Versioning info is experimental and might change in the future. + """ + worker_deployment_name: builtins.str + """The name of Worker Deployment that completed the most recent workflow task. + Experimental. Worker Deployments are experimental and might change in the future. + """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata""" def __init__( self, *, @@ -179,6 +204,9 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): assigned_build_id: builtins.str = ..., inherited_build_id: builtins.str = ..., first_run_id: builtins.str = ..., + versioning_info: global___WorkflowExecutionVersioningInfo | None = ..., + worker_deployment_name: builtins.str = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -199,6 +227,8 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): b"most_recent_worker_version_stamp", "parent_execution", b"parent_execution", + "priority", + b"priority", "root_execution", b"root_execution", "search_attributes", @@ -207,6 +237,8 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): b"start_time", "type", b"type", + "versioning_info", + b"versioning_info", ], ) -> builtins.bool: ... def ClearField( @@ -240,6 +272,8 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): b"parent_execution", "parent_namespace_id", b"parent_namespace_id", + "priority", + b"priority", "root_execution", b"root_execution", "search_attributes", @@ -254,11 +288,271 @@ class WorkflowExecutionInfo(google.protobuf.message.Message): b"task_queue", "type", b"type", + "versioning_info", + b"versioning_info", + "worker_deployment_name", + b"worker_deployment_name", ], ) -> None: ... global___WorkflowExecutionInfo = WorkflowExecutionInfo +class WorkflowExecutionExtendedInfo(google.protobuf.message.Message): + """Holds all the extra information about workflow execution that is not part of Visibility.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EXECUTION_EXPIRATION_TIME_FIELD_NUMBER: builtins.int + RUN_EXPIRATION_TIME_FIELD_NUMBER: builtins.int + CANCEL_REQUESTED_FIELD_NUMBER: builtins.int + LAST_RESET_TIME_FIELD_NUMBER: builtins.int + ORIGINAL_START_TIME_FIELD_NUMBER: builtins.int + @property + def execution_expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Workflow execution expiration time is defined as workflow start time plus expiration timeout. + Workflow start time may change after workflow reset. + """ + @property + def run_expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Workflow run expiration time is defined as current workflow run start time plus workflow run timeout.""" + cancel_requested: builtins.bool + """indicates if the workflow received a cancel request""" + @property + def last_reset_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Last workflow reset time. Nil if the workflow was never reset.""" + @property + def original_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Original workflow start time.""" + def __init__( + self, + *, + execution_expiration_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + run_expiration_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + cancel_requested: builtins.bool = ..., + last_reset_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + original_start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "execution_expiration_time", + b"execution_expiration_time", + "last_reset_time", + b"last_reset_time", + "original_start_time", + b"original_start_time", + "run_expiration_time", + b"run_expiration_time", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "cancel_requested", + b"cancel_requested", + "execution_expiration_time", + b"execution_expiration_time", + "last_reset_time", + b"last_reset_time", + "original_start_time", + b"original_start_time", + "run_expiration_time", + b"run_expiration_time", + ], + ) -> None: ... + +global___WorkflowExecutionExtendedInfo = WorkflowExecutionExtendedInfo + +class WorkflowExecutionVersioningInfo(google.protobuf.message.Message): + """Holds all the information about worker versioning for a particular workflow execution. + Experimental. Versioning info is experimental and might change in the future. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BEHAVIOR_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int + DEPLOYMENT_TRANSITION_FIELD_NUMBER: builtins.int + VERSION_TRANSITION_FIELD_NUMBER: builtins.int + behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType + """Versioning behavior determines how the server should treat this execution when workers are + upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means + unversioned. See the comments in `VersioningBehavior` enum for more info about different + behaviors. + This field is first set after an execution completes its first workflow task on a versioned + worker, and set again on completion of every subsequent workflow task. + For child workflows of Pinned parents, this will be set to Pinned (along with `version`) when + the the child starts so that child's first workflow task goes to the same Version as the + parent. After the first workflow task, it depends on the child workflow itself if it wants + to stay pinned or become unpinned (according to Versioning Behavior set in the worker). + Note that `behavior` is overridden by `versioning_override` if the latter is present. + """ + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """The worker deployment that completed the last workflow task of this workflow execution. Must + be present if `behavior` is set. Absent value means no workflow task is completed, or the + last workflow task was completed by an unversioned worker. Unversioned workers may still send + a deployment value which will be stored here, so the right way to check if an execution is + versioned if an execution is versioned or not is via the `behavior` field. + Note that `deployment` is overridden by `versioning_override` if the latter is present. + Deprecated. Use `version`. + """ + version: builtins.str + """The Worker Deployment Version that completed the last workflow task of this workflow + execution, in the form ".". + Must be present if and only if `behavior` is set. An absent value means no workflow task is + completed, or the workflow is unversioned. + For child workflows of Pinned parents, this will be set to parent's Pinned Version when the + the child starts so that child's first workflow task goes to the same Version as the parent. + Note that if `versioning_override.behavior` is PINNED then `versioning_override.pinned_version` + will override this value. + """ + @property + def versioning_override(self) -> global___VersioningOverride: + """Present if user has set an execution-specific versioning override. This override takes + precedence over SDK-sent `behavior` (and `version` when override is PINNED). An + override can be set when starting a new execution, as well as afterwards by calling the + `UpdateWorkflowExecutionOptions` API. + Pinned overrides are automatically inherited by child workflows. + """ + @property + def deployment_transition(self) -> global___DeploymentTransition: + """When present, indicates the workflow is transitioning to a different deployment. Can + indicate one of the following transitions: unversioned -> versioned, versioned -> versioned + on a different deployment, or versioned -> unversioned. + Not applicable to workflows with PINNED behavior. + When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically + start a transition to the task queue's current deployment if the task queue's current + deployment is different from the workflow's deployment. + If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those + tasks will be redirected to the task queue's current deployment. As soon as a poller from + that deployment is available to receive the task, the workflow will automatically start a + transition to that deployment and continue execution there. + A deployment transition can only exist while there is a pending or started workflow task. + Once the pending workflow task completes on the transition's target deployment, the + transition completes and the workflow's `deployment` and `behavior` fields are updated per + the worker's task completion response. + Pending activities will not start new attempts during a transition. Once the transition is + completed, pending activities will start their next attempt on the new deployment. + Deprecated. Use version_transition. + """ + @property + def version_transition(self) -> global___DeploymentVersionTransition: + """When present, indicates the workflow is transitioning to a different deployment version + (which may belong to the same deployment name or another). Can indicate one of the following + transitions: unversioned -> versioned, versioned -> versioned + on a different deployment version, or versioned -> unversioned. + Not applicable to workflows with PINNED behavior. + When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically + start a transition to the task queue's current version if the task queue's current version is + different from the workflow's current deployment version. + If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those + tasks will be redirected to the task queue's current version. As soon as a poller from + that deployment version is available to receive the task, the workflow will automatically + start a transition to that version and continue execution there. + A version transition can only exist while there is a pending or started workflow task. + Once the pending workflow task completes on the transition's target version, the + transition completes and the workflow's `behavior`, and `version` fields are updated per the + worker's task completion response. + Pending activities will not start new attempts during a transition. Once the transition is + completed, pending activities will start their next attempt on the new version. + """ + def __init__( + self, + *, + behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + version: builtins.str = ..., + versioning_override: global___VersioningOverride | None = ..., + deployment_transition: global___DeploymentTransition | None = ..., + version_transition: global___DeploymentVersionTransition | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "deployment", + b"deployment", + "deployment_transition", + b"deployment_transition", + "version_transition", + b"version_transition", + "versioning_override", + b"versioning_override", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "behavior", + b"behavior", + "deployment", + b"deployment", + "deployment_transition", + b"deployment_transition", + "version", + b"version", + "version_transition", + b"version_transition", + "versioning_override", + b"versioning_override", + ], + ) -> None: ... + +global___WorkflowExecutionVersioningInfo = WorkflowExecutionVersioningInfo + +class DeploymentTransition(google.protobuf.message.Message): + """Holds information about ongoing transition of a workflow execution from one deployment to another. + Deprecated. Use DeploymentVersionTransition. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPLOYMENT_FIELD_NUMBER: builtins.int + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """The target deployment of the transition. Null means a so-far-versioned workflow is + transitioning to unversioned workers. + """ + def __init__( + self, + *, + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["deployment", b"deployment"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["deployment", b"deployment"] + ) -> None: ... + +global___DeploymentTransition = DeploymentTransition + +class DeploymentVersionTransition(google.protobuf.message.Message): + """Holds information about ongoing transition of a workflow execution from one worker + deployment version to another. + Experimental. Might change in the future. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSION_FIELD_NUMBER: builtins.int + version: builtins.str + """Required. The target Version of the transition. May be `__unversioned__` which means a + so-far-versioned workflow is transitioning to unversioned workers. + """ + def __init__( + self, + *, + version: builtins.str = ..., + ) -> None: ... + def ClearField( + self, field_name: typing_extensions.Literal["version", b"version"] + ) -> None: ... + +global___DeploymentVersionTransition = DeploymentVersionTransition + class WorkflowExecutionConfig(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -346,6 +640,9 @@ class PendingActivityInfo(google.protobuf.message.Message): LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER: builtins.int NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int PAUSED_FIELD_NUMBER: builtins.int + LAST_DEPLOYMENT_FIELD_NUMBER: builtins.int + LAST_WORKER_DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int activity_id: builtins.str @property def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType: ... @@ -378,7 +675,9 @@ class PendingActivityInfo(google.protobuf.message.Message): def last_worker_version_stamp( self, ) -> temporalio.api.common.v1.message_pb2.WorkerVersionStamp: - """The version stamp of the worker to whom this activity was most recently dispatched""" + """The version stamp of the worker to whom this activity was most recently dispatched + Deprecated. This field should be cleaned up when versioning-2 API is removed. [cleanup-experimental-wv] + """ @property def current_retry_interval(self) -> google.protobuf.duration_pb2.Duration: """The time activity will wait until the next retry. @@ -396,6 +695,17 @@ class PendingActivityInfo(google.protobuf.message.Message): """ paused: builtins.bool """Indicates if activity is paused.""" + @property + def last_deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """The deployment this activity was dispatched to most recently. Present only if the activity + was dispatched to a versioned worker. + Deprecated. Use `last_worker_deployment_version`. + """ + last_worker_deployment_version: builtins.str + """The Worker Deployment Version this activity was dispatched to most recently.""" + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata""" def __init__( self, *, @@ -421,6 +731,10 @@ class PendingActivityInfo(google.protobuf.message.Message): next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., paused: builtins.bool = ..., + last_deployment: temporalio.api.deployment.v1.message_pb2.Deployment + | None = ..., + last_worker_deployment_version: builtins.str = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -437,6 +751,8 @@ class PendingActivityInfo(google.protobuf.message.Message): b"heartbeat_details", "last_attempt_complete_time", b"last_attempt_complete_time", + "last_deployment", + b"last_deployment", "last_failure", b"last_failure", "last_heartbeat_time", @@ -449,6 +765,8 @@ class PendingActivityInfo(google.protobuf.message.Message): b"last_worker_version_stamp", "next_attempt_schedule_time", b"next_attempt_schedule_time", + "priority", + b"priority", "scheduled_time", b"scheduled_time", "use_workflow_build_id", @@ -474,6 +792,8 @@ class PendingActivityInfo(google.protobuf.message.Message): b"heartbeat_details", "last_attempt_complete_time", b"last_attempt_complete_time", + "last_deployment", + b"last_deployment", "last_failure", b"last_failure", "last_heartbeat_time", @@ -482,6 +802,8 @@ class PendingActivityInfo(google.protobuf.message.Message): b"last_independently_assigned_build_id", "last_started_time", b"last_started_time", + "last_worker_deployment_version", + b"last_worker_deployment_version", "last_worker_identity", b"last_worker_identity", "last_worker_version_stamp", @@ -492,6 +814,8 @@ class PendingActivityInfo(google.protobuf.message.Message): b"next_attempt_schedule_time", "paused", b"paused", + "priority", + b"priority", "scheduled_time", b"scheduled_time", "state", @@ -730,6 +1054,8 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int HEADER_FIELD_NUMBER: builtins.int USER_METADATA_FIELD_NUMBER: builtins.int + VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int workflow_id: builtins.str @property def workflow_type(self) -> temporalio.api.common.v1.message_pb2.WorkflowType: ... @@ -770,6 +1096,14 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): for use by user interfaces to display the fixed as-of-start summary and details of the workflow. """ + @property + def versioning_override(self) -> global___VersioningOverride: + """If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata""" def __init__( self, *, @@ -789,6 +1123,8 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): header: temporalio.api.common.v1.message_pb2.Header | None = ..., user_metadata: temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata | None = ..., + versioning_override: global___VersioningOverride | None = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -799,6 +1135,8 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): b"input", "memo", b"memo", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", @@ -807,6 +1145,8 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): b"task_queue", "user_metadata", b"user_metadata", + "versioning_override", + b"versioning_override", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_run_timeout", @@ -828,6 +1168,8 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): b"input", "memo", b"memo", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", @@ -836,6 +1178,8 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): b"task_queue", "user_metadata", b"user_metadata", + "versioning_override", + b"versioning_override", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_id", @@ -902,6 +1246,7 @@ class CallbackInfo(google.protobuf.message.Message): LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER: builtins.int LAST_ATTEMPT_FAILURE_FIELD_NUMBER: builtins.int NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int + BLOCKED_REASON_FIELD_NUMBER: builtins.int @property def callback(self) -> temporalio.api.common.v1.message_pb2.Callback: """Information on how this callback should be invoked (e.g. its URL and type).""" @@ -925,6 +1270,8 @@ class CallbackInfo(google.protobuf.message.Message): @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next attempt is scheduled.""" + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" def __init__( self, *, @@ -939,6 +1286,7 @@ class CallbackInfo(google.protobuf.message.Message): | None = ..., next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + blocked_reason: builtins.str = ..., ) -> None: ... def HasField( self, @@ -962,6 +1310,8 @@ class CallbackInfo(google.protobuf.message.Message): field_name: typing_extensions.Literal[ "attempt", b"attempt", + "blocked_reason", + b"blocked_reason", "callback", b"callback", "last_attempt_complete_time", @@ -999,6 +1349,8 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int CANCELLATION_INFO_FIELD_NUMBER: builtins.int SCHEDULED_EVENT_ID_FIELD_NUMBER: builtins.int + BLOCKED_REASON_FIELD_NUMBER: builtins.int + OPERATION_TOKEN_FIELD_NUMBER: builtins.int endpoint: builtins.str """Endpoint name. Resolved to a URL via the cluster's endpoint registry. @@ -1008,7 +1360,10 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): operation: builtins.str """Operation name.""" operation_id: builtins.str - """Operation ID. Only set for asynchronous operations after a successful StartOperation call.""" + """Operation ID. Only set for asynchronous operations after a successful StartOperation call. + + Deprecated: Renamed to operation_token. + """ @property def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration: """Schedule-to-close timeout for this operation. @@ -1039,6 +1394,10 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): """The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the DescribeWorkflowExecution response with workflow history. """ + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" + operation_token: builtins.str + """Operation token. Only set for asynchronous operations after a successful StartOperation call.""" def __init__( self, *, @@ -1058,6 +1417,8 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): | None = ..., cancellation_info: global___NexusOperationCancellationInfo | None = ..., scheduled_event_id: builtins.int = ..., + blocked_reason: builtins.str = ..., + operation_token: builtins.str = ..., ) -> None: ... def HasField( self, @@ -1081,6 +1442,8 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): field_name: typing_extensions.Literal[ "attempt", b"attempt", + "blocked_reason", + b"blocked_reason", "cancellation_info", b"cancellation_info", "endpoint", @@ -1095,6 +1458,8 @@ class PendingNexusOperationInfo(google.protobuf.message.Message): b"operation", "operation_id", b"operation_id", + "operation_token", + b"operation_token", "schedule_to_close_timeout", b"schedule_to_close_timeout", "scheduled_event_id", @@ -1121,6 +1486,7 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER: builtins.int LAST_ATTEMPT_FAILURE_FIELD_NUMBER: builtins.int NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int + BLOCKED_REASON_FIELD_NUMBER: builtins.int @property def requested_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when cancellation was requested.""" @@ -1138,6 +1504,8 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): @property def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """The time when the next attempt is scheduled.""" + blocked_reason: builtins.str + """If the state is BLOCKED, blocked reason provides additional information.""" def __init__( self, *, @@ -1150,6 +1518,7 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): | None = ..., next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + blocked_reason: builtins.str = ..., ) -> None: ... def HasField( self, @@ -1169,6 +1538,8 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): field_name: typing_extensions.Literal[ "attempt", b"attempt", + "blocked_reason", + b"blocked_reason", "last_attempt_complete_time", b"last_attempt_complete_time", "last_attempt_failure", @@ -1183,3 +1554,119 @@ class NexusOperationCancellationInfo(google.protobuf.message.Message): ) -> None: ... global___NexusOperationCancellationInfo = NexusOperationCancellationInfo + +class WorkflowExecutionOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int + @property + def versioning_override(self) -> global___VersioningOverride: + """If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.""" + def __init__( + self, + *, + versioning_override: global___VersioningOverride | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "versioning_override", b"versioning_override" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "versioning_override", b"versioning_override" + ], + ) -> None: ... + +global___WorkflowExecutionOptions = WorkflowExecutionOptions + +class VersioningOverride(google.protobuf.message.Message): + """Used to override the versioning behavior (and pinned deployment version, if applicable) of a + specific workflow execution. If set, takes precedence over the worker-sent values. See + `WorkflowExecutionInfo.VersioningInfo` for more information. To remove the override, call + `UpdateWorkflowExecutionOptions` with a null `VersioningOverride`, and use the `update_mask` + to indicate that it should be mutated. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + BEHAVIOR_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + PINNED_VERSION_FIELD_NUMBER: builtins.int + behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType + """Required.""" + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """Required if behavior is `PINNED`. Must be null if behavior is `AUTO_UPGRADE`. + Identifies the worker deployment to pin the workflow to. + Deprecated. Use `pinned_version`. + """ + pinned_version: builtins.str + """Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`. + Identifies the worker deployment version to pin the workflow to, in the format + ".". + """ + def __init__( + self, + *, + behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + pinned_version: builtins.str = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["deployment", b"deployment"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "behavior", + b"behavior", + "deployment", + b"deployment", + "pinned_version", + b"pinned_version", + ], + ) -> None: ... + +global___VersioningOverride = VersioningOverride + +class OnConflictOptions(google.protobuf.message.Message): + """When StartWorkflowExecution uses the conflict policy WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING and + there is already an existing running workflow, OnConflictOptions defines actions to be taken on + the existing running workflow. In this case, it will create a WorkflowExecutionOptionsUpdatedEvent + history event in the running workflow with the changes requested in this object. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ATTACH_REQUEST_ID_FIELD_NUMBER: builtins.int + ATTACH_COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int + ATTACH_LINKS_FIELD_NUMBER: builtins.int + attach_request_id: builtins.bool + """Attaches the request ID to the running workflow.""" + attach_completion_callbacks: builtins.bool + """Attaches the completion callbacks to the running workflow.""" + attach_links: builtins.bool + """Attaches the links to the WorkflowExecutionOptionsUpdatedEvent history event.""" + def __init__( + self, + *, + attach_request_id: builtins.bool = ..., + attach_completion_callbacks: builtins.bool = ..., + attach_links: builtins.bool = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "attach_completion_callbacks", + b"attach_completion_callbacks", + "attach_links", + b"attach_links", + "attach_request_id", + b"attach_request_id", + ], + ) -> None: ... + +global___OnConflictOptions = OnConflictOptions diff --git a/temporalio/api/workflowservice/v1/__init__.py b/temporalio/api/workflowservice/v1/__init__.py index b5e22d324..21e027b73 100644 --- a/temporalio/api/workflowservice/v1/__init__.py +++ b/temporalio/api/workflowservice/v1/__init__.py @@ -5,24 +5,38 @@ CreateScheduleResponse, DeleteScheduleRequest, DeleteScheduleResponse, + DeleteWorkerDeploymentRequest, + DeleteWorkerDeploymentResponse, + DeleteWorkerDeploymentVersionRequest, + DeleteWorkerDeploymentVersionResponse, DeleteWorkflowExecutionRequest, DeleteWorkflowExecutionResponse, DeprecateNamespaceRequest, DeprecateNamespaceResponse, DescribeBatchOperationRequest, DescribeBatchOperationResponse, + DescribeDeploymentRequest, + DescribeDeploymentResponse, DescribeNamespaceRequest, DescribeNamespaceResponse, DescribeScheduleRequest, DescribeScheduleResponse, DescribeTaskQueueRequest, DescribeTaskQueueResponse, + DescribeWorkerDeploymentRequest, + DescribeWorkerDeploymentResponse, + DescribeWorkerDeploymentVersionRequest, + DescribeWorkerDeploymentVersionResponse, DescribeWorkflowExecutionRequest, DescribeWorkflowExecutionResponse, ExecuteMultiOperationRequest, ExecuteMultiOperationResponse, GetClusterInfoRequest, GetClusterInfoResponse, + GetCurrentDeploymentRequest, + GetCurrentDeploymentResponse, + GetDeploymentReachabilityRequest, + GetDeploymentReachabilityResponse, GetSearchAttributesRequest, GetSearchAttributesResponse, GetSystemInfoRequest, @@ -43,6 +57,8 @@ ListBatchOperationsResponse, ListClosedWorkflowExecutionsRequest, ListClosedWorkflowExecutionsResponse, + ListDeploymentsRequest, + ListDeploymentsResponse, ListNamespacesRequest, ListNamespacesResponse, ListOpenWorkflowExecutionsRequest, @@ -53,12 +69,14 @@ ListSchedulesResponse, ListTaskQueuePartitionsRequest, ListTaskQueuePartitionsResponse, + ListWorkerDeploymentsRequest, + ListWorkerDeploymentsResponse, ListWorkflowExecutionsRequest, ListWorkflowExecutionsResponse, PatchScheduleRequest, PatchScheduleResponse, - PauseActivityByIdRequest, - PauseActivityByIdResponse, + PauseActivityRequest, + PauseActivityResponse, PollActivityTaskQueueRequest, PollActivityTaskQueueResponse, PollNexusTaskQueueRequest, @@ -77,8 +95,8 @@ RegisterNamespaceResponse, RequestCancelWorkflowExecutionRequest, RequestCancelWorkflowExecutionResponse, - ResetActivityByIdRequest, - ResetActivityByIdResponse, + ResetActivityRequest, + ResetActivityResponse, ResetStickyTaskQueueRequest, ResetStickyTaskQueueResponse, ResetWorkflowExecutionRequest, @@ -107,6 +125,12 @@ RespondWorkflowTaskFailedResponse, ScanWorkflowExecutionsRequest, ScanWorkflowExecutionsResponse, + SetCurrentDeploymentRequest, + SetCurrentDeploymentResponse, + SetWorkerDeploymentCurrentVersionRequest, + SetWorkerDeploymentCurrentVersionResponse, + SetWorkerDeploymentRampingVersionRequest, + SetWorkerDeploymentRampingVersionResponse, ShutdownWorkerRequest, ShutdownWorkerResponse, SignalWithStartWorkflowExecutionRequest, @@ -121,18 +145,22 @@ StopBatchOperationResponse, TerminateWorkflowExecutionRequest, TerminateWorkflowExecutionResponse, - UnpauseActivityByIdRequest, - UnpauseActivityByIdResponse, - UpdateActivityOptionsByIdRequest, - UpdateActivityOptionsByIdResponse, + UnpauseActivityRequest, + UnpauseActivityResponse, + UpdateActivityOptionsRequest, + UpdateActivityOptionsResponse, UpdateNamespaceRequest, UpdateNamespaceResponse, UpdateScheduleRequest, UpdateScheduleResponse, UpdateWorkerBuildIdCompatibilityRequest, UpdateWorkerBuildIdCompatibilityResponse, + UpdateWorkerDeploymentVersionMetadataRequest, + UpdateWorkerDeploymentVersionMetadataResponse, UpdateWorkerVersioningRulesRequest, UpdateWorkerVersioningRulesResponse, + UpdateWorkflowExecutionOptionsRequest, + UpdateWorkflowExecutionOptionsResponse, UpdateWorkflowExecutionRequest, UpdateWorkflowExecutionResponse, ) @@ -144,24 +172,38 @@ "CreateScheduleResponse", "DeleteScheduleRequest", "DeleteScheduleResponse", + "DeleteWorkerDeploymentRequest", + "DeleteWorkerDeploymentResponse", + "DeleteWorkerDeploymentVersionRequest", + "DeleteWorkerDeploymentVersionResponse", "DeleteWorkflowExecutionRequest", "DeleteWorkflowExecutionResponse", "DeprecateNamespaceRequest", "DeprecateNamespaceResponse", "DescribeBatchOperationRequest", "DescribeBatchOperationResponse", + "DescribeDeploymentRequest", + "DescribeDeploymentResponse", "DescribeNamespaceRequest", "DescribeNamespaceResponse", "DescribeScheduleRequest", "DescribeScheduleResponse", "DescribeTaskQueueRequest", "DescribeTaskQueueResponse", + "DescribeWorkerDeploymentRequest", + "DescribeWorkerDeploymentResponse", + "DescribeWorkerDeploymentVersionRequest", + "DescribeWorkerDeploymentVersionResponse", "DescribeWorkflowExecutionRequest", "DescribeWorkflowExecutionResponse", "ExecuteMultiOperationRequest", "ExecuteMultiOperationResponse", "GetClusterInfoRequest", "GetClusterInfoResponse", + "GetCurrentDeploymentRequest", + "GetCurrentDeploymentResponse", + "GetDeploymentReachabilityRequest", + "GetDeploymentReachabilityResponse", "GetSearchAttributesRequest", "GetSearchAttributesResponse", "GetSystemInfoRequest", @@ -182,6 +224,8 @@ "ListBatchOperationsResponse", "ListClosedWorkflowExecutionsRequest", "ListClosedWorkflowExecutionsResponse", + "ListDeploymentsRequest", + "ListDeploymentsResponse", "ListNamespacesRequest", "ListNamespacesResponse", "ListOpenWorkflowExecutionsRequest", @@ -192,12 +236,14 @@ "ListSchedulesResponse", "ListTaskQueuePartitionsRequest", "ListTaskQueuePartitionsResponse", + "ListWorkerDeploymentsRequest", + "ListWorkerDeploymentsResponse", "ListWorkflowExecutionsRequest", "ListWorkflowExecutionsResponse", "PatchScheduleRequest", "PatchScheduleResponse", - "PauseActivityByIdRequest", - "PauseActivityByIdResponse", + "PauseActivityRequest", + "PauseActivityResponse", "PollActivityTaskQueueRequest", "PollActivityTaskQueueResponse", "PollNexusTaskQueueRequest", @@ -216,8 +262,8 @@ "RegisterNamespaceResponse", "RequestCancelWorkflowExecutionRequest", "RequestCancelWorkflowExecutionResponse", - "ResetActivityByIdRequest", - "ResetActivityByIdResponse", + "ResetActivityRequest", + "ResetActivityResponse", "ResetStickyTaskQueueRequest", "ResetStickyTaskQueueResponse", "ResetWorkflowExecutionRequest", @@ -246,6 +292,12 @@ "RespondWorkflowTaskFailedResponse", "ScanWorkflowExecutionsRequest", "ScanWorkflowExecutionsResponse", + "SetCurrentDeploymentRequest", + "SetCurrentDeploymentResponse", + "SetWorkerDeploymentCurrentVersionRequest", + "SetWorkerDeploymentCurrentVersionResponse", + "SetWorkerDeploymentRampingVersionRequest", + "SetWorkerDeploymentRampingVersionResponse", "ShutdownWorkerRequest", "ShutdownWorkerResponse", "SignalWithStartWorkflowExecutionRequest", @@ -260,18 +312,22 @@ "StopBatchOperationResponse", "TerminateWorkflowExecutionRequest", "TerminateWorkflowExecutionResponse", - "UnpauseActivityByIdRequest", - "UnpauseActivityByIdResponse", - "UpdateActivityOptionsByIdRequest", - "UpdateActivityOptionsByIdResponse", + "UnpauseActivityRequest", + "UnpauseActivityResponse", + "UpdateActivityOptionsRequest", + "UpdateActivityOptionsResponse", "UpdateNamespaceRequest", "UpdateNamespaceResponse", "UpdateScheduleRequest", "UpdateScheduleResponse", "UpdateWorkerBuildIdCompatibilityRequest", "UpdateWorkerBuildIdCompatibilityResponse", + "UpdateWorkerDeploymentVersionMetadataRequest", + "UpdateWorkerDeploymentVersionMetadataResponse", "UpdateWorkerVersioningRulesRequest", "UpdateWorkerVersioningRulesResponse", + "UpdateWorkflowExecutionOptionsRequest", + "UpdateWorkflowExecutionOptionsResponse", "UpdateWorkflowExecutionRequest", "UpdateWorkflowExecutionResponse", ] diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.py b/temporalio/api/workflowservice/v1/request_response_pb2.py index df9bfb509..e6f6aa785 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.py +++ b/temporalio/api/workflowservice/v1/request_response_pb2.py @@ -30,12 +30,18 @@ from temporalio.api.common.v1 import ( message_pb2 as temporal_dot_api_dot_common_dot_v1_dot_message__pb2, ) +from temporalio.api.deployment.v1 import ( + message_pb2 as temporal_dot_api_dot_deployment_dot_v1_dot_message__pb2, +) from temporalio.api.enums.v1 import ( batch_operation_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_batch__operation__pb2, ) from temporalio.api.enums.v1 import ( common_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_common__pb2, ) +from temporalio.api.enums.v1 import ( + deployment_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_deployment__pb2, +) from temporalio.api.enums.v1 import ( failed_cause_pb2 as temporal_dot_api_dot_enums_dot_v1_dot_failed__cause__pb2, ) @@ -104,7 +110,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a"temporal/api/enums/v1/update.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a\'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a&temporal/api/schedule/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12\x46\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1b\n\x19RegisterNamespaceResponse"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"9\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t"\xec\x02\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65precateNamespaceResponse"\xe0\t\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x14\x63ompletion_callbacks\x18\x15 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"\x9e\x01\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x03 \x01(\x08\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"\xaa\x02\n"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08"\xba\x01\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xee\x01\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12V\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\xbe\x06\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x32\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01"\xd4\x07\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x17\n\x0f\x62inary_checksum\x18\x07 \x01(\t\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12H\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12g\n\x0c\x63\x61pabilities\x18\x0e \x01(\x0b\x32Q.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01\x1a\x45\n\x0c\x43\x61pabilities\x12\x35\n-discard_speculative_workflow_task_with_events\x18\x01 \x01(\x08"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03"\xdf\x02\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x05 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12\x42\n\x0eworker_version\x18\x08 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"#\n!RespondWorkflowTaskFailedResponse"\xa0\x02\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12V\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"\xe8\x06\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12<\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy"\x90\x01\n"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t"X\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08"\xba\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t"C\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08"\xd4\x01\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"&\n$RespondActivityTaskCompletedResponse"\xba\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t"*\n(RespondActivityTaskCompletedByIdResponse"\x94\x02\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x42\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xfa\x01\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xd4\x01\n"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x42\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStamp"%\n#RespondActivityTaskCanceledResponse"\xba\x01\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t")\n\'RespondActivityTaskCanceledByIdResponse"\x84\x02\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"(\n&RequestCancelWorkflowExecutionResponse"\xf9\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x07 \x01(\t\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12#\n\x1bskip_generate_workflow_task\x18\t \x01(\x08\x12+\n\x05links\x18\n \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"!\n\x1fSignalWorkflowExecutionResponse"\x8d\t\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x0e \x01(\t\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12#\n\x1bskip_generate_workflow_task\x18\x15 \x01(\x08\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"K\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08"\xde\x02\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x43\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\x12S\n\x1breset_reapply_exclude_types\x18\x07 \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeType"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\x9f\x02\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"$\n"TerminateWorkflowExecutionResponse"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"!\n\x1f\x44\x65leteWorkflowExecutionResponse"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters"\x82\x01\n"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x1c\n\x1aGetSearchAttributesRequest"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\xde\x01\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\tJ\x04\x08\x05\x10\x06"#\n!RespondQueryTaskCompletedResponse"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x1e\n\x1cResetStickyTaskQueueResponse"g\n\x15ShutdownWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11sticky_task_queue\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t"\x18\n\x16ShutdownWorkerResponse"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition"\x8d\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\xc0\x04\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.workflow.v1.CallbackInfo\x12U\n\x18pending_nexus_operations\x18\x07 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingNexusOperationInfo"\xe1\x03\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12!\n\x19include_task_queue_status\x18\x04 \x01(\x08\x12>\n\x08\x61pi_mode\x18\x05 \x01(\x0e\x32,.temporal.api.enums.v1.DescribeTaskQueueMode\x12\x46\n\x08versions\x18\x06 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.TaskQueueVersionSelection\x12>\n\x10task_queue_types\x18\x07 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x14\n\x0creport_stats\x18\x08 \x01(\x08\x12\x16\n\x0ereport_pollers\x18\t \x01(\x08\x12 \n\x18report_task_reachability\x18\n \x01(\x08"\xe5\x02\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x45\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatus\x12\x63\n\rversions_info\x18\x03 \x03(\x0b\x32L.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry\x1a\x64\n\x11VersionsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.temporal.api.taskqueue.v1.TaskQueueVersionInfo:\x02\x38\x01"\x17\n\x15GetClusterInfoRequest"\x8b\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x16\n\x14GetSystemInfoRequest"\xf4\x03\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xe7\x02\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\x12\'\n\x1f\x63ount_group_by_execution_status\x18\n \x01(\x08\x12\r\n\x05nexus\x18\x0b \x01(\x08"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c"\xf8\x01\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x18\n\x16UpdateScheduleResponse"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\x17\n\x15PatchScheduleResponse"\xa8\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n!ListScheduleMatchingTimesResponse\x12.\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t"\x18\n\x16\x44\x65leteScheduleResponse"l\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x86\x05\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x12h\n\nmerge_sets\x18\x07 \x01(\x0b\x32R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x1aI\n\tMergeSets\x12\x1c\n\x14primary_set_build_id\x18\x01 \x01(\t\x12\x1e\n\x16secondary_set_build_id\x18\x02 \x01(\tB\x0b\n\toperation"@\n(UpdateWorkerBuildIdCompatibilityResponseJ\x04\x08\x01\x10\x02R\x0eversion_set_id"_\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05"t\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet"\xb5\r\n"UpdateWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c\x12\x81\x01\n\x16insert_assignment_rule\x18\x04 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRuleH\x00\x12\x83\x01\n\x17replace_assignment_rule\x18\x05 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRuleH\x00\x12\x81\x01\n\x16\x64\x65lete_assignment_rule\x18\x06 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRuleH\x00\x12\x8c\x01\n\x1c\x61\x64\x64_compatible_redirect_rule\x18\x07 \x01(\x0b\x32\x64.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRuleH\x00\x12\x94\x01\n replace_compatible_redirect_rule\x18\x08 \x01(\x0b\x32h.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRuleH\x00\x12\x92\x01\n\x1f\x64\x65lete_compatible_redirect_rule\x18\t \x01(\x0b\x32g.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRuleH\x00\x12l\n\x0f\x63ommit_build_id\x18\n \x01(\x0b\x32Q.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildIdH\x00\x1aq\n\x1bInsertBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x1a\x81\x01\n\x1cReplaceBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x1a@\n\x1b\x44\x65leteBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x1aj\n AddCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1an\n$ReplaceCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1a>\n#DeleteCompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x1a\x37\n\rCommitBuildId\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x42\x0b\n\toperation"\xfc\x01\n#UpdateWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"H\n\x1fGetWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t"\xf9\x01\n GetWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"\x9c\x01\n GetWorkerTaskReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tbuild_ids\x18\x02 \x03(\t\x12\x13\n\x0btask_queues\x18\x03 \x03(\t\x12=\n\x0creachability\x18\x04 \x01(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"r\n!GetWorkerTaskReachabilityResponse\x12M\n\x15\x62uild_id_reachability\x18\x01 \x03(\x0b\x32..temporal.api.taskqueue.v1.BuildIdReachability"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xd7\x01\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x03 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"\xdd\x04\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12=\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19max_operations_per_second\x18\x06 \x01(\x02\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x12\x45\n\x0freset_operation\x18\x0e \x01(\x0b\x32*.temporal.api.batch.v1.BatchOperationResetH\x00\x42\x0b\n\toperation"\x1d\n\x1bStartBatchOperationResponse"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t"\x1c\n\x1aStopBatchOperationResponse"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\x92\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xb9\x01\n"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy"\xdb\x01\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12\x35\n\nupdate_ref\x18\x03 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef"\xd2\x01\n\x19PollNexusTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12V\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilities"a\n\x1aPollNexusTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12/\n\x07request\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Request"\x8e\x01\n RespondNexusTaskCompletedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x31\n\x08response\x18\x04 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Response"#\n!RespondNexusTaskCompletedResponse"\x8c\x01\n\x1dRespondNexusTaskFailedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x32\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerError" \n\x1eRespondNexusTaskFailedResponse"\xdf\x02\n\x1c\x45xecuteMultiOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12[\n\noperations\x18\x02 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation\x1a\xce\x01\n\tOperation\x12X\n\x0estart_workflow\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestH\x00\x12Z\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestH\x00\x42\x0b\n\toperation"\xcc\x02\n\x1d\x45xecuteMultiOperationResponse\x12Z\n\tresponses\x18\x01 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response\x1a\xce\x01\n\x08Response\x12Y\n\x0estart_workflow\x18\x01 \x01(\x0b\x32?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponseH\x00\x12[\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponseH\x00\x42\n\n\x08response"\x8b\x02\n UpdateActivityOptionsByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x06 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x12\n\nrequest_id\x18\x08 \x01(\t"h\n!UpdateActivityOptionsByIdResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"\x8d\x01\n\x18PauseActivityByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t"\x1b\n\x19PauseActivityByIdResponse"\xb8\x03\n\x1aUnpauseActivityByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12]\n\x06resume\x18\x07 \x01(\x0b\x32K.temporal.api.workflowservice.v1.UnpauseActivityByIdRequest.ResumeOperationH\x00\x12[\n\x05reset\x18\x08 \x01(\x0b\x32J.temporal.api.workflowservice.v1.UnpauseActivityByIdRequest.ResetOperationH\x00\x1a"\n\x0fResumeOperation\x12\x0f\n\x07no_wait\x18\x01 \x01(\x08\x1a:\n\x0eResetOperation\x12\x0f\n\x07no_wait\x18\x01 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x02 \x01(\x08\x42\x0b\n\toperation"\x1d\n\x1bUnpauseActivityByIdResponse"\xb7\x01\n\x18ResetActivityByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x0f\n\x07no_wait\x18\x07 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x08 \x01(\x08"\x1b\n\x19ResetActivityByIdResponseB\xbe\x01\n"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' + b'\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a"temporal/api/enums/v1/update.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a\'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a&temporal/api/schedule/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a#temporal/api/nexus/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12\x46\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1b\n\x19RegisterNamespaceResponse"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"9\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t"\xec\x02\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65precateNamespaceResponse"\xa9\x0b\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x14\x63ompletion_callbacks\x18\x15 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12H\n\x13on_conflict_options\x18\x1a \x01(\x0b\x32+.temporal.api.workflow.v1.OnConflictOptions\x12\x32\n\x08priority\x18\x1b \x01(\x0b\x32 .temporal.api.common.v1.Priority"\x9e\x01\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x03 \x01(\x08\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"\xaa\x02\n"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08"\xba\x01\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xc3\x02\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"\x91\x07\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x32\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12Q\n\x17poller_scaling_decision\x18\x10 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01"\xb1\t\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x17\n\x0f\x62inary_checksum\x18\x07 \x01(\t\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12L\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12g\n\x0c\x63\x61pabilities\x18\x0e \x01(\x0b\x32Q.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities\x12>\n\ndeployment\x18\x0f \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x46\n\x13versioning_behavior\x18\x10 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12O\n\x12\x64\x65ployment_options\x18\x11 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01\x1a\x45\n\x0c\x43\x61pabilities\x12\x35\n-discard_speculative_workflow_task_with_events\x18\x01 \x01(\x08"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03"\xf0\x03\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x05 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12\x46\n\x0eworker_version\x18\x08 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12:\n\ndeployment\x18\t \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12O\n\x12\x64\x65ployment_options\x18\n \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"#\n!RespondWorkflowTaskFailedResponse"\xf5\x02\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"\xef\x07\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12<\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12Q\n\x17poller_scaling_decision\x18\x12 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x32\n\x08priority\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Priority"\x90\x01\n"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t"X\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08"\xba\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t"\\\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08"\xe9\x02\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"&\n$RespondActivityTaskCompletedResponse"\xba\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t"*\n(RespondActivityTaskCompletedByIdResponse"\xa9\x03\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x07 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x08 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xfa\x01\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xe9\x02\n"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"%\n#RespondActivityTaskCanceledResponse"\xba\x01\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t")\n\'RespondActivityTaskCanceledByIdResponse"\x84\x02\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"(\n&RequestCancelWorkflowExecutionResponse"\xda\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x0f\n\x07\x63ontrol\x18\x07 \x01(\t\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12+\n\x05links\x18\n \x03(\x0b\x32\x1c.temporal.api.common.v1.LinkJ\x04\x08\t\x10\n"!\n\x1fSignalWorkflowExecutionResponse"\xed\t\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x0f\n\x07\x63ontrol\x18\x0e \x01(\t\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x1a \x01(\x0b\x32 .temporal.api.common.v1.PriorityJ\x04\x08\x15\x10\x16"K\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08"\xde\x02\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x43\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyType\x12S\n\x1breset_reapply_exclude_types\x18\x07 \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeType"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\x9f\x02\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"$\n"TerminateWorkflowExecutionResponse"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"!\n\x1f\x44\x65leteWorkflowExecutionResponse"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters"\x82\x01\n"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x1c\n\x1aGetSearchAttributesRequest"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\x91\x02\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.FailureJ\x04\x08\x05\x10\x06"#\n!RespondQueryTaskCompletedResponse"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x1e\n\x1cResetStickyTaskQueueResponse"g\n\x15ShutdownWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11sticky_task_queue\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t"\x18\n\x16ShutdownWorkerResponse"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition"\x8d\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x99\x05\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.workflow.v1.CallbackInfo\x12U\n\x18pending_nexus_operations\x18\x07 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingNexusOperationInfo\x12W\n\x16workflow_extended_info\x18\x08 \x01(\x0b\x32\x37.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo"\xe1\x03\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12!\n\x19include_task_queue_status\x18\x04 \x01(\x08\x12>\n\x08\x61pi_mode\x18\x05 \x01(\x0e\x32,.temporal.api.enums.v1.DescribeTaskQueueMode\x12\x46\n\x08versions\x18\x06 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.TaskQueueVersionSelection\x12>\n\x10task_queue_types\x18\x07 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x14\n\x0creport_stats\x18\x08 \x01(\x08\x12\x16\n\x0ereport_pollers\x18\t \x01(\x08\x12 \n\x18report_task_reachability\x18\n \x01(\x08"\xb2\x03\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x45\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatus\x12\x63\n\rversions_info\x18\x03 \x03(\x0b\x32L.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry\x12K\n\x0fversioning_info\x18\x04 \x01(\x0b\x32\x32.temporal.api.taskqueue.v1.TaskQueueVersioningInfo\x1a\x64\n\x11VersionsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.temporal.api.taskqueue.v1.TaskQueueVersionInfo:\x02\x38\x01"\x17\n\x15GetClusterInfoRequest"\x8b\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x16\n\x14GetSystemInfoRequest"\xf4\x03\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xe7\x02\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\x12\'\n\x1f\x63ount_group_by_execution_status\x18\n \x01(\x08\x12\r\n\x05nexus\x18\x0b \x01(\x08"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c"\xf8\x01\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"\x18\n\x16UpdateScheduleResponse"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\x17\n\x15PatchScheduleResponse"\xa8\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n!ListScheduleMatchingTimesResponse\x12.\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t"\x18\n\x16\x44\x65leteScheduleResponse"l\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x86\x05\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x12h\n\nmerge_sets\x18\x07 \x01(\x0b\x32R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x1aI\n\tMergeSets\x12\x1c\n\x14primary_set_build_id\x18\x01 \x01(\t\x12\x1e\n\x16secondary_set_build_id\x18\x02 \x01(\tB\x0b\n\toperation"@\n(UpdateWorkerBuildIdCompatibilityResponseJ\x04\x08\x01\x10\x02R\x0eversion_set_id"_\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05"t\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet"\xb5\r\n"UpdateWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c\x12\x81\x01\n\x16insert_assignment_rule\x18\x04 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRuleH\x00\x12\x83\x01\n\x17replace_assignment_rule\x18\x05 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRuleH\x00\x12\x81\x01\n\x16\x64\x65lete_assignment_rule\x18\x06 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRuleH\x00\x12\x8c\x01\n\x1c\x61\x64\x64_compatible_redirect_rule\x18\x07 \x01(\x0b\x32\x64.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRuleH\x00\x12\x94\x01\n replace_compatible_redirect_rule\x18\x08 \x01(\x0b\x32h.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRuleH\x00\x12\x92\x01\n\x1f\x64\x65lete_compatible_redirect_rule\x18\t \x01(\x0b\x32g.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRuleH\x00\x12l\n\x0f\x63ommit_build_id\x18\n \x01(\x0b\x32Q.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildIdH\x00\x1aq\n\x1bInsertBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x1a\x81\x01\n\x1cReplaceBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x1a@\n\x1b\x44\x65leteBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x1aj\n AddCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1an\n$ReplaceCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1a>\n#DeleteCompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x1a\x37\n\rCommitBuildId\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x42\x0b\n\toperation"\xfc\x01\n#UpdateWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"H\n\x1fGetWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t"\xf9\x01\n GetWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"\x9c\x01\n GetWorkerTaskReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tbuild_ids\x18\x02 \x03(\t\x12\x13\n\x0btask_queues\x18\x03 \x03(\t\x12=\n\x0creachability\x18\x04 \x01(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"r\n!GetWorkerTaskReachabilityResponse\x12M\n\x15\x62uild_id_reachability\x18\x01 \x03(\x0b\x32..temporal.api.taskqueue.v1.BuildIdReachability"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xd7\x01\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x03 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage"\xaf\x06\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12=\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12!\n\x19max_operations_per_second\x18\x06 \x01(\x02\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x12\x45\n\x0freset_operation\x18\x0e \x01(\x0b\x32*.temporal.api.batch.v1.BatchOperationResetH\x00\x12p\n!update_workflow_options_operation\x18\x0f \x01(\x0b\x32\x43.temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptionsH\x00\x12^\n\x1cunpause_activities_operation\x18\x10 \x01(\x0b\x32\x36.temporal.api.batch.v1.BatchOperationUnpauseActivitiesH\x00\x42\x0b\n\toperation"\x1d\n\x1bStartBatchOperationResponse"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t"\x1c\n\x1aStopBatchOperationResponse"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\x92\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xb9\x01\n"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy"\xdb\x01\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12\x35\n\nupdate_ref\x18\x03 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef"\xa7\x02\n\x19PollNexusTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"\xb4\x01\n\x1aPollNexusTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12/\n\x07request\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Request\x12Q\n\x17poller_scaling_decision\x18\x03 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision"\x8e\x01\n RespondNexusTaskCompletedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x31\n\x08response\x18\x04 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Response"#\n!RespondNexusTaskCompletedResponse"\x8c\x01\n\x1dRespondNexusTaskFailedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x32\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerError" \n\x1eRespondNexusTaskFailedResponse"\xdf\x02\n\x1c\x45xecuteMultiOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12[\n\noperations\x18\x02 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation\x1a\xce\x01\n\tOperation\x12X\n\x0estart_workflow\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestH\x00\x12Z\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestH\x00\x42\x0b\n\toperation"\xcc\x02\n\x1d\x45xecuteMultiOperationResponse\x12Z\n\tresponses\x18\x01 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response\x1a\xce\x01\n\x08Response\x12Y\n\x0estart_workflow\x18\x01 \x01(\x0b\x32?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponseH\x00\x12[\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponseH\x00\x42\n\n\x08response"\xa1\x02\n\x1cUpdateActivityOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x04 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0c\n\x02id\x18\x06 \x01(\tH\x00\x12\x0e\n\x04type\x18\x07 \x01(\tH\x00\x42\n\n\x08\x61\x63tivity"d\n\x1dUpdateActivityOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"\xa3\x01\n\x14PauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x42\n\n\x08\x61\x63tivity"\x17\n\x15PauseActivityResponse"\x98\x02\n\x16UnpauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x15\n\x0bunpause_all\x18\x06 \x01(\x08H\x00\x12\x16\n\x0ereset_attempts\x18\x07 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x08 \x01(\x08\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\n\n\x08\x61\x63tivity"\x19\n\x17UnpauseActivityResponse"\xfc\x01\n\x14ResetActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x17\n\x0freset_heartbeat\x18\x06 \x01(\x08\x12\x13\n\x0bkeep_paused\x18\x07 \x01(\x08\x12)\n\x06jitter\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\n\n\x08\x61\x63tivity"\x17\n\x15ResetActivityResponse"\x8a\x02\n%UpdateWorkflowExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12V\n\x1aworkflow_execution_options\x18\x03 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\x80\x01\n&UpdateWorkflowExecutionOptionsResponse\x12V\n\x1aworkflow_execution_options\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions"j\n\x19\x44\x65scribeDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"a\n\x1a\x44\x65scribeDeploymentResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"L\n&DescribeWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t"\x8a\x01\n\'DescribeWorkerDeploymentVersionResponse\x12_\n\x1eworker_deployment_version_info\x18\x01 \x01(\x0b\x32\x37.temporal.api.deployment.v1.WorkerDeploymentVersionInfo"M\n\x1f\x44\x65scribeWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t"\x8c\x01\n DescribeWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12P\n\x16worker_deployment_info\x18\x02 \x01(\x0b\x32\x30.temporal.api.deployment.v1.WorkerDeploymentInfo"l\n\x16ListDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x13\n\x0bseries_name\x18\x04 \x01(\t"w\n\x17ListDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12\x43\n\x0b\x64\x65ployments\x18\x02 \x03(\x0b\x32..temporal.api.deployment.v1.DeploymentListInfo"\xcd\x01\n\x1bSetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12\x10\n\x08identity\x18\x03 \x01(\t\x12M\n\x0fupdate_metadata\x18\x04 \x01(\x0b\x32\x34.temporal.api.deployment.v1.UpdateDeploymentMetadata"\xb9\x01\n\x1cSetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12L\n\x18previous_deployment_info\x18\x02 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xb5\x01\n(SetWorkerDeploymentCurrentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x06 \x01(\x08"]\n)SetWorkerDeploymentCurrentVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x18\n\x10previous_version\x18\x02 \x01(\t"\xc9\x01\n(SetWorkerDeploymentRampingVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x12\n\npercentage\x18\x04 \x01(\x02\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x07 \x01(\x08"z\n)SetWorkerDeploymentRampingVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x18\n\x10previous_version\x18\x02 \x01(\t\x12\x1b\n\x13previous_percentage\x18\x03 \x01(\x02"]\n\x1cListWorkerDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xca\x02\n\x1dListWorkerDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12r\n\x12worker_deployments\x18\x02 \x03(\x0b\x32V.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary\x1a\x9b\x01\n\x17WorkerDeploymentSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0erouting_config\x18\x03 \x01(\x0b\x32).temporal.api.deployment.v1.RoutingConfig"s\n$DeleteWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x15\n\rskip_drainage\x18\x03 \x01(\x08\x12\x10\n\x08identity\x18\x04 \x01(\t"\'\n%DeleteWorkerDeploymentVersionResponse"]\n\x1d\x44\x65leteWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t" \n\x1e\x44\x65leteWorkerDeploymentResponse"\xbb\x02\n,UpdateWorkerDeploymentVersionMetadataRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12x\n\x0eupsert_entries\x18\x03 \x03(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry\x12\x16\n\x0eremove_entries\x18\x04 \x03(\t\x1aU\n\x12UpsertEntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"n\n-UpdateWorkerDeploymentVersionMetadataResponse\x12=\n\x08metadata\x18\x01 \x01(\x0b\x32+.temporal.api.deployment.v1.VersionMetadata"E\n\x1bGetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bseries_name\x18\x02 \x01(\t"k\n\x1cGetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"q\n GetDeploymentReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"\xe3\x01\n!GetDeploymentReachabilityResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12\x43\n\x0creachability\x18\x02 \x01(\x0e\x32-.temporal.api.enums.v1.DeploymentReachability\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\xbe\x01\n"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' ) @@ -512,31 +518,105 @@ _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE = ( _EXECUTEMULTIOPERATIONRESPONSE.nested_types_by_name["Response"] ) -_UPDATEACTIVITYOPTIONSBYIDREQUEST = DESCRIPTOR.message_types_by_name[ - "UpdateActivityOptionsByIdRequest" +_UPDATEACTIVITYOPTIONSREQUEST = DESCRIPTOR.message_types_by_name[ + "UpdateActivityOptionsRequest" +] +_UPDATEACTIVITYOPTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ + "UpdateActivityOptionsResponse" +] +_PAUSEACTIVITYREQUEST = DESCRIPTOR.message_types_by_name["PauseActivityRequest"] +_PAUSEACTIVITYRESPONSE = DESCRIPTOR.message_types_by_name["PauseActivityResponse"] +_UNPAUSEACTIVITYREQUEST = DESCRIPTOR.message_types_by_name["UnpauseActivityRequest"] +_UNPAUSEACTIVITYRESPONSE = DESCRIPTOR.message_types_by_name["UnpauseActivityResponse"] +_RESETACTIVITYREQUEST = DESCRIPTOR.message_types_by_name["ResetActivityRequest"] +_RESETACTIVITYRESPONSE = DESCRIPTOR.message_types_by_name["ResetActivityResponse"] +_UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST = DESCRIPTOR.message_types_by_name[ + "UpdateWorkflowExecutionOptionsRequest" +] +_UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE = DESCRIPTOR.message_types_by_name[ + "UpdateWorkflowExecutionOptionsResponse" +] +_DESCRIBEDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ + "DescribeDeploymentRequest" +] +_DESCRIBEDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ + "DescribeDeploymentResponse" +] +_DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ + "DescribeWorkerDeploymentVersionRequest" +] +_DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ + "DescribeWorkerDeploymentVersionResponse" +] +_DESCRIBEWORKERDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ + "DescribeWorkerDeploymentRequest" +] +_DESCRIBEWORKERDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ + "DescribeWorkerDeploymentResponse" ] -_UPDATEACTIVITYOPTIONSBYIDRESPONSE = DESCRIPTOR.message_types_by_name[ - "UpdateActivityOptionsByIdResponse" +_LISTDEPLOYMENTSREQUEST = DESCRIPTOR.message_types_by_name["ListDeploymentsRequest"] +_LISTDEPLOYMENTSRESPONSE = DESCRIPTOR.message_types_by_name["ListDeploymentsResponse"] +_SETCURRENTDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ + "SetCurrentDeploymentRequest" ] -_PAUSEACTIVITYBYIDREQUEST = DESCRIPTOR.message_types_by_name["PauseActivityByIdRequest"] -_PAUSEACTIVITYBYIDRESPONSE = DESCRIPTOR.message_types_by_name[ - "PauseActivityByIdResponse" +_SETCURRENTDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ + "SetCurrentDeploymentResponse" ] -_UNPAUSEACTIVITYBYIDREQUEST = DESCRIPTOR.message_types_by_name[ - "UnpauseActivityByIdRequest" +_SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ + "SetWorkerDeploymentCurrentVersionRequest" ] -_UNPAUSEACTIVITYBYIDREQUEST_RESUMEOPERATION = ( - _UNPAUSEACTIVITYBYIDREQUEST.nested_types_by_name["ResumeOperation"] +_SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ + "SetWorkerDeploymentCurrentVersionResponse" +] +_SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ + "SetWorkerDeploymentRampingVersionRequest" +] +_SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ + "SetWorkerDeploymentRampingVersionResponse" +] +_LISTWORKERDEPLOYMENTSREQUEST = DESCRIPTOR.message_types_by_name[ + "ListWorkerDeploymentsRequest" +] +_LISTWORKERDEPLOYMENTSRESPONSE = DESCRIPTOR.message_types_by_name[ + "ListWorkerDeploymentsResponse" +] +_LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY = ( + _LISTWORKERDEPLOYMENTSRESPONSE.nested_types_by_name["WorkerDeploymentSummary"] ) -_UNPAUSEACTIVITYBYIDREQUEST_RESETOPERATION = ( - _UNPAUSEACTIVITYBYIDREQUEST.nested_types_by_name["ResetOperation"] +_DELETEWORKERDEPLOYMENTVERSIONREQUEST = DESCRIPTOR.message_types_by_name[ + "DeleteWorkerDeploymentVersionRequest" +] +_DELETEWORKERDEPLOYMENTVERSIONRESPONSE = DESCRIPTOR.message_types_by_name[ + "DeleteWorkerDeploymentVersionResponse" +] +_DELETEWORKERDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ + "DeleteWorkerDeploymentRequest" +] +_DELETEWORKERDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ + "DeleteWorkerDeploymentResponse" +] +_UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST = DESCRIPTOR.message_types_by_name[ + "UpdateWorkerDeploymentVersionMetadataRequest" +] +_UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY = ( + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST.nested_types_by_name[ + "UpsertEntriesEntry" + ] ) -_UNPAUSEACTIVITYBYIDRESPONSE = DESCRIPTOR.message_types_by_name[ - "UnpauseActivityByIdResponse" +_UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE = DESCRIPTOR.message_types_by_name[ + "UpdateWorkerDeploymentVersionMetadataResponse" +] +_GETCURRENTDEPLOYMENTREQUEST = DESCRIPTOR.message_types_by_name[ + "GetCurrentDeploymentRequest" ] -_RESETACTIVITYBYIDREQUEST = DESCRIPTOR.message_types_by_name["ResetActivityByIdRequest"] -_RESETACTIVITYBYIDRESPONSE = DESCRIPTOR.message_types_by_name[ - "ResetActivityByIdResponse" +_GETCURRENTDEPLOYMENTRESPONSE = DESCRIPTOR.message_types_by_name[ + "GetCurrentDeploymentResponse" +] +_GETDEPLOYMENTREACHABILITYREQUEST = DESCRIPTOR.message_types_by_name[ + "GetDeploymentReachabilityRequest" +] +_GETDEPLOYMENTREACHABILITYRESPONSE = DESCRIPTOR.message_types_by_name[ + "GetDeploymentReachabilityResponse" ] RegisterNamespaceRequest = _reflection.GeneratedProtocolMessageType( "RegisterNamespaceRequest", @@ -2152,453 +2232,881 @@ _sym_db.RegisterMessage(ExecuteMultiOperationResponse) _sym_db.RegisterMessage(ExecuteMultiOperationResponse.Response) -UpdateActivityOptionsByIdRequest = _reflection.GeneratedProtocolMessageType( - "UpdateActivityOptionsByIdRequest", +UpdateActivityOptionsRequest = _reflection.GeneratedProtocolMessageType( + "UpdateActivityOptionsRequest", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEACTIVITYOPTIONSREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateActivityOptionsRequest) + }, +) +_sym_db.RegisterMessage(UpdateActivityOptionsRequest) + +UpdateActivityOptionsResponse = _reflection.GeneratedProtocolMessageType( + "UpdateActivityOptionsResponse", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEACTIVITYOPTIONSRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateActivityOptionsResponse) + }, +) +_sym_db.RegisterMessage(UpdateActivityOptionsResponse) + +PauseActivityRequest = _reflection.GeneratedProtocolMessageType( + "PauseActivityRequest", + (_message.Message,), + { + "DESCRIPTOR": _PAUSEACTIVITYREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseActivityRequest) + }, +) +_sym_db.RegisterMessage(PauseActivityRequest) + +PauseActivityResponse = _reflection.GeneratedProtocolMessageType( + "PauseActivityResponse", + (_message.Message,), + { + "DESCRIPTOR": _PAUSEACTIVITYRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseActivityResponse) + }, +) +_sym_db.RegisterMessage(PauseActivityResponse) + +UnpauseActivityRequest = _reflection.GeneratedProtocolMessageType( + "UnpauseActivityRequest", + (_message.Message,), + { + "DESCRIPTOR": _UNPAUSEACTIVITYREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityRequest) + }, +) +_sym_db.RegisterMessage(UnpauseActivityRequest) + +UnpauseActivityResponse = _reflection.GeneratedProtocolMessageType( + "UnpauseActivityResponse", + (_message.Message,), + { + "DESCRIPTOR": _UNPAUSEACTIVITYRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityResponse) + }, +) +_sym_db.RegisterMessage(UnpauseActivityResponse) + +ResetActivityRequest = _reflection.GeneratedProtocolMessageType( + "ResetActivityRequest", + (_message.Message,), + { + "DESCRIPTOR": _RESETACTIVITYREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetActivityRequest) + }, +) +_sym_db.RegisterMessage(ResetActivityRequest) + +ResetActivityResponse = _reflection.GeneratedProtocolMessageType( + "ResetActivityResponse", + (_message.Message,), + { + "DESCRIPTOR": _RESETACTIVITYRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetActivityResponse) + }, +) +_sym_db.RegisterMessage(ResetActivityResponse) + +UpdateWorkflowExecutionOptionsRequest = _reflection.GeneratedProtocolMessageType( + "UpdateWorkflowExecutionOptionsRequest", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest) + }, +) +_sym_db.RegisterMessage(UpdateWorkflowExecutionOptionsRequest) + +UpdateWorkflowExecutionOptionsResponse = _reflection.GeneratedProtocolMessageType( + "UpdateWorkflowExecutionOptionsResponse", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse) + }, +) +_sym_db.RegisterMessage(UpdateWorkflowExecutionOptionsResponse) + +DescribeDeploymentRequest = _reflection.GeneratedProtocolMessageType( + "DescribeDeploymentRequest", + (_message.Message,), + { + "DESCRIPTOR": _DESCRIBEDEPLOYMENTREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeDeploymentRequest) + }, +) +_sym_db.RegisterMessage(DescribeDeploymentRequest) + +DescribeDeploymentResponse = _reflection.GeneratedProtocolMessageType( + "DescribeDeploymentResponse", + (_message.Message,), + { + "DESCRIPTOR": _DESCRIBEDEPLOYMENTRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeDeploymentResponse) + }, +) +_sym_db.RegisterMessage(DescribeDeploymentResponse) + +DescribeWorkerDeploymentVersionRequest = _reflection.GeneratedProtocolMessageType( + "DescribeWorkerDeploymentVersionRequest", + (_message.Message,), + { + "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest) + }, +) +_sym_db.RegisterMessage(DescribeWorkerDeploymentVersionRequest) + +DescribeWorkerDeploymentVersionResponse = _reflection.GeneratedProtocolMessageType( + "DescribeWorkerDeploymentVersionResponse", + (_message.Message,), + { + "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse) + }, +) +_sym_db.RegisterMessage(DescribeWorkerDeploymentVersionResponse) + +DescribeWorkerDeploymentRequest = _reflection.GeneratedProtocolMessageType( + "DescribeWorkerDeploymentRequest", + (_message.Message,), + { + "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentRequest) + }, +) +_sym_db.RegisterMessage(DescribeWorkerDeploymentRequest) + +DescribeWorkerDeploymentResponse = _reflection.GeneratedProtocolMessageType( + "DescribeWorkerDeploymentResponse", + (_message.Message,), + { + "DESCRIPTOR": _DESCRIBEWORKERDEPLOYMENTRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkerDeploymentResponse) + }, +) +_sym_db.RegisterMessage(DescribeWorkerDeploymentResponse) + +ListDeploymentsRequest = _reflection.GeneratedProtocolMessageType( + "ListDeploymentsRequest", + (_message.Message,), + { + "DESCRIPTOR": _LISTDEPLOYMENTSREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListDeploymentsRequest) + }, +) +_sym_db.RegisterMessage(ListDeploymentsRequest) + +ListDeploymentsResponse = _reflection.GeneratedProtocolMessageType( + "ListDeploymentsResponse", + (_message.Message,), + { + "DESCRIPTOR": _LISTDEPLOYMENTSRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListDeploymentsResponse) + }, +) +_sym_db.RegisterMessage(ListDeploymentsResponse) + +SetCurrentDeploymentRequest = _reflection.GeneratedProtocolMessageType( + "SetCurrentDeploymentRequest", + (_message.Message,), + { + "DESCRIPTOR": _SETCURRENTDEPLOYMENTREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetCurrentDeploymentRequest) + }, +) +_sym_db.RegisterMessage(SetCurrentDeploymentRequest) + +SetCurrentDeploymentResponse = _reflection.GeneratedProtocolMessageType( + "SetCurrentDeploymentResponse", + (_message.Message,), + { + "DESCRIPTOR": _SETCURRENTDEPLOYMENTRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetCurrentDeploymentResponse) + }, +) +_sym_db.RegisterMessage(SetCurrentDeploymentResponse) + +SetWorkerDeploymentCurrentVersionRequest = _reflection.GeneratedProtocolMessageType( + "SetWorkerDeploymentCurrentVersionRequest", + (_message.Message,), + { + "DESCRIPTOR": _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionRequest) + }, +) +_sym_db.RegisterMessage(SetWorkerDeploymentCurrentVersionRequest) + +SetWorkerDeploymentCurrentVersionResponse = _reflection.GeneratedProtocolMessageType( + "SetWorkerDeploymentCurrentVersionResponse", (_message.Message,), { - "DESCRIPTOR": _UPDATEACTIVITYOPTIONSBYIDREQUEST, + "DESCRIPTOR": _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateActivityOptionsByIdRequest) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentCurrentVersionResponse) }, ) -_sym_db.RegisterMessage(UpdateActivityOptionsByIdRequest) +_sym_db.RegisterMessage(SetWorkerDeploymentCurrentVersionResponse) -UpdateActivityOptionsByIdResponse = _reflection.GeneratedProtocolMessageType( - "UpdateActivityOptionsByIdResponse", +SetWorkerDeploymentRampingVersionRequest = _reflection.GeneratedProtocolMessageType( + "SetWorkerDeploymentRampingVersionRequest", (_message.Message,), { - "DESCRIPTOR": _UPDATEACTIVITYOPTIONSBYIDRESPONSE, + "DESCRIPTOR": _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateActivityOptionsByIdResponse) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionRequest) }, ) -_sym_db.RegisterMessage(UpdateActivityOptionsByIdResponse) +_sym_db.RegisterMessage(SetWorkerDeploymentRampingVersionRequest) -PauseActivityByIdRequest = _reflection.GeneratedProtocolMessageType( - "PauseActivityByIdRequest", +SetWorkerDeploymentRampingVersionResponse = _reflection.GeneratedProtocolMessageType( + "SetWorkerDeploymentRampingVersionResponse", (_message.Message,), { - "DESCRIPTOR": _PAUSEACTIVITYBYIDREQUEST, + "DESCRIPTOR": _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseActivityByIdRequest) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SetWorkerDeploymentRampingVersionResponse) }, ) -_sym_db.RegisterMessage(PauseActivityByIdRequest) +_sym_db.RegisterMessage(SetWorkerDeploymentRampingVersionResponse) -PauseActivityByIdResponse = _reflection.GeneratedProtocolMessageType( - "PauseActivityByIdResponse", +ListWorkerDeploymentsRequest = _reflection.GeneratedProtocolMessageType( + "ListWorkerDeploymentsRequest", (_message.Message,), { - "DESCRIPTOR": _PAUSEACTIVITYBYIDRESPONSE, + "DESCRIPTOR": _LISTWORKERDEPLOYMENTSREQUEST, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PauseActivityByIdResponse) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkerDeploymentsRequest) }, ) -_sym_db.RegisterMessage(PauseActivityByIdResponse) +_sym_db.RegisterMessage(ListWorkerDeploymentsRequest) -UnpauseActivityByIdRequest = _reflection.GeneratedProtocolMessageType( - "UnpauseActivityByIdRequest", +ListWorkerDeploymentsResponse = _reflection.GeneratedProtocolMessageType( + "ListWorkerDeploymentsResponse", (_message.Message,), { - "ResumeOperation": _reflection.GeneratedProtocolMessageType( - "ResumeOperation", + "WorkerDeploymentSummary": _reflection.GeneratedProtocolMessageType( + "WorkerDeploymentSummary", (_message.Message,), { - "DESCRIPTOR": _UNPAUSEACTIVITYBYIDREQUEST_RESUMEOPERATION, + "DESCRIPTOR": _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityByIdRequest.ResumeOperation) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary) }, ), - "ResetOperation": _reflection.GeneratedProtocolMessageType( - "ResetOperation", + "DESCRIPTOR": _LISTWORKERDEPLOYMENTSRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse) + }, +) +_sym_db.RegisterMessage(ListWorkerDeploymentsResponse) +_sym_db.RegisterMessage(ListWorkerDeploymentsResponse.WorkerDeploymentSummary) + +DeleteWorkerDeploymentVersionRequest = _reflection.GeneratedProtocolMessageType( + "DeleteWorkerDeploymentVersionRequest", + (_message.Message,), + { + "DESCRIPTOR": _DELETEWORKERDEPLOYMENTVERSIONREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionRequest) + }, +) +_sym_db.RegisterMessage(DeleteWorkerDeploymentVersionRequest) + +DeleteWorkerDeploymentVersionResponse = _reflection.GeneratedProtocolMessageType( + "DeleteWorkerDeploymentVersionResponse", + (_message.Message,), + { + "DESCRIPTOR": _DELETEWORKERDEPLOYMENTVERSIONRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkerDeploymentVersionResponse) + }, +) +_sym_db.RegisterMessage(DeleteWorkerDeploymentVersionResponse) + +DeleteWorkerDeploymentRequest = _reflection.GeneratedProtocolMessageType( + "DeleteWorkerDeploymentRequest", + (_message.Message,), + { + "DESCRIPTOR": _DELETEWORKERDEPLOYMENTREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkerDeploymentRequest) + }, +) +_sym_db.RegisterMessage(DeleteWorkerDeploymentRequest) + +DeleteWorkerDeploymentResponse = _reflection.GeneratedProtocolMessageType( + "DeleteWorkerDeploymentResponse", + (_message.Message,), + { + "DESCRIPTOR": _DELETEWORKERDEPLOYMENTRESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkerDeploymentResponse) + }, +) +_sym_db.RegisterMessage(DeleteWorkerDeploymentResponse) + +UpdateWorkerDeploymentVersionMetadataRequest = _reflection.GeneratedProtocolMessageType( + "UpdateWorkerDeploymentVersionMetadataRequest", + (_message.Message,), + { + "UpsertEntriesEntry": _reflection.GeneratedProtocolMessageType( + "UpsertEntriesEntry", (_message.Message,), { - "DESCRIPTOR": _UNPAUSEACTIVITYBYIDREQUEST_RESETOPERATION, + "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityByIdRequest.ResetOperation) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry) }, ), - "DESCRIPTOR": _UNPAUSEACTIVITYBYIDREQUEST, + "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest) + }, +) +_sym_db.RegisterMessage(UpdateWorkerDeploymentVersionMetadataRequest) +_sym_db.RegisterMessage(UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry) + +UpdateWorkerDeploymentVersionMetadataResponse = ( + _reflection.GeneratedProtocolMessageType( + "UpdateWorkerDeploymentVersionMetadataResponse", + (_message.Message,), + { + "DESCRIPTOR": _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE, + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse) + }, + ) +) +_sym_db.RegisterMessage(UpdateWorkerDeploymentVersionMetadataResponse) + +GetCurrentDeploymentRequest = _reflection.GeneratedProtocolMessageType( + "GetCurrentDeploymentRequest", + (_message.Message,), + { + "DESCRIPTOR": _GETCURRENTDEPLOYMENTREQUEST, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityByIdRequest) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetCurrentDeploymentRequest) }, ) -_sym_db.RegisterMessage(UnpauseActivityByIdRequest) -_sym_db.RegisterMessage(UnpauseActivityByIdRequest.ResumeOperation) -_sym_db.RegisterMessage(UnpauseActivityByIdRequest.ResetOperation) +_sym_db.RegisterMessage(GetCurrentDeploymentRequest) -UnpauseActivityByIdResponse = _reflection.GeneratedProtocolMessageType( - "UnpauseActivityByIdResponse", +GetCurrentDeploymentResponse = _reflection.GeneratedProtocolMessageType( + "GetCurrentDeploymentResponse", (_message.Message,), { - "DESCRIPTOR": _UNPAUSEACTIVITYBYIDRESPONSE, + "DESCRIPTOR": _GETCURRENTDEPLOYMENTRESPONSE, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UnpauseActivityByIdResponse) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetCurrentDeploymentResponse) }, ) -_sym_db.RegisterMessage(UnpauseActivityByIdResponse) +_sym_db.RegisterMessage(GetCurrentDeploymentResponse) -ResetActivityByIdRequest = _reflection.GeneratedProtocolMessageType( - "ResetActivityByIdRequest", +GetDeploymentReachabilityRequest = _reflection.GeneratedProtocolMessageType( + "GetDeploymentReachabilityRequest", (_message.Message,), { - "DESCRIPTOR": _RESETACTIVITYBYIDREQUEST, + "DESCRIPTOR": _GETDEPLOYMENTREACHABILITYREQUEST, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetActivityByIdRequest) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetDeploymentReachabilityRequest) }, ) -_sym_db.RegisterMessage(ResetActivityByIdRequest) +_sym_db.RegisterMessage(GetDeploymentReachabilityRequest) -ResetActivityByIdResponse = _reflection.GeneratedProtocolMessageType( - "ResetActivityByIdResponse", +GetDeploymentReachabilityResponse = _reflection.GeneratedProtocolMessageType( + "GetDeploymentReachabilityResponse", (_message.Message,), { - "DESCRIPTOR": _RESETACTIVITYBYIDRESPONSE, + "DESCRIPTOR": _GETDEPLOYMENTREACHABILITYRESPONSE, "__module__": "temporal.api.workflowservice.v1.request_response_pb2", - # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetActivityByIdResponse) + # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetDeploymentReachabilityResponse) }, ) -_sym_db.RegisterMessage(ResetActivityByIdResponse) +_sym_db.RegisterMessage(GetDeploymentReachabilityResponse) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n"io.temporal.api.workflowservice.v1B\024RequestResponseProtoP\001Z5go.temporal.io/api/workflowservice/v1;workflowservice\252\002!Temporalio.Api.WorkflowService.V1\352\002$Temporalio::Api::WorkflowService::V1' _REGISTERNAMESPACEREQUEST_DATAENTRY._options = None _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_options = b"8\001" + _POLLWORKFLOWTASKQUEUEREQUEST.fields_by_name[ + "worker_version_capabilities" + ]._options = None + _POLLWORKFLOWTASKQUEUEREQUEST.fields_by_name[ + "worker_version_capabilities" + ]._serialized_options = b"\030\001" _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._options = None _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_options = b"8\001" _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._options = None _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_options = ( b"8\001" ) + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST.fields_by_name[ + "worker_version_stamp" + ]._options = None + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST.fields_by_name[ + "worker_version_stamp" + ]._serialized_options = b"\030\001" + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST.fields_by_name["deployment"]._options = None + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST.fields_by_name[ + "deployment" + ]._serialized_options = b"\030\001" + _RESPONDWORKFLOWTASKFAILEDREQUEST.fields_by_name["worker_version"]._options = None + _RESPONDWORKFLOWTASKFAILEDREQUEST.fields_by_name[ + "worker_version" + ]._serialized_options = b"\030\001" + _POLLACTIVITYTASKQUEUEREQUEST.fields_by_name[ + "worker_version_capabilities" + ]._options = None + _POLLACTIVITYTASKQUEUEREQUEST.fields_by_name[ + "worker_version_capabilities" + ]._serialized_options = b"\030\001" + _RESPONDACTIVITYTASKCOMPLETEDREQUEST.fields_by_name[ + "worker_version" + ]._options = None + _RESPONDACTIVITYTASKCOMPLETEDREQUEST.fields_by_name[ + "worker_version" + ]._serialized_options = b"\030\001" + _RESPONDACTIVITYTASKCOMPLETEDREQUEST.fields_by_name["deployment"]._options = None + _RESPONDACTIVITYTASKCOMPLETEDREQUEST.fields_by_name[ + "deployment" + ]._serialized_options = b"\030\001" + _RESPONDACTIVITYTASKFAILEDREQUEST.fields_by_name["worker_version"]._options = None + _RESPONDACTIVITYTASKFAILEDREQUEST.fields_by_name[ + "worker_version" + ]._serialized_options = b"\030\001" + _RESPONDACTIVITYTASKFAILEDREQUEST.fields_by_name["deployment"]._options = None + _RESPONDACTIVITYTASKFAILEDREQUEST.fields_by_name[ + "deployment" + ]._serialized_options = b"\030\001" + _RESPONDACTIVITYTASKCANCELEDREQUEST.fields_by_name["worker_version"]._options = None + _RESPONDACTIVITYTASKCANCELEDREQUEST.fields_by_name[ + "worker_version" + ]._serialized_options = b"\030\001" + _RESPONDACTIVITYTASKCANCELEDREQUEST.fields_by_name["deployment"]._options = None + _RESPONDACTIVITYTASKCANCELEDREQUEST.fields_by_name[ + "deployment" + ]._serialized_options = b"\030\001" _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._options = None _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_options = b"8\001" _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._options = None _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_options = b"8\001" _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._options = None _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_options = b"8\001" - _REGISTERNAMESPACEREQUEST._serialized_start = 1294 - _REGISTERNAMESPACEREQUEST._serialized_end = 1942 - _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_start = 1899 - _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_end = 1942 - _REGISTERNAMESPACERESPONSE._serialized_start = 1944 - _REGISTERNAMESPACERESPONSE._serialized_end = 1971 - _LISTNAMESPACESREQUEST._serialized_start = 1974 - _LISTNAMESPACESREQUEST._serialized_end = 2111 - _LISTNAMESPACESRESPONSE._serialized_start = 2114 - _LISTNAMESPACESRESPONSE._serialized_end = 2243 - _DESCRIBENAMESPACEREQUEST._serialized_start = 2245 - _DESCRIBENAMESPACEREQUEST._serialized_end = 2302 - _DESCRIBENAMESPACERESPONSE._serialized_start = 2305 - _DESCRIBENAMESPACERESPONSE._serialized_end = 2669 - _UPDATENAMESPACEREQUEST._serialized_start = 2672 - _UPDATENAMESPACEREQUEST._serialized_end = 3007 - _UPDATENAMESPACERESPONSE._serialized_start = 3010 - _UPDATENAMESPACERESPONSE._serialized_end = 3301 - _DEPRECATENAMESPACEREQUEST._serialized_start = 3303 - _DEPRECATENAMESPACEREQUEST._serialized_end = 3373 - _DEPRECATENAMESPACERESPONSE._serialized_start = 3375 - _DEPRECATENAMESPACERESPONSE._serialized_end = 3403 - _STARTWORKFLOWEXECUTIONREQUEST._serialized_start = 3406 - _STARTWORKFLOWEXECUTIONREQUEST._serialized_end = 4654 - _STARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 4657 - _STARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 4815 - _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_start = 4818 - _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_end = 5116 - _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_start = 5119 - _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_end = 5305 - _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_start = 5308 - _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_end = 5484 - _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_start = 5486 - _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_end = 5606 - _POLLWORKFLOWTASKQUEUEREQUEST._serialized_start = 5609 - _POLLWORKFLOWTASKQUEUEREQUEST._serialized_end = 5847 - _POLLWORKFLOWTASKQUEUERESPONSE._serialized_start = 5850 - _POLLWORKFLOWTASKQUEUERESPONSE._serialized_end = 6680 - _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_start = 6596 - _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_end = 6680 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_start = 6683 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_end = 7663 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_start = 7497 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_end = 7592 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_start = 7594 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_end = 7663 - _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_start = 7666 - _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_end = 7911 - _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_start = 7914 - _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_end = 8265 - _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_start = 8267 - _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_end = 8302 - _POLLACTIVITYTASKQUEUEREQUEST._serialized_start = 8305 - _POLLACTIVITYTASKQUEUEREQUEST._serialized_end = 8593 - _POLLACTIVITYTASKQUEUERESPONSE._serialized_start = 8596 - _POLLACTIVITYTASKQUEUERESPONSE._serialized_end = 9468 - _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_start = 9471 - _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_end = 9615 - _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_start = 9617 - _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_end = 9705 - _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_start = 9708 - _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_end = 9894 - _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_start = 9896 - _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_end = 9963 - _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_start = 9966 - _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_end = 10178 - _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_start = 10180 - _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_end = 10218 - _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_start = 10221 - _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_end = 10407 - _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_start = 10409 - _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_end = 10451 - _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_start = 10454 - _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_end = 10730 - _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_start = 10732 - _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_end = 10819 - _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_start = 10822 - _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_end = 11072 - _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_start = 11074 - _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_end = 11165 - _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_start = 11168 - _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_end = 11380 - _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_start = 11382 - _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_end = 11419 - _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_start = 11422 - _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_end = 11608 - _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_start = 11610 - _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_end = 11651 - _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_start = 11654 - _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_end = 11914 - _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_start = 11916 - _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_end = 11956 - _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_start = 11959 - _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_end = 12336 - _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_start = 12338 - _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_end = 12371 - _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_start = 12374 - _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_end = 13539 - _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 13541 - _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 13616 - _RESETWORKFLOWEXECUTIONREQUEST._serialized_start = 13619 - _RESETWORKFLOWEXECUTIONREQUEST._serialized_end = 13969 - _RESETWORKFLOWEXECUTIONRESPONSE._serialized_start = 13971 - _RESETWORKFLOWEXECUTIONRESPONSE._serialized_end = 14019 - _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_start = 14022 - _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_end = 14309 - _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 14311 - _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 14347 - _DELETEWORKFLOWEXECUTIONREQUEST._serialized_start = 14349 - _DELETEWORKFLOWEXECUTIONREQUEST._serialized_end = 14471 - _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_start = 14473 - _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_end = 14506 - _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_start = 14509 - _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_end = 14838 - _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_start = 14841 - _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_end = 14971 - _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 14974 - _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 15368 - _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 15371 - _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15503 - _LISTWORKFLOWEXECUTIONSREQUEST._serialized_start = 15505 - _LISTWORKFLOWEXECUTIONSREQUEST._serialized_end = 15614 - _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 15616 - _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15742 - _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 15744 - _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 15861 - _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 15864 - _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 15998 - _SCANWORKFLOWEXECUTIONSREQUEST._serialized_start = 16000 - _SCANWORKFLOWEXECUTIONSREQUEST._serialized_end = 16109 - _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_start = 16111 - _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_end = 16237 - _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_start = 16239 - _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_end = 16305 - _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 16308 - _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 16545 - _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 16457 - _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 16545 - _GETSEARCHATTRIBUTESREQUEST._serialized_start = 16547 - _GETSEARCHATTRIBUTESREQUEST._serialized_end = 16575 - _GETSEARCHATTRIBUTESRESPONSE._serialized_start = 16578 - _GETSEARCHATTRIBUTESRESPONSE._serialized_end = 16779 - _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_start = 16695 - _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_end = 16779 - _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_start = 16782 - _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_end = 17004 - _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_start = 17006 - _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_end = 17041 - _RESETSTICKYTASKQUEUEREQUEST._serialized_start = 17043 - _RESETSTICKYTASKQUEUEREQUEST._serialized_end = 17153 - _RESETSTICKYTASKQUEUERESPONSE._serialized_start = 17155 - _RESETSTICKYTASKQUEUERESPONSE._serialized_end = 17185 - _SHUTDOWNWORKERREQUEST._serialized_start = 17187 - _SHUTDOWNWORKERREQUEST._serialized_end = 17290 - _SHUTDOWNWORKERRESPONSE._serialized_start = 17292 - _SHUTDOWNWORKERRESPONSE._serialized_end = 17316 - _QUERYWORKFLOWREQUEST._serialized_start = 17319 - _QUERYWORKFLOWREQUEST._serialized_end = 17552 - _QUERYWORKFLOWRESPONSE._serialized_start = 17555 - _QUERYWORKFLOWRESPONSE._serialized_end = 17696 - _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_start = 17698 - _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_end = 17813 - _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_start = 17816 - _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18392 - _DESCRIBETASKQUEUEREQUEST._serialized_start = 18395 - _DESCRIBETASKQUEUEREQUEST._serialized_end = 18876 - _DESCRIBETASKQUEUERESPONSE._serialized_start = 18879 - _DESCRIBETASKQUEUERESPONSE._serialized_end = 19236 - _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_start = 19136 - _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_end = 19236 - _GETCLUSTERINFOREQUEST._serialized_start = 19238 - _GETCLUSTERINFOREQUEST._serialized_end = 19261 - _GETCLUSTERINFORESPONSE._serialized_start = 19264 - _GETCLUSTERINFORESPONSE._serialized_end = 19659 - _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_start = 19604 - _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_end = 19659 - _GETSYSTEMINFOREQUEST._serialized_start = 19661 - _GETSYSTEMINFOREQUEST._serialized_end = 19683 - _GETSYSTEMINFORESPONSE._serialized_start = 19686 - _GETSYSTEMINFORESPONSE._serialized_end = 20186 - _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_start = 19827 - _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_end = 20186 - _LISTTASKQUEUEPARTITIONSREQUEST._serialized_start = 20188 - _LISTTASKQUEUEPARTITIONSREQUEST._serialized_end = 20297 - _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_start = 20300 - _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_end = 20523 - _CREATESCHEDULEREQUEST._serialized_start = 20526 - _CREATESCHEDULEREQUEST._serialized_end = 20858 - _CREATESCHEDULERESPONSE._serialized_start = 20860 - _CREATESCHEDULERESPONSE._serialized_end = 20908 - _DESCRIBESCHEDULEREQUEST._serialized_start = 20910 - _DESCRIBESCHEDULEREQUEST._serialized_end = 20975 - _DESCRIBESCHEDULERESPONSE._serialized_start = 20978 - _DESCRIBESCHEDULERESPONSE._serialized_end = 21249 - _UPDATESCHEDULEREQUEST._serialized_start = 21252 - _UPDATESCHEDULEREQUEST._serialized_end = 21500 - _UPDATESCHEDULERESPONSE._serialized_start = 21502 - _UPDATESCHEDULERESPONSE._serialized_end = 21526 - _PATCHSCHEDULEREQUEST._serialized_start = 21529 - _PATCHSCHEDULEREQUEST._serialized_end = 21685 - _PATCHSCHEDULERESPONSE._serialized_start = 21687 - _PATCHSCHEDULERESPONSE._serialized_end = 21710 - _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_start = 21713 - _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_end = 21881 - _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_start = 21883 - _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_end = 21966 - _DELETESCHEDULEREQUEST._serialized_start = 21968 - _DELETESCHEDULEREQUEST._serialized_end = 22049 - _DELETESCHEDULERESPONSE._serialized_start = 22051 - _DELETESCHEDULERESPONSE._serialized_end = 22075 - _LISTSCHEDULESREQUEST._serialized_start = 22077 - _LISTSCHEDULESREQUEST._serialized_end = 22185 - _LISTSCHEDULESRESPONSE._serialized_start = 22187 - _LISTSCHEDULESRESPONSE._serialized_end = 22299 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 22302 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 22948 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = 22749 + _POLLNEXUSTASKQUEUEREQUEST.fields_by_name[ + "worker_version_capabilities" + ]._options = None + _POLLNEXUSTASKQUEUEREQUEST.fields_by_name[ + "worker_version_capabilities" + ]._serialized_options = b"\030\001" + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._options = None + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_options = b"8\001" + _REGISTERNAMESPACEREQUEST._serialized_start = 1376 + _REGISTERNAMESPACEREQUEST._serialized_end = 2024 + _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_start = 1981 + _REGISTERNAMESPACEREQUEST_DATAENTRY._serialized_end = 2024 + _REGISTERNAMESPACERESPONSE._serialized_start = 2026 + _REGISTERNAMESPACERESPONSE._serialized_end = 2053 + _LISTNAMESPACESREQUEST._serialized_start = 2056 + _LISTNAMESPACESREQUEST._serialized_end = 2193 + _LISTNAMESPACESRESPONSE._serialized_start = 2196 + _LISTNAMESPACESRESPONSE._serialized_end = 2325 + _DESCRIBENAMESPACEREQUEST._serialized_start = 2327 + _DESCRIBENAMESPACEREQUEST._serialized_end = 2384 + _DESCRIBENAMESPACERESPONSE._serialized_start = 2387 + _DESCRIBENAMESPACERESPONSE._serialized_end = 2751 + _UPDATENAMESPACEREQUEST._serialized_start = 2754 + _UPDATENAMESPACEREQUEST._serialized_end = 3089 + _UPDATENAMESPACERESPONSE._serialized_start = 3092 + _UPDATENAMESPACERESPONSE._serialized_end = 3383 + _DEPRECATENAMESPACEREQUEST._serialized_start = 3385 + _DEPRECATENAMESPACEREQUEST._serialized_end = 3455 + _DEPRECATENAMESPACERESPONSE._serialized_start = 3457 + _DEPRECATENAMESPACERESPONSE._serialized_end = 3485 + _STARTWORKFLOWEXECUTIONREQUEST._serialized_start = 3488 + _STARTWORKFLOWEXECUTIONREQUEST._serialized_end = 4937 + _STARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 4940 + _STARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 5098 + _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_start = 5101 + _GETWORKFLOWEXECUTIONHISTORYREQUEST._serialized_end = 5399 + _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_start = 5402 + _GETWORKFLOWEXECUTIONHISTORYRESPONSE._serialized_end = 5588 + _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_start = 5591 + _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST._serialized_end = 5767 + _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_start = 5769 + _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_end = 5889 + _POLLWORKFLOWTASKQUEUEREQUEST._serialized_start = 5892 + _POLLWORKFLOWTASKQUEUEREQUEST._serialized_end = 6215 + _POLLWORKFLOWTASKQUEUERESPONSE._serialized_start = 6218 + _POLLWORKFLOWTASKQUEUERESPONSE._serialized_end = 7131 + _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_start = 7047 + _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_end = 7131 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_start = 7134 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_end = 8335 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_start = 8169 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_end = 8264 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_start = 8266 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_end = 8335 + _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_start = 8338 + _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_end = 8583 + _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_start = 8586 + _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_end = 9082 + _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_start = 9084 + _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_end = 9119 + _POLLACTIVITYTASKQUEUEREQUEST._serialized_start = 9122 + _POLLACTIVITYTASKQUEUEREQUEST._serialized_end = 9495 + _POLLACTIVITYTASKQUEUERESPONSE._serialized_start = 9498 + _POLLACTIVITYTASKQUEUERESPONSE._serialized_end = 10505 + _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_start = 10508 + _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_end = 10652 + _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_start = 10654 + _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_end = 10742 + _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_start = 10745 + _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_end = 10931 + _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_start = 10933 + _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_end = 11025 + _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_start = 11028 + _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_end = 11389 + _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_start = 11391 + _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_end = 11429 + _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_start = 11432 + _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_end = 11618 + _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_start = 11620 + _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_end = 11662 + _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_start = 11665 + _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_end = 12090 + _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_start = 12092 + _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_end = 12179 + _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_start = 12182 + _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_end = 12432 + _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_start = 12434 + _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_end = 12525 + _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_start = 12528 + _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_end = 12889 + _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_start = 12891 + _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_end = 12928 + _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_start = 12931 + _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_end = 13117 + _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_start = 13119 + _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_end = 13160 + _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_start = 13163 + _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_end = 13423 + _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_start = 13425 + _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_end = 13465 + _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_start = 13468 + _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_end = 13814 + _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_start = 13816 + _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_end = 13849 + _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_start = 13852 + _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_end = 15113 + _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 15115 + _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 15190 + _RESETWORKFLOWEXECUTIONREQUEST._serialized_start = 15193 + _RESETWORKFLOWEXECUTIONREQUEST._serialized_end = 15543 + _RESETWORKFLOWEXECUTIONRESPONSE._serialized_start = 15545 + _RESETWORKFLOWEXECUTIONRESPONSE._serialized_end = 15593 + _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_start = 15596 + _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_end = 15883 + _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 15885 + _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 15921 + _DELETEWORKFLOWEXECUTIONREQUEST._serialized_start = 15923 + _DELETEWORKFLOWEXECUTIONREQUEST._serialized_end = 16045 + _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_start = 16047 + _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_end = 16080 + _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_start = 16083 + _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_end = 16412 + _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_start = 16415 + _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_end = 16545 + _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 16548 + _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 16942 + _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 16945 + _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 17077 + _LISTWORKFLOWEXECUTIONSREQUEST._serialized_start = 17079 + _LISTWORKFLOWEXECUTIONSREQUEST._serialized_end = 17188 + _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 17190 + _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 17316 + _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 17318 + _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 17435 + _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 17438 + _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 17572 + _SCANWORKFLOWEXECUTIONSREQUEST._serialized_start = 17574 + _SCANWORKFLOWEXECUTIONSREQUEST._serialized_end = 17683 + _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_start = 17685 + _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_end = 17811 + _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_start = 17813 + _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_end = 17879 + _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 17882 + _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 18119 + _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 18031 + _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 18119 + _GETSEARCHATTRIBUTESREQUEST._serialized_start = 18121 + _GETSEARCHATTRIBUTESREQUEST._serialized_end = 18149 + _GETSEARCHATTRIBUTESRESPONSE._serialized_start = 18152 + _GETSEARCHATTRIBUTESRESPONSE._serialized_end = 18353 + _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_start = 18269 + _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_end = 18353 + _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_start = 18356 + _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_end = 18629 + _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_start = 18631 + _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_end = 18666 + _RESETSTICKYTASKQUEUEREQUEST._serialized_start = 18668 + _RESETSTICKYTASKQUEUEREQUEST._serialized_end = 18778 + _RESETSTICKYTASKQUEUERESPONSE._serialized_start = 18780 + _RESETSTICKYTASKQUEUERESPONSE._serialized_end = 18810 + _SHUTDOWNWORKERREQUEST._serialized_start = 18812 + _SHUTDOWNWORKERREQUEST._serialized_end = 18915 + _SHUTDOWNWORKERRESPONSE._serialized_start = 18917 + _SHUTDOWNWORKERRESPONSE._serialized_end = 18941 + _QUERYWORKFLOWREQUEST._serialized_start = 18944 + _QUERYWORKFLOWREQUEST._serialized_end = 19177 + _QUERYWORKFLOWRESPONSE._serialized_start = 19180 + _QUERYWORKFLOWRESPONSE._serialized_end = 19321 + _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_start = 19323 + _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_end = 19438 + _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_start = 19441 + _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_end = 20106 + _DESCRIBETASKQUEUEREQUEST._serialized_start = 20109 + _DESCRIBETASKQUEUEREQUEST._serialized_end = 20590 + _DESCRIBETASKQUEUERESPONSE._serialized_start = 20593 + _DESCRIBETASKQUEUERESPONSE._serialized_end = 21027 + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_start = 20927 + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_end = 21027 + _GETCLUSTERINFOREQUEST._serialized_start = 21029 + _GETCLUSTERINFOREQUEST._serialized_end = 21052 + _GETCLUSTERINFORESPONSE._serialized_start = 21055 + _GETCLUSTERINFORESPONSE._serialized_end = 21450 + _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_start = 21395 + _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_end = 21450 + _GETSYSTEMINFOREQUEST._serialized_start = 21452 + _GETSYSTEMINFOREQUEST._serialized_end = 21474 + _GETSYSTEMINFORESPONSE._serialized_start = 21477 + _GETSYSTEMINFORESPONSE._serialized_end = 21977 + _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_start = 21618 + _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_end = 21977 + _LISTTASKQUEUEPARTITIONSREQUEST._serialized_start = 21979 + _LISTTASKQUEUEPARTITIONSREQUEST._serialized_end = 22088 + _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_start = 22091 + _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_end = 22314 + _CREATESCHEDULEREQUEST._serialized_start = 22317 + _CREATESCHEDULEREQUEST._serialized_end = 22649 + _CREATESCHEDULERESPONSE._serialized_start = 22651 + _CREATESCHEDULERESPONSE._serialized_end = 22699 + _DESCRIBESCHEDULEREQUEST._serialized_start = 22701 + _DESCRIBESCHEDULEREQUEST._serialized_end = 22766 + _DESCRIBESCHEDULERESPONSE._serialized_start = 22769 + _DESCRIBESCHEDULERESPONSE._serialized_end = 23040 + _UPDATESCHEDULEREQUEST._serialized_start = 23043 + _UPDATESCHEDULEREQUEST._serialized_end = 23291 + _UPDATESCHEDULERESPONSE._serialized_start = 23293 + _UPDATESCHEDULERESPONSE._serialized_end = 23317 + _PATCHSCHEDULEREQUEST._serialized_start = 23320 + _PATCHSCHEDULEREQUEST._serialized_end = 23476 + _PATCHSCHEDULERESPONSE._serialized_start = 23478 + _PATCHSCHEDULERESPONSE._serialized_end = 23501 + _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_start = 23504 + _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_end = 23672 + _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_start = 23674 + _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_end = 23757 + _DELETESCHEDULEREQUEST._serialized_start = 23759 + _DELETESCHEDULEREQUEST._serialized_end = 23840 + _DELETESCHEDULERESPONSE._serialized_start = 23842 + _DELETESCHEDULERESPONSE._serialized_end = 23866 + _LISTSCHEDULESREQUEST._serialized_start = 23868 + _LISTSCHEDULESREQUEST._serialized_end = 23976 + _LISTSCHEDULESRESPONSE._serialized_start = 23978 + _LISTSCHEDULESRESPONSE._serialized_end = 24090 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 24093 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 24739 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = 24540 _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_end = ( - 22860 + 24651 ) - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_start = 22862 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_end = 22935 - _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 22950 - _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 23014 - _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 23016 - _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 23111 - _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 23113 - _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 23229 - _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_start = 23232 - _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_end = 24949 - _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = 24284 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_start = 24653 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_end = 24726 + _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 24741 + _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 24805 + _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 24807 + _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 24902 + _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 24904 + _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 25020 + _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_start = 25023 + _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_end = 26740 + _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = 26075 _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_end = ( - 24397 + 26188 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = 24400 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = 26191 _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_end = ( - 24529 + 26320 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = 24531 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = 26322 _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_end = ( - 24595 + 26386 + ) + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 26388 + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 26494 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 26496 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 26606 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 26608 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 26670 + _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_start = 26672 + _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_end = 26727 + _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_start = 26743 + _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_end = 26995 + _GETWORKERVERSIONINGRULESREQUEST._serialized_start = 26997 + _GETWORKERVERSIONINGRULESREQUEST._serialized_end = 27069 + _GETWORKERVERSIONINGRULESRESPONSE._serialized_start = 27072 + _GETWORKERVERSIONINGRULESRESPONSE._serialized_end = 27321 + _GETWORKERTASKREACHABILITYREQUEST._serialized_start = 27324 + _GETWORKERTASKREACHABILITYREQUEST._serialized_end = 27480 + _GETWORKERTASKREACHABILITYRESPONSE._serialized_start = 27482 + _GETWORKERTASKREACHABILITYRESPONSE._serialized_end = 27596 + _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_start = 27599 + _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_end = 27860 + _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 27863 + _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 28078 + _STARTBATCHOPERATIONREQUEST._serialized_start = 28081 + _STARTBATCHOPERATIONREQUEST._serialized_end = 28896 + _STARTBATCHOPERATIONRESPONSE._serialized_start = 28898 + _STARTBATCHOPERATIONRESPONSE._serialized_end = 28927 + _STOPBATCHOPERATIONREQUEST._serialized_start = 28929 + _STOPBATCHOPERATIONREQUEST._serialized_end = 29025 + _STOPBATCHOPERATIONRESPONSE._serialized_start = 29027 + _STOPBATCHOPERATIONRESPONSE._serialized_end = 29055 + _DESCRIBEBATCHOPERATIONREQUEST._serialized_start = 29057 + _DESCRIBEBATCHOPERATIONREQUEST._serialized_end = 29123 + _DESCRIBEBATCHOPERATIONRESPONSE._serialized_start = 29126 + _DESCRIBEBATCHOPERATIONRESPONSE._serialized_end = 29528 + _LISTBATCHOPERATIONSREQUEST._serialized_start = 29530 + _LISTBATCHOPERATIONSREQUEST._serialized_end = 29621 + _LISTBATCHOPERATIONSRESPONSE._serialized_start = 29623 + _LISTBATCHOPERATIONSRESPONSE._serialized_end = 29744 + _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_start = 29747 + _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_end = 29932 + _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_start = 29935 + _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_end = 30154 + _POLLNEXUSTASKQUEUEREQUEST._serialized_start = 30157 + _POLLNEXUSTASKQUEUEREQUEST._serialized_end = 30452 + _POLLNEXUSTASKQUEUERESPONSE._serialized_start = 30455 + _POLLNEXUSTASKQUEUERESPONSE._serialized_end = 30635 + _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_start = 30638 + _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_end = 30780 + _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_start = 30782 + _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_end = 30817 + _RESPONDNEXUSTASKFAILEDREQUEST._serialized_start = 30820 + _RESPONDNEXUSTASKFAILEDREQUEST._serialized_end = 30960 + _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_start = 30962 + _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_end = 30994 + _EXECUTEMULTIOPERATIONREQUEST._serialized_start = 30997 + _EXECUTEMULTIOPERATIONREQUEST._serialized_end = 31348 + _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_start = 31142 + _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_end = 31348 + _EXECUTEMULTIOPERATIONRESPONSE._serialized_start = 31351 + _EXECUTEMULTIOPERATIONRESPONSE._serialized_end = 31683 + _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_start = 31477 + _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_end = 31683 + _UPDATEACTIVITYOPTIONSREQUEST._serialized_start = 31686 + _UPDATEACTIVITYOPTIONSREQUEST._serialized_end = 31975 + _UPDATEACTIVITYOPTIONSRESPONSE._serialized_start = 31977 + _UPDATEACTIVITYOPTIONSRESPONSE._serialized_end = 32077 + _PAUSEACTIVITYREQUEST._serialized_start = 32080 + _PAUSEACTIVITYREQUEST._serialized_end = 32243 + _PAUSEACTIVITYRESPONSE._serialized_start = 32245 + _PAUSEACTIVITYRESPONSE._serialized_end = 32268 + _UNPAUSEACTIVITYREQUEST._serialized_start = 32271 + _UNPAUSEACTIVITYREQUEST._serialized_end = 32551 + _UNPAUSEACTIVITYRESPONSE._serialized_start = 32553 + _UNPAUSEACTIVITYRESPONSE._serialized_end = 32578 + _RESETACTIVITYREQUEST._serialized_start = 32581 + _RESETACTIVITYREQUEST._serialized_end = 32833 + _RESETACTIVITYRESPONSE._serialized_start = 32835 + _RESETACTIVITYRESPONSE._serialized_end = 32858 + _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_start = 32861 + _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_end = 33127 + _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_start = 33130 + _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_end = 33258 + _DESCRIBEDEPLOYMENTREQUEST._serialized_start = 33260 + _DESCRIBEDEPLOYMENTREQUEST._serialized_end = 33366 + _DESCRIBEDEPLOYMENTRESPONSE._serialized_start = 33368 + _DESCRIBEDEPLOYMENTRESPONSE._serialized_end = 33465 + _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 33467 + _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 33543 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 33546 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 33684 + _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_start = 33686 + _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_end = 33763 + _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_start = 33766 + _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_end = 33906 + _LISTDEPLOYMENTSREQUEST._serialized_start = 33908 + _LISTDEPLOYMENTSREQUEST._serialized_end = 34016 + _LISTDEPLOYMENTSRESPONSE._serialized_start = 34018 + _LISTDEPLOYMENTSRESPONSE._serialized_end = 34137 + _SETCURRENTDEPLOYMENTREQUEST._serialized_start = 34140 + _SETCURRENTDEPLOYMENTREQUEST._serialized_end = 34345 + _SETCURRENTDEPLOYMENTRESPONSE._serialized_start = 34348 + _SETCURRENTDEPLOYMENTRESPONSE._serialized_end = 34533 + _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_start = 34536 + _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_end = 34717 + _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_start = 34719 + _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_end = 34812 + _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_start = 34815 + _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_end = 35016 + _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_start = 35018 + _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_end = 35140 + _LISTWORKERDEPLOYMENTSREQUEST._serialized_start = 35142 + _LISTWORKERDEPLOYMENTSREQUEST._serialized_end = 35235 + _LISTWORKERDEPLOYMENTSRESPONSE._serialized_start = 35238 + _LISTWORKERDEPLOYMENTSRESPONSE._serialized_end = 35568 + _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_start = 35413 + _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_end = 35568 + _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 35570 + _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 35685 + _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 35687 + _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 35726 + _DELETEWORKERDEPLOYMENTREQUEST._serialized_start = 35728 + _DELETEWORKERDEPLOYMENTREQUEST._serialized_end = 35821 + _DELETEWORKERDEPLOYMENTRESPONSE._serialized_start = 35823 + _DELETEWORKERDEPLOYMENTRESPONSE._serialized_end = 35855 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_start = 35858 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_end = 36173 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_start = 36088 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_end = ( + 36173 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 24597 - _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 24703 - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 24705 - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 24815 - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 24817 - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 24879 - _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_start = 24881 - _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_end = 24936 - _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_start = 24952 - _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_end = 25204 - _GETWORKERVERSIONINGRULESREQUEST._serialized_start = 25206 - _GETWORKERVERSIONINGRULESREQUEST._serialized_end = 25278 - _GETWORKERVERSIONINGRULESRESPONSE._serialized_start = 25281 - _GETWORKERVERSIONINGRULESRESPONSE._serialized_end = 25530 - _GETWORKERTASKREACHABILITYREQUEST._serialized_start = 25533 - _GETWORKERTASKREACHABILITYREQUEST._serialized_end = 25689 - _GETWORKERTASKREACHABILITYRESPONSE._serialized_start = 25691 - _GETWORKERTASKREACHABILITYRESPONSE._serialized_end = 25805 - _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_start = 25808 - _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_end = 26069 - _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 26072 - _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 26287 - _STARTBATCHOPERATIONREQUEST._serialized_start = 26290 - _STARTBATCHOPERATIONREQUEST._serialized_end = 26895 - _STARTBATCHOPERATIONRESPONSE._serialized_start = 26897 - _STARTBATCHOPERATIONRESPONSE._serialized_end = 26926 - _STOPBATCHOPERATIONREQUEST._serialized_start = 26928 - _STOPBATCHOPERATIONREQUEST._serialized_end = 27024 - _STOPBATCHOPERATIONRESPONSE._serialized_start = 27026 - _STOPBATCHOPERATIONRESPONSE._serialized_end = 27054 - _DESCRIBEBATCHOPERATIONREQUEST._serialized_start = 27056 - _DESCRIBEBATCHOPERATIONREQUEST._serialized_end = 27122 - _DESCRIBEBATCHOPERATIONRESPONSE._serialized_start = 27125 - _DESCRIBEBATCHOPERATIONRESPONSE._serialized_end = 27527 - _LISTBATCHOPERATIONSREQUEST._serialized_start = 27529 - _LISTBATCHOPERATIONSREQUEST._serialized_end = 27620 - _LISTBATCHOPERATIONSRESPONSE._serialized_start = 27622 - _LISTBATCHOPERATIONSRESPONSE._serialized_end = 27743 - _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_start = 27746 - _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_end = 27931 - _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_start = 27934 - _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_end = 28153 - _POLLNEXUSTASKQUEUEREQUEST._serialized_start = 28156 - _POLLNEXUSTASKQUEUEREQUEST._serialized_end = 28366 - _POLLNEXUSTASKQUEUERESPONSE._serialized_start = 28368 - _POLLNEXUSTASKQUEUERESPONSE._serialized_end = 28465 - _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_start = 28468 - _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_end = 28610 - _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_start = 28612 - _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_end = 28647 - _RESPONDNEXUSTASKFAILEDREQUEST._serialized_start = 28650 - _RESPONDNEXUSTASKFAILEDREQUEST._serialized_end = 28790 - _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_start = 28792 - _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_end = 28824 - _EXECUTEMULTIOPERATIONREQUEST._serialized_start = 28827 - _EXECUTEMULTIOPERATIONREQUEST._serialized_end = 29178 - _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_start = 28972 - _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_end = 29178 - _EXECUTEMULTIOPERATIONRESPONSE._serialized_start = 29181 - _EXECUTEMULTIOPERATIONRESPONSE._serialized_end = 29513 - _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_start = 29307 - _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_end = 29513 - _UPDATEACTIVITYOPTIONSBYIDREQUEST._serialized_start = 29516 - _UPDATEACTIVITYOPTIONSBYIDREQUEST._serialized_end = 29783 - _UPDATEACTIVITYOPTIONSBYIDRESPONSE._serialized_start = 29785 - _UPDATEACTIVITYOPTIONSBYIDRESPONSE._serialized_end = 29889 - _PAUSEACTIVITYBYIDREQUEST._serialized_start = 29892 - _PAUSEACTIVITYBYIDREQUEST._serialized_end = 30033 - _PAUSEACTIVITYBYIDRESPONSE._serialized_start = 30035 - _PAUSEACTIVITYBYIDRESPONSE._serialized_end = 30062 - _UNPAUSEACTIVITYBYIDREQUEST._serialized_start = 30065 - _UNPAUSEACTIVITYBYIDREQUEST._serialized_end = 30505 - _UNPAUSEACTIVITYBYIDREQUEST_RESUMEOPERATION._serialized_start = 30398 - _UNPAUSEACTIVITYBYIDREQUEST_RESUMEOPERATION._serialized_end = 30432 - _UNPAUSEACTIVITYBYIDREQUEST_RESETOPERATION._serialized_start = 30434 - _UNPAUSEACTIVITYBYIDREQUEST_RESETOPERATION._serialized_end = 30492 - _UNPAUSEACTIVITYBYIDRESPONSE._serialized_start = 30507 - _UNPAUSEACTIVITYBYIDRESPONSE._serialized_end = 30536 - _RESETACTIVITYBYIDREQUEST._serialized_start = 30539 - _RESETACTIVITYBYIDREQUEST._serialized_end = 30722 - _RESETACTIVITYBYIDRESPONSE._serialized_start = 30724 - _RESETACTIVITYBYIDRESPONSE._serialized_end = 30751 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_start = 36175 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_end = 36285 + _GETCURRENTDEPLOYMENTREQUEST._serialized_start = 36287 + _GETCURRENTDEPLOYMENTREQUEST._serialized_end = 36356 + _GETCURRENTDEPLOYMENTRESPONSE._serialized_start = 36358 + _GETCURRENTDEPLOYMENTRESPONSE._serialized_end = 36465 + _GETDEPLOYMENTREACHABILITYREQUEST._serialized_start = 36467 + _GETDEPLOYMENTREACHABILITYREQUEST._serialized_end = 36580 + _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_start = 36583 + _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_end = 36810 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.pyi b/temporalio/api/workflowservice/v1/request_response_pb2.pyi index d5ecb1d3e..3a3fa6f6e 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.pyi +++ b/temporalio/api/workflowservice/v1/request_response_pb2.pyi @@ -39,8 +39,10 @@ import temporalio.api.activity.v1.message_pb2 import temporalio.api.batch.v1.message_pb2 import temporalio.api.command.v1.message_pb2 import temporalio.api.common.v1.message_pb2 +import temporalio.api.deployment.v1.message_pb2 import temporalio.api.enums.v1.batch_operation_pb2 import temporalio.api.enums.v1.common_pb2 +import temporalio.api.enums.v1.deployment_pb2 import temporalio.api.enums.v1.failed_cause_pb2 import temporalio.api.enums.v1.namespace_pb2 import temporalio.api.enums.v1.query_pb2 @@ -562,6 +564,9 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): COMPLETION_CALLBACKS_FIELD_NUMBER: builtins.int USER_METADATA_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int + VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int + ON_CONFLICT_OPTIONS_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int namespace: builtins.str workflow_id: builtins.str @property @@ -659,6 +664,25 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with the workflow.""" + @property + def versioning_override( + self, + ) -> temporalio.api.workflow.v1.message_pb2.VersioningOverride: + """If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + """ + @property + def on_conflict_options( + self, + ) -> temporalio.api.workflow.v1.message_pb2.OnConflictOptions: + """Defines actions to be done to the existing running workflow when the conflict policy + WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING is used. If not set (ie., nil value) or set to a + empty object (ie., all options with default value), it won't do anything to the existing + running workflow. If set, it will add a history event to the running workflow. + """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata""" def __init__( self, *, @@ -693,6 +717,11 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): | None = ..., links: collections.abc.Iterable[temporalio.api.common.v1.message_pb2.Link] | None = ..., + versioning_override: temporalio.api.workflow.v1.message_pb2.VersioningOverride + | None = ..., + on_conflict_options: temporalio.api.workflow.v1.message_pb2.OnConflictOptions + | None = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -707,6 +736,10 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"last_completion_result", "memo", b"memo", + "on_conflict_options", + b"on_conflict_options", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", @@ -715,6 +748,8 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"task_queue", "user_metadata", b"user_metadata", + "versioning_override", + b"versioning_override", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_run_timeout", @@ -750,6 +785,10 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"memo", "namespace", b"namespace", + "on_conflict_options", + b"on_conflict_options", + "priority", + b"priority", "request_eager_execution", b"request_eager_execution", "request_id", @@ -762,6 +801,8 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): b"task_queue", "user_metadata", b"user_metadata", + "versioning_override", + b"versioning_override", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_id", @@ -1020,6 +1061,7 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int BINARY_CHECKSUM_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int namespace: builtins.str @property def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... @@ -1036,6 +1078,14 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): ) -> temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities: """Information about this worker's build identifier and if it is choosing to use the versioning feature. See the `WorkerVersionCapabilities` docstring for more. + Deprecated. Replaced by deployment_options. + """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that user has set in the worker. + Experimental. Worker Deployments are experimental and might significantly change in the future. """ def __init__( self, @@ -1046,10 +1096,14 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): binary_checksum: builtins.str = ..., worker_version_capabilities: temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities | None = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ + "deployment_options", + b"deployment_options", "task_queue", b"task_queue", "worker_version_capabilities", @@ -1061,6 +1115,8 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): field_name: typing_extensions.Literal[ "binary_checksum", b"binary_checksum", + "deployment_options", + b"deployment_options", "identity", b"identity", "namespace", @@ -1114,6 +1170,7 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): STARTED_TIME_FIELD_NUMBER: builtins.int QUERIES_FIELD_NUMBER: builtins.int MESSAGES_FIELD_NUMBER: builtins.int + POLLER_SCALING_DECISION_FIELD_NUMBER: builtins.int task_token: builtins.bytes """A unique identifier for this task""" @property @@ -1135,15 +1192,15 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): attempt: builtins.int """Starting at 1, the number of attempts to complete this task by any worker.""" backlog_count_hint: builtins.int - """A hint that there are more tasks already present in this task queue + """A hint that there are more tasks already present in this task queue partition. Can be used to prioritize draining a sticky queue. Specifically, the returned number is the number of tasks remaining in the in-memory buffer for this partition, which is currently capped at - 1000. Because sticky queues only have one partition, this number is - more useful when draining them. Normal queues, typically having more than one - partition, will return a number representing only some portion of the - overall backlog. Subsequent RPCs may not hit the same partition as + 1000. Because sticky queues only have one partition, this number is + more useful when draining them. Normal queues, typically having more than one + partition, will return a number representing only some portion of the + overall backlog. Subsequent RPCs may not hit the same partition as this call. """ @property @@ -1192,6 +1249,11 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): temporalio.api.protocol.v1.message_pb2.Message ]: """Protocol messages piggybacking on a WFT as a transport""" + @property + def poller_scaling_decision( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision: + """Server-advised information the SDK may use to adjust its poller count.""" def __init__( self, *, @@ -1218,12 +1280,16 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): temporalio.api.protocol.v1.message_pb2.Message ] | None = ..., + poller_scaling_decision: temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ "history", b"history", + "poller_scaling_decision", + b"poller_scaling_decision", "query", b"query", "scheduled_time", @@ -1251,6 +1317,8 @@ class PollWorkflowTaskQueueResponse(google.protobuf.message.Message): b"messages", "next_page_token", b"next_page_token", + "poller_scaling_decision", + b"poller_scaling_decision", "previous_started_event_id", b"previous_started_event_id", "queries", @@ -1308,9 +1376,9 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): DISCARD_SPECULATIVE_WORKFLOW_TASK_WITH_EVENTS_FIELD_NUMBER: builtins.int discard_speculative_workflow_task_with_events: builtins.bool - """True if the SDK can handle speculative workflow task with command events. - If true, the server may chosse, at its discretion, to discard a speculative workflow task - even if that speculative task included command events the SDK had not previouly processed + """True if the SDK can handle speculative workflow task with command events. If true, the + server may choose, at its discretion, to discard a speculative workflow task even if that + speculative task included command events the SDK had not previously processed. (-- api-linter: core::0140::prepositions=disabled aip.dev/not-precedent: "with" used to describe the workflow task. --) @@ -1342,6 +1410,9 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): SDK_METADATA_FIELD_NUMBER: builtins.int METERING_METADATA_FIELD_NUMBER: builtins.int CAPABILITIES_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + VERSIONING_BEHAVIOR_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollWorkflowTaskQueueResponse`""" @property @@ -1389,6 +1460,7 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): """Version info of the worker who processed this task. This message's `build_id` field should always be set by SDKs. Workers opting into versioning will also set the `use_versioning` field to true. See message docstrings for more. + Deprecated. Use `deployment` and `versioning_behavior` instead. """ @property def messages( @@ -1412,6 +1484,23 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): @property def capabilities(self) -> global___RespondWorkflowTaskCompletedRequest.Capabilities: """All capabilities the SDK supports.""" + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """Deployment info of the worker that completed this task. Must be present if user has set + `WorkerDeploymentOptions` regardless of versioning being enabled or not. + Deprecated. Replaced with `deployment_options`. + """ + versioning_behavior: ( + temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType + ) + """Versioning behavior of this workflow execution as set on the worker that completed this task. + UNSPECIFIED means versioning is not enabled in the worker. + """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that user has set in the worker.""" def __init__( self, *, @@ -1443,12 +1532,20 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): | None = ..., capabilities: global___RespondWorkflowTaskCompletedRequest.Capabilities | None = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + versioning_behavior: temporalio.api.enums.v1.workflow_pb2.VersioningBehavior.ValueType = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ "capabilities", b"capabilities", + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", "metering_metadata", b"metering_metadata", "sdk_metadata", @@ -1468,6 +1565,10 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): b"capabilities", "commands", b"commands", + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", "force_create_new_workflow_task", b"force_create_new_workflow_task", "identity", @@ -1488,6 +1589,8 @@ class RespondWorkflowTaskCompletedRequest(google.protobuf.message.Message): b"sticky_attributes", "task_token", b"task_token", + "versioning_behavior", + b"versioning_behavior", "worker_version_stamp", b"worker_version_stamp", ], @@ -1552,6 +1655,8 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): NAMESPACE_FIELD_NUMBER: builtins.int MESSAGES_FIELD_NUMBER: builtins.int WORKER_VERSION_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollWorkflowTaskQueueResponse`""" cause: temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType @@ -1580,7 +1685,19 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): """Version info of the worker who processed this task. This message's `build_id` field should always be set by SDKs. Workers opting into versioning will also set the `use_versioning` field to true. See message docstrings for more. + Deprecated. Use `deployment` instead. + """ + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """Deployment info of the worker that completed this task. Must be present if user has set + `WorkerDeploymentOptions` regardless of versioning being enabled or not. + Deprecated. Replaced with `deployment_options`. """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that user has set in the worker.""" def __init__( self, *, @@ -1596,11 +1713,21 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): | None = ..., worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp | None = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ - "failure", b"failure", "worker_version", b"worker_version" + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", + "failure", + b"failure", + "worker_version", + b"worker_version", ], ) -> builtins.bool: ... def ClearField( @@ -1610,6 +1737,10 @@ class RespondWorkflowTaskFailedRequest(google.protobuf.message.Message): b"binary_checksum", "cause", b"cause", + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", "failure", b"failure", "identity", @@ -1644,6 +1775,7 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int TASK_QUEUE_METADATA_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int namespace: builtins.str @property def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ... @@ -1659,7 +1791,13 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): ) -> temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities: """Information about this worker's build identifier and if it is choosing to use the versioning feature. See the `WorkerVersionCapabilities` docstring for more. + Deprecated. Replaced by deployment_options. """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that user has set in the worker.""" def __init__( self, *, @@ -1670,10 +1808,14 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): | None = ..., worker_version_capabilities: temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities | None = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ + "deployment_options", + b"deployment_options", "task_queue", b"task_queue", "task_queue_metadata", @@ -1685,6 +1827,8 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ + "deployment_options", + b"deployment_options", "identity", b"identity", "namespace", @@ -1720,6 +1864,8 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int RETRY_POLICY_FIELD_NUMBER: builtins.int + POLLER_SCALING_DECISION_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int task_token: builtins.bytes """A unique identifier for this task""" workflow_namespace: builtins.str @@ -1786,6 +1932,14 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): (or not) during activity scheduling. The service can override the provided one if some values are not specified or exceed configured system limits. """ + @property + def poller_scaling_decision( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision: + """Server-advised information the SDK may use to adjust its poller count.""" + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata""" def __init__( self, *, @@ -1808,6 +1962,9 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ..., heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ..., retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., + poller_scaling_decision: temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision + | None = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -1824,6 +1981,10 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): b"heartbeat_timeout", "input", b"input", + "poller_scaling_decision", + b"poller_scaling_decision", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -1859,6 +2020,10 @@ class PollActivityTaskQueueResponse(google.protobuf.message.Message): b"heartbeat_timeout", "input", b"input", + "poller_scaling_decision", + b"poller_scaling_decision", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -2012,18 +2177,27 @@ class RecordActivityTaskHeartbeatByIdResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor CANCEL_REQUESTED_FIELD_NUMBER: builtins.int + ACTIVITY_PAUSED_FIELD_NUMBER: builtins.int cancel_requested: builtins.bool """Will be set to true if the activity has been asked to cancel itself. The SDK should then notify the activity of cancellation if it is still running. """ + activity_paused: builtins.bool + """Will be set to true if the activity is paused.""" def __init__( self, *, cancel_requested: builtins.bool = ..., + activity_paused: builtins.bool = ..., ) -> None: ... def ClearField( self, - field_name: typing_extensions.Literal["cancel_requested", b"cancel_requested"], + field_name: typing_extensions.Literal[ + "activity_paused", + b"activity_paused", + "cancel_requested", + b"cancel_requested", + ], ) -> None: ... global___RecordActivityTaskHeartbeatByIdResponse = ( @@ -2038,6 +2212,8 @@ class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int NAMESPACE_FIELD_NUMBER: builtins.int WORKER_VERSION_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollActivityTaskQueueResponse`""" @property @@ -2051,7 +2227,19 @@ class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): """Version info of the worker who processed this task. This message's `build_id` field should always be set by SDKs. Workers opting into versioning will also set the `use_versioning` field to true. See message docstrings for more. + Deprecated. Use `deployment` instead. + """ + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """Deployment info of the worker that completed this task. Must be present if user has set + `WorkerDeploymentOptions` regardless of versioning being enabled or not. + Deprecated. Replaced with `deployment_options`. """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that user has set in the worker.""" def __init__( self, *, @@ -2061,16 +2249,30 @@ class RespondActivityTaskCompletedRequest(google.protobuf.message.Message): namespace: builtins.str = ..., worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp | None = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ - "result", b"result", "worker_version", b"worker_version" + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", + "result", + b"result", + "worker_version", + b"worker_version", ], ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", "identity", b"identity", "namespace", @@ -2172,6 +2374,8 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): NAMESPACE_FIELD_NUMBER: builtins.int LAST_HEARTBEAT_DETAILS_FIELD_NUMBER: builtins.int WORKER_VERSION_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollActivityTaskQueueResponse`""" @property @@ -2188,7 +2392,19 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): """Version info of the worker who processed this task. This message's `build_id` field should always be set by SDKs. Workers opting into versioning will also set the `use_versioning` field to true. See message docstrings for more. + Deprecated. Use `deployment` instead. + """ + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """Deployment info of the worker that completed this task. Must be present if user has set + `WorkerDeploymentOptions` regardless of versioning being enabled or not. + Deprecated. Replaced with `deployment_options`. """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that user has set in the worker.""" def __init__( self, *, @@ -2200,10 +2416,17 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): | None = ..., worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp | None = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", "failure", b"failure", "last_heartbeat_details", @@ -2215,6 +2438,10 @@ class RespondActivityTaskFailedRequest(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", "failure", b"failure", "identity", @@ -2360,6 +2587,8 @@ class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int NAMESPACE_FIELD_NUMBER: builtins.int WORKER_VERSION_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int task_token: builtins.bytes """The task token as received in `PollActivityTaskQueueResponse`""" @property @@ -2373,7 +2602,19 @@ class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): """Version info of the worker who processed this task. This message's `build_id` field should always be set by SDKs. Workers opting into versioning will also set the `use_versioning` field to true. See message docstrings for more. + Deprecated. Use `deployment` instead. + """ + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: + """Deployment info of the worker that completed this task. Must be present if user has set + `WorkerDeploymentOptions` regardless of versioning being enabled or not. + Deprecated. Replaced with `deployment_options`. """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that user has set in the worker.""" def __init__( self, *, @@ -2383,16 +2624,30 @@ class RespondActivityTaskCanceledRequest(google.protobuf.message.Message): namespace: builtins.str = ..., worker_version: temporalio.api.common.v1.message_pb2.WorkerVersionStamp | None = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ - "details", b"details", "worker_version", b"worker_version" + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", + "details", + b"details", + "worker_version", + b"worker_version", ], ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ + "deployment", + b"deployment", + "deployment_options", + b"deployment_options", "details", b"details", "identity", @@ -2577,7 +2832,6 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): REQUEST_ID_FIELD_NUMBER: builtins.int CONTROL_FIELD_NUMBER: builtins.int HEADER_FIELD_NUMBER: builtins.int - SKIP_GENERATE_WORKFLOW_TASK_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int namespace: builtins.str @property @@ -2600,8 +2854,6 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): """Headers that are passed with the signal to the processing workflow. These can include things like auth or tracing tokens. """ - skip_generate_workflow_task: builtins.bool - """Indicates that a new workflow task should not be generated when this signal is received.""" @property def links( self, @@ -2621,7 +2873,6 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): request_id: builtins.str = ..., control: builtins.str = ..., header: temporalio.api.common.v1.message_pb2.Header | None = ..., - skip_generate_workflow_task: builtins.bool = ..., links: collections.abc.Iterable[temporalio.api.common.v1.message_pb2.Link] | None = ..., ) -> None: ... @@ -2655,8 +2906,6 @@ class SignalWorkflowExecutionRequest(google.protobuf.message.Message): b"request_id", "signal_name", b"signal_name", - "skip_generate_workflow_task", - b"skip_generate_workflow_task", "workflow_execution", b"workflow_execution", ], @@ -2697,9 +2946,10 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int HEADER_FIELD_NUMBER: builtins.int WORKFLOW_START_DELAY_FIELD_NUMBER: builtins.int - SKIP_GENERATE_WORKFLOW_TASK_FIELD_NUMBER: builtins.int USER_METADATA_FIELD_NUMBER: builtins.int LINKS_FIELD_NUMBER: builtins.int + VERSIONING_OVERRIDE_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int namespace: builtins.str workflow_id: builtins.str @property @@ -2764,13 +3014,10 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): def workflow_start_delay(self) -> google.protobuf.duration_pb2.Duration: """Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`. Note that the signal will be delivered with the first workflow task. If the workflow gets - another SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false - or not set, a workflow task will be dispatched immediately and the rest of the delay period - will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution - will not unblock the workflow. + another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately + and the rest of the delay period will be ignored, even if that request also had a delay. + Signal via SignalWorkflowExecution will not unblock the workflow. """ - skip_generate_workflow_task: builtins.bool - """Indicates that a new workflow task should not be generated when this signal is received.""" @property def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata: """Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionInfo @@ -2784,6 +3031,16 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): temporalio.api.common.v1.message_pb2.Link ]: """Links to be associated with the WorkflowExecutionStarted and WorkflowExecutionSignaled events.""" + @property + def versioning_override( + self, + ) -> temporalio.api.workflow.v1.message_pb2.VersioningOverride: + """If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion. + To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions. + """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority metadata""" def __init__( self, *, @@ -2809,11 +3066,13 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): | None = ..., header: temporalio.api.common.v1.message_pb2.Header | None = ..., workflow_start_delay: google.protobuf.duration_pb2.Duration | None = ..., - skip_generate_workflow_task: builtins.bool = ..., user_metadata: temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata | None = ..., links: collections.abc.Iterable[temporalio.api.common.v1.message_pb2.Link] | None = ..., + versioning_override: temporalio.api.workflow.v1.message_pb2.VersioningOverride + | None = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -2824,6 +3083,8 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): b"input", "memo", b"memo", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", @@ -2834,6 +3095,8 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): b"task_queue", "user_metadata", b"user_metadata", + "versioning_override", + b"versioning_override", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_run_timeout", @@ -2865,6 +3128,8 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): b"memo", "namespace", b"namespace", + "priority", + b"priority", "request_id", b"request_id", "retry_policy", @@ -2875,12 +3140,12 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): b"signal_input", "signal_name", b"signal_name", - "skip_generate_workflow_task", - b"skip_generate_workflow_task", "task_queue", b"task_queue", "user_metadata", b"user_metadata", + "versioning_override", + b"versioning_override", "workflow_execution_timeout", b"workflow_execution_timeout", "workflow_id", @@ -2944,7 +3209,11 @@ class ResetWorkflowExecutionRequest(google.protobuf.message.Message): @property def workflow_execution( self, - ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """The workflow to reset. If this contains a run ID then the workflow will be reset back to the + provided event ID in that run. Otherwise it will be reset to the provided event ID in the + current run. In all cases the current run will be terminated and a new run started. + """ reason: builtins.str workflow_task_finish_event_id: builtins.int """The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or @@ -3499,6 +3768,8 @@ class ListArchivedWorkflowExecutionsResponse(google.protobuf.message.Message): global___ListArchivedWorkflowExecutionsResponse = ListArchivedWorkflowExecutionsResponse class ScanWorkflowExecutionsRequest(google.protobuf.message.Message): + """Deprecated: Use with `ListWorkflowExecutions`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int @@ -3534,6 +3805,8 @@ class ScanWorkflowExecutionsRequest(google.protobuf.message.Message): global___ScanWorkflowExecutionsRequest = ScanWorkflowExecutionsRequest class ScanWorkflowExecutionsResponse(google.protobuf.message.Message): + """Deprecated: Use with `ListWorkflowExecutions`.""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor EXECUTIONS_FIELD_NUMBER: builtins.int @@ -3709,12 +3982,31 @@ class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): QUERY_RESULT_FIELD_NUMBER: builtins.int ERROR_MESSAGE_FIELD_NUMBER: builtins.int NAMESPACE_FIELD_NUMBER: builtins.int + FAILURE_FIELD_NUMBER: builtins.int task_token: builtins.bytes completed_type: temporalio.api.enums.v1.query_pb2.QueryResultType.ValueType @property - def query_result(self) -> temporalio.api.common.v1.message_pb2.Payloads: ... + def query_result(self) -> temporalio.api.common.v1.message_pb2.Payloads: + """The result of the query. + Mutually exclusive with `error_message` and `failure`. Set when the query succeeds. + """ error_message: builtins.str + """A plain error message that must be set if completed_type is QUERY_RESULT_TYPE_FAILED. + SDKs should also fill in the more complete `failure` field to provide the full context and + support encryption of failure information. + `error_message` will be duplicated if the `failure` field is present to support callers + that pre-date the addition of that field, regardless of whether or not a custom failure + converter is used. + Mutually exclusive with `query_result`. Set when the query fails. + """ namespace: builtins.str + @property + def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: + """The full reason for this query failure. This field is newer than `error_message` and can be + encoded by the SDK's failure converter to support E2E encryption of messages and stack + traces. + Mutually exclusive with `query_result`. Set when the query fails. + """ def __init__( self, *, @@ -3723,9 +4015,13 @@ class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): query_result: temporalio.api.common.v1.message_pb2.Payloads | None = ..., error_message: builtins.str = ..., namespace: builtins.str = ..., + failure: temporalio.api.failure.v1.message_pb2.Failure | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["query_result", b"query_result"] + self, + field_name: typing_extensions.Literal[ + "failure", b"failure", "query_result", b"query_result" + ], ) -> builtins.bool: ... def ClearField( self, @@ -3734,6 +4030,8 @@ class RespondQueryTaskCompletedRequest(google.protobuf.message.Message): b"completed_type", "error_message", b"error_message", + "failure", + b"failure", "namespace", b"namespace", "query_result", @@ -3947,6 +4245,7 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): PENDING_WORKFLOW_TASK_FIELD_NUMBER: builtins.int CALLBACKS_FIELD_NUMBER: builtins.int PENDING_NEXUS_OPERATIONS_FIELD_NUMBER: builtins.int + WORKFLOW_EXTENDED_INFO_FIELD_NUMBER: builtins.int @property def execution_config( self, @@ -3983,6 +4282,10 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ temporalio.api.workflow.v1.message_pb2.PendingNexusOperationInfo ]: ... + @property + def workflow_extended_info( + self, + ) -> temporalio.api.workflow.v1.message_pb2.WorkflowExecutionExtendedInfo: ... def __init__( self, *, @@ -4008,6 +4311,8 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): temporalio.api.workflow.v1.message_pb2.PendingNexusOperationInfo ] | None = ..., + workflow_extended_info: temporalio.api.workflow.v1.message_pb2.WorkflowExecutionExtendedInfo + | None = ..., ) -> None: ... def HasField( self, @@ -4018,6 +4323,8 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): b"pending_workflow_task", "workflow_execution_info", b"workflow_execution_info", + "workflow_extended_info", + b"workflow_extended_info", ], ) -> builtins.bool: ... def ClearField( @@ -4037,6 +4344,8 @@ class DescribeWorkflowExecutionResponse(google.protobuf.message.Message): b"pending_workflow_task", "workflow_execution_info", b"workflow_execution_info", + "workflow_extended_info", + b"workflow_extended_info", ], ) -> None: ... @@ -4178,6 +4487,7 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): POLLERS_FIELD_NUMBER: builtins.int TASK_QUEUE_STATUS_FIELD_NUMBER: builtins.int VERSIONS_INFO_FIELD_NUMBER: builtins.int + VERSIONING_INFO_FIELD_NUMBER: builtins.int @property def pollers( self, @@ -4201,6 +4511,20 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): """This map contains Task Queue information for each Build ID. Empty string as key value means unversioned. Only set in `ENHANCED` mode. """ + @property + def versioning_info( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersioningInfo: + """Specifies which Worker Deployment Version(s) Server routes this Task Queue's tasks to. + When not present, it means the tasks are routed to Unversioned workers (workers with + UNVERSIONED or unspecified WorkerVersioningMode.) + Task Queue Versioning info is updated indirectly by calling SetWorkerDeploymentCurrentVersion + and SetWorkerDeploymentRampingVersion on Worker Deployments. + Note: This information is not relevant to Pinned workflow executions and their activities as + they are always routed to their Pinned Deployment Version. However, new workflow executions + are typically not Pinned until they complete their first task (unless they are started with + a Pinned VersioningOverride or are Child Workflows of a Pinned parent). + """ def __init__( self, *, @@ -4214,11 +4538,16 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): builtins.str, temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersionInfo ] | None = ..., + versioning_info: temporalio.api.taskqueue.v1.message_pb2.TaskQueueVersioningInfo + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ - "task_queue_status", b"task_queue_status" + "task_queue_status", + b"task_queue_status", + "versioning_info", + b"versioning_info", ], ) -> builtins.bool: ... def ClearField( @@ -4228,6 +4557,8 @@ class DescribeTaskQueueResponse(google.protobuf.message.Message): b"pollers", "task_queue_status", b"task_queue_status", + "versioning_info", + b"versioning_info", "versions_info", b"versions_info", ], @@ -5055,6 +5386,8 @@ class ListSchedulesResponse(google.protobuf.message.Message): global___ListSchedulesResponse = ListSchedulesResponse class UpdateWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): + """[cleanup-wv-pre-release]""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor class AddNewCompatibleVersion(google.protobuf.message.Message): @@ -5235,6 +5568,8 @@ global___UpdateWorkerBuildIdCompatibilityRequest = ( ) class UpdateWorkerBuildIdCompatibilityResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release]""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( @@ -5246,6 +5581,8 @@ global___UpdateWorkerBuildIdCompatibilityResponse = ( ) class GetWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): + """[cleanup-wv-pre-release]""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int @@ -5280,6 +5617,8 @@ class GetWorkerBuildIdCompatibilityRequest(google.protobuf.message.Message): global___GetWorkerBuildIdCompatibilityRequest = GetWorkerBuildIdCompatibilityRequest class GetWorkerBuildIdCompatibilityResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release]""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor MAJOR_VERSION_SETS_FIELD_NUMBER: builtins.int @@ -5317,6 +5656,7 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --) (-- api-linter: core::0134::request-resource-required=disabled aip.dev/not-precedent: GetWorkerBuildIdCompatibilityRequest RPC doesn't follow Google API format. --) + [cleanup-wv-pre-release] """ DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5662,6 +6002,8 @@ class UpdateWorkerVersioningRulesRequest(google.protobuf.message.Message): global___UpdateWorkerVersioningRulesRequest = UpdateWorkerVersioningRulesRequest class UpdateWorkerVersioningRulesResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release]""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor ASSIGNMENT_RULES_FIELD_NUMBER: builtins.int @@ -5712,6 +6054,8 @@ class UpdateWorkerVersioningRulesResponse(google.protobuf.message.Message): global___UpdateWorkerVersioningRulesResponse = UpdateWorkerVersioningRulesResponse class GetWorkerVersioningRulesRequest(google.protobuf.message.Message): + """[cleanup-wv-pre-release]""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int @@ -5734,6 +6078,8 @@ class GetWorkerVersioningRulesRequest(google.protobuf.message.Message): global___GetWorkerVersioningRulesRequest = GetWorkerVersioningRulesRequest class GetWorkerVersioningRulesResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release]""" + DESCRIPTOR: google.protobuf.descriptor.Descriptor ASSIGNMENT_RULES_FIELD_NUMBER: builtins.int @@ -5784,7 +6130,9 @@ class GetWorkerVersioningRulesResponse(google.protobuf.message.Message): global___GetWorkerVersioningRulesResponse = GetWorkerVersioningRulesResponse class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): - """Deprecated. Use `DescribeTaskQueue`.""" + """[cleanup-wv-pre-release] + Deprecated. Use `DescribeTaskQueue`. + """ DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -5845,7 +6193,9 @@ class GetWorkerTaskReachabilityRequest(google.protobuf.message.Message): global___GetWorkerTaskReachabilityRequest = GetWorkerTaskReachabilityRequest class GetWorkerTaskReachabilityResponse(google.protobuf.message.Message): - """Deprecated. Use `DescribeTaskQueue`.""" + """[cleanup-wv-pre-release] + Deprecated. Use `DescribeTaskQueue`. + """ DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -6025,6 +6375,8 @@ class StartBatchOperationRequest(google.protobuf.message.Message): CANCELLATION_OPERATION_FIELD_NUMBER: builtins.int DELETION_OPERATION_FIELD_NUMBER: builtins.int RESET_OPERATION_FIELD_NUMBER: builtins.int + UPDATE_WORKFLOW_OPTIONS_OPERATION_FIELD_NUMBER: builtins.int + UNPAUSE_ACTIVITIES_OPERATION_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace that contains the batch operation""" visibility_query: builtins.str @@ -6072,6 +6424,16 @@ class StartBatchOperationRequest(google.protobuf.message.Message): def reset_operation( self, ) -> temporalio.api.batch.v1.message_pb2.BatchOperationReset: ... + @property + def update_workflow_options_operation( + self, + ) -> ( + temporalio.api.batch.v1.message_pb2.BatchOperationUpdateWorkflowExecutionOptions + ): ... + @property + def unpause_activities_operation( + self, + ) -> temporalio.api.batch.v1.message_pb2.BatchOperationUnpauseActivities: ... def __init__( self, *, @@ -6094,6 +6456,10 @@ class StartBatchOperationRequest(google.protobuf.message.Message): | None = ..., reset_operation: temporalio.api.batch.v1.message_pb2.BatchOperationReset | None = ..., + update_workflow_options_operation: temporalio.api.batch.v1.message_pb2.BatchOperationUpdateWorkflowExecutionOptions + | None = ..., + unpause_activities_operation: temporalio.api.batch.v1.message_pb2.BatchOperationUnpauseActivities + | None = ..., ) -> None: ... def HasField( self, @@ -6110,6 +6476,10 @@ class StartBatchOperationRequest(google.protobuf.message.Message): b"signal_operation", "termination_operation", b"termination_operation", + "unpause_activities_operation", + b"unpause_activities_operation", + "update_workflow_options_operation", + b"update_workflow_options_operation", ], ) -> builtins.bool: ... def ClearField( @@ -6137,6 +6507,10 @@ class StartBatchOperationRequest(google.protobuf.message.Message): b"signal_operation", "termination_operation", b"termination_operation", + "unpause_activities_operation", + b"unpause_activities_operation", + "update_workflow_options_operation", + b"update_workflow_options_operation", "visibility_query", b"visibility_query", ], @@ -6150,6 +6524,8 @@ class StartBatchOperationRequest(google.protobuf.message.Message): "cancellation_operation", "deletion_operation", "reset_operation", + "update_workflow_options_operation", + "unpause_activities_operation", ] | None ): ... @@ -6495,6 +6871,7 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): IDENTITY_FIELD_NUMBER: builtins.int TASK_QUEUE_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int + DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int namespace: builtins.str identity: builtins.str """The identity of the client who initiated this request.""" @@ -6506,7 +6883,13 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): ) -> temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities: """Information about this worker's build identifier and if it is choosing to use the versioning feature. See the `WorkerVersionCapabilities` docstring for more. + Deprecated. Replaced by deployment_options. """ + @property + def deployment_options( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: + """Worker deployment options that user has set in the worker.""" def __init__( self, *, @@ -6515,10 +6898,14 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ..., worker_version_capabilities: temporalio.api.common.v1.message_pb2.WorkerVersionCapabilities | None = ..., + deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions + | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ + "deployment_options", + b"deployment_options", "task_queue", b"task_queue", "worker_version_capabilities", @@ -6528,6 +6915,8 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ + "deployment_options", + b"deployment_options", "identity", b"identity", "namespace", @@ -6546,24 +6935,40 @@ class PollNexusTaskQueueResponse(google.protobuf.message.Message): TASK_TOKEN_FIELD_NUMBER: builtins.int REQUEST_FIELD_NUMBER: builtins.int + POLLER_SCALING_DECISION_FIELD_NUMBER: builtins.int task_token: builtins.bytes """An opaque unique identifier for this task for correlating a completion request the embedded request.""" @property def request(self) -> temporalio.api.nexus.v1.message_pb2.Request: """Embedded request as translated from the incoming frontend request.""" + @property + def poller_scaling_decision( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision: + """Server-advised information the SDK may use to adjust its poller count.""" def __init__( self, *, task_token: builtins.bytes = ..., request: temporalio.api.nexus.v1.message_pb2.Request | None = ..., + poller_scaling_decision: temporalio.api.taskqueue.v1.message_pb2.PollerScalingDecision + | None = ..., ) -> None: ... def HasField( - self, field_name: typing_extensions.Literal["request", b"request"] + self, + field_name: typing_extensions.Literal[ + "poller_scaling_decision", b"poller_scaling_decision", "request", b"request" + ], ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ - "request", b"request", "task_token", b"task_token" + "poller_scaling_decision", + b"poller_scaling_decision", + "request", + b"request", + "task_token", + b"task_token", ], ) -> None: ... @@ -6825,27 +7230,21 @@ class ExecuteMultiOperationResponse(google.protobuf.message.Message): global___ExecuteMultiOperationResponse = ExecuteMultiOperationResponse -class UpdateActivityOptionsByIdRequest(google.protobuf.message.Message): +class UpdateActivityOptionsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int - WORKFLOW_ID_FIELD_NUMBER: builtins.int - RUN_ID_FIELD_NUMBER: builtins.int - ACTIVITY_ID_FIELD_NUMBER: builtins.int + EXECUTION_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int ACTIVITY_OPTIONS_FIELD_NUMBER: builtins.int UPDATE_MASK_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the workflow which scheduled this activity""" - workflow_id: builtins.str - """ID of the workflow which scheduled this activity""" - run_id: builtins.str - """Run ID of the workflow which scheduled this activity - if empty - latest workflow is used - """ - activity_id: builtins.str - """ID of the activity we're updating""" + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Execution info of the workflow which scheduled this activity""" identity: builtins.str """The identity of the client who initiated this request""" @property @@ -6856,52 +7255,67 @@ class UpdateActivityOptionsByIdRequest(google.protobuf.message.Message): @property def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: """Controls which fields from `activity_options` will be applied""" - request_id: builtins.str - """Used to de-dupe requests""" + id: builtins.str + """Only activity with this ID will be updated.""" + type: builtins.str + """Update all running activities of this type.""" def __init__( self, *, namespace: builtins.str = ..., - workflow_id: builtins.str = ..., - run_id: builtins.str = ..., - activity_id: builtins.str = ..., + execution: temporalio.api.common.v1.message_pb2.WorkflowExecution | None = ..., identity: builtins.str = ..., activity_options: temporalio.api.activity.v1.message_pb2.ActivityOptions | None = ..., update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ..., - request_id: builtins.str = ..., + id: builtins.str = ..., + type: builtins.str = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ - "activity_options", b"activity_options", "update_mask", b"update_mask" + "activity", + b"activity", + "activity_options", + b"activity_options", + "execution", + b"execution", + "id", + b"id", + "type", + b"type", + "update_mask", + b"update_mask", ], ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ - "activity_id", - b"activity_id", + "activity", + b"activity", "activity_options", b"activity_options", + "execution", + b"execution", + "id", + b"id", "identity", b"identity", "namespace", b"namespace", - "request_id", - b"request_id", - "run_id", - b"run_id", + "type", + b"type", "update_mask", b"update_mask", - "workflow_id", - b"workflow_id", ], ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["activity", b"activity"] + ) -> typing_extensions.Literal["id", "type"] | None: ... -global___UpdateActivityOptionsByIdRequest = UpdateActivityOptionsByIdRequest +global___UpdateActivityOptionsRequest = UpdateActivityOptionsRequest -class UpdateActivityOptionsByIdResponse(google.protobuf.message.Message): +class UpdateActivityOptionsResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor ACTIVITY_OPTIONS_FIELD_NUMBER: builtins.int @@ -6925,268 +7339,1379 @@ class UpdateActivityOptionsByIdResponse(google.protobuf.message.Message): field_name: typing_extensions.Literal["activity_options", b"activity_options"], ) -> None: ... -global___UpdateActivityOptionsByIdResponse = UpdateActivityOptionsByIdResponse +global___UpdateActivityOptionsResponse = UpdateActivityOptionsResponse -class PauseActivityByIdRequest(google.protobuf.message.Message): +class PauseActivityRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int - WORKFLOW_ID_FIELD_NUMBER: builtins.int - RUN_ID_FIELD_NUMBER: builtins.int - ACTIVITY_ID_FIELD_NUMBER: builtins.int + EXECUTION_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the workflow which scheduled this activity.""" - workflow_id: builtins.str - """ID of the workflow which scheduled this activity.""" - run_id: builtins.str - """Run ID of the workflow which scheduled this activity. - If empty - latest workflow is used. - """ - activity_id: builtins.str - """ID of the activity we're updating.""" + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Execution info of the workflow which scheduled this activity""" identity: builtins.str """The identity of the client who initiated this request.""" - request_id: builtins.str - """Used to de-dupe requests.""" + id: builtins.str + """Only the activity with this ID will be paused.""" + type: builtins.str + """Pause all running activities of this type.""" def __init__( self, *, namespace: builtins.str = ..., - workflow_id: builtins.str = ..., - run_id: builtins.str = ..., - activity_id: builtins.str = ..., + execution: temporalio.api.common.v1.message_pb2.WorkflowExecution | None = ..., identity: builtins.str = ..., - request_id: builtins.str = ..., + id: builtins.str = ..., + type: builtins.str = ..., ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "activity", + b"activity", + "execution", + b"execution", + "id", + b"id", + "type", + b"type", + ], + ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ - "activity_id", - b"activity_id", + "activity", + b"activity", + "execution", + b"execution", + "id", + b"id", "identity", b"identity", "namespace", b"namespace", - "request_id", - b"request_id", - "run_id", - b"run_id", - "workflow_id", - b"workflow_id", + "type", + b"type", ], ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["activity", b"activity"] + ) -> typing_extensions.Literal["id", "type"] | None: ... -global___PauseActivityByIdRequest = PauseActivityByIdRequest +global___PauseActivityRequest = PauseActivityRequest -class PauseActivityByIdResponse(google.protobuf.message.Message): +class PauseActivityResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... -global___PauseActivityByIdResponse = PauseActivityByIdResponse +global___PauseActivityResponse = PauseActivityResponse -class UnpauseActivityByIdRequest(google.protobuf.message.Message): +class UnpauseActivityRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - class ResumeOperation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NO_WAIT_FIELD_NUMBER: builtins.int - no_wait: builtins.bool - """Indicates that if the activity is waiting to retry, it will be scheduled immediately.""" - def __init__( - self, - *, - no_wait: builtins.bool = ..., - ) -> None: ... - def ClearField( - self, field_name: typing_extensions.Literal["no_wait", b"no_wait"] - ) -> None: ... - - class ResetOperation(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NO_WAIT_FIELD_NUMBER: builtins.int - RESET_HEARTBEAT_FIELD_NUMBER: builtins.int - no_wait: builtins.bool - """Indicates that the activity should be scheduled immediately. - Note that this may run simultaneously with any existing executions of the activity. - """ - reset_heartbeat: builtins.bool - """If set, the Heartbeat Details will be cleared out to make the Activity start over from the beginning""" - def __init__( - self, - *, - no_wait: builtins.bool = ..., - reset_heartbeat: builtins.bool = ..., - ) -> None: ... - def ClearField( - self, - field_name: typing_extensions.Literal[ - "no_wait", b"no_wait", "reset_heartbeat", b"reset_heartbeat" - ], - ) -> None: ... - NAMESPACE_FIELD_NUMBER: builtins.int - WORKFLOW_ID_FIELD_NUMBER: builtins.int - RUN_ID_FIELD_NUMBER: builtins.int - ACTIVITY_ID_FIELD_NUMBER: builtins.int + EXECUTION_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - RESUME_FIELD_NUMBER: builtins.int - RESET_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + UNPAUSE_ALL_FIELD_NUMBER: builtins.int + RESET_ATTEMPTS_FIELD_NUMBER: builtins.int + RESET_HEARTBEAT_FIELD_NUMBER: builtins.int + JITTER_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the workflow which scheduled this activity.""" - workflow_id: builtins.str - """ID of the workflow which scheduled this activity.""" - run_id: builtins.str - """Run ID of the workflow which scheduled this activity. - If empty - latest workflow is used. - """ - activity_id: builtins.str - """ID of the activity we're updating.""" + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Execution info of the workflow which scheduled this activity""" identity: builtins.str """The identity of the client who initiated this request.""" - request_id: builtins.str - """Used to de-dupe requests.""" - @property - def resume(self) -> global___UnpauseActivityByIdRequest.ResumeOperation: ... + id: builtins.str + """Only the activity with this ID will be unpaused.""" + type: builtins.str + """Unpause all running activities with of this type.""" + unpause_all: builtins.bool + """Unpause all running activities.""" + reset_attempts: builtins.bool + """Providing this flag will also reset the number of attempts.""" + reset_heartbeat: builtins.bool + """Providing this flag will also reset the heartbeat details.""" @property - def reset(self) -> global___UnpauseActivityByIdRequest.ResetOperation: ... + def jitter(self) -> google.protobuf.duration_pb2.Duration: + """If set, the activity will start at a random time within the specified jitter duration.""" def __init__( self, *, namespace: builtins.str = ..., - workflow_id: builtins.str = ..., - run_id: builtins.str = ..., - activity_id: builtins.str = ..., + execution: temporalio.api.common.v1.message_pb2.WorkflowExecution | None = ..., identity: builtins.str = ..., - request_id: builtins.str = ..., - resume: global___UnpauseActivityByIdRequest.ResumeOperation | None = ..., - reset: global___UnpauseActivityByIdRequest.ResetOperation | None = ..., + id: builtins.str = ..., + type: builtins.str = ..., + unpause_all: builtins.bool = ..., + reset_attempts: builtins.bool = ..., + reset_heartbeat: builtins.bool = ..., + jitter: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ - "operation", b"operation", "reset", b"reset", "resume", b"resume" + "activity", + b"activity", + "execution", + b"execution", + "id", + b"id", + "jitter", + b"jitter", + "type", + b"type", + "unpause_all", + b"unpause_all", ], ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ - "activity_id", - b"activity_id", - "identity", + "activity", + b"activity", + "execution", + b"execution", + "id", + b"id", + "identity", b"identity", + "jitter", + b"jitter", "namespace", b"namespace", - "operation", - b"operation", - "request_id", - b"request_id", - "reset", - b"reset", - "resume", - b"resume", - "run_id", - b"run_id", - "workflow_id", - b"workflow_id", + "reset_attempts", + b"reset_attempts", + "reset_heartbeat", + b"reset_heartbeat", + "type", + b"type", + "unpause_all", + b"unpause_all", ], ) -> None: ... def WhichOneof( - self, oneof_group: typing_extensions.Literal["operation", b"operation"] - ) -> typing_extensions.Literal["resume", "reset"] | None: ... + self, oneof_group: typing_extensions.Literal["activity", b"activity"] + ) -> typing_extensions.Literal["id", "type", "unpause_all"] | None: ... -global___UnpauseActivityByIdRequest = UnpauseActivityByIdRequest +global___UnpauseActivityRequest = UnpauseActivityRequest -class UnpauseActivityByIdResponse(google.protobuf.message.Message): +class UnpauseActivityResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor def __init__( self, ) -> None: ... -global___UnpauseActivityByIdResponse = UnpauseActivityByIdResponse +global___UnpauseActivityResponse = UnpauseActivityResponse -class ResetActivityByIdRequest(google.protobuf.message.Message): +class ResetActivityRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor NAMESPACE_FIELD_NUMBER: builtins.int - WORKFLOW_ID_FIELD_NUMBER: builtins.int - RUN_ID_FIELD_NUMBER: builtins.int - ACTIVITY_ID_FIELD_NUMBER: builtins.int + EXECUTION_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int - REQUEST_ID_FIELD_NUMBER: builtins.int - NO_WAIT_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int RESET_HEARTBEAT_FIELD_NUMBER: builtins.int + KEEP_PAUSED_FIELD_NUMBER: builtins.int + JITTER_FIELD_NUMBER: builtins.int namespace: builtins.str """Namespace of the workflow which scheduled this activity.""" - workflow_id: builtins.str - """ID of the workflow which scheduled this activity.""" - run_id: builtins.str - """Run ID of the workflow which scheduled this activity. - If empty - latest workflow is used. - """ - activity_id: builtins.str - """ID of the activity we're updating.""" + @property + def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Execution info of the workflow which scheduled this activity""" identity: builtins.str """The identity of the client who initiated this request.""" - request_id: builtins.str - """Used to de-dupe requests.""" - no_wait: builtins.bool - """Indicates that activity should be scheduled immediately. - If this flag doesn't set, and activity currently running - temporal will wait until activity is completed. - """ + id: builtins.str + """Only activity with this ID will be reset.""" + type: builtins.str + """Reset all running activities with of this type.""" reset_heartbeat: builtins.bool """Indicates that activity should reset heartbeat details. This flag will be applied only to the new instance of the activity. """ + keep_paused: builtins.bool + """if activity is paused, it will remain paused after reset""" + @property + def jitter(self) -> google.protobuf.duration_pb2.Duration: + """If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration. + (unless it is paused and keep_paused is set) + """ def __init__( self, *, namespace: builtins.str = ..., - workflow_id: builtins.str = ..., - run_id: builtins.str = ..., - activity_id: builtins.str = ..., + execution: temporalio.api.common.v1.message_pb2.WorkflowExecution | None = ..., identity: builtins.str = ..., - request_id: builtins.str = ..., - no_wait: builtins.bool = ..., + id: builtins.str = ..., + type: builtins.str = ..., reset_heartbeat: builtins.bool = ..., + keep_paused: builtins.bool = ..., + jitter: google.protobuf.duration_pb2.Duration | None = ..., ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "activity", + b"activity", + "execution", + b"execution", + "id", + b"id", + "jitter", + b"jitter", + "type", + b"type", + ], + ) -> builtins.bool: ... def ClearField( self, field_name: typing_extensions.Literal[ - "activity_id", - b"activity_id", + "activity", + b"activity", + "execution", + b"execution", + "id", + b"id", "identity", b"identity", + "jitter", + b"jitter", + "keep_paused", + b"keep_paused", "namespace", b"namespace", - "no_wait", - b"no_wait", - "request_id", - b"request_id", "reset_heartbeat", b"reset_heartbeat", - "run_id", - b"run_id", - "workflow_id", - b"workflow_id", + "type", + b"type", + ], + ) -> None: ... + def WhichOneof( + self, oneof_group: typing_extensions.Literal["activity", b"activity"] + ) -> typing_extensions.Literal["id", "type"] | None: ... + +global___ResetActivityRequest = ResetActivityRequest + +class ResetActivityResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___ResetActivityResponse = ResetActivityResponse + +class UpdateWorkflowExecutionOptionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int + WORKFLOW_EXECUTION_OPTIONS_FIELD_NUMBER: builtins.int + UPDATE_MASK_FIELD_NUMBER: builtins.int + namespace: builtins.str + """The namespace name of the target Workflow.""" + @property + def workflow_execution( + self, + ) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """The target Workflow Id and (optionally) a specific Run Id thereof. + (-- api-linter: core::0203::optional=disabled + aip.dev/not-precedent: false positive triggered by the word "optional" --) + """ + @property + def workflow_execution_options( + self, + ) -> temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions: + """Workflow Execution options. Partial updates are accepted and controlled by update_mask.""" + @property + def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: + """Controls which fields from `workflow_execution_options` will be applied. + To unset a field, set it to null and use the update mask to indicate that it should be mutated. + """ + def __init__( + self, + *, + namespace: builtins.str = ..., + workflow_execution: temporalio.api.common.v1.message_pb2.WorkflowExecution + | None = ..., + workflow_execution_options: temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions + | None = ..., + update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "update_mask", + b"update_mask", + "workflow_execution", + b"workflow_execution", + "workflow_execution_options", + b"workflow_execution_options", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", + b"namespace", + "update_mask", + b"update_mask", + "workflow_execution", + b"workflow_execution", + "workflow_execution_options", + b"workflow_execution_options", + ], + ) -> None: ... + +global___UpdateWorkflowExecutionOptionsRequest = UpdateWorkflowExecutionOptionsRequest + +class UpdateWorkflowExecutionOptionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WORKFLOW_EXECUTION_OPTIONS_FIELD_NUMBER: builtins.int + @property + def workflow_execution_options( + self, + ) -> temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions: + """Workflow Execution options after update.""" + def __init__( + self, + *, + workflow_execution_options: temporalio.api.workflow.v1.message_pb2.WorkflowExecutionOptions + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "workflow_execution_options", b"workflow_execution_options" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "workflow_execution_options", b"workflow_execution_options" + ], + ) -> None: ... + +global___UpdateWorkflowExecutionOptionsResponse = UpdateWorkflowExecutionOptionsResponse + +class DescribeDeploymentRequest(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + namespace: builtins.str + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: ... + def __init__( + self, + *, + namespace: builtins.str = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["deployment", b"deployment"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "deployment", b"deployment", "namespace", b"namespace" + ], + ) -> None: ... + +global___DescribeDeploymentRequest = DescribeDeploymentRequest + +class DescribeDeploymentResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPLOYMENT_INFO_FIELD_NUMBER: builtins.int + @property + def deployment_info( + self, + ) -> temporalio.api.deployment.v1.message_pb2.DeploymentInfo: ... + def __init__( + self, + *, + deployment_info: temporalio.api.deployment.v1.message_pb2.DeploymentInfo + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal["deployment_info", b"deployment_info"], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["deployment_info", b"deployment_info"], + ) -> None: ... + +global___DescribeDeploymentResponse = DescribeDeploymentResponse + +class DescribeWorkerDeploymentVersionRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + namespace: builtins.str + version: builtins.str + """Deployment Version identifier in the form ".".""" + def __init__( + self, + *, + namespace: builtins.str = ..., + version: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", b"namespace", "version", b"version" + ], + ) -> None: ... + +global___DescribeWorkerDeploymentVersionRequest = DescribeWorkerDeploymentVersionRequest + +class DescribeWorkerDeploymentVersionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WORKER_DEPLOYMENT_VERSION_INFO_FIELD_NUMBER: builtins.int + @property + def worker_deployment_version_info( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersionInfo: ... + def __init__( + self, + *, + worker_deployment_version_info: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersionInfo + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "worker_deployment_version_info", b"worker_deployment_version_info" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "worker_deployment_version_info", b"worker_deployment_version_info" + ], + ) -> None: ... + +global___DescribeWorkerDeploymentVersionResponse = ( + DescribeWorkerDeploymentVersionResponse +) + +class DescribeWorkerDeploymentRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int + namespace: builtins.str + deployment_name: builtins.str + def __init__( + self, + *, + namespace: builtins.str = ..., + deployment_name: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "deployment_name", b"deployment_name", "namespace", b"namespace" ], ) -> None: ... -global___ResetActivityByIdRequest = ResetActivityByIdRequest +global___DescribeWorkerDeploymentRequest = DescribeWorkerDeploymentRequest -class ResetActivityByIdResponse(google.protobuf.message.Message): +class DescribeWorkerDeploymentResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor + CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + WORKER_DEPLOYMENT_INFO_FIELD_NUMBER: builtins.int + conflict_token: builtins.bytes + """This value is returned so that it can be optionally passed to APIs + that write to the Worker Deployment state to ensure that the state + did not change between this read and a future write. + """ + @property + def worker_deployment_info( + self, + ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentInfo: ... def __init__( self, + *, + conflict_token: builtins.bytes = ..., + worker_deployment_info: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentInfo + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "worker_deployment_info", b"worker_deployment_info" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "conflict_token", + b"conflict_token", + "worker_deployment_info", + b"worker_deployment_info", + ], + ) -> None: ... + +global___DescribeWorkerDeploymentResponse = DescribeWorkerDeploymentResponse + +class ListDeploymentsRequest(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + PAGE_SIZE_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + SERIES_NAME_FIELD_NUMBER: builtins.int + namespace: builtins.str + page_size: builtins.int + next_page_token: builtins.bytes + series_name: builtins.str + """Optional. Use to filter based on exact series name match.""" + def __init__( + self, + *, + namespace: builtins.str = ..., + page_size: builtins.int = ..., + next_page_token: builtins.bytes = ..., + series_name: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", + b"namespace", + "next_page_token", + b"next_page_token", + "page_size", + b"page_size", + "series_name", + b"series_name", + ], + ) -> None: ... + +global___ListDeploymentsRequest = ListDeploymentsRequest + +class ListDeploymentsResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + DEPLOYMENTS_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes + @property + def deployments( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + temporalio.api.deployment.v1.message_pb2.DeploymentListInfo + ]: ... + def __init__( + self, + *, + next_page_token: builtins.bytes = ..., + deployments: collections.abc.Iterable[ + temporalio.api.deployment.v1.message_pb2.DeploymentListInfo + ] + | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "deployments", b"deployments", "next_page_token", b"next_page_token" + ], + ) -> None: ... + +global___ListDeploymentsResponse = ListDeploymentsResponse + +class SetCurrentDeploymentRequest(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + UPDATE_METADATA_FIELD_NUMBER: builtins.int + namespace: builtins.str + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: ... + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" + @property + def update_metadata( + self, + ) -> temporalio.api.deployment.v1.message_pb2.UpdateDeploymentMetadata: + """Optional. Use to add or remove user-defined metadata entries. Metadata entries are exposed + when describing a deployment. It is a good place for information such as operator name, + links to internal deployment pipelines, etc. + """ + def __init__( + self, + *, + namespace: builtins.str = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + identity: builtins.str = ..., + update_metadata: temporalio.api.deployment.v1.message_pb2.UpdateDeploymentMetadata + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "deployment", b"deployment", "update_metadata", b"update_metadata" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "deployment", + b"deployment", + "identity", + b"identity", + "namespace", + b"namespace", + "update_metadata", + b"update_metadata", + ], + ) -> None: ... + +global___SetCurrentDeploymentRequest = SetCurrentDeploymentRequest + +class SetCurrentDeploymentResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CURRENT_DEPLOYMENT_INFO_FIELD_NUMBER: builtins.int + PREVIOUS_DEPLOYMENT_INFO_FIELD_NUMBER: builtins.int + @property + def current_deployment_info( + self, + ) -> temporalio.api.deployment.v1.message_pb2.DeploymentInfo: ... + @property + def previous_deployment_info( + self, + ) -> temporalio.api.deployment.v1.message_pb2.DeploymentInfo: + """Info of the deployment that was current before executing this operation.""" + def __init__( + self, + *, + current_deployment_info: temporalio.api.deployment.v1.message_pb2.DeploymentInfo + | None = ..., + previous_deployment_info: temporalio.api.deployment.v1.message_pb2.DeploymentInfo + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "current_deployment_info", + b"current_deployment_info", + "previous_deployment_info", + b"previous_deployment_info", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "current_deployment_info", + b"current_deployment_info", + "previous_deployment_info", + b"previous_deployment_info", + ], + ) -> None: ... + +global___SetCurrentDeploymentResponse = SetCurrentDeploymentResponse + +class SetWorkerDeploymentCurrentVersionRequest(google.protobuf.message.Message): + """Set/unset the Current Version of a Worker Deployment.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + IGNORE_MISSING_TASK_QUEUES_FIELD_NUMBER: builtins.int + namespace: builtins.str + deployment_name: builtins.str + version: builtins.str + """Required. Can be one of the following: + - A Deployment Version identifier in the form ".". + - Or, the "__unversioned__" special value, to represent all the unversioned workers (those + with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + """ + conflict_token: builtins.bytes + """Optional. This can be the value of conflict_token from a Describe, or another Worker + Deployment API. Passing a non-nil conflict token will cause this request to fail if the + Deployment's configuration has been modified between the API call that generated the + token and this one. + """ + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" + ignore_missing_task_queues: builtins.bool + """Optional. By default this request would be rejected if not all the expected Task Queues are + being polled by the new Version, to protect against accidental removal of Task Queues, or + worker health issues. Pass `true` here to bypass this protection. + The set of expected Task Queues is the set of all the Task Queues that were ever poller by + the existing Current Version of the Deployment, with the following exclusions: + - Task Queues that are not used anymore (inferred by having empty backlog and a task + add_rate of 0.) + - Task Queues that are moved to another Worker Deployment (inferred by the Task Queue + having a different Current Version than the Current Version of this deployment.) + WARNING: Do not set this flag unless you are sure that the missing task queue pollers are not + needed. If the request is unexpectedly rejected due to missing pollers, then that means the + pollers have not reached to the server yet. Only set this if you expect those pollers to + never arrive. + """ + def __init__( + self, + *, + namespace: builtins.str = ..., + deployment_name: builtins.str = ..., + version: builtins.str = ..., + conflict_token: builtins.bytes = ..., + identity: builtins.str = ..., + ignore_missing_task_queues: builtins.bool = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "conflict_token", + b"conflict_token", + "deployment_name", + b"deployment_name", + "identity", + b"identity", + "ignore_missing_task_queues", + b"ignore_missing_task_queues", + "namespace", + b"namespace", + "version", + b"version", + ], + ) -> None: ... + +global___SetWorkerDeploymentCurrentVersionRequest = ( + SetWorkerDeploymentCurrentVersionRequest +) + +class SetWorkerDeploymentCurrentVersionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + PREVIOUS_VERSION_FIELD_NUMBER: builtins.int + conflict_token: builtins.bytes + """This value is returned so that it can be optionally passed to APIs + that write to the Worker Deployment state to ensure that the state + did not change between this API call and a future write. + """ + previous_version: builtins.str + """The version that was current before executing this operation, in the form + ".". Can also be the `__unversioned__` special value. + """ + def __init__( + self, + *, + conflict_token: builtins.bytes = ..., + previous_version: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "conflict_token", b"conflict_token", "previous_version", b"previous_version" + ], + ) -> None: ... + +global___SetWorkerDeploymentCurrentVersionResponse = ( + SetWorkerDeploymentCurrentVersionResponse +) + +class SetWorkerDeploymentRampingVersionRequest(google.protobuf.message.Message): + """Set/unset the Ramping Version of a Worker Deployment and its ramp percentage.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + PERCENTAGE_FIELD_NUMBER: builtins.int + CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + IGNORE_MISSING_TASK_QUEUES_FIELD_NUMBER: builtins.int + namespace: builtins.str + deployment_name: builtins.str + version: builtins.str + """Can be one of the following: + - Absent/empty value to unset the Ramping Version. Must be paired with `percentage=0`. + - A Deployment Version identifier in the form ".". + - Or, the "__unversioned__" special value, to represent all the unversioned workers (those + with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.) + """ + percentage: builtins.float + """Ramp percentage to set. Valid range: [0,100].""" + conflict_token: builtins.bytes + """Optional. This can be the value of conflict_token from a Describe, or another Worker + Deployment API. Passing a non-nil conflict token will cause this request to fail if the + Deployment's configuration has been modified between the API call that generated the + token and this one. + """ + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" + ignore_missing_task_queues: builtins.bool + """Optional. By default this request would be rejected if not all the expected Task Queues are + being polled by the new Version, to protect against accidental removal of Task Queues, or + worker health issues. Pass `true` here to bypass this protection. + The set of expected Task Queues equals to all the Task Queues ever polled from the existing + Current Version of the Deployment, with the following exclusions: + - Task Queues that are not used anymore (inferred by having empty backlog and a task + add_rate of 0.) + - Task Queues that are moved to another Worker Deployment (inferred by the Task Queue + having a different Current Version than the Current Version of this deployment.) + WARNING: Do not set this flag unless you are sure that the missing task queue poller are not + needed. If the request is unexpectedly rejected due to missing pollers, then that means the + pollers have not reached to the server yet. Only set this if you expect those pollers to + never arrive. + Note: this check only happens when the ramping version is about to change, not every time + that the percentage changes. Also note that the check is against the deployment's Current + Version, not the previous Ramping Version. + """ + def __init__( + self, + *, + namespace: builtins.str = ..., + deployment_name: builtins.str = ..., + version: builtins.str = ..., + percentage: builtins.float = ..., + conflict_token: builtins.bytes = ..., + identity: builtins.str = ..., + ignore_missing_task_queues: builtins.bool = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "conflict_token", + b"conflict_token", + "deployment_name", + b"deployment_name", + "identity", + b"identity", + "ignore_missing_task_queues", + b"ignore_missing_task_queues", + "namespace", + b"namespace", + "percentage", + b"percentage", + "version", + b"version", + ], + ) -> None: ... + +global___SetWorkerDeploymentRampingVersionRequest = ( + SetWorkerDeploymentRampingVersionRequest +) + +class SetWorkerDeploymentRampingVersionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CONFLICT_TOKEN_FIELD_NUMBER: builtins.int + PREVIOUS_VERSION_FIELD_NUMBER: builtins.int + PREVIOUS_PERCENTAGE_FIELD_NUMBER: builtins.int + conflict_token: builtins.bytes + """This value is returned so that it can be optionally passed to APIs + that write to the Worker Deployment state to ensure that the state + did not change between this API call and a future write. + """ + previous_version: builtins.str + """The version that was ramping before executing this operation, in the form + ".". Can also be the `__unversioned__` special value. + """ + previous_percentage: builtins.float + """The ramping version percentage before executing this operation.""" + def __init__( + self, + *, + conflict_token: builtins.bytes = ..., + previous_version: builtins.str = ..., + previous_percentage: builtins.float = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "conflict_token", + b"conflict_token", + "previous_percentage", + b"previous_percentage", + "previous_version", + b"previous_version", + ], + ) -> None: ... + +global___SetWorkerDeploymentRampingVersionResponse = ( + SetWorkerDeploymentRampingVersionResponse +) + +class ListWorkerDeploymentsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + PAGE_SIZE_FIELD_NUMBER: builtins.int + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + namespace: builtins.str + page_size: builtins.int + next_page_token: builtins.bytes + def __init__( + self, + *, + namespace: builtins.str = ..., + page_size: builtins.int = ..., + next_page_token: builtins.bytes = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", + b"namespace", + "next_page_token", + b"next_page_token", + "page_size", + b"page_size", + ], + ) -> None: ... + +global___ListWorkerDeploymentsRequest = ListWorkerDeploymentsRequest + +class ListWorkerDeploymentsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class WorkerDeploymentSummary(google.protobuf.message.Message): + """(-- api-linter: core::0123::resource-annotation=disabled --) + A subset of WorkerDeploymentInfo + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + CREATE_TIME_FIELD_NUMBER: builtins.int + ROUTING_CONFIG_FIELD_NUMBER: builtins.int + name: builtins.str + @property + def create_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def routing_config( + self, + ) -> temporalio.api.deployment.v1.message_pb2.RoutingConfig: ... + def __init__( + self, + *, + name: builtins.str = ..., + create_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + routing_config: temporalio.api.deployment.v1.message_pb2.RoutingConfig + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "create_time", b"create_time", "routing_config", b"routing_config" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "create_time", + b"create_time", + "name", + b"name", + "routing_config", + b"routing_config", + ], + ) -> None: ... + + NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int + WORKER_DEPLOYMENTS_FIELD_NUMBER: builtins.int + next_page_token: builtins.bytes + @property + def worker_deployments( + self, + ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ + global___ListWorkerDeploymentsResponse.WorkerDeploymentSummary + ]: + """The list of worker deployments.""" + def __init__( + self, + *, + next_page_token: builtins.bytes = ..., + worker_deployments: collections.abc.Iterable[ + global___ListWorkerDeploymentsResponse.WorkerDeploymentSummary + ] + | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "next_page_token", + b"next_page_token", + "worker_deployments", + b"worker_deployments", + ], + ) -> None: ... + +global___ListWorkerDeploymentsResponse = ListWorkerDeploymentsResponse + +class DeleteWorkerDeploymentVersionRequest(google.protobuf.message.Message): + """Used for manual deletion of Versions. User can delete a Version only when all the + following conditions are met: + - It is not the Current or Ramping Version of its Deployment. + - It has no active pollers (none of the task queues in the Version have pollers) + - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition + can be skipped by passing `skip-drainage=true`. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + SKIP_DRAINAGE_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + namespace: builtins.str + version: builtins.str + """Deployment Version identifier in the form ".".""" + skip_drainage: builtins.bool + """Pass to force deletion even if the Version is draining. In this case the open pinned + workflows will be stuck until manually moved to another version by UpdateWorkflowExecutionOptions. + """ + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" + def __init__( + self, + *, + namespace: builtins.str = ..., + version: builtins.str = ..., + skip_drainage: builtins.bool = ..., + identity: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "identity", + b"identity", + "namespace", + b"namespace", + "skip_drainage", + b"skip_drainage", + "version", + b"version", + ], + ) -> None: ... + +global___DeleteWorkerDeploymentVersionRequest = DeleteWorkerDeploymentVersionRequest + +class DeleteWorkerDeploymentVersionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___DeleteWorkerDeploymentVersionResponse = DeleteWorkerDeploymentVersionResponse + +class DeleteWorkerDeploymentRequest(google.protobuf.message.Message): + """Deletes records of (an old) Deployment. A deployment can only be deleted if + it has no Version in it. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + DEPLOYMENT_NAME_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + namespace: builtins.str + deployment_name: builtins.str + identity: builtins.str + """Optional. The identity of the client who initiated this request.""" + def __init__( + self, + *, + namespace: builtins.str = ..., + deployment_name: builtins.str = ..., + identity: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "deployment_name", + b"deployment_name", + "identity", + b"identity", + "namespace", + b"namespace", + ], + ) -> None: ... + +global___DeleteWorkerDeploymentRequest = DeleteWorkerDeploymentRequest + +class DeleteWorkerDeploymentResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___DeleteWorkerDeploymentResponse = DeleteWorkerDeploymentResponse + +class UpdateWorkerDeploymentVersionMetadataRequest(google.protobuf.message.Message): + """Used to update the user-defined metadata of a Worker Deployment Version.""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class UpsertEntriesEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + @property + def value(self) -> temporalio.api.common.v1.message_pb2.Payload: ... + def __init__( + self, + *, + key: builtins.str = ..., + value: temporalio.api.common.v1.message_pb2.Payload | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["value", b"value"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal["key", b"key", "value", b"value"], + ) -> None: ... + + NAMESPACE_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + UPSERT_ENTRIES_FIELD_NUMBER: builtins.int + REMOVE_ENTRIES_FIELD_NUMBER: builtins.int + namespace: builtins.str + version: builtins.str + """Deployment Version identifier in the form ".".""" + @property + def upsert_entries( + self, + ) -> google.protobuf.internal.containers.MessageMap[ + builtins.str, temporalio.api.common.v1.message_pb2.Payload + ]: ... + @property + def remove_entries( + self, + ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """List of keys to remove from the metadata.""" + def __init__( + self, + *, + namespace: builtins.str = ..., + version: builtins.str = ..., + upsert_entries: collections.abc.Mapping[ + builtins.str, temporalio.api.common.v1.message_pb2.Payload + ] + | None = ..., + remove_entries: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", + b"namespace", + "remove_entries", + b"remove_entries", + "upsert_entries", + b"upsert_entries", + "version", + b"version", + ], + ) -> None: ... + +global___UpdateWorkerDeploymentVersionMetadataRequest = ( + UpdateWorkerDeploymentVersionMetadataRequest +) + +class UpdateWorkerDeploymentVersionMetadataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + METADATA_FIELD_NUMBER: builtins.int + @property + def metadata(self) -> temporalio.api.deployment.v1.message_pb2.VersionMetadata: + """Full metadata after performing the update.""" + def __init__( + self, + *, + metadata: temporalio.api.deployment.v1.message_pb2.VersionMetadata | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["metadata", b"metadata"] + ) -> builtins.bool: ... + def ClearField( + self, field_name: typing_extensions.Literal["metadata", b"metadata"] + ) -> None: ... + +global___UpdateWorkerDeploymentVersionMetadataResponse = ( + UpdateWorkerDeploymentVersionMetadataResponse +) + +class GetCurrentDeploymentRequest(google.protobuf.message.Message): + """Returns the Current Deployment of a deployment series. + [cleanup-wv-pre-release] Pre-release deployment APIs, clean up later + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + SERIES_NAME_FIELD_NUMBER: builtins.int + namespace: builtins.str + series_name: builtins.str + def __init__( + self, + *, + namespace: builtins.str = ..., + series_name: builtins.str = ..., + ) -> None: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "namespace", b"namespace", "series_name", b"series_name" + ], + ) -> None: ... + +global___GetCurrentDeploymentRequest = GetCurrentDeploymentRequest + +class GetCurrentDeploymentResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CURRENT_DEPLOYMENT_INFO_FIELD_NUMBER: builtins.int + @property + def current_deployment_info( + self, + ) -> temporalio.api.deployment.v1.message_pb2.DeploymentInfo: ... + def __init__( + self, + *, + current_deployment_info: temporalio.api.deployment.v1.message_pb2.DeploymentInfo + | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "current_deployment_info", b"current_deployment_info" + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "current_deployment_info", b"current_deployment_info" + ], + ) -> None: ... + +global___GetCurrentDeploymentResponse = GetCurrentDeploymentResponse + +class GetDeploymentReachabilityRequest(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMESPACE_FIELD_NUMBER: builtins.int + DEPLOYMENT_FIELD_NUMBER: builtins.int + namespace: builtins.str + @property + def deployment(self) -> temporalio.api.deployment.v1.message_pb2.Deployment: ... + def __init__( + self, + *, + namespace: builtins.str = ..., + deployment: temporalio.api.deployment.v1.message_pb2.Deployment | None = ..., + ) -> None: ... + def HasField( + self, field_name: typing_extensions.Literal["deployment", b"deployment"] + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "deployment", b"deployment", "namespace", b"namespace" + ], + ) -> None: ... + +global___GetDeploymentReachabilityRequest = GetDeploymentReachabilityRequest + +class GetDeploymentReachabilityResponse(google.protobuf.message.Message): + """[cleanup-wv-pre-release] Pre-release deployment APIs, clean up later""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + DEPLOYMENT_INFO_FIELD_NUMBER: builtins.int + REACHABILITY_FIELD_NUMBER: builtins.int + LAST_UPDATE_TIME_FIELD_NUMBER: builtins.int + @property + def deployment_info( + self, + ) -> temporalio.api.deployment.v1.message_pb2.DeploymentInfo: ... + reachability: ( + temporalio.api.enums.v1.deployment_pb2.DeploymentReachability.ValueType + ) + @property + def last_update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: + """Reachability level might come from server cache. This timestamp specifies when the value + was actually calculated. + """ + def __init__( + self, + *, + deployment_info: temporalio.api.deployment.v1.message_pb2.DeploymentInfo + | None = ..., + reachability: temporalio.api.enums.v1.deployment_pb2.DeploymentReachability.ValueType = ..., + last_update_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + ) -> None: ... + def HasField( + self, + field_name: typing_extensions.Literal[ + "deployment_info", + b"deployment_info", + "last_update_time", + b"last_update_time", + ], + ) -> builtins.bool: ... + def ClearField( + self, + field_name: typing_extensions.Literal[ + "deployment_info", + b"deployment_info", + "last_update_time", + b"last_update_time", + "reachability", + b"reachability", + ], ) -> None: ... -global___ResetActivityByIdResponse = ResetActivityByIdResponse +global___GetDeploymentReachabilityResponse = GetDeploymentReachabilityResponse diff --git a/temporalio/api/workflowservice/v1/service_pb2.py b/temporalio/api/workflowservice/v1/service_pb2.py index 585a850d0..4204ece01 100644 --- a/temporalio/api/workflowservice/v1/service_pb2.py +++ b/temporalio/api/workflowservice/v1/service_pb2.py @@ -21,7 +21,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n-temporal/api/workflowservice/v1/service.proto\x12\x1ftemporal.api.workflowservice.v1\x1a\x36temporal/api/workflowservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\x97\x83\x01\n\x0fWorkflowService\x12\xc3\x01\n\x11RegisterNamespace\x12\x39.temporal.api.workflowservice.v1.RegisterNamespaceRequest\x1a:.temporal.api.workflowservice.v1.RegisterNamespaceResponse"7\x82\xd3\xe4\x93\x02\x31"\x13/cluster/namespaces:\x01*Z\x17"\x12/api/v1/namespaces:\x01*\x12\xd5\x01\n\x11\x44\x65scribeNamespace\x12\x39.temporal.api.workflowservice.v1.DescribeNamespaceRequest\x1a:.temporal.api.workflowservice.v1.DescribeNamespaceResponse"I\x82\xd3\xe4\x93\x02\x43\x12\x1f/cluster/namespaces/{namespace}Z \x12\x1e/api/v1/namespaces/{namespace}\x12\xb4\x01\n\x0eListNamespaces\x12\x36.temporal.api.workflowservice.v1.ListNamespacesRequest\x1a\x37.temporal.api.workflowservice.v1.ListNamespacesResponse"1\x82\xd3\xe4\x93\x02+\x12\x13/cluster/namespacesZ\x14\x12\x12/api/v1/namespaces\x12\xe3\x01\n\x0fUpdateNamespace\x12\x37.temporal.api.workflowservice.v1.UpdateNamespaceRequest\x1a\x38.temporal.api.workflowservice.v1.UpdateNamespaceResponse"]\x82\xd3\xe4\x93\x02W"&/cluster/namespaces/{namespace}/update:\x01*Z*"%/api/v1/namespaces/{namespace}/update:\x01*\x12\x8f\x01\n\x12\x44\x65precateNamespace\x12:.temporal.api.workflowservice.v1.DeprecateNamespaceRequest\x1a;.temporal.api.workflowservice.v1.DeprecateNamespaceResponse"\x00\x12\x92\x02\n\x16StartWorkflowExecution\x12>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse"w\x82\xd3\xe4\x93\x02q"//namespaces/{namespace}/workflows/{workflow_id}:\x01*Z;"6/api/v1/namespaces/{namespace}/workflows/{workflow_id}:\x01*\x12\xa5\x02\n\x15\x45xecuteMultiOperation\x12=.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest\x1a>.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01"9/namespaces/{namespace}/workflows/execute-multi-operation:\x01*ZE"@/api/v1/namespaces/{namespace}/workflows/execute-multi-operation:\x01*\x12\xc1\x02\n\x1bGetWorkflowExecutionHistory\x12\x43.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest\x1a\x44.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse"\x96\x01\x82\xd3\xe4\x93\x02\x8f\x01\x12\x41/namespaces/{namespace}/workflows/{execution.workflow_id}/historyZJ\x12H/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history\x12\xe6\x02\n"GetWorkflowExecutionHistoryReverse\x12J.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest\x1aK.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse"\xa6\x01\x82\xd3\xe4\x93\x02\x9f\x01\x12I/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverseZR\x12P/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse\x12\x98\x01\n\x15PollWorkflowTaskQueue\x12=.temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"\x00\x12\xad\x01\n\x1cRespondWorkflowTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse"\x00\x12\xa4\x01\n\x19RespondWorkflowTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse"\x00\x12\x98\x01\n\x15PollActivityTaskQueue\x12=.temporal.api.workflowservice.v1.PollActivityTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse"\x00\x12\x9b\x02\n\x1bRecordActivityTaskHeartbeat\x12\x43.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest\x1a\x44.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse"q\x82\xd3\xe4\x93\x02k",/namespaces/{namespace}/activities/heartbeat:\x01*Z8"3/api/v1/namespaces/{namespace}/activities/heartbeat:\x01*\x12\xb3\x02\n\x1fRecordActivityTaskHeartbeatById\x12G.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest\x1aH.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse"}\x82\xd3\xe4\x93\x02w"2/namespaces/{namespace}/activities/heartbeat-by-id:\x01*Z>"9/api/v1/namespaces/{namespace}/activities/heartbeat-by-id:\x01*\x12\x9c\x02\n\x1cRespondActivityTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse"o\x82\xd3\xe4\x93\x02i"+/namespaces/{namespace}/activities/complete:\x01*Z7"2/api/v1/namespaces/{namespace}/activities/complete:\x01*\x12\xb4\x02\n RespondActivityTaskCompletedById\x12H.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest\x1aI.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse"{\x82\xd3\xe4\x93\x02u"1/namespaces/{namespace}/activities/complete-by-id:\x01*Z="8/api/v1/namespaces/{namespace}/activities/complete-by-id:\x01*\x12\x8b\x02\n\x19RespondActivityTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse"g\x82\xd3\xe4\x93\x02\x61"\'/namespaces/{namespace}/activities/fail:\x01*Z3"./api/v1/namespaces/{namespace}/activities/fail:\x01*\x12\xa3\x02\n\x1dRespondActivityTaskFailedById\x12\x45.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest\x1a\x46.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse"s\x82\xd3\xe4\x93\x02m"-/namespaces/{namespace}/activities/fail-by-id:\x01*Z9"4/api/v1/namespaces/{namespace}/activities/fail-by-id:\x01*\x12\x95\x02\n\x1bRespondActivityTaskCanceled\x12\x43.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest\x1a\x44.temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse"k\x82\xd3\xe4\x93\x02\x65")/namespaces/{namespace}/activities/cancel:\x01*Z5"0/api/v1/namespaces/{namespace}/activities/cancel:\x01*\x12\xad\x02\n\x1fRespondActivityTaskCanceledById\x12G.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest\x1aH.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse"w\x82\xd3\xe4\x93\x02q"//namespaces/{namespace}/activities/cancel-by-id:\x01*Z;"6/api/v1/namespaces/{namespace}/activities/cancel-by-id:\x01*\x12\xe0\x02\n\x1eRequestCancelWorkflowExecution\x12\x46.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest\x1aG.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse"\xac\x01\x82\xd3\xe4\x93\x02\xa5\x01"I/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/cancel:\x01*ZU"P/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/cancel:\x01*\x12\xe7\x02\n\x17SignalWorkflowExecution\x12?.temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse"\xc8\x01\x82\xd3\xe4\x93\x02\xc1\x01"W/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/signal/{signal_name}:\x01*Zc"^/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/signal/{signal_name}:\x01*\x12\xf2\x02\n SignalWithStartWorkflowExecution\x12H.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest\x1aI.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01"O/namespaces/{namespace}/workflows/{workflow_id}/signal-with-start/{signal_name}:\x01*Z["V/api/v1/namespaces/{namespace}/workflows/{workflow_id}/signal-with-start/{signal_name}:\x01*\x12\xc6\x02\n\x16ResetWorkflowExecution\x12>.temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse"\xaa\x01\x82\xd3\xe4\x93\x02\xa3\x01"H/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset:\x01*ZT"O/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset:\x01*\x12\xda\x02\n\x1aTerminateWorkflowExecution\x12\x42.temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest\x1a\x43.temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse"\xb2\x01\x82\xd3\xe4\x93\x02\xab\x01"L/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate:\x01*ZX"S/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate:\x01*\x12\x9e\x01\n\x17\x44\x65leteWorkflowExecution\x12?.temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse"\x00\x12\xa7\x01\n\x1aListOpenWorkflowExecutions\x12\x42.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest\x1a\x43.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse"\x00\x12\xad\x01\n\x1cListClosedWorkflowExecutions\x12\x44.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest\x1a\x45.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse"\x00\x12\xf0\x01\n\x16ListWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse"U\x82\xd3\xe4\x93\x02O\x12!/namespaces/{namespace}/workflowsZ*\x12(/api/v1/namespaces/{namespace}/workflows\x12\x9a\x02\n\x1eListArchivedWorkflowExecutions\x12\x46.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest\x1aG.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse"g\x82\xd3\xe4\x93\x02\x61\x12*/namespaces/{namespace}/archived-workflowsZ3\x12\x31/api/v1/namespaces/{namespace}/archived-workflows\x12\x9b\x01\n\x16ScanWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse"\x00\x12\xfd\x01\n\x17\x43ountWorkflowExecutions\x12?.temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest\x1a@.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse"_\x82\xd3\xe4\x93\x02Y\x12&/namespaces/{namespace}/workflow-countZ/\x12-/api/v1/namespaces/{namespace}/workflow-count\x12\x92\x01\n\x13GetSearchAttributes\x12;.temporal.api.workflowservice.v1.GetSearchAttributesRequest\x1a<.temporal.api.workflowservice.v1.GetSearchAttributesResponse"\x00\x12\xa4\x01\n\x19RespondQueryTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse"\x00\x12\x95\x01\n\x14ResetStickyTaskQueue\x12<.temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest\x1a=.temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse"\x00\x12\x83\x01\n\x0eShutdownWorker\x12\x36.temporal.api.workflowservice.v1.ShutdownWorkerRequest\x1a\x37.temporal.api.workflowservice.v1.ShutdownWorkerResponse"\x00\x12\xbf\x02\n\rQueryWorkflow\x12\x35.temporal.api.workflowservice.v1.QueryWorkflowRequest\x1a\x36.temporal.api.workflowservice.v1.QueryWorkflowResponse"\xbe\x01\x82\xd3\xe4\x93\x02\xb7\x01"R/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}:\x01*Z^"Y/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}:\x01*\x12\xaa\x02\n\x19\x44\x65scribeWorkflowExecution\x12\x41.temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest\x1a\x42.temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12\x39/namespaces/{namespace}/workflows/{execution.workflow_id}ZB\x12@/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}\x12\x89\x02\n\x11\x44\x65scribeTaskQueue\x12\x39.temporal.api.workflowservice.v1.DescribeTaskQueueRequest\x1a:.temporal.api.workflowservice.v1.DescribeTaskQueueResponse"}\x82\xd3\xe4\x93\x02w\x12\x35/namespaces/{namespace}/task-queues/{task_queue.name}Z>\x12/namespaces/{namespace}/schedules/{schedule_id}/matching-timesZG\x12\x45/api/v1/namespaces/{namespace}/schedules/{schedule_id}/matching-times\x12\xf4\x01\n\x0e\x44\x65leteSchedule\x12\x36.temporal.api.workflowservice.v1.DeleteScheduleRequest\x1a\x37.temporal.api.workflowservice.v1.DeleteScheduleResponse"q\x82\xd3\xe4\x93\x02k*//namespaces/{namespace}/schedules/{schedule_id}Z8*6/api/v1/namespaces/{namespace}/schedules/{schedule_id}\x12\xd5\x01\n\rListSchedules\x12\x35.temporal.api.workflowservice.v1.ListSchedulesRequest\x1a\x36.temporal.api.workflowservice.v1.ListSchedulesResponse"U\x82\xd3\xe4\x93\x02O\x12!/namespaces/{namespace}/schedulesZ*\x12(/api/v1/namespaces/{namespace}/schedules\x12\xb9\x01\n UpdateWorkerBuildIdCompatibility\x12H.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest\x1aI.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse"\x00\x12\xe1\x02\n\x1dGetWorkerBuildIdCompatibility\x12\x45.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest\x1a\x46.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse"\xb0\x01\x82\xd3\xe4\x93\x02\xa9\x01\x12N/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibilityZW\x12U/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibility\x12\xaa\x01\n\x1bUpdateWorkerVersioningRules\x12\x43.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest\x1a\x44.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse"\x00\x12\xc6\x02\n\x18GetWorkerVersioningRules\x12@.temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest\x1a\x41.temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01\x12H/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rulesZQ\x12O/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rules\x12\x97\x02\n\x19GetWorkerTaskReachability\x12\x41.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest\x1a\x42.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse"s\x82\xd3\xe4\x93\x02m\x12\x30/namespaces/{namespace}/worker-task-reachabilityZ9\x12\x37/api/v1/namespaces/{namespace}/worker-task-reachability\x12\xf5\x02\n\x17UpdateWorkflowExecution\x12?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse"\xd6\x01\x82\xd3\xe4\x93\x02\xcf\x01"^/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update/{request.input.name}:\x01*Zj"e/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update/{request.input.name}:\x01*\x12\xaa\x01\n\x1bPollWorkflowExecutionUpdate\x12\x43.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest\x1a\x44.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse"\x00\x12\x8d\x02\n\x13StartBatchOperation\x12;.temporal.api.workflowservice.v1.StartBatchOperationRequest\x1a<.temporal.api.workflowservice.v1.StartBatchOperationResponse"{\x82\xd3\xe4\x93\x02u"1/namespaces/{namespace}/batch-operations/{job_id}:\x01*Z="8/api/v1/namespaces/{namespace}/batch-operations/{job_id}:\x01*\x12\x95\x02\n\x12StopBatchOperation\x12:.temporal.api.workflowservice.v1.StopBatchOperationRequest\x1a;.temporal.api.workflowservice.v1.StopBatchOperationResponse"\x85\x01\x82\xd3\xe4\x93\x02\x7f"6/namespaces/{namespace}/batch-operations/{job_id}/stop:\x01*ZB"=/api/v1/namespaces/{namespace}/batch-operations/{job_id}/stop:\x01*\x12\x90\x02\n\x16\x44\x65scribeBatchOperation\x12>.temporal.api.workflowservice.v1.DescribeBatchOperationRequest\x1a?.temporal.api.workflowservice.v1.DescribeBatchOperationResponse"u\x82\xd3\xe4\x93\x02o\x12\x31/namespaces/{namespace}/batch-operations/{job_id}Z:\x12\x38/api/v1/namespaces/{namespace}/batch-operations/{job_id}\x12\xf5\x01\n\x13ListBatchOperations\x12;.temporal.api.workflowservice.v1.ListBatchOperationsRequest\x1a<.temporal.api.workflowservice.v1.ListBatchOperationsResponse"c\x82\xd3\xe4\x93\x02]\x12(/namespaces/{namespace}/batch-operationsZ1\x12//api/v1/namespaces/{namespace}/batch-operations\x12\x8f\x01\n\x12PollNexusTaskQueue\x12:.temporal.api.workflowservice.v1.PollNexusTaskQueueRequest\x1a;.temporal.api.workflowservice.v1.PollNexusTaskQueueResponse"\x00\x12\xa4\x01\n\x19RespondNexusTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse"\x00\x12\x9b\x01\n\x16RespondNexusTaskFailed\x12>.temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest\x1a?.temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse"\x00\x12\xad\x02\n\x19UpdateActivityOptionsById\x12\x41.temporal.api.workflowservice.v1.UpdateActivityOptionsByIdRequest\x1a\x42.temporal.api.workflowservice.v1.UpdateActivityOptionsByIdResponse"\x88\x01\x82\xd3\xe4\x93\x02\x81\x01"7/namespaces/{namespace}/activities/update-options-by-id:\x01*ZC">/api/v1/namespaces/{namespace}/activities/update-options-by-id:\x01*\x12\x81\x02\n\x11PauseActivityById\x12\x39.temporal.api.workflowservice.v1.PauseActivityByIdRequest\x1a:.temporal.api.workflowservice.v1.PauseActivityByIdResponse"u\x82\xd3\xe4\x93\x02o"./namespaces/{namespace}/activities/pause-by-id:\x01*Z:"5/api/v1/namespaces/{namespace}/activities/pause-by-id:\x01*\x12\x8b\x02\n\x13UnpauseActivityById\x12;.temporal.api.workflowservice.v1.UnpauseActivityByIdRequest\x1a<.temporal.api.workflowservice.v1.UnpauseActivityByIdResponse"y\x82\xd3\xe4\x93\x02s"0/namespaces/{namespace}/activities/unpause-by-id:\x01*Z<"7/api/v1/namespaces/{namespace}/activities/unpause-by-id:\x01*\x12\x81\x02\n\x11ResetActivityById\x12\x39.temporal.api.workflowservice.v1.ResetActivityByIdRequest\x1a:.temporal.api.workflowservice.v1.ResetActivityByIdResponse"u\x82\xd3\xe4\x93\x02o"./namespaces/{namespace}/activities/reset-by-id:\x01*Z:"5/api/v1/namespaces/{namespace}/activities/reset-by-id:\x01*B\xb6\x01\n"io.temporal.api.workflowservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' + b'\n-temporal/api/workflowservice/v1/service.proto\x12\x1ftemporal.api.workflowservice.v1\x1a\x36temporal/api/workflowservice/v1/request_response.proto\x1a\x1cgoogle/api/annotations.proto2\xfa\xa5\x01\n\x0fWorkflowService\x12\xc3\x01\n\x11RegisterNamespace\x12\x39.temporal.api.workflowservice.v1.RegisterNamespaceRequest\x1a:.temporal.api.workflowservice.v1.RegisterNamespaceResponse"7\x82\xd3\xe4\x93\x02\x31"\x13/cluster/namespaces:\x01*Z\x17"\x12/api/v1/namespaces:\x01*\x12\xd5\x01\n\x11\x44\x65scribeNamespace\x12\x39.temporal.api.workflowservice.v1.DescribeNamespaceRequest\x1a:.temporal.api.workflowservice.v1.DescribeNamespaceResponse"I\x82\xd3\xe4\x93\x02\x43\x12\x1f/cluster/namespaces/{namespace}Z \x12\x1e/api/v1/namespaces/{namespace}\x12\xb4\x01\n\x0eListNamespaces\x12\x36.temporal.api.workflowservice.v1.ListNamespacesRequest\x1a\x37.temporal.api.workflowservice.v1.ListNamespacesResponse"1\x82\xd3\xe4\x93\x02+\x12\x13/cluster/namespacesZ\x14\x12\x12/api/v1/namespaces\x12\xe3\x01\n\x0fUpdateNamespace\x12\x37.temporal.api.workflowservice.v1.UpdateNamespaceRequest\x1a\x38.temporal.api.workflowservice.v1.UpdateNamespaceResponse"]\x82\xd3\xe4\x93\x02W"&/cluster/namespaces/{namespace}/update:\x01*Z*"%/api/v1/namespaces/{namespace}/update:\x01*\x12\x8f\x01\n\x12\x44\x65precateNamespace\x12:.temporal.api.workflowservice.v1.DeprecateNamespaceRequest\x1a;.temporal.api.workflowservice.v1.DeprecateNamespaceResponse"\x00\x12\x92\x02\n\x16StartWorkflowExecution\x12>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponse"w\x82\xd3\xe4\x93\x02q"//namespaces/{namespace}/workflows/{workflow_id}:\x01*Z;"6/api/v1/namespaces/{namespace}/workflows/{workflow_id}:\x01*\x12\xa5\x02\n\x15\x45xecuteMultiOperation\x12=.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest\x1a>.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01"9/namespaces/{namespace}/workflows/execute-multi-operation:\x01*ZE"@/api/v1/namespaces/{namespace}/workflows/execute-multi-operation:\x01*\x12\xc1\x02\n\x1bGetWorkflowExecutionHistory\x12\x43.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest\x1a\x44.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse"\x96\x01\x82\xd3\xe4\x93\x02\x8f\x01\x12\x41/namespaces/{namespace}/workflows/{execution.workflow_id}/historyZJ\x12H/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history\x12\xe6\x02\n"GetWorkflowExecutionHistoryReverse\x12J.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest\x1aK.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse"\xa6\x01\x82\xd3\xe4\x93\x02\x9f\x01\x12I/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverseZR\x12P/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/history-reverse\x12\x98\x01\n\x15PollWorkflowTaskQueue\x12=.temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"\x00\x12\xad\x01\n\x1cRespondWorkflowTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse"\x00\x12\xa4\x01\n\x19RespondWorkflowTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse"\x00\x12\x98\x01\n\x15PollActivityTaskQueue\x12=.temporal.api.workflowservice.v1.PollActivityTaskQueueRequest\x1a>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse"\x00\x12\x9b\x02\n\x1bRecordActivityTaskHeartbeat\x12\x43.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest\x1a\x44.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse"q\x82\xd3\xe4\x93\x02k",/namespaces/{namespace}/activities/heartbeat:\x01*Z8"3/api/v1/namespaces/{namespace}/activities/heartbeat:\x01*\x12\xb3\x02\n\x1fRecordActivityTaskHeartbeatById\x12G.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest\x1aH.temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse"}\x82\xd3\xe4\x93\x02w"2/namespaces/{namespace}/activities/heartbeat-by-id:\x01*Z>"9/api/v1/namespaces/{namespace}/activities/heartbeat-by-id:\x01*\x12\x9c\x02\n\x1cRespondActivityTaskCompleted\x12\x44.temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest\x1a\x45.temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse"o\x82\xd3\xe4\x93\x02i"+/namespaces/{namespace}/activities/complete:\x01*Z7"2/api/v1/namespaces/{namespace}/activities/complete:\x01*\x12\xb4\x02\n RespondActivityTaskCompletedById\x12H.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest\x1aI.temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse"{\x82\xd3\xe4\x93\x02u"1/namespaces/{namespace}/activities/complete-by-id:\x01*Z="8/api/v1/namespaces/{namespace}/activities/complete-by-id:\x01*\x12\x8b\x02\n\x19RespondActivityTaskFailed\x12\x41.temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse"g\x82\xd3\xe4\x93\x02\x61"\'/namespaces/{namespace}/activities/fail:\x01*Z3"./api/v1/namespaces/{namespace}/activities/fail:\x01*\x12\xa3\x02\n\x1dRespondActivityTaskFailedById\x12\x45.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest\x1a\x46.temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse"s\x82\xd3\xe4\x93\x02m"-/namespaces/{namespace}/activities/fail-by-id:\x01*Z9"4/api/v1/namespaces/{namespace}/activities/fail-by-id:\x01*\x12\x95\x02\n\x1bRespondActivityTaskCanceled\x12\x43.temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest\x1a\x44.temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse"k\x82\xd3\xe4\x93\x02\x65")/namespaces/{namespace}/activities/cancel:\x01*Z5"0/api/v1/namespaces/{namespace}/activities/cancel:\x01*\x12\xad\x02\n\x1fRespondActivityTaskCanceledById\x12G.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest\x1aH.temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse"w\x82\xd3\xe4\x93\x02q"//namespaces/{namespace}/activities/cancel-by-id:\x01*Z;"6/api/v1/namespaces/{namespace}/activities/cancel-by-id:\x01*\x12\xe0\x02\n\x1eRequestCancelWorkflowExecution\x12\x46.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest\x1aG.temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse"\xac\x01\x82\xd3\xe4\x93\x02\xa5\x01"I/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/cancel:\x01*ZU"P/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/cancel:\x01*\x12\xe7\x02\n\x17SignalWorkflowExecution\x12?.temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse"\xc8\x01\x82\xd3\xe4\x93\x02\xc1\x01"W/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/signal/{signal_name}:\x01*Zc"^/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/signal/{signal_name}:\x01*\x12\xf2\x02\n SignalWithStartWorkflowExecution\x12H.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest\x1aI.temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01"O/namespaces/{namespace}/workflows/{workflow_id}/signal-with-start/{signal_name}:\x01*Z["V/api/v1/namespaces/{namespace}/workflows/{workflow_id}/signal-with-start/{signal_name}:\x01*\x12\xc6\x02\n\x16ResetWorkflowExecution\x12>.temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest\x1a?.temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse"\xaa\x01\x82\xd3\xe4\x93\x02\xa3\x01"H/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset:\x01*ZT"O/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/reset:\x01*\x12\xda\x02\n\x1aTerminateWorkflowExecution\x12\x42.temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest\x1a\x43.temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse"\xb2\x01\x82\xd3\xe4\x93\x02\xab\x01"L/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate:\x01*ZX"S/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/terminate:\x01*\x12\x9e\x01\n\x17\x44\x65leteWorkflowExecution\x12?.temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse"\x00\x12\xa7\x01\n\x1aListOpenWorkflowExecutions\x12\x42.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest\x1a\x43.temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse"\x00\x12\xad\x01\n\x1cListClosedWorkflowExecutions\x12\x44.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest\x1a\x45.temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse"\x00\x12\xf0\x01\n\x16ListWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse"U\x82\xd3\xe4\x93\x02O\x12!/namespaces/{namespace}/workflowsZ*\x12(/api/v1/namespaces/{namespace}/workflows\x12\x9a\x02\n\x1eListArchivedWorkflowExecutions\x12\x46.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest\x1aG.temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse"g\x82\xd3\xe4\x93\x02\x61\x12*/namespaces/{namespace}/archived-workflowsZ3\x12\x31/api/v1/namespaces/{namespace}/archived-workflows\x12\x9b\x01\n\x16ScanWorkflowExecutions\x12>.temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest\x1a?.temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse"\x00\x12\xfd\x01\n\x17\x43ountWorkflowExecutions\x12?.temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest\x1a@.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse"_\x82\xd3\xe4\x93\x02Y\x12&/namespaces/{namespace}/workflow-countZ/\x12-/api/v1/namespaces/{namespace}/workflow-count\x12\x92\x01\n\x13GetSearchAttributes\x12;.temporal.api.workflowservice.v1.GetSearchAttributesRequest\x1a<.temporal.api.workflowservice.v1.GetSearchAttributesResponse"\x00\x12\xa4\x01\n\x19RespondQueryTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse"\x00\x12\x95\x01\n\x14ResetStickyTaskQueue\x12<.temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest\x1a=.temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse"\x00\x12\x83\x01\n\x0eShutdownWorker\x12\x36.temporal.api.workflowservice.v1.ShutdownWorkerRequest\x1a\x37.temporal.api.workflowservice.v1.ShutdownWorkerResponse"\x00\x12\xbf\x02\n\rQueryWorkflow\x12\x35.temporal.api.workflowservice.v1.QueryWorkflowRequest\x1a\x36.temporal.api.workflowservice.v1.QueryWorkflowResponse"\xbe\x01\x82\xd3\xe4\x93\x02\xb7\x01"R/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}:\x01*Z^"Y/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}/query/{query.query_type}:\x01*\x12\xaa\x02\n\x19\x44\x65scribeWorkflowExecution\x12\x41.temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest\x1a\x42.temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse"\x85\x01\x82\xd3\xe4\x93\x02\x7f\x12\x39/namespaces/{namespace}/workflows/{execution.workflow_id}ZB\x12@/api/v1/namespaces/{namespace}/workflows/{execution.workflow_id}\x12\x89\x02\n\x11\x44\x65scribeTaskQueue\x12\x39.temporal.api.workflowservice.v1.DescribeTaskQueueRequest\x1a:.temporal.api.workflowservice.v1.DescribeTaskQueueResponse"}\x82\xd3\xe4\x93\x02w\x12\x35/namespaces/{namespace}/task-queues/{task_queue.name}Z>\x12/namespaces/{namespace}/schedules/{schedule_id}/matching-timesZG\x12\x45/api/v1/namespaces/{namespace}/schedules/{schedule_id}/matching-times\x12\xf4\x01\n\x0e\x44\x65leteSchedule\x12\x36.temporal.api.workflowservice.v1.DeleteScheduleRequest\x1a\x37.temporal.api.workflowservice.v1.DeleteScheduleResponse"q\x82\xd3\xe4\x93\x02k*//namespaces/{namespace}/schedules/{schedule_id}Z8*6/api/v1/namespaces/{namespace}/schedules/{schedule_id}\x12\xd5\x01\n\rListSchedules\x12\x35.temporal.api.workflowservice.v1.ListSchedulesRequest\x1a\x36.temporal.api.workflowservice.v1.ListSchedulesResponse"U\x82\xd3\xe4\x93\x02O\x12!/namespaces/{namespace}/schedulesZ*\x12(/api/v1/namespaces/{namespace}/schedules\x12\xb9\x01\n UpdateWorkerBuildIdCompatibility\x12H.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest\x1aI.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse"\x00\x12\xe1\x02\n\x1dGetWorkerBuildIdCompatibility\x12\x45.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest\x1a\x46.temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse"\xb0\x01\x82\xd3\xe4\x93\x02\xa9\x01\x12N/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibilityZW\x12U/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-build-id-compatibility\x12\xaa\x01\n\x1bUpdateWorkerVersioningRules\x12\x43.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest\x1a\x44.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse"\x00\x12\xc6\x02\n\x18GetWorkerVersioningRules\x12@.temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest\x1a\x41.temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse"\xa4\x01\x82\xd3\xe4\x93\x02\x9d\x01\x12H/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rulesZQ\x12O/api/v1/namespaces/{namespace}/task-queues/{task_queue}/worker-versioning-rules\x12\x97\x02\n\x19GetWorkerTaskReachability\x12\x41.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest\x1a\x42.temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse"s\x82\xd3\xe4\x93\x02m\x12\x30/namespaces/{namespace}/worker-task-reachabilityZ9\x12\x37/api/v1/namespaces/{namespace}/worker-task-reachability\x12\xc8\x02\n\x12\x44\x65scribeDeployment\x12:.temporal.api.workflowservice.v1.DescribeDeploymentRequest\x1a;.temporal.api.workflowservice.v1.DescribeDeploymentResponse"\xb8\x01\x82\xd3\xe4\x93\x02\xb1\x01\x12R/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}Z[\x12Y/api/v1/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}\x12\xc3\x02\n\x1f\x44\x65scribeWorkerDeploymentVersion\x12G.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionRequest\x1aH.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01\x12.temporal.api.workflowservice.v1.DeleteWorkerDeploymentRequest\x1a?.temporal.api.workflowservice.v1.DeleteWorkerDeploymentResponse"\x8c\x01\x82\xd3\xe4\x93\x02\x85\x01*.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse"g\x82\xd3\xe4\x93\x02\x61\x12*/namespaces/{namespace}/worker-deploymentsZ3\x12\x31/api/v1/namespaces/{namespace}/worker-deployments\x12\xfb\x02\n%UpdateWorkerDeploymentVersionMetadata\x12M.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest\x1aN.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataResponse"\xb2\x01\x82\xd3\xe4\x93\x02\xab\x01"L/namespaces/{namespace}/worker-deployment-versions/{version}/update-metadata:\x01*ZX"S/api/v1/namespaces/{namespace}/worker-deployment-versions/{version}/update-metadata:\x01*\x12\xf5\x02\n\x17UpdateWorkflowExecution\x12?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest\x1a@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse"\xd6\x01\x82\xd3\xe4\x93\x02\xcf\x01"^/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update/{request.input.name}:\x01*Zj"e/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update/{request.input.name}:\x01*\x12\xaa\x01\n\x1bPollWorkflowExecutionUpdate\x12\x43.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest\x1a\x44.temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse"\x00\x12\x8d\x02\n\x13StartBatchOperation\x12;.temporal.api.workflowservice.v1.StartBatchOperationRequest\x1a<.temporal.api.workflowservice.v1.StartBatchOperationResponse"{\x82\xd3\xe4\x93\x02u"1/namespaces/{namespace}/batch-operations/{job_id}:\x01*Z="8/api/v1/namespaces/{namespace}/batch-operations/{job_id}:\x01*\x12\x95\x02\n\x12StopBatchOperation\x12:.temporal.api.workflowservice.v1.StopBatchOperationRequest\x1a;.temporal.api.workflowservice.v1.StopBatchOperationResponse"\x85\x01\x82\xd3\xe4\x93\x02\x7f"6/namespaces/{namespace}/batch-operations/{job_id}/stop:\x01*ZB"=/api/v1/namespaces/{namespace}/batch-operations/{job_id}/stop:\x01*\x12\x90\x02\n\x16\x44\x65scribeBatchOperation\x12>.temporal.api.workflowservice.v1.DescribeBatchOperationRequest\x1a?.temporal.api.workflowservice.v1.DescribeBatchOperationResponse"u\x82\xd3\xe4\x93\x02o\x12\x31/namespaces/{namespace}/batch-operations/{job_id}Z:\x12\x38/api/v1/namespaces/{namespace}/batch-operations/{job_id}\x12\xf5\x01\n\x13ListBatchOperations\x12;.temporal.api.workflowservice.v1.ListBatchOperationsRequest\x1a<.temporal.api.workflowservice.v1.ListBatchOperationsResponse"c\x82\xd3\xe4\x93\x02]\x12(/namespaces/{namespace}/batch-operationsZ1\x12//api/v1/namespaces/{namespace}/batch-operations\x12\x8f\x01\n\x12PollNexusTaskQueue\x12:.temporal.api.workflowservice.v1.PollNexusTaskQueueRequest\x1a;.temporal.api.workflowservice.v1.PollNexusTaskQueueResponse"\x00\x12\xa4\x01\n\x19RespondNexusTaskCompleted\x12\x41.temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest\x1a\x42.temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse"\x00\x12\x9b\x01\n\x16RespondNexusTaskFailed\x12>.temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest\x1a?.temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse"\x00\x12\x93\x02\n\x15UpdateActivityOptions\x12=.temporal.api.workflowservice.v1.UpdateActivityOptionsRequest\x1a>.temporal.api.workflowservice.v1.UpdateActivityOptionsResponse"{\x82\xd3\xe4\x93\x02u"1/namespaces/{namespace}/activities/update-options:\x01*Z="8/api/v1/namespaces/{namespace}/activities/update-options:\x01*\x12\xf0\x02\n\x1eUpdateWorkflowExecutionOptions\x12\x46.temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsRequest\x1aG.temporal.api.workflowservice.v1.UpdateWorkflowExecutionOptionsResponse"\xbc\x01\x82\xd3\xe4\x93\x02\xb5\x01"Q/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update-options:\x01*Z]"X/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update-options:\x01*\x12\xe9\x01\n\rPauseActivity\x12\x35.temporal.api.workflowservice.v1.PauseActivityRequest\x1a\x36.temporal.api.workflowservice.v1.PauseActivityResponse"i\x82\xd3\xe4\x93\x02\x63"(/namespaces/{namespace}/activities/pause:\x01*Z4"//api/v1/namespaces/{namespace}/activities/pause:\x01*\x12\xf3\x01\n\x0fUnpauseActivity\x12\x37.temporal.api.workflowservice.v1.UnpauseActivityRequest\x1a\x38.temporal.api.workflowservice.v1.UnpauseActivityResponse"m\x82\xd3\xe4\x93\x02g"*/namespaces/{namespace}/activities/unpause:\x01*Z6"1/api/v1/namespaces/{namespace}/activities/unpause:\x01*\x12\xe9\x01\n\rResetActivity\x12\x35.temporal.api.workflowservice.v1.ResetActivityRequest\x1a\x36.temporal.api.workflowservice.v1.ResetActivityResponse"i\x82\xd3\xe4\x93\x02\x63"(/namespaces/{namespace}/activities/reset:\x01*Z4"//api/v1/namespaces/{namespace}/activities/reset:\x01*B\xb6\x01\n"io.temporal.api.workflowservice.v1B\x0cServiceProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' ) @@ -191,6 +191,64 @@ _WORKFLOWSERVICE.methods_by_name[ "GetWorkerTaskReachability" ]._serialized_options = b"\202\323\344\223\002m\0220/namespaces/{namespace}/worker-task-reachabilityZ9\0227/api/v1/namespaces/{namespace}/worker-task-reachability" + _WORKFLOWSERVICE.methods_by_name["DescribeDeployment"]._options = None + _WORKFLOWSERVICE.methods_by_name[ + "DescribeDeployment" + ]._serialized_options = b"\202\323\344\223\002\261\001\022R/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}Z[\022Y/api/v1/namespaces/{namespace}/deployments/{deployment.series_name}/{deployment.build_id}" + _WORKFLOWSERVICE.methods_by_name["DescribeWorkerDeploymentVersion"]._options = None + _WORKFLOWSERVICE.methods_by_name[ + "DescribeWorkerDeploymentVersion" + ]._serialized_options = b"\202\323\344\223\002\205\001\022/api/v1/namespaces/{namespace}/activities/update-options-by-id:\001*' - _WORKFLOWSERVICE.methods_by_name["PauseActivityById"]._options = None + "UpdateWorkflowExecutionOptions" + ]._serialized_options = b'\202\323\344\223\002\265\001"Q/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update-options:\001*Z]"X/api/v1/namespaces/{namespace}/workflows/{workflow_execution.workflow_id}/update-options:\001*' + _WORKFLOWSERVICE.methods_by_name["PauseActivity"]._options = None _WORKFLOWSERVICE.methods_by_name[ - "PauseActivityById" - ]._serialized_options = b'\202\323\344\223\002o"./namespaces/{namespace}/activities/pause-by-id:\001*Z:"5/api/v1/namespaces/{namespace}/activities/pause-by-id:\001*' - _WORKFLOWSERVICE.methods_by_name["UnpauseActivityById"]._options = None + "PauseActivity" + ]._serialized_options = b'\202\323\344\223\002c"(/namespaces/{namespace}/activities/pause:\001*Z4"//api/v1/namespaces/{namespace}/activities/pause:\001*' + _WORKFLOWSERVICE.methods_by_name["UnpauseActivity"]._options = None _WORKFLOWSERVICE.methods_by_name[ - "UnpauseActivityById" - ]._serialized_options = b'\202\323\344\223\002s"0/namespaces/{namespace}/activities/unpause-by-id:\001*Z<"7/api/v1/namespaces/{namespace}/activities/unpause-by-id:\001*' - _WORKFLOWSERVICE.methods_by_name["ResetActivityById"]._options = None + "UnpauseActivity" + ]._serialized_options = b'\202\323\344\223\002g"*/namespaces/{namespace}/activities/unpause:\001*Z6"1/api/v1/namespaces/{namespace}/activities/unpause:\001*' + _WORKFLOWSERVICE.methods_by_name["ResetActivity"]._options = None _WORKFLOWSERVICE.methods_by_name[ - "ResetActivityById" - ]._serialized_options = b'\202\323\344\223\002o"./namespaces/{namespace}/activities/reset-by-id:\001*Z:"5/api/v1/namespaces/{namespace}/activities/reset-by-id:\001*' + "ResetActivity" + ]._serialized_options = b'\202\323\344\223\002c"(/namespaces/{namespace}/activities/reset:\001*Z4"//api/v1/namespaces/{namespace}/activities/reset:\001*' _WORKFLOWSERVICE._serialized_start = 170 - _WORKFLOWSERVICE._serialized_end = 16961 + _WORKFLOWSERVICE._serialized_end = 21412 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflowservice/v1/service_pb2_grpc.py b/temporalio/api/workflowservice/v1/service_pb2_grpc.py index 310e7cb2f..ac1bf7e61 100644 --- a/temporalio/api/workflowservice/v1/service_pb2_grpc.py +++ b/temporalio/api/workflowservice/v1/service_pb2_grpc.py @@ -303,6 +303,71 @@ def __init__(self, channel): request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerTaskReachabilityRequest.SerializeToString, response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerTaskReachabilityResponse.FromString, ) + self.DescribeDeployment = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/DescribeDeployment", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeDeploymentRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeDeploymentResponse.FromString, + ) + self.DescribeWorkerDeploymentVersion = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/DescribeWorkerDeploymentVersion", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentVersionRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentVersionResponse.FromString, + ) + self.ListDeployments = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/ListDeployments", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListDeploymentsRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListDeploymentsResponse.FromString, + ) + self.GetDeploymentReachability = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/GetDeploymentReachability", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetDeploymentReachabilityRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetDeploymentReachabilityResponse.FromString, + ) + self.GetCurrentDeployment = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/GetCurrentDeployment", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetCurrentDeploymentRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetCurrentDeploymentResponse.FromString, + ) + self.SetCurrentDeployment = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/SetCurrentDeployment", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetCurrentDeploymentRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetCurrentDeploymentResponse.FromString, + ) + self.SetWorkerDeploymentCurrentVersion = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/SetWorkerDeploymentCurrentVersion", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentCurrentVersionRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentCurrentVersionResponse.FromString, + ) + self.DescribeWorkerDeployment = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/DescribeWorkerDeployment", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentResponse.FromString, + ) + self.DeleteWorkerDeployment = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/DeleteWorkerDeployment", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentResponse.FromString, + ) + self.DeleteWorkerDeploymentVersion = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/DeleteWorkerDeploymentVersion", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentVersionRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentVersionResponse.FromString, + ) + self.SetWorkerDeploymentRampingVersion = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/SetWorkerDeploymentRampingVersion", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentRampingVersionRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentRampingVersionResponse.FromString, + ) + self.ListWorkerDeployments = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/ListWorkerDeployments", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListWorkerDeploymentsRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListWorkerDeploymentsResponse.FromString, + ) + self.UpdateWorkerDeploymentVersionMetadata = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkerDeploymentVersionMetadata", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerDeploymentVersionMetadataRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerDeploymentVersionMetadataResponse.FromString, + ) self.UpdateWorkflowExecution = channel.unary_unary( "/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkflowExecution", request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkflowExecutionRequest.SerializeToString, @@ -348,25 +413,30 @@ def __init__(self, channel): request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedRequest.SerializeToString, response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedResponse.FromString, ) - self.UpdateActivityOptionsById = channel.unary_unary( - "/temporal.api.workflowservice.v1.WorkflowService/UpdateActivityOptionsById", - request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsByIdRequest.SerializeToString, - response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsByIdResponse.FromString, + self.UpdateActivityOptions = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/UpdateActivityOptions", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsResponse.FromString, + ) + self.UpdateWorkflowExecutionOptions = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkflowExecutionOptions", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkflowExecutionOptionsRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkflowExecutionOptionsResponse.FromString, ) - self.PauseActivityById = channel.unary_unary( - "/temporal.api.workflowservice.v1.WorkflowService/PauseActivityById", - request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityByIdRequest.SerializeToString, - response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityByIdResponse.FromString, + self.PauseActivity = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/PauseActivity", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityResponse.FromString, ) - self.UnpauseActivityById = channel.unary_unary( - "/temporal.api.workflowservice.v1.WorkflowService/UnpauseActivityById", - request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityByIdRequest.SerializeToString, - response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityByIdResponse.FromString, + self.UnpauseActivity = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/UnpauseActivity", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityResponse.FromString, ) - self.ResetActivityById = channel.unary_unary( - "/temporal.api.workflowservice.v1.WorkflowService/ResetActivityById", - request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityByIdRequest.SerializeToString, - response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityByIdResponse.FromString, + self.ResetActivity = channel.unary_unary( + "/temporal.api.workflowservice.v1.WorkflowService/ResetActivity", + request_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityRequest.SerializeToString, + response_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityResponse.FromString, ) @@ -739,6 +809,7 @@ def ListArchivedWorkflowExecutions(self, request, context): def ScanWorkflowExecutions(self, request, context): """ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific namespace without order. + Deprecated: Replaced with `ListWorkflowExecutions`. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ @@ -988,6 +1059,130 @@ def GetWorkerTaskReachability(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def DescribeDeployment(self, request, context): + """Describes a worker deployment. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `DescribeWorkerDeploymentVersion`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def DescribeWorkerDeploymentVersion(self, request, context): + """Describes a worker deployment version. + Experimental. This API might significantly change or be removed in a future release. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def ListDeployments(self, request, context): + """Lists worker deployments in the namespace. Optionally can filter based on deployment series + name. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `ListWorkerDeployments`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetDeploymentReachability(self, request, context): + """Returns the reachability level of a worker deployment to help users decide when it is time + to decommission a deployment. Reachability level is calculated based on the deployment's + `status` and existing workflows that depend on the given deployment for their execution. + Calculating reachability is relatively expensive. Therefore, server might return a recently + cached value. In such a case, the `last_update_time` will inform you about the actual + reachability calculation time. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `DrainageInfo` returned by `DescribeWorkerDeploymentVersion`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetCurrentDeployment(self, request, context): + """Returns the current deployment (and its info) for a given deployment series. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced by `current_version` returned by `DescribeWorkerDeployment`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def SetCurrentDeployment(self, request, context): + """Sets a deployment as the current deployment for its deployment series. Can optionally update + the metadata of the deployment as well. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced by `SetWorkerDeploymentCurrentVersion`. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def SetWorkerDeploymentCurrentVersion(self, request, context): + """Set/unset the Current Version of a Worker Deployment. Automatically unsets the Ramping + Version if it is the Version being set as Current. + Experimental. This API might significantly change or be removed in a future release. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def DescribeWorkerDeployment(self, request, context): + """Describes a Worker Deployment. + Experimental. This API might significantly change or be removed in a future release. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def DeleteWorkerDeployment(self, request, context): + """Deletes records of (an old) Deployment. A deployment can only be deleted if + it has no Version in it. + Experimental. This API might significantly change or be removed in a future release. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def DeleteWorkerDeploymentVersion(self, request, context): + """Used for manual deletion of Versions. User can delete a Version only when all the + following conditions are met: + - It is not the Current or Ramping Version of its Deployment. + - It has no active pollers (none of the task queues in the Version have pollers) + - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition + can be skipped by passing `skip-drainage=true`. + Experimental. This API might significantly change or be removed in a future release. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def SetWorkerDeploymentRampingVersion(self, request, context): + """Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. Can be used for + gradual ramp to unversioned workers too. + Experimental. This API might significantly change or be removed in a future release. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def ListWorkerDeployments(self, request, context): + """Lists all Worker Deployments that are tracked in the Namespace. + Experimental. This API might significantly change or be removed in a future release. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def UpdateWorkerDeploymentVersionMetadata(self, request, context): + """Updates the user-given metadata attached to a Worker Deployment Version. + Experimental. This API might significantly change or be removed in a future release. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def UpdateWorkflowExecution(self, request, context): """Invokes the specified Update function on user Workflow code.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -1058,18 +1253,23 @@ def RespondNexusTaskFailed(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def UpdateActivityOptionsById(self, request, context): - """UpdateActivityOptionsById is called by the client to update the options of an activity - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + def UpdateActivityOptions(self, request, context): + """UpdateActivityOptions is called by the client to update the options of an activity by its ID or type. + If there are multiple pending activities of the provided type - all of them will be updated. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def PauseActivityById(self, request, context): - """PauseActivityById pauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. + def UpdateWorkflowExecutionOptions(self, request, context): + """UpdateWorkflowExecutionOptions partially updates the WorkflowExecutionOptions of an existing workflow execution.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def PauseActivity(self, request, context): + """PauseActivity pauses the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be paused Pausing an activity means: - If the activity is currently waiting for a retry or is running and subsequently fails, @@ -1082,45 +1282,50 @@ def PauseActivityById(self, request, context): For long-running activities: - activities in paused state will send a cancellation with "activity_paused" set to 'true' in response to 'RecordActivityTaskHeartbeat'. - The activity should respond to the cancellation accordingly. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + + Returns a `NotFound` error if there is no pending activity with the provided ID or type """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def UnpauseActivityById(self, request, context): - """UnpauseActivityById unpauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. - There are two 'modes' of unpausing an activity: - 'resume' - If the activity is paused, it will be resumed and scheduled for execution. - * If the activity is currently running Unpause with 'resume' has no effect. - * if 'no_wait' flag is set and the activity is waiting, the activity will be scheduled immediately. - 'reset' - If the activity is paused, it will be reset to its initial state and (depending on parameters) scheduled for execution. - * If the activity is currently running, Unpause with 'reset' will reset the number of attempts. - * if 'no_wait' flag is set, the activity will be scheduled immediately. - * if 'reset_heartbeats' flag is set, the activity heartbeat timer and heartbeats will be reset. - If the activity is in waiting for retry and past it retry timeout, it will be scheduled immediately. + def UnpauseActivity(self, request, context): + """UnpauseActivity unpauses the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be unpaused. + + If activity is not paused, this call will have no effect. + If the activity was paused while waiting for retry, it will be scheduled immediately (* see 'jitter' flag). Once the activity is unpaused, all timeout timers will be regenerated. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + + Flags: + 'jitter': the activity will be scheduled at a random time within the jitter duration. + 'reset_attempts': the number of attempts will be reset. + 'reset_heartbeat': the activity heartbeat timer and heartbeats will be reset. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") - def ResetActivityById(self, request, context): - """ResetActivityById unpauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. + def ResetActivity(self, request, context): + """ResetActivity resets the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be reset. + Resetting an activity means: * number of attempts will be reset to 0. - * activity timeouts will be resetted. - If the activity currently running: - * if 'no_wait' flag is provided, a new instance of the activity will be scheduled immediately. - * if 'no_wait' flag is not provided, a new instance of the activity will be scheduled after current instance completes if needed. - If 'reset_heartbeats' flag is set, the activity heartbeat timer and heartbeats will be reset. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + * activity timeouts will be reset. + * if the activity is waiting for retry, and it is not paused or 'keep_paused' is not provided: + it will be scheduled immediately (* see 'jitter' flag), + + Flags: + + 'jitter': the activity will be scheduled at a random time within the jitter duration. + If the activity currently paused it will be unpaused, unless 'keep_paused' flag is provided. + 'reset_heartbeats': the activity heartbeat timer and heartbeats will be reset. + 'keep_paused': if the activity is paused, it will remain paused. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") @@ -1404,6 +1609,71 @@ def add_WorkflowServiceServicer_to_server(servicer, server): request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerTaskReachabilityRequest.FromString, response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetWorkerTaskReachabilityResponse.SerializeToString, ), + "DescribeDeployment": grpc.unary_unary_rpc_method_handler( + servicer.DescribeDeployment, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeDeploymentRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeDeploymentResponse.SerializeToString, + ), + "DescribeWorkerDeploymentVersion": grpc.unary_unary_rpc_method_handler( + servicer.DescribeWorkerDeploymentVersion, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentVersionRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentVersionResponse.SerializeToString, + ), + "ListDeployments": grpc.unary_unary_rpc_method_handler( + servicer.ListDeployments, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListDeploymentsRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListDeploymentsResponse.SerializeToString, + ), + "GetDeploymentReachability": grpc.unary_unary_rpc_method_handler( + servicer.GetDeploymentReachability, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetDeploymentReachabilityRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetDeploymentReachabilityResponse.SerializeToString, + ), + "GetCurrentDeployment": grpc.unary_unary_rpc_method_handler( + servicer.GetCurrentDeployment, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetCurrentDeploymentRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetCurrentDeploymentResponse.SerializeToString, + ), + "SetCurrentDeployment": grpc.unary_unary_rpc_method_handler( + servicer.SetCurrentDeployment, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetCurrentDeploymentRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetCurrentDeploymentResponse.SerializeToString, + ), + "SetWorkerDeploymentCurrentVersion": grpc.unary_unary_rpc_method_handler( + servicer.SetWorkerDeploymentCurrentVersion, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentCurrentVersionRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentCurrentVersionResponse.SerializeToString, + ), + "DescribeWorkerDeployment": grpc.unary_unary_rpc_method_handler( + servicer.DescribeWorkerDeployment, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentResponse.SerializeToString, + ), + "DeleteWorkerDeployment": grpc.unary_unary_rpc_method_handler( + servicer.DeleteWorkerDeployment, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentResponse.SerializeToString, + ), + "DeleteWorkerDeploymentVersion": grpc.unary_unary_rpc_method_handler( + servicer.DeleteWorkerDeploymentVersion, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentVersionRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentVersionResponse.SerializeToString, + ), + "SetWorkerDeploymentRampingVersion": grpc.unary_unary_rpc_method_handler( + servicer.SetWorkerDeploymentRampingVersion, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentRampingVersionRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentRampingVersionResponse.SerializeToString, + ), + "ListWorkerDeployments": grpc.unary_unary_rpc_method_handler( + servicer.ListWorkerDeployments, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListWorkerDeploymentsRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListWorkerDeploymentsResponse.SerializeToString, + ), + "UpdateWorkerDeploymentVersionMetadata": grpc.unary_unary_rpc_method_handler( + servicer.UpdateWorkerDeploymentVersionMetadata, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerDeploymentVersionMetadataRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerDeploymentVersionMetadataResponse.SerializeToString, + ), "UpdateWorkflowExecution": grpc.unary_unary_rpc_method_handler( servicer.UpdateWorkflowExecution, request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkflowExecutionRequest.FromString, @@ -1449,25 +1719,30 @@ def add_WorkflowServiceServicer_to_server(servicer, server): request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedRequest.FromString, response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.RespondNexusTaskFailedResponse.SerializeToString, ), - "UpdateActivityOptionsById": grpc.unary_unary_rpc_method_handler( - servicer.UpdateActivityOptionsById, - request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsByIdRequest.FromString, - response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsByIdResponse.SerializeToString, + "UpdateActivityOptions": grpc.unary_unary_rpc_method_handler( + servicer.UpdateActivityOptions, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsResponse.SerializeToString, + ), + "UpdateWorkflowExecutionOptions": grpc.unary_unary_rpc_method_handler( + servicer.UpdateWorkflowExecutionOptions, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkflowExecutionOptionsRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkflowExecutionOptionsResponse.SerializeToString, ), - "PauseActivityById": grpc.unary_unary_rpc_method_handler( - servicer.PauseActivityById, - request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityByIdRequest.FromString, - response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityByIdResponse.SerializeToString, + "PauseActivity": grpc.unary_unary_rpc_method_handler( + servicer.PauseActivity, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityResponse.SerializeToString, ), - "UnpauseActivityById": grpc.unary_unary_rpc_method_handler( - servicer.UnpauseActivityById, - request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityByIdRequest.FromString, - response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityByIdResponse.SerializeToString, + "UnpauseActivity": grpc.unary_unary_rpc_method_handler( + servicer.UnpauseActivity, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityResponse.SerializeToString, ), - "ResetActivityById": grpc.unary_unary_rpc_method_handler( - servicer.ResetActivityById, - request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityByIdRequest.FromString, - response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityByIdResponse.SerializeToString, + "ResetActivity": grpc.unary_unary_rpc_method_handler( + servicer.ResetActivity, + request_deserializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityRequest.FromString, + response_serializer=temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -3086,6 +3361,383 @@ def GetWorkerTaskReachability( metadata, ) + @staticmethod + def DescribeDeployment( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/DescribeDeployment", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeDeploymentRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeDeploymentResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DescribeWorkerDeploymentVersion( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/DescribeWorkerDeploymentVersion", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentVersionRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentVersionResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListDeployments( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/ListDeployments", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListDeploymentsRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListDeploymentsResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetDeploymentReachability( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/GetDeploymentReachability", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetDeploymentReachabilityRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetDeploymentReachabilityResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def GetCurrentDeployment( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/GetCurrentDeployment", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetCurrentDeploymentRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.GetCurrentDeploymentResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def SetCurrentDeployment( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/SetCurrentDeployment", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetCurrentDeploymentRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetCurrentDeploymentResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def SetWorkerDeploymentCurrentVersion( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/SetWorkerDeploymentCurrentVersion", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentCurrentVersionRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentCurrentVersionResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DescribeWorkerDeployment( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/DescribeWorkerDeployment", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DescribeWorkerDeploymentResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteWorkerDeployment( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/DeleteWorkerDeployment", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def DeleteWorkerDeploymentVersion( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/DeleteWorkerDeploymentVersion", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentVersionRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.DeleteWorkerDeploymentVersionResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def SetWorkerDeploymentRampingVersion( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/SetWorkerDeploymentRampingVersion", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentRampingVersionRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.SetWorkerDeploymentRampingVersionResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def ListWorkerDeployments( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/ListWorkerDeployments", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListWorkerDeploymentsRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ListWorkerDeploymentsResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateWorkerDeploymentVersionMetadata( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkerDeploymentVersionMetadata", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerDeploymentVersionMetadataRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkerDeploymentVersionMetadataResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + @staticmethod def UpdateWorkflowExecution( request, @@ -3348,7 +4000,36 @@ def RespondNexusTaskFailed( ) @staticmethod - def UpdateActivityOptionsById( + def UpdateActivityOptions( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/temporal.api.workflowservice.v1.WorkflowService/UpdateActivityOptions", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + ) + + @staticmethod + def UpdateWorkflowExecutionOptions( request, target, options=(), @@ -3363,9 +4044,9 @@ def UpdateActivityOptionsById( return grpc.experimental.unary_unary( request, target, - "/temporal.api.workflowservice.v1.WorkflowService/UpdateActivityOptionsById", - temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsByIdRequest.SerializeToString, - temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateActivityOptionsByIdResponse.FromString, + "/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkflowExecutionOptions", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkflowExecutionOptionsRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UpdateWorkflowExecutionOptionsResponse.FromString, options, channel_credentials, insecure, @@ -3377,7 +4058,7 @@ def UpdateActivityOptionsById( ) @staticmethod - def PauseActivityById( + def PauseActivity( request, target, options=(), @@ -3392,9 +4073,9 @@ def PauseActivityById( return grpc.experimental.unary_unary( request, target, - "/temporal.api.workflowservice.v1.WorkflowService/PauseActivityById", - temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityByIdRequest.SerializeToString, - temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityByIdResponse.FromString, + "/temporal.api.workflowservice.v1.WorkflowService/PauseActivity", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.PauseActivityResponse.FromString, options, channel_credentials, insecure, @@ -3406,7 +4087,7 @@ def PauseActivityById( ) @staticmethod - def UnpauseActivityById( + def UnpauseActivity( request, target, options=(), @@ -3421,9 +4102,9 @@ def UnpauseActivityById( return grpc.experimental.unary_unary( request, target, - "/temporal.api.workflowservice.v1.WorkflowService/UnpauseActivityById", - temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityByIdRequest.SerializeToString, - temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityByIdResponse.FromString, + "/temporal.api.workflowservice.v1.WorkflowService/UnpauseActivity", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.UnpauseActivityResponse.FromString, options, channel_credentials, insecure, @@ -3435,7 +4116,7 @@ def UnpauseActivityById( ) @staticmethod - def ResetActivityById( + def ResetActivity( request, target, options=(), @@ -3450,9 +4131,9 @@ def ResetActivityById( return grpc.experimental.unary_unary( request, target, - "/temporal.api.workflowservice.v1.WorkflowService/ResetActivityById", - temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityByIdRequest.SerializeToString, - temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityByIdResponse.FromString, + "/temporal.api.workflowservice.v1.WorkflowService/ResetActivity", + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityRequest.SerializeToString, + temporal_dot_api_dot_workflowservice_dot_v1_dot_request__response__pb2.ResetActivityResponse.FromString, options, channel_credentials, insecure, diff --git a/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi b/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi index a0d991a69..db03ab2f7 100644 --- a/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi @@ -372,6 +372,7 @@ class WorkflowServiceStub: ] """ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific namespace without order. + Deprecated: Replaced with `ListWorkflowExecutions`. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ @@ -594,6 +595,117 @@ class WorkflowServiceStub: Open source users can adjust this limit by setting the server's dynamic config value for `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. """ + DescribeDeployment: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentResponse, + ] + """Describes a worker deployment. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `DescribeWorkerDeploymentVersion`. + """ + DescribeWorkerDeploymentVersion: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionResponse, + ] + """Describes a worker deployment version. + Experimental. This API might significantly change or be removed in a future release. + """ + ListDeployments: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsResponse, + ] + """Lists worker deployments in the namespace. Optionally can filter based on deployment series + name. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `ListWorkerDeployments`. + """ + GetDeploymentReachability: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityResponse, + ] + """Returns the reachability level of a worker deployment to help users decide when it is time + to decommission a deployment. Reachability level is calculated based on the deployment's + `status` and existing workflows that depend on the given deployment for their execution. + Calculating reachability is relatively expensive. Therefore, server might return a recently + cached value. In such a case, the `last_update_time` will inform you about the actual + reachability calculation time. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `DrainageInfo` returned by `DescribeWorkerDeploymentVersion`. + """ + GetCurrentDeployment: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentResponse, + ] + """Returns the current deployment (and its info) for a given deployment series. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced by `current_version` returned by `DescribeWorkerDeployment`. + """ + SetCurrentDeployment: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentResponse, + ] + """Sets a deployment as the current deployment for its deployment series. Can optionally update + the metadata of the deployment as well. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced by `SetWorkerDeploymentCurrentVersion`. + """ + SetWorkerDeploymentCurrentVersion: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionResponse, + ] + """Set/unset the Current Version of a Worker Deployment. Automatically unsets the Ramping + Version if it is the Version being set as Current. + Experimental. This API might significantly change or be removed in a future release. + """ + DescribeWorkerDeployment: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentResponse, + ] + """Describes a Worker Deployment. + Experimental. This API might significantly change or be removed in a future release. + """ + DeleteWorkerDeployment: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentResponse, + ] + """Deletes records of (an old) Deployment. A deployment can only be deleted if + it has no Version in it. + Experimental. This API might significantly change or be removed in a future release. + """ + DeleteWorkerDeploymentVersion: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionResponse, + ] + """Used for manual deletion of Versions. User can delete a Version only when all the + following conditions are met: + - It is not the Current or Ramping Version of its Deployment. + - It has no active pollers (none of the task queues in the Version have pollers) + - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition + can be skipped by passing `skip-drainage=true`. + Experimental. This API might significantly change or be removed in a future release. + """ + SetWorkerDeploymentRampingVersion: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionRequest, + temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionResponse, + ] + """Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. Can be used for + gradual ramp to unversioned workers too. + Experimental. This API might significantly change or be removed in a future release. + """ + ListWorkerDeployments: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsResponse, + ] + """Lists all Worker Deployments that are tracked in the Namespace. + Experimental. This API might significantly change or be removed in a future release. + """ + UpdateWorkerDeploymentVersionMetadata: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataResponse, + ] + """Updates the user-given metadata attached to a Worker Deployment Version. + Experimental. This API might significantly change or be removed in a future release. + """ UpdateWorkflowExecution: grpc.UnaryUnaryMultiCallable[ temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionRequest, temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionResponse, @@ -655,20 +767,24 @@ class WorkflowServiceStub: (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ - UpdateActivityOptionsById: grpc.UnaryUnaryMultiCallable[ - temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsByIdRequest, - temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsByIdResponse, + UpdateActivityOptions: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsResponse, ] - """UpdateActivityOptionsById is called by the client to update the options of an activity - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + """UpdateActivityOptions is called by the client to update the options of an activity by its ID or type. + If there are multiple pending activities of the provided type - all of them will be updated. """ - PauseActivityById: grpc.UnaryUnaryMultiCallable[ - temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityByIdRequest, - temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityByIdResponse, + UpdateWorkflowExecutionOptions: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsResponse, + ] + """UpdateWorkflowExecutionOptions partially updates the WorkflowExecutionOptions of an existing workflow execution.""" + PauseActivity: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityResponse, ] - """PauseActivityById pauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. + """PauseActivity pauses the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be paused Pausing an activity means: - If the activity is currently waiting for a retry or is running and subsequently fails, @@ -681,43 +797,48 @@ class WorkflowServiceStub: For long-running activities: - activities in paused state will send a cancellation with "activity_paused" set to 'true' in response to 'RecordActivityTaskHeartbeat'. - The activity should respond to the cancellation accordingly. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + + Returns a `NotFound` error if there is no pending activity with the provided ID or type """ - UnpauseActivityById: grpc.UnaryUnaryMultiCallable[ - temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityByIdRequest, - temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityByIdResponse, - ] - """UnpauseActivityById unpauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. - There are two 'modes' of unpausing an activity: - 'resume' - If the activity is paused, it will be resumed and scheduled for execution. - * If the activity is currently running Unpause with 'resume' has no effect. - * if 'no_wait' flag is set and the activity is waiting, the activity will be scheduled immediately. - 'reset' - If the activity is paused, it will be reset to its initial state and (depending on parameters) scheduled for execution. - * If the activity is currently running, Unpause with 'reset' will reset the number of attempts. - * if 'no_wait' flag is set, the activity will be scheduled immediately. - * if 'reset_heartbeats' flag is set, the activity heartbeat timer and heartbeats will be reset. - If the activity is in waiting for retry and past it retry timeout, it will be scheduled immediately. + UnpauseActivity: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityResponse, + ] + """UnpauseActivity unpauses the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be unpaused. + + If activity is not paused, this call will have no effect. + If the activity was paused while waiting for retry, it will be scheduled immediately (* see 'jitter' flag). Once the activity is unpaused, all timeout timers will be regenerated. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + + Flags: + 'jitter': the activity will be scheduled at a random time within the jitter duration. + 'reset_attempts': the number of attempts will be reset. + 'reset_heartbeat': the activity heartbeat timer and heartbeats will be reset. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type """ - ResetActivityById: grpc.UnaryUnaryMultiCallable[ - temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityByIdRequest, - temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityByIdResponse, + ResetActivity: grpc.UnaryUnaryMultiCallable[ + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityRequest, + temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityResponse, ] - """ResetActivityById unpauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. + """ResetActivity resets the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be reset. + Resetting an activity means: * number of attempts will be reset to 0. - * activity timeouts will be resetted. - If the activity currently running: - * if 'no_wait' flag is provided, a new instance of the activity will be scheduled immediately. - * if 'no_wait' flag is not provided, a new instance of the activity will be scheduled after current instance completes if needed. - If 'reset_heartbeats' flag is set, the activity heartbeat timer and heartbeats will be reset. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + * activity timeouts will be reset. + * if the activity is waiting for retry, and it is not paused or 'keep_paused' is not provided: + it will be scheduled immediately (* see 'jitter' flag), + + Flags: + + 'jitter': the activity will be scheduled at a random time within the jitter duration. + If the activity currently paused it will be unpaused, unless 'keep_paused' flag is provided. + 'reset_heartbeats': the activity heartbeat timer and heartbeats will be reset. + 'keep_paused': if the activity is paused, it will remain paused. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type. """ class WorkflowServiceServicer(metaclass=abc.ABCMeta): @@ -1129,6 +1250,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): ) -> temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsResponse: """ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific namespace without order. + Deprecated: Replaced with `ListWorkflowExecutions`. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --) """ @@ -1402,6 +1524,143 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store. """ @abc.abstractmethod + def DescribeDeployment( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeDeploymentResponse: + """Describes a worker deployment. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `DescribeWorkerDeploymentVersion`. + """ + @abc.abstractmethod + def DescribeWorkerDeploymentVersion( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentVersionResponse: + """Describes a worker deployment version. + Experimental. This API might significantly change or be removed in a future release. + """ + @abc.abstractmethod + def ListDeployments( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListDeploymentsResponse: + """Lists worker deployments in the namespace. Optionally can filter based on deployment series + name. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `ListWorkerDeployments`. + """ + @abc.abstractmethod + def GetDeploymentReachability( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetDeploymentReachabilityResponse: + """Returns the reachability level of a worker deployment to help users decide when it is time + to decommission a deployment. Reachability level is calculated based on the deployment's + `status` and existing workflows that depend on the given deployment for their execution. + Calculating reachability is relatively expensive. Therefore, server might return a recently + cached value. In such a case, the `last_update_time` will inform you about the actual + reachability calculation time. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced with `DrainageInfo` returned by `DescribeWorkerDeploymentVersion`. + """ + @abc.abstractmethod + def GetCurrentDeployment( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetCurrentDeploymentResponse: + """Returns the current deployment (and its info) for a given deployment series. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced by `current_version` returned by `DescribeWorkerDeployment`. + """ + @abc.abstractmethod + def SetCurrentDeployment( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.SetCurrentDeploymentResponse: + """Sets a deployment as the current deployment for its deployment series. Can optionally update + the metadata of the deployment as well. + Experimental. This API might significantly change or be removed in a future release. + Deprecated. Replaced by `SetWorkerDeploymentCurrentVersion`. + """ + @abc.abstractmethod + def SetWorkerDeploymentCurrentVersion( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentCurrentVersionResponse: + """Set/unset the Current Version of a Worker Deployment. Automatically unsets the Ramping + Version if it is the Version being set as Current. + Experimental. This API might significantly change or be removed in a future release. + """ + @abc.abstractmethod + def DescribeWorkerDeployment( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkerDeploymentResponse: + """Describes a Worker Deployment. + Experimental. This API might significantly change or be removed in a future release. + """ + @abc.abstractmethod + def DeleteWorkerDeployment( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentResponse: + """Deletes records of (an old) Deployment. A deployment can only be deleted if + it has no Version in it. + Experimental. This API might significantly change or be removed in a future release. + """ + @abc.abstractmethod + def DeleteWorkerDeploymentVersion( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkerDeploymentVersionResponse: + """Used for manual deletion of Versions. User can delete a Version only when all the + following conditions are met: + - It is not the Current or Ramping Version of its Deployment. + - It has no active pollers (none of the task queues in the Version have pollers) + - It is not draining (see WorkerDeploymentVersionInfo.drainage_info). This condition + can be skipped by passing `skip-drainage=true`. + Experimental. This API might significantly change or be removed in a future release. + """ + @abc.abstractmethod + def SetWorkerDeploymentRampingVersion( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.SetWorkerDeploymentRampingVersionResponse: + """Set/unset the Ramping Version of a Worker Deployment and its ramp percentage. Can be used for + gradual ramp to unversioned workers too. + Experimental. This API might significantly change or be removed in a future release. + """ + @abc.abstractmethod + def ListWorkerDeployments( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListWorkerDeploymentsResponse: + """Lists all Worker Deployments that are tracked in the Namespace. + Experimental. This API might significantly change or be removed in a future release. + """ + @abc.abstractmethod + def UpdateWorkerDeploymentVersionMetadata( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerDeploymentVersionMetadataResponse: + """Updates the user-given metadata attached to a Worker Deployment Version. + Experimental. This API might significantly change or be removed in a future release. + """ + @abc.abstractmethod def UpdateWorkflowExecution( self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionRequest, @@ -1481,25 +1740,29 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): aip.dev/not-precedent: We do not expose worker API to HTTP. --) """ @abc.abstractmethod - def UpdateActivityOptionsById( + def UpdateActivityOptions( self, - request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsByIdRequest, + request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsRequest, context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsByIdResponse: - """UpdateActivityOptionsById is called by the client to update the options of an activity - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateActivityOptionsResponse: + """UpdateActivityOptions is called by the client to update the options of an activity by its ID or type. + If there are multiple pending activities of the provided type - all of them will be updated. """ @abc.abstractmethod - def PauseActivityById( + def UpdateWorkflowExecutionOptions( self, - request: temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityByIdRequest, + request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityByIdResponse - ): - """PauseActivityById pauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. + ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionOptionsResponse: + """UpdateWorkflowExecutionOptions partially updates the WorkflowExecutionOptions of an existing workflow execution.""" + @abc.abstractmethod + def PauseActivity( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.PauseActivityResponse: + """PauseActivity pauses the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be paused Pausing an activity means: - If the activity is currently waiting for a retry or is running and subsequently fails, @@ -1512,49 +1775,52 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): For long-running activities: - activities in paused state will send a cancellation with "activity_paused" set to 'true' in response to 'RecordActivityTaskHeartbeat'. - The activity should respond to the cancellation accordingly. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + + Returns a `NotFound` error if there is no pending activity with the provided ID or type """ @abc.abstractmethod - def UnpauseActivityById( - self, - request: temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityByIdRequest, - context: grpc.ServicerContext, - ) -> temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityByIdResponse: - """UnpauseActivityById unpauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. - There are two 'modes' of unpausing an activity: - 'resume' - If the activity is paused, it will be resumed and scheduled for execution. - * If the activity is currently running Unpause with 'resume' has no effect. - * if 'no_wait' flag is set and the activity is waiting, the activity will be scheduled immediately. - 'reset' - If the activity is paused, it will be reset to its initial state and (depending on parameters) scheduled for execution. - * If the activity is currently running, Unpause with 'reset' will reset the number of attempts. - * if 'no_wait' flag is set, the activity will be scheduled immediately. - * if 'reset_heartbeats' flag is set, the activity heartbeat timer and heartbeats will be reset. - If the activity is in waiting for retry and past it retry timeout, it will be scheduled immediately. + def UnpauseActivity( + self, + request: temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityRequest, + context: grpc.ServicerContext, + ) -> temporalio.api.workflowservice.v1.request_response_pb2.UnpauseActivityResponse: + """UnpauseActivity unpauses the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be unpaused. + + If activity is not paused, this call will have no effect. + If the activity was paused while waiting for retry, it will be scheduled immediately (* see 'jitter' flag). Once the activity is unpaused, all timeout timers will be regenerated. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + + Flags: + 'jitter': the activity will be scheduled at a random time within the jitter duration. + 'reset_attempts': the number of attempts will be reset. + 'reset_heartbeat': the activity heartbeat timer and heartbeats will be reset. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type """ @abc.abstractmethod - def ResetActivityById( + def ResetActivity( self, - request: temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityByIdRequest, + request: temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityByIdResponse - ): - """ResetActivityById unpauses the execution of an activity specified by its ID. - Returns a `NotFound` error if there is no pending activity with the provided ID. + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ResetActivityResponse: + """ResetActivity resets the execution of an activity specified by its ID or type. + If there are multiple pending activities of the provided type - all of them will be reset. + Resetting an activity means: * number of attempts will be reset to 0. - * activity timeouts will be resetted. - If the activity currently running: - * if 'no_wait' flag is provided, a new instance of the activity will be scheduled immediately. - * if 'no_wait' flag is not provided, a new instance of the activity will be scheduled after current instance completes if needed. - If 'reset_heartbeats' flag is set, the activity heartbeat timer and heartbeats will be reset. - (-- api-linter: core::0136::prepositions=disabled - aip.dev/not-precedent: "By" is used to indicate request type. --) + * activity timeouts will be reset. + * if the activity is waiting for retry, and it is not paused or 'keep_paused' is not provided: + it will be scheduled immediately (* see 'jitter' flag), + + Flags: + + 'jitter': the activity will be scheduled at a random time within the jitter duration. + If the activity currently paused it will be unpaused, unless 'keep_paused' flag is provided. + 'reset_heartbeats': the activity heartbeat timer and heartbeats will be reset. + 'keep_paused': if the activity is paused, it will remain paused. + + Returns a `NotFound` error if there is no pending activity with the provided ID or type. """ def add_WorkflowServiceServicer_to_server( diff --git a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py index 6262030fe..ee80cd023 100644 --- a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py +++ b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py @@ -44,7 +44,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n?temporal/sdk/core/workflow_activation/workflow_activation.proto\x12\x1b\x63oresdk.workflow_activation\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a%temporal/sdk/core/common/common.proto\x1a#temporal/sdk/core/nexus/nexus.proto"\xc7\x02\n\x12WorkflowActivation\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cis_replaying\x18\x03 \x01(\x08\x12\x16\n\x0ehistory_length\x18\x04 \x01(\r\x12@\n\x04jobs\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.WorkflowActivationJob\x12 \n\x18\x61vailable_internal_flags\x18\x06 \x03(\r\x12\x1a\n\x12history_size_bytes\x18\x07 \x01(\x04\x12!\n\x19\x63ontinue_as_new_suggested\x18\x08 \x01(\x08\x12!\n\x19\x62uild_id_for_current_task\x18\t \x01(\t"\xe0\n\n\x15WorkflowActivationJob\x12N\n\x13initialize_workflow\x18\x01 \x01(\x0b\x32/.coresdk.workflow_activation.InitializeWorkflowH\x00\x12<\n\nfire_timer\x18\x02 \x01(\x0b\x32&.coresdk.workflow_activation.FireTimerH\x00\x12K\n\x12update_random_seed\x18\x04 \x01(\x0b\x32-.coresdk.workflow_activation.UpdateRandomSeedH\x00\x12\x44\n\x0equery_workflow\x18\x05 \x01(\x0b\x32*.coresdk.workflow_activation.QueryWorkflowH\x00\x12\x46\n\x0f\x63\x61ncel_workflow\x18\x06 \x01(\x0b\x32+.coresdk.workflow_activation.CancelWorkflowH\x00\x12\x46\n\x0fsignal_workflow\x18\x07 \x01(\x0b\x32+.coresdk.workflow_activation.SignalWorkflowH\x00\x12H\n\x10resolve_activity\x18\x08 \x01(\x0b\x32,.coresdk.workflow_activation.ResolveActivityH\x00\x12G\n\x10notify_has_patch\x18\t \x01(\x0b\x32+.coresdk.workflow_activation.NotifyHasPatchH\x00\x12q\n&resolve_child_workflow_execution_start\x18\n \x01(\x0b\x32?.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartH\x00\x12\x66\n resolve_child_workflow_execution\x18\x0b \x01(\x0b\x32:.coresdk.workflow_activation.ResolveChildWorkflowExecutionH\x00\x12\x66\n resolve_signal_external_workflow\x18\x0c \x01(\x0b\x32:.coresdk.workflow_activation.ResolveSignalExternalWorkflowH\x00\x12u\n(resolve_request_cancel_external_workflow\x18\r \x01(\x0b\x32\x41.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflowH\x00\x12:\n\tdo_update\x18\x0e \x01(\x0b\x32%.coresdk.workflow_activation.DoUpdateH\x00\x12`\n\x1dresolve_nexus_operation_start\x18\x0f \x01(\x0b\x32\x37.coresdk.workflow_activation.ResolveNexusOperationStartH\x00\x12U\n\x17resolve_nexus_operation\x18\x10 \x01(\x0b\x32\x32.coresdk.workflow_activation.ResolveNexusOperationH\x00\x12I\n\x11remove_from_cache\x18\x32 \x01(\x0b\x32,.coresdk.workflow_activation.RemoveFromCacheH\x00\x42\t\n\x07variant"\xe3\t\n\x12InitializeWorkflow\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x17\n\x0frandomness_seed\x18\x04 \x01(\x04\x12M\n\x07headers\x18\x05 \x03(\x0b\x32<.coresdk.workflow_activation.InitializeWorkflow.HeadersEntry\x12\x10\n\x08identity\x18\x06 \x01(\t\x12I\n\x14parent_workflow_info\x18\x07 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12=\n\x1aworkflow_execution_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\'\n\x1f\x63ontinued_from_execution_run_id\x18\x0b \x01(\t\x12J\n\x13\x63ontinued_initiator\x18\x0c \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\r \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1e\n\x16\x66irst_execution_run_id\x18\x0f \x01(\t\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x11 \x01(\x05\x12\x15\n\rcron_schedule\x18\x12 \x01(\t\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n"cron_schedule_to_schedule_interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x15 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x16 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\nstart_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x18\n\tFireTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"m\n\x0fResolveActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.activity_result.ActivityResolution\x12\x10\n\x08is_local\x18\x03 \x01(\x08"\xd1\x02\n"ResolveChildWorkflowExecutionStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12[\n\tsucceeded\x18\x02 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartSuccessH\x00\x12X\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartFailureH\x00\x12]\n\tcancelled\x18\x04 \x01(\x0b\x32H.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartCancelledH\x00\x42\x08\n\x06status";\n)ResolveChildWorkflowExecutionStartSuccess\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xa6\x01\n)ResolveChildWorkflowExecutionStartFailure\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12M\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32>.coresdk.child_workflow.StartChildWorkflowExecutionFailedCause"`\n+ResolveChildWorkflowExecutionStartCancelled\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"i\n\x1dResolveChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.child_workflow.ChildWorkflowResult"+\n\x10UpdateRandomSeed\x12\x17\n\x0frandomness_seed\x18\x01 \x01(\x04"\x84\x02\n\rQueryWorkflow\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12\x12\n\nquery_type\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12H\n\x07headers\x18\x05 \x03(\x0b\x32\x37.coresdk.workflow_activation.QueryWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"B\n\x0e\x43\x61ncelWorkflow\x12\x30\n\x07\x64\x65tails\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload"\x83\x02\n\x0eSignalWorkflow\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12.\n\x05input\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x07headers\x18\x05 \x03(\x0b\x32\x38.coresdk.workflow_activation.SignalWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01""\n\x0eNotifyHasPatch\x12\x10\n\x08patch_id\x18\x01 \x01(\t"_\n\x1dResolveSignalExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"f\n$ResolveRequestCancelExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xcb\x02\n\x08\x44oUpdate\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14protocol_instance_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x43\n\x07headers\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.DoUpdate.HeadersEntry\x12*\n\x04meta\x18\x06 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x15\n\rrun_validator\x18\x07 \x01(\x08\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\xa7\x01\n\x1aResolveNexusOperationStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x16\n\x0coperation_id\x18\x02 \x01(\tH\x00\x12\x16\n\x0cstarted_sync\x18\x03 \x01(\x08H\x00\x12\x42\n\x16\x63\x61ncelled_before_start\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status"Y\n\x15ResolveNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x33\n\x06result\x18\x02 \x01(\x0b\x32#.coresdk.nexus.NexusOperationResult"\xe0\x02\n\x0fRemoveFromCache\x12\x0f\n\x07message\x18\x01 \x01(\t\x12K\n\x06reason\x18\x02 \x01(\x0e\x32;.coresdk.workflow_activation.RemoveFromCache.EvictionReason"\xee\x01\n\x0e\x45victionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nCACHE_FULL\x10\x01\x12\x0e\n\nCACHE_MISS\x10\x02\x12\x12\n\x0eNONDETERMINISM\x10\x03\x12\r\n\tLANG_FAIL\x10\x04\x12\x12\n\x0eLANG_REQUESTED\x10\x05\x12\x12\n\x0eTASK_NOT_FOUND\x10\x06\x12\x15\n\x11UNHANDLED_COMMAND\x10\x07\x12\t\n\x05\x46\x41TAL\x10\x08\x12\x1f\n\x1bPAGINATION_OR_HISTORY_FETCH\x10\t\x12\x1d\n\x19WORKFLOW_EXECUTION_ENDING\x10\nB8\xea\x02\x35Temporalio::Internal::Bridge::Api::WorkflowActivationb\x06proto3' + b'\n?temporal/sdk/core/workflow_activation/workflow_activation.proto\x12\x1b\x63oresdk.workflow_activation\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a%temporal/sdk/core/common/common.proto\x1a#temporal/sdk/core/nexus/nexus.proto"\xc7\x02\n\x12WorkflowActivation\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cis_replaying\x18\x03 \x01(\x08\x12\x16\n\x0ehistory_length\x18\x04 \x01(\r\x12@\n\x04jobs\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.WorkflowActivationJob\x12 \n\x18\x61vailable_internal_flags\x18\x06 \x03(\r\x12\x1a\n\x12history_size_bytes\x18\x07 \x01(\x04\x12!\n\x19\x63ontinue_as_new_suggested\x18\x08 \x01(\x08\x12!\n\x19\x62uild_id_for_current_task\x18\t \x01(\t"\xe0\n\n\x15WorkflowActivationJob\x12N\n\x13initialize_workflow\x18\x01 \x01(\x0b\x32/.coresdk.workflow_activation.InitializeWorkflowH\x00\x12<\n\nfire_timer\x18\x02 \x01(\x0b\x32&.coresdk.workflow_activation.FireTimerH\x00\x12K\n\x12update_random_seed\x18\x04 \x01(\x0b\x32-.coresdk.workflow_activation.UpdateRandomSeedH\x00\x12\x44\n\x0equery_workflow\x18\x05 \x01(\x0b\x32*.coresdk.workflow_activation.QueryWorkflowH\x00\x12\x46\n\x0f\x63\x61ncel_workflow\x18\x06 \x01(\x0b\x32+.coresdk.workflow_activation.CancelWorkflowH\x00\x12\x46\n\x0fsignal_workflow\x18\x07 \x01(\x0b\x32+.coresdk.workflow_activation.SignalWorkflowH\x00\x12H\n\x10resolve_activity\x18\x08 \x01(\x0b\x32,.coresdk.workflow_activation.ResolveActivityH\x00\x12G\n\x10notify_has_patch\x18\t \x01(\x0b\x32+.coresdk.workflow_activation.NotifyHasPatchH\x00\x12q\n&resolve_child_workflow_execution_start\x18\n \x01(\x0b\x32?.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartH\x00\x12\x66\n resolve_child_workflow_execution\x18\x0b \x01(\x0b\x32:.coresdk.workflow_activation.ResolveChildWorkflowExecutionH\x00\x12\x66\n resolve_signal_external_workflow\x18\x0c \x01(\x0b\x32:.coresdk.workflow_activation.ResolveSignalExternalWorkflowH\x00\x12u\n(resolve_request_cancel_external_workflow\x18\r \x01(\x0b\x32\x41.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflowH\x00\x12:\n\tdo_update\x18\x0e \x01(\x0b\x32%.coresdk.workflow_activation.DoUpdateH\x00\x12`\n\x1dresolve_nexus_operation_start\x18\x0f \x01(\x0b\x32\x37.coresdk.workflow_activation.ResolveNexusOperationStartH\x00\x12U\n\x17resolve_nexus_operation\x18\x10 \x01(\x0b\x32\x32.coresdk.workflow_activation.ResolveNexusOperationH\x00\x12I\n\x11remove_from_cache\x18\x32 \x01(\x0b\x32,.coresdk.workflow_activation.RemoveFromCacheH\x00\x42\t\n\x07variant"\xa5\n\n\x12InitializeWorkflow\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x17\n\x0frandomness_seed\x18\x04 \x01(\x04\x12M\n\x07headers\x18\x05 \x03(\x0b\x32<.coresdk.workflow_activation.InitializeWorkflow.HeadersEntry\x12\x10\n\x08identity\x18\x06 \x01(\t\x12I\n\x14parent_workflow_info\x18\x07 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12=\n\x1aworkflow_execution_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\'\n\x1f\x63ontinued_from_execution_run_id\x18\x0b \x01(\t\x12J\n\x13\x63ontinued_initiator\x18\x0c \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\r \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1e\n\x16\x66irst_execution_run_id\x18\x0f \x01(\t\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x11 \x01(\x05\x12\x15\n\rcron_schedule\x18\x12 \x01(\t\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n"cron_schedule_to_schedule_interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x15 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x16 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\nstart_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\rroot_workflow\x18\x18 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x18\n\tFireTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"m\n\x0fResolveActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.activity_result.ActivityResolution\x12\x10\n\x08is_local\x18\x03 \x01(\x08"\xd1\x02\n"ResolveChildWorkflowExecutionStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12[\n\tsucceeded\x18\x02 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartSuccessH\x00\x12X\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartFailureH\x00\x12]\n\tcancelled\x18\x04 \x01(\x0b\x32H.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartCancelledH\x00\x42\x08\n\x06status";\n)ResolveChildWorkflowExecutionStartSuccess\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xa6\x01\n)ResolveChildWorkflowExecutionStartFailure\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12M\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32>.coresdk.child_workflow.StartChildWorkflowExecutionFailedCause"`\n+ResolveChildWorkflowExecutionStartCancelled\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"i\n\x1dResolveChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.child_workflow.ChildWorkflowResult"+\n\x10UpdateRandomSeed\x12\x17\n\x0frandomness_seed\x18\x01 \x01(\x04"\x84\x02\n\rQueryWorkflow\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12\x12\n\nquery_type\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12H\n\x07headers\x18\x05 \x03(\x0b\x32\x37.coresdk.workflow_activation.QueryWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01" \n\x0e\x43\x61ncelWorkflow\x12\x0e\n\x06reason\x18\x01 \x01(\t"\x83\x02\n\x0eSignalWorkflow\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12.\n\x05input\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x07headers\x18\x05 \x03(\x0b\x32\x38.coresdk.workflow_activation.SignalWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01""\n\x0eNotifyHasPatch\x12\x10\n\x08patch_id\x18\x01 \x01(\t"_\n\x1dResolveSignalExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"f\n$ResolveRequestCancelExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xcb\x02\n\x08\x44oUpdate\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14protocol_instance_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x43\n\x07headers\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.DoUpdate.HeadersEntry\x12*\n\x04meta\x18\x06 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x15\n\rrun_validator\x18\x07 \x01(\x08\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\xa7\x01\n\x1aResolveNexusOperationStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x16\n\x0coperation_id\x18\x02 \x01(\tH\x00\x12\x16\n\x0cstarted_sync\x18\x03 \x01(\x08H\x00\x12\x42\n\x16\x63\x61ncelled_before_start\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status"Y\n\x15ResolveNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x33\n\x06result\x18\x02 \x01(\x0b\x32#.coresdk.nexus.NexusOperationResult"\xe0\x02\n\x0fRemoveFromCache\x12\x0f\n\x07message\x18\x01 \x01(\t\x12K\n\x06reason\x18\x02 \x01(\x0e\x32;.coresdk.workflow_activation.RemoveFromCache.EvictionReason"\xee\x01\n\x0e\x45victionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nCACHE_FULL\x10\x01\x12\x0e\n\nCACHE_MISS\x10\x02\x12\x12\n\x0eNONDETERMINISM\x10\x03\x12\r\n\tLANG_FAIL\x10\x04\x12\x12\n\x0eLANG_REQUESTED\x10\x05\x12\x12\n\x0eTASK_NOT_FOUND\x10\x06\x12\x15\n\x11UNHANDLED_COMMAND\x10\x07\x12\t\n\x05\x46\x41TAL\x10\x08\x12\x1f\n\x1bPAGINATION_OR_HISTORY_FETCH\x10\t\x12\x1d\n\x19WORKFLOW_EXECUTION_ENDING\x10\nB8\xea\x02\x35Temporalio::Internal::Bridge::Api::WorkflowActivationb\x06proto3' ) @@ -381,51 +381,51 @@ _WORKFLOWACTIVATIONJOB._serialized_start = 862 _WORKFLOWACTIVATIONJOB._serialized_end = 2238 _INITIALIZEWORKFLOW._serialized_start = 2241 - _INITIALIZEWORKFLOW._serialized_end = 3492 - _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_start = 3413 - _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_end = 3492 - _FIRETIMER._serialized_start = 3494 - _FIRETIMER._serialized_end = 3518 - _RESOLVEACTIVITY._serialized_start = 3520 - _RESOLVEACTIVITY._serialized_end = 3629 - _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_start = 3632 - _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_end = 3969 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_start = 3971 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_end = 4030 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_start = 4033 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_end = 4199 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_start = 4201 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_end = 4297 - _RESOLVECHILDWORKFLOWEXECUTION._serialized_start = 4299 - _RESOLVECHILDWORKFLOWEXECUTION._serialized_end = 4404 - _UPDATERANDOMSEED._serialized_start = 4406 - _UPDATERANDOMSEED._serialized_end = 4449 - _QUERYWORKFLOW._serialized_start = 4452 - _QUERYWORKFLOW._serialized_end = 4712 - _QUERYWORKFLOW_HEADERSENTRY._serialized_start = 3413 - _QUERYWORKFLOW_HEADERSENTRY._serialized_end = 3492 - _CANCELWORKFLOW._serialized_start = 4714 - _CANCELWORKFLOW._serialized_end = 4780 - _SIGNALWORKFLOW._serialized_start = 4783 - _SIGNALWORKFLOW._serialized_end = 5042 - _SIGNALWORKFLOW_HEADERSENTRY._serialized_start = 3413 - _SIGNALWORKFLOW_HEADERSENTRY._serialized_end = 3492 - _NOTIFYHASPATCH._serialized_start = 5044 - _NOTIFYHASPATCH._serialized_end = 5078 - _RESOLVESIGNALEXTERNALWORKFLOW._serialized_start = 5080 - _RESOLVESIGNALEXTERNALWORKFLOW._serialized_end = 5175 - _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_start = 5177 - _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_end = 5279 - _DOUPDATE._serialized_start = 5282 - _DOUPDATE._serialized_end = 5613 - _DOUPDATE_HEADERSENTRY._serialized_start = 3413 - _DOUPDATE_HEADERSENTRY._serialized_end = 3492 - _RESOLVENEXUSOPERATIONSTART._serialized_start = 5616 - _RESOLVENEXUSOPERATIONSTART._serialized_end = 5783 - _RESOLVENEXUSOPERATION._serialized_start = 5785 - _RESOLVENEXUSOPERATION._serialized_end = 5874 - _REMOVEFROMCACHE._serialized_start = 5877 - _REMOVEFROMCACHE._serialized_end = 6229 - _REMOVEFROMCACHE_EVICTIONREASON._serialized_start = 5991 - _REMOVEFROMCACHE_EVICTIONREASON._serialized_end = 6229 + _INITIALIZEWORKFLOW._serialized_end = 3558 + _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_start = 3479 + _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_end = 3558 + _FIRETIMER._serialized_start = 3560 + _FIRETIMER._serialized_end = 3584 + _RESOLVEACTIVITY._serialized_start = 3586 + _RESOLVEACTIVITY._serialized_end = 3695 + _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_start = 3698 + _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_end = 4035 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_start = 4037 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_end = 4096 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_start = 4099 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_end = 4265 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_start = 4267 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_end = 4363 + _RESOLVECHILDWORKFLOWEXECUTION._serialized_start = 4365 + _RESOLVECHILDWORKFLOWEXECUTION._serialized_end = 4470 + _UPDATERANDOMSEED._serialized_start = 4472 + _UPDATERANDOMSEED._serialized_end = 4515 + _QUERYWORKFLOW._serialized_start = 4518 + _QUERYWORKFLOW._serialized_end = 4778 + _QUERYWORKFLOW_HEADERSENTRY._serialized_start = 3479 + _QUERYWORKFLOW_HEADERSENTRY._serialized_end = 3558 + _CANCELWORKFLOW._serialized_start = 4780 + _CANCELWORKFLOW._serialized_end = 4812 + _SIGNALWORKFLOW._serialized_start = 4815 + _SIGNALWORKFLOW._serialized_end = 5074 + _SIGNALWORKFLOW_HEADERSENTRY._serialized_start = 3479 + _SIGNALWORKFLOW_HEADERSENTRY._serialized_end = 3558 + _NOTIFYHASPATCH._serialized_start = 5076 + _NOTIFYHASPATCH._serialized_end = 5110 + _RESOLVESIGNALEXTERNALWORKFLOW._serialized_start = 5112 + _RESOLVESIGNALEXTERNALWORKFLOW._serialized_end = 5207 + _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_start = 5209 + _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_end = 5311 + _DOUPDATE._serialized_start = 5314 + _DOUPDATE._serialized_end = 5645 + _DOUPDATE_HEADERSENTRY._serialized_start = 3479 + _DOUPDATE_HEADERSENTRY._serialized_end = 3558 + _RESOLVENEXUSOPERATIONSTART._serialized_start = 5648 + _RESOLVENEXUSOPERATIONSTART._serialized_end = 5815 + _RESOLVENEXUSOPERATION._serialized_start = 5817 + _RESOLVENEXUSOPERATION._serialized_end = 5906 + _REMOVEFROMCACHE._serialized_start = 5909 + _REMOVEFROMCACHE._serialized_end = 6261 + _REMOVEFROMCACHE_EVICTIONREASON._serialized_start = 6023 + _REMOVEFROMCACHE_EVICTIONREASON._serialized_end = 6261 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi index c9a2ceb7a..0b671e37b 100644 --- a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi +++ b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi @@ -432,6 +432,7 @@ class InitializeWorkflow(google.protobuf.message.Message): MEMO_FIELD_NUMBER: builtins.int SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int START_TIME_FIELD_NUMBER: builtins.int + ROOT_WORKFLOW_FIELD_NUMBER: builtins.int workflow_type: builtins.str """The identifier the lang-specific sdk uses to execute workflow code""" workflow_id: builtins.str @@ -518,6 +519,19 @@ class InitializeWorkflow(google.protobuf.message.Message): @property def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: """When the workflow execution started event was first written""" + @property + def root_workflow(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: + """Contains information about the root workflow execution. It is possible for the namespace to + be different than this workflow if using OSS and cross-namespace children, but this + information is not retained. Users should take care to track it by other means in such + situations. + + The root workflow execution is defined as follows: + 1. A workflow without parent workflow is its own root workflow. + 2. A workflow that has a parent workflow has the same root workflow as its parent workflow. + + See field in WorkflowExecutionStarted for more detail. + """ def __init__( self, *, @@ -555,6 +569,8 @@ class InitializeWorkflow(google.protobuf.message.Message): search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes | None = ..., start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + root_workflow: temporalio.api.common.v1.message_pb2.WorkflowExecution + | None = ..., ) -> None: ... def HasField( self, @@ -571,6 +587,8 @@ class InitializeWorkflow(google.protobuf.message.Message): b"parent_workflow_info", "retry_policy", b"retry_policy", + "root_workflow", + b"root_workflow", "search_attributes", b"search_attributes", "start_time", @@ -618,6 +636,8 @@ class InitializeWorkflow(google.protobuf.message.Message): b"randomness_seed", "retry_policy", b"retry_policy", + "root_workflow", + b"root_workflow", "search_attributes", b"search_attributes", "start_time", @@ -978,22 +998,16 @@ class CancelWorkflow(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - DETAILS_FIELD_NUMBER: builtins.int - @property - def details( - self, - ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ - temporalio.api.common.v1.message_pb2.Payload - ]: - """Information from the cancellation request""" + REASON_FIELD_NUMBER: builtins.int + reason: builtins.str + """User-specified reason the cancel request was issued""" def __init__( self, *, - details: collections.abc.Iterable[temporalio.api.common.v1.message_pb2.Payload] - | None = ..., + reason: builtins.str = ..., ) -> None: ... def ClearField( - self, field_name: typing_extensions.Literal["details", b"details"] + self, field_name: typing_extensions.Literal["reason", b"reason"] ) -> None: ... global___CancelWorkflow = CancelWorkflow diff --git a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py index e239d9833..265b79300 100644 --- a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py +++ b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py @@ -39,7 +39,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n;temporal/sdk/core/workflow_commands/workflow_commands.proto\x12\x19\x63oresdk.workflow_commands\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a%temporal/sdk/core/common/common.proto"\xe5\x0f\n\x0fWorkflowCommand\x12\x38\n\ruser_metadata\x18\x64 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12<\n\x0bstart_timer\x18\x01 \x01(\x0b\x32%.coresdk.workflow_commands.StartTimerH\x00\x12H\n\x11schedule_activity\x18\x02 \x01(\x0b\x32+.coresdk.workflow_commands.ScheduleActivityH\x00\x12\x42\n\x10respond_to_query\x18\x03 \x01(\x0b\x32&.coresdk.workflow_commands.QueryResultH\x00\x12S\n\x17request_cancel_activity\x18\x04 \x01(\x0b\x32\x30.coresdk.workflow_commands.RequestCancelActivityH\x00\x12>\n\x0c\x63\x61ncel_timer\x18\x05 \x01(\x0b\x32&.coresdk.workflow_commands.CancelTimerH\x00\x12[\n\x1b\x63omplete_workflow_execution\x18\x06 \x01(\x0b\x32\x34.coresdk.workflow_commands.CompleteWorkflowExecutionH\x00\x12S\n\x17\x66\x61il_workflow_execution\x18\x07 \x01(\x0b\x32\x30.coresdk.workflow_commands.FailWorkflowExecutionH\x00\x12g\n"continue_as_new_workflow_execution\x18\x08 \x01(\x0b\x32\x39.coresdk.workflow_commands.ContinueAsNewWorkflowExecutionH\x00\x12W\n\x19\x63\x61ncel_workflow_execution\x18\t \x01(\x0b\x32\x32.coresdk.workflow_commands.CancelWorkflowExecutionH\x00\x12\x45\n\x10set_patch_marker\x18\n \x01(\x0b\x32).coresdk.workflow_commands.SetPatchMarkerH\x00\x12`\n\x1estart_child_workflow_execution\x18\x0b \x01(\x0b\x32\x36.coresdk.workflow_commands.StartChildWorkflowExecutionH\x00\x12\x62\n\x1f\x63\x61ncel_child_workflow_execution\x18\x0c \x01(\x0b\x32\x37.coresdk.workflow_commands.CancelChildWorkflowExecutionH\x00\x12w\n*request_cancel_external_workflow_execution\x18\r \x01(\x0b\x32\x41.coresdk.workflow_commands.RequestCancelExternalWorkflowExecutionH\x00\x12h\n"signal_external_workflow_execution\x18\x0e \x01(\x0b\x32:.coresdk.workflow_commands.SignalExternalWorkflowExecutionH\x00\x12Q\n\x16\x63\x61ncel_signal_workflow\x18\x0f \x01(\x0b\x32/.coresdk.workflow_commands.CancelSignalWorkflowH\x00\x12S\n\x17schedule_local_activity\x18\x10 \x01(\x0b\x32\x30.coresdk.workflow_commands.ScheduleLocalActivityH\x00\x12^\n\x1drequest_cancel_local_activity\x18\x11 \x01(\x0b\x32\x35.coresdk.workflow_commands.RequestCancelLocalActivityH\x00\x12\x66\n!upsert_workflow_search_attributes\x18\x12 \x01(\x0b\x32\x39.coresdk.workflow_commands.UpsertWorkflowSearchAttributesH\x00\x12Y\n\x1amodify_workflow_properties\x18\x13 \x01(\x0b\x32\x33.coresdk.workflow_commands.ModifyWorkflowPropertiesH\x00\x12\x44\n\x0fupdate_response\x18\x14 \x01(\x0b\x32).coresdk.workflow_commands.UpdateResponseH\x00\x12U\n\x18schedule_nexus_operation\x18\x15 \x01(\x0b\x32\x31.coresdk.workflow_commands.ScheduleNexusOperationH\x00\x12`\n\x1erequest_cancel_nexus_operation\x18\x16 \x01(\x0b\x32\x36.coresdk.workflow_commands.RequestCancelNexusOperationH\x00\x42\t\n\x07variant"S\n\nStartTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\x1a\n\x0b\x43\x61ncelTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"\x84\x06\n\x10ScheduleActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12I\n\x07headers\x18\x06 \x03(\x0b\x32\x38.coresdk.workflow_commands.ScheduleActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x12\x1e\n\x16\x64o_not_eagerly_execute\x18\x0e \x01(\x08\x12;\n\x11versioning_intent\x18\x0f \x01(\x0e\x32 .coresdk.common.VersioningIntent\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\xee\x05\n\x15ScheduleLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\r\x12:\n\x16original_schedule_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x07headers\x18\x06 \x03(\x0b\x32=.coresdk.workflow_commands.ScheduleLocalActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x38\n\x15local_retry_threshold\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"$\n\x15RequestCancelActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r")\n\x1aRequestCancelLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r"\x9c\x01\n\x0bQueryResult\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12<\n\tsucceeded\x18\x02 \x01(\x0b\x32\'.coresdk.workflow_commands.QuerySuccessH\x00\x12\x32\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07variant"A\n\x0cQuerySuccess\x12\x31\n\x08response\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"L\n\x19\x43ompleteWorkflowExecution\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"J\n\x15\x46\x61ilWorkflowExecution\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xfb\x06\n\x1e\x43ontinueAsNewWorkflowExecution\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12Q\n\x04memo\x18\x06 \x03(\x0b\x32\x43.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.MemoEntry\x12W\n\x07headers\x18\x07 \x03(\x0b\x32\x46.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.HeadersEntry\x12j\n\x11search_attributes\x18\x08 \x03(\x0b\x32O.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.SearchAttributesEntry\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12;\n\x11versioning_intent\x18\n \x01(\x0e\x32 .coresdk.common.VersioningIntent\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x19\n\x17\x43\x61ncelWorkflowExecution"6\n\x0eSetPatchMarker\x12\x10\n\x08patch_id\x18\x01 \x01(\t\x12\x12\n\ndeprecated\x18\x02 \x01(\x08"\xe0\t\n\x1bStartChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x03 \x01(\t\x12\x15\n\rworkflow_type\x18\x04 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12.\n\x05input\x18\x06 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x46\n\x13parent_close_policy\x18\n \x01(\x0e\x32).coresdk.child_workflow.ParentClosePolicy\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12T\n\x07headers\x18\x0f \x03(\x0b\x32\x43.coresdk.workflow_commands.StartChildWorkflowExecution.HeadersEntry\x12N\n\x04memo\x18\x10 \x03(\x0b\x32@.coresdk.workflow_commands.StartChildWorkflowExecution.MemoEntry\x12g\n\x11search_attributes\x18\x11 \x03(\x0b\x32L.coresdk.workflow_commands.StartChildWorkflowExecution.SearchAttributesEntry\x12P\n\x11\x63\x61ncellation_type\x18\x12 \x01(\x0e\x32\x35.coresdk.child_workflow.ChildWorkflowCancellationType\x12;\n\x11versioning_intent\x18\x13 \x01(\x0e\x32 .coresdk.common.VersioningIntent\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01":\n\x1c\x43\x61ncelChildWorkflowExecution\x12\x1a\n\x12\x63hild_workflow_seq\x18\x01 \x01(\r"~\n&RequestCancelExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12G\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution"\x8f\x03\n\x1fSignalExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12I\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecutionH\x00\x12\x1b\n\x11\x63hild_workflow_id\x18\x03 \x01(\tH\x00\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12-\n\x04\x61rgs\x18\x05 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12X\n\x07headers\x18\x06 \x03(\x0b\x32G.coresdk.workflow_commands.SignalExternalWorkflowExecution.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x42\x08\n\x06target"#\n\x14\x43\x61ncelSignalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r"\xe6\x01\n\x1eUpsertWorkflowSearchAttributes\x12j\n\x11search_attributes\x18\x01 \x03(\x0b\x32O.coresdk.workflow_commands.UpsertWorkflowSearchAttributes.SearchAttributesEntry\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"O\n\x18ModifyWorkflowProperties\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xd2\x01\n\x0eUpdateResponse\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12*\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x08rejected\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x34\n\tcompleted\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x42\n\n\x08response"\xd7\x02\n\x16ScheduleNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12.\n\x05input\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12X\n\x0cnexus_header\x18\x07 \x03(\x0b\x32\x42.coresdk.workflow_commands.ScheduleNexusOperation.NexusHeaderEntry\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"*\n\x1bRequestCancelNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r*X\n\x18\x41\x63tivityCancellationType\x12\x0e\n\nTRY_CANCEL\x10\x00\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x01\x12\x0b\n\x07\x41\x42\x41NDON\x10\x02\x42\x36\xea\x02\x33Temporalio::Internal::Bridge::Api::WorkflowCommandsb\x06proto3' + b'\n;temporal/sdk/core/workflow_commands/workflow_commands.proto\x12\x19\x63oresdk.workflow_commands\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/failure/v1/message.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a%temporal/sdk/core/common/common.proto"\xe5\x0f\n\x0fWorkflowCommand\x12\x38\n\ruser_metadata\x18\x64 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12<\n\x0bstart_timer\x18\x01 \x01(\x0b\x32%.coresdk.workflow_commands.StartTimerH\x00\x12H\n\x11schedule_activity\x18\x02 \x01(\x0b\x32+.coresdk.workflow_commands.ScheduleActivityH\x00\x12\x42\n\x10respond_to_query\x18\x03 \x01(\x0b\x32&.coresdk.workflow_commands.QueryResultH\x00\x12S\n\x17request_cancel_activity\x18\x04 \x01(\x0b\x32\x30.coresdk.workflow_commands.RequestCancelActivityH\x00\x12>\n\x0c\x63\x61ncel_timer\x18\x05 \x01(\x0b\x32&.coresdk.workflow_commands.CancelTimerH\x00\x12[\n\x1b\x63omplete_workflow_execution\x18\x06 \x01(\x0b\x32\x34.coresdk.workflow_commands.CompleteWorkflowExecutionH\x00\x12S\n\x17\x66\x61il_workflow_execution\x18\x07 \x01(\x0b\x32\x30.coresdk.workflow_commands.FailWorkflowExecutionH\x00\x12g\n"continue_as_new_workflow_execution\x18\x08 \x01(\x0b\x32\x39.coresdk.workflow_commands.ContinueAsNewWorkflowExecutionH\x00\x12W\n\x19\x63\x61ncel_workflow_execution\x18\t \x01(\x0b\x32\x32.coresdk.workflow_commands.CancelWorkflowExecutionH\x00\x12\x45\n\x10set_patch_marker\x18\n \x01(\x0b\x32).coresdk.workflow_commands.SetPatchMarkerH\x00\x12`\n\x1estart_child_workflow_execution\x18\x0b \x01(\x0b\x32\x36.coresdk.workflow_commands.StartChildWorkflowExecutionH\x00\x12\x62\n\x1f\x63\x61ncel_child_workflow_execution\x18\x0c \x01(\x0b\x32\x37.coresdk.workflow_commands.CancelChildWorkflowExecutionH\x00\x12w\n*request_cancel_external_workflow_execution\x18\r \x01(\x0b\x32\x41.coresdk.workflow_commands.RequestCancelExternalWorkflowExecutionH\x00\x12h\n"signal_external_workflow_execution\x18\x0e \x01(\x0b\x32:.coresdk.workflow_commands.SignalExternalWorkflowExecutionH\x00\x12Q\n\x16\x63\x61ncel_signal_workflow\x18\x0f \x01(\x0b\x32/.coresdk.workflow_commands.CancelSignalWorkflowH\x00\x12S\n\x17schedule_local_activity\x18\x10 \x01(\x0b\x32\x30.coresdk.workflow_commands.ScheduleLocalActivityH\x00\x12^\n\x1drequest_cancel_local_activity\x18\x11 \x01(\x0b\x32\x35.coresdk.workflow_commands.RequestCancelLocalActivityH\x00\x12\x66\n!upsert_workflow_search_attributes\x18\x12 \x01(\x0b\x32\x39.coresdk.workflow_commands.UpsertWorkflowSearchAttributesH\x00\x12Y\n\x1amodify_workflow_properties\x18\x13 \x01(\x0b\x32\x33.coresdk.workflow_commands.ModifyWorkflowPropertiesH\x00\x12\x44\n\x0fupdate_response\x18\x14 \x01(\x0b\x32).coresdk.workflow_commands.UpdateResponseH\x00\x12U\n\x18schedule_nexus_operation\x18\x15 \x01(\x0b\x32\x31.coresdk.workflow_commands.ScheduleNexusOperationH\x00\x12`\n\x1erequest_cancel_nexus_operation\x18\x16 \x01(\x0b\x32\x36.coresdk.workflow_commands.RequestCancelNexusOperationH\x00\x42\t\n\x07variant"S\n\nStartTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x38\n\x15start_to_fire_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration"\x1a\n\x0b\x43\x61ncelTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"\xb8\x06\n\x10ScheduleActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12I\n\x07headers\x18\x06 \x03(\x0b\x32\x38.coresdk.workflow_commands.ScheduleActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x12\x1e\n\x16\x64o_not_eagerly_execute\x18\x0e \x01(\x08\x12;\n\x11versioning_intent\x18\x0f \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x10 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\xee\x05\n\x15ScheduleLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x15\n\ractivity_type\x18\x03 \x01(\t\x12\x0f\n\x07\x61ttempt\x18\x04 \x01(\r\x12:\n\x16original_schedule_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x07headers\x18\x06 \x03(\x0b\x32=.coresdk.workflow_commands.ScheduleLocalActivity.HeadersEntry\x12\x32\n\targuments\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x38\n\x15local_retry_threshold\x18\x0c \x01(\x0b\x32\x19.google.protobuf.Duration\x12N\n\x11\x63\x61ncellation_type\x18\r \x01(\x0e\x32\x33.coresdk.workflow_commands.ActivityCancellationType\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"$\n\x15RequestCancelActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r")\n\x1aRequestCancelLocalActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r"\x9c\x01\n\x0bQueryResult\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12<\n\tsucceeded\x18\x02 \x01(\x0b\x32\'.coresdk.workflow_commands.QuerySuccessH\x00\x12\x32\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07variant"A\n\x0cQuerySuccess\x12\x31\n\x08response\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"L\n\x19\x43ompleteWorkflowExecution\x12/\n\x06result\x18\x01 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload"J\n\x15\x46\x61ilWorkflowExecution\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xfb\x06\n\x1e\x43ontinueAsNewWorkflowExecution\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x37\n\x14workflow_run_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12Q\n\x04memo\x18\x06 \x03(\x0b\x32\x43.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.MemoEntry\x12W\n\x07headers\x18\x07 \x03(\x0b\x32\x46.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.HeadersEntry\x12j\n\x11search_attributes\x18\x08 \x03(\x0b\x32O.coresdk.workflow_commands.ContinueAsNewWorkflowExecution.SearchAttributesEntry\x12\x39\n\x0cretry_policy\x18\t \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12;\n\x11versioning_intent\x18\n \x01(\x0e\x32 .coresdk.common.VersioningIntent\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x19\n\x17\x43\x61ncelWorkflowExecution"6\n\x0eSetPatchMarker\x12\x10\n\x08patch_id\x18\x01 \x01(\t\x12\x12\n\ndeprecated\x18\x02 \x01(\x08"\x94\n\n\x1bStartChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x03 \x01(\t\x12\x15\n\rworkflow_type\x18\x04 \x01(\t\x12\x12\n\ntask_queue\x18\x05 \x01(\t\x12.\n\x05input\x18\x06 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12=\n\x1aworkflow_execution_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x46\n\x13parent_close_policy\x18\n \x01(\x0e\x32).coresdk.child_workflow.ParentClosePolicy\x12N\n\x18workflow_id_reuse_policy\x18\x0c \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12\x39\n\x0cretry_policy\x18\r \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x0e \x01(\t\x12T\n\x07headers\x18\x0f \x03(\x0b\x32\x43.coresdk.workflow_commands.StartChildWorkflowExecution.HeadersEntry\x12N\n\x04memo\x18\x10 \x03(\x0b\x32@.coresdk.workflow_commands.StartChildWorkflowExecution.MemoEntry\x12g\n\x11search_attributes\x18\x11 \x03(\x0b\x32L.coresdk.workflow_commands.StartChildWorkflowExecution.SearchAttributesEntry\x12P\n\x11\x63\x61ncellation_type\x18\x12 \x01(\x0e\x32\x35.coresdk.child_workflow.ChildWorkflowCancellationType\x12;\n\x11versioning_intent\x18\x13 \x01(\x0e\x32 .coresdk.common.VersioningIntent\x12\x32\n\x08priority\x18\x14 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aL\n\tMemoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"J\n\x1c\x43\x61ncelChildWorkflowExecution\x12\x1a\n\x12\x63hild_workflow_seq\x18\x01 \x01(\r\x12\x0e\n\x06reason\x18\x02 \x01(\t"\x8e\x01\n&RequestCancelExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12G\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t"\x8f\x03\n\x1fSignalExternalWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12I\n\x12workflow_execution\x18\x02 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecutionH\x00\x12\x1b\n\x11\x63hild_workflow_id\x18\x03 \x01(\tH\x00\x12\x13\n\x0bsignal_name\x18\x04 \x01(\t\x12-\n\x04\x61rgs\x18\x05 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12X\n\x07headers\x18\x06 \x03(\x0b\x32G.coresdk.workflow_commands.SignalExternalWorkflowExecution.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01\x42\x08\n\x06target"#\n\x14\x43\x61ncelSignalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r"\xe6\x01\n\x1eUpsertWorkflowSearchAttributes\x12j\n\x11search_attributes\x18\x01 \x03(\x0b\x32O.coresdk.workflow_commands.UpsertWorkflowSearchAttributes.SearchAttributesEntry\x1aX\n\x15SearchAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"O\n\x18ModifyWorkflowProperties\x12\x33\n\rupserted_memo\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\xd2\x01\n\x0eUpdateResponse\x12\x1c\n\x14protocol_instance_id\x18\x01 \x01(\t\x12*\n\x08\x61\x63\x63\x65pted\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x08rejected\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x34\n\tcompleted\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x42\n\n\x08response"\xd7\x02\n\x16ScheduleNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x11\n\toperation\x18\x04 \x01(\t\x12.\n\x05input\x18\x05 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12<\n\x19schedule_to_close_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12X\n\x0cnexus_header\x18\x07 \x03(\x0b\x32\x42.coresdk.workflow_commands.ScheduleNexusOperation.NexusHeaderEntry\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"*\n\x1bRequestCancelNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r*X\n\x18\x41\x63tivityCancellationType\x12\x0e\n\nTRY_CANCEL\x10\x00\x12\x1f\n\x1bWAIT_CANCELLATION_COMPLETED\x10\x01\x12\x0b\n\x07\x41\x42\x41NDON\x10\x02\x42\x36\xea\x02\x33Temporalio::Internal::Bridge::Api::WorkflowCommandsb\x06proto3' ) _ACTIVITYCANCELLATIONTYPE = DESCRIPTOR.enum_types_by_name["ActivityCancellationType"] @@ -523,8 +523,8 @@ _UPSERTWORKFLOWSEARCHATTRIBUTES_SEARCHATTRIBUTESENTRY._serialized_options = b"8\001" _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._options = None _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_options = b"8\001" - _ACTIVITYCANCELLATIONTYPE._serialized_start = 8332 - _ACTIVITYCANCELLATIONTYPE._serialized_end = 8420 + _ACTIVITYCANCELLATIONTYPE._serialized_start = 8469 + _ACTIVITYCANCELLATIONTYPE._serialized_end = 8557 _WORKFLOWCOMMAND._serialized_start = 435 _WORKFLOWCOMMAND._serialized_end = 2456 _STARTTIMER._serialized_start = 2458 @@ -532,67 +532,67 @@ _CANCELTIMER._serialized_start = 2543 _CANCELTIMER._serialized_end = 2569 _SCHEDULEACTIVITY._serialized_start = 2572 - _SCHEDULEACTIVITY._serialized_end = 3344 - _SCHEDULEACTIVITY_HEADERSENTRY._serialized_start = 3265 - _SCHEDULEACTIVITY_HEADERSENTRY._serialized_end = 3344 - _SCHEDULELOCALACTIVITY._serialized_start = 3347 - _SCHEDULELOCALACTIVITY._serialized_end = 4097 - _SCHEDULELOCALACTIVITY_HEADERSENTRY._serialized_start = 3265 - _SCHEDULELOCALACTIVITY_HEADERSENTRY._serialized_end = 3344 - _REQUESTCANCELACTIVITY._serialized_start = 4099 - _REQUESTCANCELACTIVITY._serialized_end = 4135 - _REQUESTCANCELLOCALACTIVITY._serialized_start = 4137 - _REQUESTCANCELLOCALACTIVITY._serialized_end = 4178 - _QUERYRESULT._serialized_start = 4181 - _QUERYRESULT._serialized_end = 4337 - _QUERYSUCCESS._serialized_start = 4339 - _QUERYSUCCESS._serialized_end = 4404 - _COMPLETEWORKFLOWEXECUTION._serialized_start = 4406 - _COMPLETEWORKFLOWEXECUTION._serialized_end = 4482 - _FAILWORKFLOWEXECUTION._serialized_start = 4484 - _FAILWORKFLOWEXECUTION._serialized_end = 4558 - _CONTINUEASNEWWORKFLOWEXECUTION._serialized_start = 4561 - _CONTINUEASNEWWORKFLOWEXECUTION._serialized_end = 5452 - _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY._serialized_start = 5205 - _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY._serialized_end = 5281 - _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3265 - _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3344 - _CONTINUEASNEWWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY._serialized_start = 5364 - _CONTINUEASNEWWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY._serialized_end = 5452 - _CANCELWORKFLOWEXECUTION._serialized_start = 5454 - _CANCELWORKFLOWEXECUTION._serialized_end = 5479 - _SETPATCHMARKER._serialized_start = 5481 - _SETPATCHMARKER._serialized_end = 5535 - _STARTCHILDWORKFLOWEXECUTION._serialized_start = 5538 - _STARTCHILDWORKFLOWEXECUTION._serialized_end = 6786 - _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3265 - _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3344 - _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY._serialized_start = 5205 - _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY._serialized_end = 5281 - _STARTCHILDWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY._serialized_start = 5364 - _STARTCHILDWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY._serialized_end = 5452 - _CANCELCHILDWORKFLOWEXECUTION._serialized_start = 6788 - _CANCELCHILDWORKFLOWEXECUTION._serialized_end = 6846 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTION._serialized_start = 6848 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTION._serialized_end = 6974 - _SIGNALEXTERNALWORKFLOWEXECUTION._serialized_start = 6977 - _SIGNALEXTERNALWORKFLOWEXECUTION._serialized_end = 7376 - _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3265 - _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3344 - _CANCELSIGNALWORKFLOW._serialized_start = 7378 - _CANCELSIGNALWORKFLOW._serialized_end = 7413 - _UPSERTWORKFLOWSEARCHATTRIBUTES._serialized_start = 7416 - _UPSERTWORKFLOWSEARCHATTRIBUTES._serialized_end = 7646 - _UPSERTWORKFLOWSEARCHATTRIBUTES_SEARCHATTRIBUTESENTRY._serialized_start = 5364 - _UPSERTWORKFLOWSEARCHATTRIBUTES_SEARCHATTRIBUTESENTRY._serialized_end = 5452 - _MODIFYWORKFLOWPROPERTIES._serialized_start = 7648 - _MODIFYWORKFLOWPROPERTIES._serialized_end = 7727 - _UPDATERESPONSE._serialized_start = 7730 - _UPDATERESPONSE._serialized_end = 7940 - _SCHEDULENEXUSOPERATION._serialized_start = 7943 - _SCHEDULENEXUSOPERATION._serialized_end = 8286 - _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_start = 8236 - _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_end = 8286 - _REQUESTCANCELNEXUSOPERATION._serialized_start = 8288 - _REQUESTCANCELNEXUSOPERATION._serialized_end = 8330 + _SCHEDULEACTIVITY._serialized_end = 3396 + _SCHEDULEACTIVITY_HEADERSENTRY._serialized_start = 3317 + _SCHEDULEACTIVITY_HEADERSENTRY._serialized_end = 3396 + _SCHEDULELOCALACTIVITY._serialized_start = 3399 + _SCHEDULELOCALACTIVITY._serialized_end = 4149 + _SCHEDULELOCALACTIVITY_HEADERSENTRY._serialized_start = 3317 + _SCHEDULELOCALACTIVITY_HEADERSENTRY._serialized_end = 3396 + _REQUESTCANCELACTIVITY._serialized_start = 4151 + _REQUESTCANCELACTIVITY._serialized_end = 4187 + _REQUESTCANCELLOCALACTIVITY._serialized_start = 4189 + _REQUESTCANCELLOCALACTIVITY._serialized_end = 4230 + _QUERYRESULT._serialized_start = 4233 + _QUERYRESULT._serialized_end = 4389 + _QUERYSUCCESS._serialized_start = 4391 + _QUERYSUCCESS._serialized_end = 4456 + _COMPLETEWORKFLOWEXECUTION._serialized_start = 4458 + _COMPLETEWORKFLOWEXECUTION._serialized_end = 4534 + _FAILWORKFLOWEXECUTION._serialized_start = 4536 + _FAILWORKFLOWEXECUTION._serialized_end = 4610 + _CONTINUEASNEWWORKFLOWEXECUTION._serialized_start = 4613 + _CONTINUEASNEWWORKFLOWEXECUTION._serialized_end = 5504 + _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY._serialized_start = 5257 + _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY._serialized_end = 5333 + _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3317 + _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3396 + _CONTINUEASNEWWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY._serialized_start = 5416 + _CONTINUEASNEWWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY._serialized_end = 5504 + _CANCELWORKFLOWEXECUTION._serialized_start = 5506 + _CANCELWORKFLOWEXECUTION._serialized_end = 5531 + _SETPATCHMARKER._serialized_start = 5533 + _SETPATCHMARKER._serialized_end = 5587 + _STARTCHILDWORKFLOWEXECUTION._serialized_start = 5590 + _STARTCHILDWORKFLOWEXECUTION._serialized_end = 6890 + _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3317 + _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3396 + _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY._serialized_start = 5257 + _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY._serialized_end = 5333 + _STARTCHILDWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY._serialized_start = 5416 + _STARTCHILDWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY._serialized_end = 5504 + _CANCELCHILDWORKFLOWEXECUTION._serialized_start = 6892 + _CANCELCHILDWORKFLOWEXECUTION._serialized_end = 6966 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTION._serialized_start = 6969 + _REQUESTCANCELEXTERNALWORKFLOWEXECUTION._serialized_end = 7111 + _SIGNALEXTERNALWORKFLOWEXECUTION._serialized_start = 7114 + _SIGNALEXTERNALWORKFLOWEXECUTION._serialized_end = 7513 + _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_start = 3317 + _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY._serialized_end = 3396 + _CANCELSIGNALWORKFLOW._serialized_start = 7515 + _CANCELSIGNALWORKFLOW._serialized_end = 7550 + _UPSERTWORKFLOWSEARCHATTRIBUTES._serialized_start = 7553 + _UPSERTWORKFLOWSEARCHATTRIBUTES._serialized_end = 7783 + _UPSERTWORKFLOWSEARCHATTRIBUTES_SEARCHATTRIBUTESENTRY._serialized_start = 5416 + _UPSERTWORKFLOWSEARCHATTRIBUTES_SEARCHATTRIBUTESENTRY._serialized_end = 5504 + _MODIFYWORKFLOWPROPERTIES._serialized_start = 7785 + _MODIFYWORKFLOWPROPERTIES._serialized_end = 7864 + _UPDATERESPONSE._serialized_start = 7867 + _UPDATERESPONSE._serialized_end = 8077 + _SCHEDULENEXUSOPERATION._serialized_start = 8080 + _SCHEDULENEXUSOPERATION._serialized_end = 8423 + _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_start = 8373 + _SCHEDULENEXUSOPERATION_NEXUSHEADERENTRY._serialized_end = 8423 + _REQUESTCANCELNEXUSOPERATION._serialized_start = 8425 + _REQUESTCANCELNEXUSOPERATION._serialized_end = 8467 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi index a6ed34399..6c4e4adae 100644 --- a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi +++ b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi @@ -423,6 +423,7 @@ class ScheduleActivity(google.protobuf.message.Message): CANCELLATION_TYPE_FIELD_NUMBER: builtins.int DO_NOT_EAGERLY_EXECUTE_FIELD_NUMBER: builtins.int VERSIONING_INTENT_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int seq: builtins.int """Lang's incremental sequence number, used as the operation identifier""" activity_id: builtins.str @@ -479,6 +480,9 @@ class ScheduleActivity(google.protobuf.message.Message): temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType ) """Whether this activity should run on a worker with a compatible build id or not.""" + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """The Priority to use for this activity""" def __init__( self, *, @@ -502,12 +506,15 @@ class ScheduleActivity(google.protobuf.message.Message): cancellation_type: global___ActivityCancellationType.ValueType = ..., do_not_eagerly_execute: builtins.bool = ..., versioning_intent: temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ "heartbeat_timeout", b"heartbeat_timeout", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -535,6 +542,8 @@ class ScheduleActivity(google.protobuf.message.Message): b"headers", "heartbeat_timeout", b"heartbeat_timeout", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -1204,6 +1213,7 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int CANCELLATION_TYPE_FIELD_NUMBER: builtins.int VERSIONING_INTENT_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int seq: builtins.int """Lang's incremental sequence number, used as the operation identifier""" namespace: builtins.str @@ -1263,6 +1273,9 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType ) """Whether this child should run on a worker with a compatible build id or not.""" + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """The Priority to use for this activity""" def __init__( self, *, @@ -1294,10 +1307,13 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): | None = ..., cancellation_type: temporalio.bridge.proto.child_workflow.child_workflow_pb2.ChildWorkflowCancellationType.ValueType = ..., versioning_intent: temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, field_name: typing_extensions.Literal[ + "priority", + b"priority", "retry_policy", b"retry_policy", "workflow_execution_timeout", @@ -1325,6 +1341,8 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): b"namespace", "parent_close_policy", b"parent_close_policy", + "priority", + b"priority", "retry_policy", b"retry_policy", "search_attributes", @@ -1358,17 +1376,21 @@ class CancelChildWorkflowExecution(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor CHILD_WORKFLOW_SEQ_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int child_workflow_seq: builtins.int """Sequence number as given to the `StartChildWorkflowExecution` command""" + reason: builtins.str + """A reason for the cancellation""" def __init__( self, *, child_workflow_seq: builtins.int = ..., + reason: builtins.str = ..., ) -> None: ... def ClearField( self, field_name: typing_extensions.Literal[ - "child_workflow_seq", b"child_workflow_seq" + "child_workflow_seq", b"child_workflow_seq", "reason", b"reason" ], ) -> None: ... @@ -1383,6 +1405,7 @@ class RequestCancelExternalWorkflowExecution(google.protobuf.message.Message): SEQ_FIELD_NUMBER: builtins.int WORKFLOW_EXECUTION_FIELD_NUMBER: builtins.int + REASON_FIELD_NUMBER: builtins.int seq: builtins.int """Lang's incremental sequence number, used as the operation identifier""" @property @@ -1390,12 +1413,15 @@ class RequestCancelExternalWorkflowExecution(google.protobuf.message.Message): self, ) -> temporalio.bridge.proto.common.common_pb2.NamespacedWorkflowExecution: """The workflow instance being targeted""" + reason: builtins.str + """A reason for the cancellation""" def __init__( self, *, seq: builtins.int = ..., workflow_execution: temporalio.bridge.proto.common.common_pb2.NamespacedWorkflowExecution | None = ..., + reason: builtins.str = ..., ) -> None: ... def HasField( self, @@ -1406,7 +1432,12 @@ class RequestCancelExternalWorkflowExecution(google.protobuf.message.Message): def ClearField( self, field_name: typing_extensions.Literal[ - "seq", b"seq", "workflow_execution", b"workflow_execution" + "reason", + b"reason", + "seq", + b"seq", + "workflow_execution", + b"workflow_execution", ], ) -> None: ... From 6dca0e64a8ddf50d108f097c5fab42f070200f32 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Wed, 26 Mar 2025 11:14:43 -0700 Subject: [PATCH 04/15] Handle proto updates / add new RPCs --- temporalio/bridge/worker.py | 4 +- temporalio/service.py | 128 ++++++++++++++++++------ temporalio/worker/_workflow_instance.py | 8 ++ 3 files changed, 108 insertions(+), 32 deletions(-) diff --git a/temporalio/bridge/worker.py b/temporalio/bridge/worker.py index b04af11fd..77c7114e8 100644 --- a/temporalio/bridge/worker.py +++ b/temporalio/bridge/worker.py @@ -279,9 +279,7 @@ async def decode_activation( ) -> None: """Decode the given activation with the codec.""" for job in act.jobs: - if job.HasField("cancel_workflow"): - await _decode_payloads(job.cancel_workflow.details, codec) - elif job.HasField("query_workflow"): + if job.HasField("query_workflow"): await _decode_payloads(job.query_workflow.arguments, codec) elif job.HasField("resolve_activity"): if job.resolve_activity.result.HasField("cancelled"): diff --git a/temporalio/service.py b/temporalio/service.py index 5cd184d0e..29315b32e 100644 --- a/temporalio/service.py +++ b/temporalio/service.py @@ -49,12 +49,12 @@ class TLSConfig: client_cert: Optional[bytes] = None """Client certificate for mTLS. - + This must be combined with :py:attr:`client_private_key`.""" client_private_key: Optional[bytes] = None """Client private key for mTLS. - + This must be combined with :py:attr:`client_cert`.""" def _to_bridge_config(self) -> temporalio.bridge.client.ClientTlsConfig: @@ -315,6 +315,16 @@ def __init__(self, client: ServiceClient) -> None: wsv1.DeleteScheduleRequest, wsv1.DeleteScheduleResponse, ) + self.delete_worker_deployment = client._new_call( + "delete_worker_deployment", + wsv1.DeleteWorkerDeploymentRequest, + wsv1.DeleteWorkerDeploymentResponse, + ) + self.delete_worker_deployment_version = client._new_call( + "delete_worker_deployment_version", + wsv1.DeleteWorkerDeploymentVersionRequest, + wsv1.DeleteWorkerDeploymentVersionResponse, + ) self.delete_workflow_execution = client._new_call( "delete_workflow_execution", wsv1.DeleteWorkflowExecutionRequest, @@ -325,6 +335,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.DescribeBatchOperationRequest, wsv1.DescribeBatchOperationResponse, ) + self.describe_deployment = client._new_call( + "describe_deployment", + wsv1.DescribeDeploymentRequest, + wsv1.DescribeDeploymentResponse, + ) self.deprecate_namespace = client._new_call( "deprecate_namespace", wsv1.DeprecateNamespaceRequest, @@ -345,6 +360,16 @@ def __init__(self, client: ServiceClient) -> None: wsv1.DescribeTaskQueueRequest, wsv1.DescribeTaskQueueResponse, ) + self.describe_worker_deployment = client._new_call( + "describe_worker_deployment", + wsv1.DescribeWorkerDeploymentRequest, + wsv1.DescribeWorkerDeploymentResponse, + ) + self.describe_worker_deployment_version = client._new_call( + "describe_worker_deployment_version", + wsv1.DescribeWorkerDeploymentVersionRequest, + wsv1.DescribeWorkerDeploymentVersionResponse, + ) self.describe_workflow_execution = client._new_call( "describe_workflow_execution", wsv1.DescribeWorkflowExecutionRequest, @@ -360,6 +385,16 @@ def __init__(self, client: ServiceClient) -> None: wsv1.GetClusterInfoRequest, wsv1.GetClusterInfoResponse, ) + self.get_current_deployment = client._new_call( + "get_current_deployment", + wsv1.GetCurrentDeploymentRequest, + wsv1.GetCurrentDeploymentResponse, + ) + self.get_deployment_reachability = client._new_call( + "get_deployment_reachability", + wsv1.GetDeploymentReachabilityRequest, + wsv1.GetDeploymentReachabilityResponse, + ) self.get_search_attributes = client._new_call( "get_search_attributes", wsv1.GetSearchAttributesRequest, @@ -410,6 +445,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.ListClosedWorkflowExecutionsRequest, wsv1.ListClosedWorkflowExecutionsResponse, ) + self.list_deployments = client._new_call( + "list_deployments", + wsv1.ListDeploymentsRequest, + wsv1.ListDeploymentsResponse, + ) self.list_namespaces = client._new_call( "list_namespaces", wsv1.ListNamespacesRequest, @@ -435,6 +475,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.ListTaskQueuePartitionsRequest, wsv1.ListTaskQueuePartitionsResponse, ) + self.list_worker_deployments = client._new_call( + "list_worker_deployments", + wsv1.ListWorkerDeploymentsRequest, + wsv1.ListWorkerDeploymentsResponse, + ) self.list_workflow_executions = client._new_call( "list_workflow_executions", wsv1.ListWorkflowExecutionsRequest, @@ -445,6 +490,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.PatchScheduleRequest, wsv1.PatchScheduleResponse, ) + self.pause_activity = client._new_call( + "pause_activity", + wsv1.PauseActivityRequest, + wsv1.PauseActivityResponse, + ) self.poll_activity_task_queue = client._new_call( "poll_activity_task_queue", wsv1.PollActivityTaskQueueRequest, @@ -490,6 +540,11 @@ def __init__(self, client: ServiceClient) -> None: wsv1.RequestCancelWorkflowExecutionRequest, wsv1.RequestCancelWorkflowExecutionResponse, ) + self.reset_activity = client._new_call( + "reset_activity", + wsv1.ResetActivityRequest, + wsv1.ResetActivityResponse, + ) self.reset_sticky_task_queue = client._new_call( "reset_sticky_task_queue", wsv1.ResetStickyTaskQueueRequest, @@ -560,6 +615,26 @@ def __init__(self, client: ServiceClient) -> None: wsv1.ScanWorkflowExecutionsRequest, wsv1.ScanWorkflowExecutionsResponse, ) + self.set_current_deployment = client._new_call( + "set_current_deployment", + wsv1.SetCurrentDeploymentRequest, + wsv1.SetCurrentDeploymentResponse, + ) + self.set_worker_deployment_current_version = client._new_call( + "set_worker_deployment_current_version", + wsv1.SetWorkerDeploymentCurrentVersionRequest, + wsv1.SetWorkerDeploymentCurrentVersionResponse, + ) + self.set_worker_deployment_ramping_version = client._new_call( + "set_worker_deployment_ramping_version", + wsv1.SetWorkerDeploymentRampingVersionRequest, + wsv1.SetWorkerDeploymentRampingVersionResponse, + ) + self.shutdown_worker = client._new_call( + "shutdown_worker", + wsv1.ShutdownWorkerRequest, + wsv1.ShutdownWorkerResponse, + ) self.signal_with_start_workflow_execution = client._new_call( "signal_with_start_workflow_execution", wsv1.SignalWithStartWorkflowExecutionRequest, @@ -590,6 +665,16 @@ def __init__(self, client: ServiceClient) -> None: wsv1.TerminateWorkflowExecutionRequest, wsv1.TerminateWorkflowExecutionResponse, ) + self.unpause_activity = client._new_call( + "unpause_activity", + wsv1.UnpauseActivityRequest, + wsv1.UnpauseActivityResponse, + ) + self.update_activity_options = client._new_call( + "update_activity_options", + wsv1.UpdateActivityOptionsRequest, + wsv1.UpdateActivityOptionsResponse, + ) self.update_namespace = client._new_call( "update_namespace", wsv1.UpdateNamespaceRequest, @@ -600,10 +685,10 @@ def __init__(self, client: ServiceClient) -> None: wsv1.UpdateScheduleRequest, wsv1.UpdateScheduleResponse, ) - self.update_workflow_execution = client._new_call( - "update_workflow_execution", - wsv1.UpdateWorkflowExecutionRequest, - wsv1.UpdateWorkflowExecutionResponse, + self.update_worker_deployment_version_metadata = client._new_call( + "update_worker_deployment_version_metadata", + wsv1.UpdateWorkerDeploymentVersionMetadataRequest, + wsv1.UpdateWorkerDeploymentVersionMetadataResponse, ) self.update_worker_build_id_compatibility = client._new_call( "update_worker_build_id_compatibility", @@ -615,30 +700,15 @@ def __init__(self, client: ServiceClient) -> None: wsv1.UpdateWorkerVersioningRulesRequest, wsv1.UpdateWorkerVersioningRulesResponse, ) - self.pause_activity_by_id = client._new_call( - "pause_activity_by_id", - wsv1.PauseActivityByIdRequest, - wsv1.PauseActivityByIdResponse, - ) - self.unpause_activity_by_id = client._new_call( - "unpause_activity_by_id", - wsv1.UnpauseActivityByIdRequest, - wsv1.UnpauseActivityByIdResponse, - ) - self.reset_activity_by_id = client._new_call( - "reset_activity_by_id", - wsv1.ResetActivityByIdRequest, - wsv1.ResetActivityByIdResponse, - ) - self.update_activity_options_by_id = client._new_call( - "update_activity_options_by_id", - wsv1.UpdateActivityOptionsByIdRequest, - wsv1.UpdateActivityOptionsByIdResponse, + self.update_workflow_execution = client._new_call( + "update_workflow_execution", + wsv1.UpdateWorkflowExecutionRequest, + wsv1.UpdateWorkflowExecutionResponse, ) - self.shutdown_worker = client._new_call( - "shutdown_worker", - wsv1.ShutdownWorkerRequest, - wsv1.ShutdownWorkerResponse, + self.update_workflow_execution_options = client._new_call( + "update_workflow_execution_options", + wsv1.UpdateWorkflowExecutionOptionsRequest, + wsv1.UpdateWorkflowExecutionOptionsResponse, ) diff --git a/temporalio/worker/_workflow_instance.py b/temporalio/worker/_workflow_instance.py index 5f24d6844..da6080d2b 100644 --- a/temporalio/worker/_workflow_instance.py +++ b/temporalio/worker/_workflow_instance.py @@ -1178,6 +1178,7 @@ def workflow_start_activity( activity_id: Optional[str], versioning_intent: Optional[temporalio.workflow.VersioningIntent], summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> temporalio.workflow.ActivityHandle[Any]: self._assert_not_read_only("start activity") # Get activity definition if it's callable @@ -1214,6 +1215,7 @@ def workflow_start_activity( ret_type=ret_type, versioning_intent=versioning_intent, summary=summary, + priority=priority, ) ) @@ -1242,6 +1244,7 @@ async def workflow_start_child_workflow( versioning_intent: Optional[temporalio.workflow.VersioningIntent], static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> temporalio.workflow.ChildWorkflowHandle[Any, Any]: # Use definition if callable name: str @@ -1281,6 +1284,7 @@ async def workflow_start_child_workflow( versioning_intent=versioning_intent, static_summary=static_summary, static_details=static_details, + priority=priority, ) ) @@ -2503,6 +2507,10 @@ def _apply_schedule_command( command.user_metadata.summary.CopyFrom( self._instance._payload_converter.to_payload(self._input.summary) ) + if self._input.priority: + command.schedule_activity.priority.CopyFrom( + self._input.priority._to_proto() + ) if isinstance(self._input, StartLocalActivityInput): if self._input.local_retry_threshold: command.schedule_local_activity.local_retry_threshold.FromTimedelta( From ac33dbd6fa6d96359d020db50eb6a18fbaa0862c Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Tue, 25 Mar 2025 18:00:14 -0700 Subject: [PATCH 05/15] Pass through priorities --- scripts/_proto/Dockerfile | 2 + temporalio/client.py | 11 +++++ temporalio/common.py | 38 +++++++++++++++- temporalio/worker/_interceptor.py | 2 + temporalio/worker/_workflow_instance.py | 2 + temporalio/workflow.py | 34 ++++++++++++++- tests/worker/test_workflow.py | 58 +++++++++++++++++++++++-- 7 files changed, 141 insertions(+), 6 deletions(-) diff --git a/scripts/_proto/Dockerfile b/scripts/_proto/Dockerfile index 07c5b3848..c057ebb3d 100644 --- a/scripts/_proto/Dockerfile +++ b/scripts/_proto/Dockerfile @@ -1,6 +1,7 @@ FROM python:3.10 RUN curl -LsSf https://astral.sh/uv/install.sh | sh +ENV PATH="$PATH:/root/.local/bin" RUN uv tool install poethepoet VOLUME ["/api_new", "/bridge_new"] @@ -9,6 +10,7 @@ COPY ./ ./ RUN mkdir -p ./temporalio/api RUN uv sync --all-extras RUN uv add "protobuf<4" +RUN uv sync --all-extras RUN poe gen-protos CMD cp -r ./temporalio/api/* /api_new && cp -r ./temporalio/bridge/proto/* /bridge_new diff --git a/temporalio/client.py b/temporalio/client.py index 320a196e3..7e27d1a11 100644 --- a/temporalio/client.py +++ b/temporalio/client.py @@ -319,6 +319,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for single-param workflow @@ -352,6 +353,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for multi-param workflow @@ -387,6 +389,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for string-name workflow @@ -422,6 +425,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> WorkflowHandle[Any, Any]: ... async def start_workflow( @@ -456,6 +460,7 @@ async def start_workflow( rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, stack_level: int = 2, + priority: Optional[temporalio.common.Priority] = None, ) -> WorkflowHandle[Any, Any]: """Start a workflow and return its handle. @@ -501,6 +506,7 @@ async def start_workflow( request_eager_start: Potentially reduce the latency to start this workflow by encouraging the server to start it on a local worker running with this same client. + priority: Priority of the workflow execution. Returns: A workflow handle to the started workflow. @@ -542,6 +548,7 @@ async def start_workflow( rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout, request_eager_start=request_eager_start, + priority=priority, ) ) @@ -5108,6 +5115,7 @@ class StartWorkflowInput: rpc_metadata: Mapping[str, str] rpc_timeout: Optional[timedelta] request_eager_start: bool + priority: Optional[temporalio.common.Priority] @dataclass @@ -5280,6 +5288,7 @@ class UpdateWithStartStartWorkflowInput: ret_type: Optional[Type] rpc_metadata: Mapping[str, str] rpc_timeout: Optional[timedelta] + priority: Optional[temporalio.common.Priority] @dataclass @@ -5797,6 +5806,8 @@ async def _populate_start_workflow_execution_request( req.workflow_start_delay.FromTimedelta(input.start_delay) if input.headers is not None: temporalio.common._apply_headers(input.headers, req.header.fields) + if input.priority is not None: + req.priority.CopyFrom(input.priority._to_proto()) async def cancel_workflow(self, input: CancelWorkflowInput) -> None: await self._client.workflow_service.request_cancel_workflow_execution( diff --git a/temporalio/common.py b/temporalio/common.py index e073aaecd..2f817f4cb 100644 --- a/temporalio/common.py +++ b/temporalio/common.py @@ -56,7 +56,7 @@ class RetryPolicy: maximum_attempts: int = 0 """Maximum number of attempts. - + If 0, the default, there is no maximum. """ @@ -962,6 +962,42 @@ def set( MetricMeter.noop = _NoopMetricMeter() + +@dataclass(frozen=True) +class Priority: + """Priority contains metadata that controls relative ordering of task processing when tasks are + backlogged in a queue. Initially, Priority will be used in activity and workflow task queues, + which are typically where backlogs exist. + + Priority is (for now) attached to workflows and activities. Activities and child workflows + inherit Priority from the workflow that created them, but may override fields when they are + started or modified. For each field of a Priority on an activity/workflow, not present or equal + to zero/empty string means to inherit the value from the calling workflow, or if there is no + calling workflow, then use the default (documented below). + + The overall semantics of Priority are: + 1. First, consider "priority_key": lower number goes first. + (more will be added here later) + """ + + priority_key: int = 0 + """Priority key is a positive integer from 1 to n, where smaller integers correspond to higher + priorities (tasks run sooner). In general, tasks in a queue should be processed in close to + priority order, although small deviations are possible. + + The maximum priority value (minimum priority) is determined by server configuration, and + defaults to 5. + + The default priority is (min+max)/2. With the default max of 5 and min of 1, that comes out to + 3. + """ + + def _to_proto(self) -> temporalio.api.common.v1.Priority: + return temporalio.api.common.v1.Priority( + priority_key=self.priority_key, + ) + + # Should be set as the "arg" argument for _arg_or_args checks where the argument # is unset. This is different than None which is a legitimate argument. _arg_unset = object() diff --git a/temporalio/worker/_interceptor.py b/temporalio/worker/_interceptor.py index 6606e5ec2..8210eb691 100644 --- a/temporalio/worker/_interceptor.py +++ b/temporalio/worker/_interceptor.py @@ -247,6 +247,7 @@ class StartActivityInput: disable_eager_execution: bool versioning_intent: Optional[VersioningIntent] summary: Optional[str] + priority: Optional[temporalio.common.Priority] # The types may be absent arg_types: Optional[List[Type]] ret_type: Optional[Type] @@ -278,6 +279,7 @@ class StartChildWorkflowInput: versioning_intent: Optional[VersioningIntent] static_summary: Optional[str] static_details: Optional[str] + priority: Optional[temporalio.common.Priority] # The types may be absent arg_types: Optional[List[Type]] ret_type: Optional[Type] diff --git a/temporalio/worker/_workflow_instance.py b/temporalio/worker/_workflow_instance.py index da6080d2b..2497ed1d2 100644 --- a/temporalio/worker/_workflow_instance.py +++ b/temporalio/worker/_workflow_instance.py @@ -2654,6 +2654,8 @@ def _apply_start_command(self) -> None: command.user_metadata.details.CopyFrom( self._instance._payload_converter.to_payload(self._input.static_details) ) + if self._input.priority: + v.priority.CopyFrom(self._input.priority._to_proto()) # If request cancel external, result does _not_ have seq def _apply_cancel_command( diff --git a/temporalio/workflow.py b/temporalio/workflow.py index 0a298a032..004bbb5f2 100644 --- a/temporalio/workflow.py +++ b/temporalio/workflow.py @@ -445,7 +445,7 @@ class Info: typed_search_attributes: temporalio.common.TypedSearchAttributes """Search attributes for the workflow. - + Note, this may have invalid values or be missing values if passing the deprecated form of dictionary attributes to :py:meth:`upsert_search_attributes`. @@ -688,6 +688,7 @@ def workflow_start_activity( activity_id: Optional[str], versioning_intent: Optional[VersioningIntent], summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[Any]: ... @abstractmethod @@ -716,6 +717,7 @@ async def workflow_start_child_workflow( versioning_intent: Optional[VersioningIntent], static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ChildWorkflowHandle[Any, Any]: ... @abstractmethod @@ -1878,6 +1880,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -1895,6 +1898,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -1913,6 +1917,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -1931,6 +1936,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -1949,6 +1955,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -1967,6 +1974,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -1987,6 +1995,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[Any]: ... @@ -2006,6 +2015,7 @@ def start_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[Any]: """Start an activity and return its handle. @@ -2041,6 +2051,7 @@ def start_activity( should run on a worker with a compatible Build Id or not. summary: A single-line fixed summary for this activity that may appear in UI/CLI. This can be in single-line Temporal markdown format. + priority: Priority of the activity. Returns: An activity handle to the activity which is an async task. @@ -2077,6 +2088,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2095,6 +2107,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2114,6 +2127,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2133,6 +2147,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2152,6 +2167,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2171,6 +2187,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2192,6 +2209,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> Any: ... @@ -2211,6 +2229,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> Any: """Start an activity and wait for completion. @@ -2232,6 +2251,7 @@ async def execute_activity( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + priority=priority, ) @@ -3816,6 +3836,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -3844,6 +3865,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -3872,6 +3894,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -3902,6 +3925,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ChildWorkflowHandle[Any, Any]: ... @@ -3930,6 +3954,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ChildWorkflowHandle[Any, Any]: """Start a child workflow and return its handle. @@ -3965,6 +3990,7 @@ async def start_child_workflow( UI/CLI. This can be in Temporal markdown format and can span multiple lines. This is a fixed value on the workflow that cannot be updated. For details that can be updated, use :py:meth:`Workflow.get_current_details` within the workflow. + priority: Priority to use for this workflow. Returns: A workflow handle to the started/existing workflow. @@ -4015,6 +4041,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -4042,6 +4069,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -4069,6 +4097,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -4098,6 +4127,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> Any: ... @@ -4125,6 +4155,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> Any: """Start a child workflow and wait for completion. @@ -4151,6 +4182,7 @@ async def execute_child_workflow( search_attributes=search_attributes, versioning_intent=versioning_intent, static_summary=summary, + priority=priority, ) return await handle diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index 665a5393e..8ac30a336 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -64,6 +64,7 @@ WorkflowUpdateStage, ) from temporalio.common import ( + Priority, RawValue, RetryPolicy, SearchAttributeKey, @@ -99,7 +100,7 @@ Runtime, TelemetryConfig, ) -from temporalio.service import RPCError, RPCStatusCode, __version__ +from temporalio.service import __version__ from temporalio.testing import WorkflowEnvironment from temporalio.worker import ( UnsandboxedWorkflowRunner, @@ -6033,9 +6034,9 @@ async def _do_first_completion_command_is_honored_test( result = await handle.result() except WorkflowFailureError as err: if main_workflow_returns_before_signal_completions: - assert ( - False - ), "Expected no error due to main workflow coroutine returning first" + assert False, ( + "Expected no error due to main workflow coroutine returning first" + ) else: assert str(err.cause).startswith("Client should see this error") else: @@ -6990,3 +6991,52 @@ async def test_update_handler_semaphore_acquisition_respects_timeout( ever_in_critical_section=3, peak_in_critical_section=3 ), ) + + +@workflow.defn +class WorkflowUsingPriorities: + @workflow.run + async def run(self, name: str) -> str: + await workflow.execute_child_workflow( + HelloWorkflow.run, name, priority=Priority(priority_key=4) + ) + await workflow.execute_activity( + say_hello, + name, + priority=Priority(priority_key=5), + start_to_close_timeout=timedelta(seconds=5), + ) + return "Done!" + + +async def test_workflow_priorities(client: Client): + async with new_worker( + client, WorkflowUsingPriorities, HelloWorkflow, activities=[say_hello] + ) as worker: + handle = await client.start_workflow( + WorkflowUsingPriorities.run, + "Temporal", + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + priority=Priority(priority_key=1), + ) + await handle.result() + + async for e in handle.fetch_history_events(): + if e.HasField("workflow_execution_started_event_attributes"): + assert ( + e.workflow_execution_started_event_attributes.priority.priority_key + == 1 + ) + elif e.HasField( + "start_child_workflow_execution_initiated_event_attributes" + ): + assert ( + e.start_child_workflow_execution_initiated_event_attributes.priority.priority_key + == 4 + ) + elif e.HasField("activity_task_scheduled_event_attributes"): + assert ( + e.activity_task_scheduled_event_attributes.priority.priority_key + == 5 + ) From 050562d46a7824d105ca9c0ea25cd870918103fc Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Wed, 26 Mar 2025 12:14:41 -0700 Subject: [PATCH 06/15] Use specific CLI version --- tests/conftest.py | 30 +++++++++++++++--------------- tests/worker/test_workflow.py | 7 ++++++- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 1c8bbf9da..7036bd1bb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,6 +1,4 @@ import asyncio -import logging -import multiprocessing import os import sys from typing import AsyncGenerator @@ -11,29 +9,29 @@ # If there is an integration test environment variable set, we must remove the # first path from the sys.path so we can import the wheel instead if os.getenv("TEMPORAL_INTEGRATION_TEST"): - assert ( - sys.path[0] == os.getcwd() - ), "Expected first sys.path to be the current working dir" + assert sys.path[0] == os.getcwd(), ( + "Expected first sys.path to be the current working dir" + ) sys.path.pop(0) # Import temporalio and confirm it is prefixed with virtual env import temporalio - assert temporalio.__file__.startswith( - sys.prefix - ), f"Expected {temporalio.__file__} to be in {sys.prefix}" + assert temporalio.__file__.startswith(sys.prefix), ( + f"Expected {temporalio.__file__} to be in {sys.prefix}" + ) # Unless specifically overridden, we expect tests to run under protobuf 4.x/5.x lib import google.protobuf protobuf_version = google.protobuf.__version__ if os.getenv("TEMPORAL_TEST_PROTO3"): - assert protobuf_version.startswith( - "3." - ), f"Expected protobuf 3.x, got {protobuf_version}" + assert protobuf_version.startswith("3."), ( + f"Expected protobuf 3.x, got {protobuf_version}" + ) else: - assert protobuf_version.startswith("4.") or protobuf_version.startswith( - "5." - ), f"Expected protobuf 4.x/5.x, got {protobuf_version}" + assert protobuf_version.startswith("4.") or protobuf_version.startswith("5."), ( + f"Expected protobuf 4.x/5.x, got {protobuf_version}" + ) from temporalio.client import Client from temporalio.testing import WorkflowEnvironment @@ -109,7 +107,9 @@ async def env(env_type: str) -> AsyncGenerator[WorkflowEnvironment, None]: "system.enableEagerWorkflowStart=true", "--dynamic-config-value", "frontend.enableExecuteMultiOperation=true", - ] + ], + # TODO: Remove after next CLI release + dev_server_download_version="v1.3.1-priority.0", ) elif env_type == "time-skipping": env = await WorkflowEnvironment.start_time_skipping() diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index 8ac30a336..7c2b0e434 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -7009,7 +7009,12 @@ async def run(self, name: str) -> str: return "Done!" -async def test_workflow_priorities(client: Client): +async def test_workflow_priorities(client: Client, env: WorkflowEnvironment): + if env.supports_time_skipping: + pytest.skip( + "Java test server needs release with: https://github.com/temporalio/sdk-java/pull/2453" + ) + async with new_worker( client, WorkflowUsingPriorities, HelloWorkflow, activities=[say_hello] ) as worker: From 11f83e512cd33b5bef198d6b75ba701d82b55039 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Wed, 26 Mar 2025 12:22:09 -0700 Subject: [PATCH 07/15] Cleanup --- temporalio/testing/_workflow.py | 4 ++-- tests/conftest.py | 24 ++++++++++++------------ tests/worker/test_workflow.py | 6 +++--- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/temporalio/testing/_workflow.py b/temporalio/testing/_workflow.py index ca7e56b41..85c5404ea 100644 --- a/temporalio/testing/_workflow.py +++ b/temporalio/testing/_workflow.py @@ -155,7 +155,7 @@ async def start_local( Defaults to ``default`` which downloads the version known to work best with this SDK. dev_server_extra_args: Extra arguments for the CLI binary. - dev_server_download_ttl_ms: TTL for the downloaded CLI binary. If unset, it will be + dev_server_download_ttl: TTL for the downloaded CLI binary. If unset, it will be cached indefinitely. Returns: @@ -301,7 +301,7 @@ async def start_time_skipping( download. Defaults to ``default`` which downloads the version known to work best with this SDK. test_server_extra_args: Extra arguments for the test server binary. - test_server_download_ttl: TTL for the downloaded test server binary. If unset, it + test_server_download_ttl: TTL for the downloaded test server binary. If unset, it will be cached indefinitely. Returns: diff --git a/tests/conftest.py b/tests/conftest.py index 7036bd1bb..c91c366bc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -9,29 +9,29 @@ # If there is an integration test environment variable set, we must remove the # first path from the sys.path so we can import the wheel instead if os.getenv("TEMPORAL_INTEGRATION_TEST"): - assert sys.path[0] == os.getcwd(), ( - "Expected first sys.path to be the current working dir" - ) + assert ( + sys.path[0] == os.getcwd() + ), "Expected first sys.path to be the current working dir" sys.path.pop(0) # Import temporalio and confirm it is prefixed with virtual env import temporalio - assert temporalio.__file__.startswith(sys.prefix), ( - f"Expected {temporalio.__file__} to be in {sys.prefix}" - ) + assert temporalio.__file__.startswith( + sys.prefix + ), f"Expected {temporalio.__file__} to be in {sys.prefix}" # Unless specifically overridden, we expect tests to run under protobuf 4.x/5.x lib import google.protobuf protobuf_version = google.protobuf.__version__ if os.getenv("TEMPORAL_TEST_PROTO3"): - assert protobuf_version.startswith("3."), ( - f"Expected protobuf 3.x, got {protobuf_version}" - ) + assert protobuf_version.startswith( + "3." + ), f"Expected protobuf 3.x, got {protobuf_version}" else: - assert protobuf_version.startswith("4.") or protobuf_version.startswith("5."), ( - f"Expected protobuf 4.x/5.x, got {protobuf_version}" - ) + assert protobuf_version.startswith("4.") or protobuf_version.startswith( + "5." + ), f"Expected protobuf 4.x/5.x, got {protobuf_version}" from temporalio.client import Client from temporalio.testing import WorkflowEnvironment diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index 7c2b0e434..5105120c2 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -6034,9 +6034,9 @@ async def _do_first_completion_command_is_honored_test( result = await handle.result() except WorkflowFailureError as err: if main_workflow_returns_before_signal_completions: - assert False, ( - "Expected no error due to main workflow coroutine returning first" - ) + assert ( + False + ), "Expected no error due to main workflow coroutine returning first" else: assert str(err.cause).startswith("Client should see this error") else: From e4bbd54c67d8b0e5f809a6eb634f26d75313fc59 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Wed, 26 Mar 2025 16:18:33 -0700 Subject: [PATCH 08/15] Update core/protos again to get priorities on tasks --- .../proto/activity_task/activity_task_pb2.py | 16 ++-- .../proto/activity_task/activity_task_pb2.pyi | 9 ++ .../workflow_activation_pb2.py | 96 +++++++++---------- .../workflow_activation_pb2.pyi | 9 ++ temporalio/bridge/sdk-core | 2 +- 5 files changed, 75 insertions(+), 57 deletions(-) diff --git a/temporalio/bridge/proto/activity_task/activity_task_pb2.py b/temporalio/bridge/proto/activity_task/activity_task_pb2.py index a355d6baa..347d07989 100644 --- a/temporalio/bridge/proto/activity_task/activity_task_pb2.py +++ b/temporalio/bridge/proto/activity_task/activity_task_pb2.py @@ -26,7 +26,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n3temporal/sdk/core/activity_task/activity_task.proto\x12\x15\x63oresdk.activity_task\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/sdk/core/common/common.proto"\x8d\x01\n\x0c\x41\x63tivityTask\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12-\n\x05start\x18\x03 \x01(\x0b\x32\x1c.coresdk.activity_task.StartH\x00\x12/\n\x06\x63\x61ncel\x18\x04 \x01(\x0b\x32\x1d.coresdk.activity_task.CancelH\x00\x42\t\n\x07variant"\xed\x06\n\x05Start\x12\x1a\n\x12workflow_namespace\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x15\n\ractivity_type\x18\x05 \x01(\t\x12\x45\n\rheader_fields\x18\x06 \x03(\x0b\x32..coresdk.activity_task.Start.HeaderFieldsEntry\x12.\n\x05input\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12:\n\x11heartbeat_details\x18\x08 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x0c \x01(\r\x12<\n\x19schedule_to_close_timeout\x18\r \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x10\n\x08is_local\x18\x11 \x01(\x08\x1aT\n\x11HeaderFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"E\n\x06\x43\x61ncel\x12;\n\x06reason\x18\x01 \x01(\x0e\x32+.coresdk.activity_task.ActivityCancelReason*X\n\x14\x41\x63tivityCancelReason\x12\r\n\tNOT_FOUND\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\r\n\tTIMED_OUT\x10\x02\x12\x13\n\x0fWORKER_SHUTDOWN\x10\x03\x42\x32\xea\x02/Temporalio::Internal::Bridge::Api::ActivityTaskb\x06proto3' + b'\n3temporal/sdk/core/activity_task/activity_task.proto\x12\x15\x63oresdk.activity_task\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/sdk/core/common/common.proto"\x8d\x01\n\x0c\x41\x63tivityTask\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12-\n\x05start\x18\x03 \x01(\x0b\x32\x1c.coresdk.activity_task.StartH\x00\x12/\n\x06\x63\x61ncel\x18\x04 \x01(\x0b\x32\x1d.coresdk.activity_task.CancelH\x00\x42\t\n\x07variant"\xa1\x07\n\x05Start\x12\x1a\n\x12workflow_namespace\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12\x45\n\x12workflow_execution\x18\x03 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x15\n\ractivity_type\x18\x05 \x01(\t\x12\x45\n\rheader_fields\x18\x06 \x03(\x0b\x32..coresdk.activity_task.Start.HeaderFieldsEntry\x12.\n\x05input\x18\x07 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12:\n\x11heartbeat_details\x18\x08 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x32\n\x0escheduled_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\x0c \x01(\r\x12<\n\x19schedule_to_close_timeout\x18\r \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x10\n\x08is_local\x18\x11 \x01(\x08\x1aT\n\x11HeaderFieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"E\n\x06\x43\x61ncel\x12;\n\x06reason\x18\x01 \x01(\x0e\x32+.coresdk.activity_task.ActivityCancelReason*X\n\x14\x41\x63tivityCancelReason\x12\r\n\tNOT_FOUND\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\r\n\tTIMED_OUT\x10\x02\x12\x13\n\x0fWORKER_SHUTDOWN\x10\x03\x42\x32\xea\x02/Temporalio::Internal::Bridge::Api::ActivityTaskb\x06proto3' ) _ACTIVITYCANCELREASON = DESCRIPTOR.enum_types_by_name["ActivityCancelReason"] @@ -91,14 +91,14 @@ ) _START_HEADERFIELDSENTRY._options = None _START_HEADERFIELDSENTRY._serialized_options = b"8\001" - _ACTIVITYCANCELREASON._serialized_start = 1315 - _ACTIVITYCANCELREASON._serialized_end = 1403 + _ACTIVITYCANCELREASON._serialized_start = 1367 + _ACTIVITYCANCELREASON._serialized_end = 1455 _ACTIVITYTASK._serialized_start = 221 _ACTIVITYTASK._serialized_end = 362 _START._serialized_start = 365 - _START._serialized_end = 1242 - _START_HEADERFIELDSENTRY._serialized_start = 1158 - _START_HEADERFIELDSENTRY._serialized_end = 1242 - _CANCEL._serialized_start = 1244 - _CANCEL._serialized_end = 1313 + _START._serialized_end = 1294 + _START_HEADERFIELDSENTRY._serialized_start = 1210 + _START_HEADERFIELDSENTRY._serialized_end = 1294 + _CANCEL._serialized_start = 1296 + _CANCEL._serialized_end = 1365 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi b/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi index 7de4faa32..a296cd770 100644 --- a/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi +++ b/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi @@ -149,6 +149,7 @@ class Start(google.protobuf.message.Message): START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int RETRY_POLICY_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int IS_LOCAL_FIELD_NUMBER: builtins.int workflow_namespace: builtins.str """The namespace the workflow lives in""" @@ -208,6 +209,9 @@ class Start(google.protobuf.message.Message): (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. """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority of this activity. Local activities will always have this field set to the default.""" is_local: builtins.bool """Set to true if this is a local activity. Note that heartbeating does not apply to local activities. @@ -240,6 +244,7 @@ class Start(google.protobuf.message.Message): start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ..., heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ..., retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., is_local: builtins.bool = ..., ) -> None: ... def HasField( @@ -249,6 +254,8 @@ class Start(google.protobuf.message.Message): b"current_attempt_scheduled_time", "heartbeat_timeout", b"heartbeat_timeout", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", @@ -284,6 +291,8 @@ class Start(google.protobuf.message.Message): b"input", "is_local", b"is_local", + "priority", + b"priority", "retry_policy", b"retry_policy", "schedule_to_close_timeout", diff --git a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py index ee80cd023..820c9b3bd 100644 --- a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py +++ b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py @@ -44,7 +44,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n?temporal/sdk/core/workflow_activation/workflow_activation.proto\x12\x1b\x63oresdk.workflow_activation\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a%temporal/sdk/core/common/common.proto\x1a#temporal/sdk/core/nexus/nexus.proto"\xc7\x02\n\x12WorkflowActivation\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cis_replaying\x18\x03 \x01(\x08\x12\x16\n\x0ehistory_length\x18\x04 \x01(\r\x12@\n\x04jobs\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.WorkflowActivationJob\x12 \n\x18\x61vailable_internal_flags\x18\x06 \x03(\r\x12\x1a\n\x12history_size_bytes\x18\x07 \x01(\x04\x12!\n\x19\x63ontinue_as_new_suggested\x18\x08 \x01(\x08\x12!\n\x19\x62uild_id_for_current_task\x18\t \x01(\t"\xe0\n\n\x15WorkflowActivationJob\x12N\n\x13initialize_workflow\x18\x01 \x01(\x0b\x32/.coresdk.workflow_activation.InitializeWorkflowH\x00\x12<\n\nfire_timer\x18\x02 \x01(\x0b\x32&.coresdk.workflow_activation.FireTimerH\x00\x12K\n\x12update_random_seed\x18\x04 \x01(\x0b\x32-.coresdk.workflow_activation.UpdateRandomSeedH\x00\x12\x44\n\x0equery_workflow\x18\x05 \x01(\x0b\x32*.coresdk.workflow_activation.QueryWorkflowH\x00\x12\x46\n\x0f\x63\x61ncel_workflow\x18\x06 \x01(\x0b\x32+.coresdk.workflow_activation.CancelWorkflowH\x00\x12\x46\n\x0fsignal_workflow\x18\x07 \x01(\x0b\x32+.coresdk.workflow_activation.SignalWorkflowH\x00\x12H\n\x10resolve_activity\x18\x08 \x01(\x0b\x32,.coresdk.workflow_activation.ResolveActivityH\x00\x12G\n\x10notify_has_patch\x18\t \x01(\x0b\x32+.coresdk.workflow_activation.NotifyHasPatchH\x00\x12q\n&resolve_child_workflow_execution_start\x18\n \x01(\x0b\x32?.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartH\x00\x12\x66\n resolve_child_workflow_execution\x18\x0b \x01(\x0b\x32:.coresdk.workflow_activation.ResolveChildWorkflowExecutionH\x00\x12\x66\n resolve_signal_external_workflow\x18\x0c \x01(\x0b\x32:.coresdk.workflow_activation.ResolveSignalExternalWorkflowH\x00\x12u\n(resolve_request_cancel_external_workflow\x18\r \x01(\x0b\x32\x41.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflowH\x00\x12:\n\tdo_update\x18\x0e \x01(\x0b\x32%.coresdk.workflow_activation.DoUpdateH\x00\x12`\n\x1dresolve_nexus_operation_start\x18\x0f \x01(\x0b\x32\x37.coresdk.workflow_activation.ResolveNexusOperationStartH\x00\x12U\n\x17resolve_nexus_operation\x18\x10 \x01(\x0b\x32\x32.coresdk.workflow_activation.ResolveNexusOperationH\x00\x12I\n\x11remove_from_cache\x18\x32 \x01(\x0b\x32,.coresdk.workflow_activation.RemoveFromCacheH\x00\x42\t\n\x07variant"\xa5\n\n\x12InitializeWorkflow\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x17\n\x0frandomness_seed\x18\x04 \x01(\x04\x12M\n\x07headers\x18\x05 \x03(\x0b\x32<.coresdk.workflow_activation.InitializeWorkflow.HeadersEntry\x12\x10\n\x08identity\x18\x06 \x01(\t\x12I\n\x14parent_workflow_info\x18\x07 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12=\n\x1aworkflow_execution_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\'\n\x1f\x63ontinued_from_execution_run_id\x18\x0b \x01(\t\x12J\n\x13\x63ontinued_initiator\x18\x0c \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\r \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1e\n\x16\x66irst_execution_run_id\x18\x0f \x01(\t\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x11 \x01(\x05\x12\x15\n\rcron_schedule\x18\x12 \x01(\t\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n"cron_schedule_to_schedule_interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x15 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x16 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\nstart_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\rroot_workflow\x18\x18 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x18\n\tFireTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"m\n\x0fResolveActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.activity_result.ActivityResolution\x12\x10\n\x08is_local\x18\x03 \x01(\x08"\xd1\x02\n"ResolveChildWorkflowExecutionStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12[\n\tsucceeded\x18\x02 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartSuccessH\x00\x12X\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartFailureH\x00\x12]\n\tcancelled\x18\x04 \x01(\x0b\x32H.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartCancelledH\x00\x42\x08\n\x06status";\n)ResolveChildWorkflowExecutionStartSuccess\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xa6\x01\n)ResolveChildWorkflowExecutionStartFailure\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12M\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32>.coresdk.child_workflow.StartChildWorkflowExecutionFailedCause"`\n+ResolveChildWorkflowExecutionStartCancelled\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"i\n\x1dResolveChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.child_workflow.ChildWorkflowResult"+\n\x10UpdateRandomSeed\x12\x17\n\x0frandomness_seed\x18\x01 \x01(\x04"\x84\x02\n\rQueryWorkflow\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12\x12\n\nquery_type\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12H\n\x07headers\x18\x05 \x03(\x0b\x32\x37.coresdk.workflow_activation.QueryWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01" \n\x0e\x43\x61ncelWorkflow\x12\x0e\n\x06reason\x18\x01 \x01(\t"\x83\x02\n\x0eSignalWorkflow\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12.\n\x05input\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x07headers\x18\x05 \x03(\x0b\x32\x38.coresdk.workflow_activation.SignalWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01""\n\x0eNotifyHasPatch\x12\x10\n\x08patch_id\x18\x01 \x01(\t"_\n\x1dResolveSignalExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"f\n$ResolveRequestCancelExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xcb\x02\n\x08\x44oUpdate\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14protocol_instance_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x43\n\x07headers\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.DoUpdate.HeadersEntry\x12*\n\x04meta\x18\x06 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x15\n\rrun_validator\x18\x07 \x01(\x08\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\xa7\x01\n\x1aResolveNexusOperationStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x16\n\x0coperation_id\x18\x02 \x01(\tH\x00\x12\x16\n\x0cstarted_sync\x18\x03 \x01(\x08H\x00\x12\x42\n\x16\x63\x61ncelled_before_start\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status"Y\n\x15ResolveNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x33\n\x06result\x18\x02 \x01(\x0b\x32#.coresdk.nexus.NexusOperationResult"\xe0\x02\n\x0fRemoveFromCache\x12\x0f\n\x07message\x18\x01 \x01(\t\x12K\n\x06reason\x18\x02 \x01(\x0e\x32;.coresdk.workflow_activation.RemoveFromCache.EvictionReason"\xee\x01\n\x0e\x45victionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nCACHE_FULL\x10\x01\x12\x0e\n\nCACHE_MISS\x10\x02\x12\x12\n\x0eNONDETERMINISM\x10\x03\x12\r\n\tLANG_FAIL\x10\x04\x12\x12\n\x0eLANG_REQUESTED\x10\x05\x12\x12\n\x0eTASK_NOT_FOUND\x10\x06\x12\x15\n\x11UNHANDLED_COMMAND\x10\x07\x12\t\n\x05\x46\x41TAL\x10\x08\x12\x1f\n\x1bPAGINATION_OR_HISTORY_FETCH\x10\t\x12\x1d\n\x19WORKFLOW_EXECUTION_ENDING\x10\nB8\xea\x02\x35Temporalio::Internal::Bridge::Api::WorkflowActivationb\x06proto3' + b'\n?temporal/sdk/core/workflow_activation/workflow_activation.proto\x12\x1b\x63oresdk.workflow_activation\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a\x37temporal/sdk/core/activity_result/activity_result.proto\x1a\x35temporal/sdk/core/child_workflow/child_workflow.proto\x1a%temporal/sdk/core/common/common.proto\x1a#temporal/sdk/core/nexus/nexus.proto"\xc7\x02\n\x12WorkflowActivation\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0cis_replaying\x18\x03 \x01(\x08\x12\x16\n\x0ehistory_length\x18\x04 \x01(\r\x12@\n\x04jobs\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.WorkflowActivationJob\x12 \n\x18\x61vailable_internal_flags\x18\x06 \x03(\r\x12\x1a\n\x12history_size_bytes\x18\x07 \x01(\x04\x12!\n\x19\x63ontinue_as_new_suggested\x18\x08 \x01(\x08\x12!\n\x19\x62uild_id_for_current_task\x18\t \x01(\t"\xe0\n\n\x15WorkflowActivationJob\x12N\n\x13initialize_workflow\x18\x01 \x01(\x0b\x32/.coresdk.workflow_activation.InitializeWorkflowH\x00\x12<\n\nfire_timer\x18\x02 \x01(\x0b\x32&.coresdk.workflow_activation.FireTimerH\x00\x12K\n\x12update_random_seed\x18\x04 \x01(\x0b\x32-.coresdk.workflow_activation.UpdateRandomSeedH\x00\x12\x44\n\x0equery_workflow\x18\x05 \x01(\x0b\x32*.coresdk.workflow_activation.QueryWorkflowH\x00\x12\x46\n\x0f\x63\x61ncel_workflow\x18\x06 \x01(\x0b\x32+.coresdk.workflow_activation.CancelWorkflowH\x00\x12\x46\n\x0fsignal_workflow\x18\x07 \x01(\x0b\x32+.coresdk.workflow_activation.SignalWorkflowH\x00\x12H\n\x10resolve_activity\x18\x08 \x01(\x0b\x32,.coresdk.workflow_activation.ResolveActivityH\x00\x12G\n\x10notify_has_patch\x18\t \x01(\x0b\x32+.coresdk.workflow_activation.NotifyHasPatchH\x00\x12q\n&resolve_child_workflow_execution_start\x18\n \x01(\x0b\x32?.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartH\x00\x12\x66\n resolve_child_workflow_execution\x18\x0b \x01(\x0b\x32:.coresdk.workflow_activation.ResolveChildWorkflowExecutionH\x00\x12\x66\n resolve_signal_external_workflow\x18\x0c \x01(\x0b\x32:.coresdk.workflow_activation.ResolveSignalExternalWorkflowH\x00\x12u\n(resolve_request_cancel_external_workflow\x18\r \x01(\x0b\x32\x41.coresdk.workflow_activation.ResolveRequestCancelExternalWorkflowH\x00\x12:\n\tdo_update\x18\x0e \x01(\x0b\x32%.coresdk.workflow_activation.DoUpdateH\x00\x12`\n\x1dresolve_nexus_operation_start\x18\x0f \x01(\x0b\x32\x37.coresdk.workflow_activation.ResolveNexusOperationStartH\x00\x12U\n\x17resolve_nexus_operation\x18\x10 \x01(\x0b\x32\x32.coresdk.workflow_activation.ResolveNexusOperationH\x00\x12I\n\x11remove_from_cache\x18\x32 \x01(\x0b\x32,.coresdk.workflow_activation.RemoveFromCacheH\x00\x42\t\n\x07variant"\xd9\n\n\x12InitializeWorkflow\x12\x15\n\rworkflow_type\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x17\n\x0frandomness_seed\x18\x04 \x01(\x04\x12M\n\x07headers\x18\x05 \x03(\x0b\x32<.coresdk.workflow_activation.InitializeWorkflow.HeadersEntry\x12\x10\n\x08identity\x18\x06 \x01(\t\x12I\n\x14parent_workflow_info\x18\x07 \x01(\x0b\x32+.coresdk.common.NamespacedWorkflowExecution\x12=\n\x1aworkflow_execution_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\'\n\x1f\x63ontinued_from_execution_run_id\x18\x0b \x01(\t\x12J\n\x13\x63ontinued_initiator\x18\x0c \x01(\x0e\x32-.temporal.api.enums.v1.ContinueAsNewInitiator\x12;\n\x11\x63ontinued_failure\x18\r \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x0e \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x1e\n\x16\x66irst_execution_run_id\x18\x0f \x01(\t\x12\x39\n\x0cretry_policy\x18\x10 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x0f\n\x07\x61ttempt\x18\x11 \x01(\x05\x12\x15\n\rcron_schedule\x18\x12 \x01(\t\x12\x46\n"workflow_execution_expiration_time\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n"cron_schedule_to_schedule_interval\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12*\n\x04memo\x18\x15 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x16 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\nstart_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12@\n\rroot_workflow\x18\x18 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x32\n\x08priority\x18\x19 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\x18\n\tFireTimer\x12\x0b\n\x03seq\x18\x01 \x01(\r"m\n\x0fResolveActivity\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.activity_result.ActivityResolution\x12\x10\n\x08is_local\x18\x03 \x01(\x08"\xd1\x02\n"ResolveChildWorkflowExecutionStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12[\n\tsucceeded\x18\x02 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartSuccessH\x00\x12X\n\x06\x66\x61iled\x18\x03 \x01(\x0b\x32\x46.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartFailureH\x00\x12]\n\tcancelled\x18\x04 \x01(\x0b\x32H.coresdk.workflow_activation.ResolveChildWorkflowExecutionStartCancelledH\x00\x42\x08\n\x06status";\n)ResolveChildWorkflowExecutionStartSuccess\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\xa6\x01\n)ResolveChildWorkflowExecutionStartFailure\x12\x13\n\x0bworkflow_id\x18\x01 \x01(\t\x12\x15\n\rworkflow_type\x18\x02 \x01(\t\x12M\n\x05\x63\x61use\x18\x03 \x01(\x0e\x32>.coresdk.child_workflow.StartChildWorkflowExecutionFailedCause"`\n+ResolveChildWorkflowExecutionStartCancelled\x12\x31\n\x07\x66\x61ilure\x18\x01 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"i\n\x1dResolveChildWorkflowExecution\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12;\n\x06result\x18\x02 \x01(\x0b\x32+.coresdk.child_workflow.ChildWorkflowResult"+\n\x10UpdateRandomSeed\x12\x17\n\x0frandomness_seed\x18\x01 \x01(\x04"\x84\x02\n\rQueryWorkflow\x12\x10\n\x08query_id\x18\x01 \x01(\t\x12\x12\n\nquery_type\x18\x02 \x01(\t\x12\x32\n\targuments\x18\x03 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12H\n\x07headers\x18\x05 \x03(\x0b\x32\x37.coresdk.workflow_activation.QueryWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01" \n\x0e\x43\x61ncelWorkflow\x12\x0e\n\x06reason\x18\x01 \x01(\t"\x83\x02\n\x0eSignalWorkflow\x12\x13\n\x0bsignal_name\x18\x01 \x01(\t\x12.\n\x05input\x18\x02 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\x12I\n\x07headers\x18\x05 \x03(\x0b\x32\x38.coresdk.workflow_activation.SignalWorkflow.HeadersEntry\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01""\n\x0eNotifyHasPatch\x12\x10\n\x08patch_id\x18\x01 \x01(\t"_\n\x1dResolveSignalExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"f\n$ResolveRequestCancelExternalWorkflow\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure"\xcb\x02\n\x08\x44oUpdate\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1c\n\x14protocol_instance_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\x05input\x18\x04 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x43\n\x07headers\x18\x05 \x03(\x0b\x32\x32.coresdk.workflow_activation.DoUpdate.HeadersEntry\x12*\n\x04meta\x18\x06 \x01(\x0b\x32\x1c.temporal.api.update.v1.Meta\x12\x15\n\rrun_validator\x18\x07 \x01(\x08\x1aO\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"\xa7\x01\n\x1aResolveNexusOperationStart\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x16\n\x0coperation_id\x18\x02 \x01(\tH\x00\x12\x16\n\x0cstarted_sync\x18\x03 \x01(\x08H\x00\x12\x42\n\x16\x63\x61ncelled_before_start\x18\x04 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\x08\n\x06status"Y\n\x15ResolveNexusOperation\x12\x0b\n\x03seq\x18\x01 \x01(\r\x12\x33\n\x06result\x18\x02 \x01(\x0b\x32#.coresdk.nexus.NexusOperationResult"\xe0\x02\n\x0fRemoveFromCache\x12\x0f\n\x07message\x18\x01 \x01(\t\x12K\n\x06reason\x18\x02 \x01(\x0e\x32;.coresdk.workflow_activation.RemoveFromCache.EvictionReason"\xee\x01\n\x0e\x45victionReason\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0e\n\nCACHE_FULL\x10\x01\x12\x0e\n\nCACHE_MISS\x10\x02\x12\x12\n\x0eNONDETERMINISM\x10\x03\x12\r\n\tLANG_FAIL\x10\x04\x12\x12\n\x0eLANG_REQUESTED\x10\x05\x12\x12\n\x0eTASK_NOT_FOUND\x10\x06\x12\x15\n\x11UNHANDLED_COMMAND\x10\x07\x12\t\n\x05\x46\x41TAL\x10\x08\x12\x1f\n\x1bPAGINATION_OR_HISTORY_FETCH\x10\t\x12\x1d\n\x19WORKFLOW_EXECUTION_ENDING\x10\nB8\xea\x02\x35Temporalio::Internal::Bridge::Api::WorkflowActivationb\x06proto3' ) @@ -381,51 +381,51 @@ _WORKFLOWACTIVATIONJOB._serialized_start = 862 _WORKFLOWACTIVATIONJOB._serialized_end = 2238 _INITIALIZEWORKFLOW._serialized_start = 2241 - _INITIALIZEWORKFLOW._serialized_end = 3558 - _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_start = 3479 - _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_end = 3558 - _FIRETIMER._serialized_start = 3560 - _FIRETIMER._serialized_end = 3584 - _RESOLVEACTIVITY._serialized_start = 3586 - _RESOLVEACTIVITY._serialized_end = 3695 - _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_start = 3698 - _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_end = 4035 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_start = 4037 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_end = 4096 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_start = 4099 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_end = 4265 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_start = 4267 - _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_end = 4363 - _RESOLVECHILDWORKFLOWEXECUTION._serialized_start = 4365 - _RESOLVECHILDWORKFLOWEXECUTION._serialized_end = 4470 - _UPDATERANDOMSEED._serialized_start = 4472 - _UPDATERANDOMSEED._serialized_end = 4515 - _QUERYWORKFLOW._serialized_start = 4518 - _QUERYWORKFLOW._serialized_end = 4778 - _QUERYWORKFLOW_HEADERSENTRY._serialized_start = 3479 - _QUERYWORKFLOW_HEADERSENTRY._serialized_end = 3558 - _CANCELWORKFLOW._serialized_start = 4780 - _CANCELWORKFLOW._serialized_end = 4812 - _SIGNALWORKFLOW._serialized_start = 4815 - _SIGNALWORKFLOW._serialized_end = 5074 - _SIGNALWORKFLOW_HEADERSENTRY._serialized_start = 3479 - _SIGNALWORKFLOW_HEADERSENTRY._serialized_end = 3558 - _NOTIFYHASPATCH._serialized_start = 5076 - _NOTIFYHASPATCH._serialized_end = 5110 - _RESOLVESIGNALEXTERNALWORKFLOW._serialized_start = 5112 - _RESOLVESIGNALEXTERNALWORKFLOW._serialized_end = 5207 - _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_start = 5209 - _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_end = 5311 - _DOUPDATE._serialized_start = 5314 - _DOUPDATE._serialized_end = 5645 - _DOUPDATE_HEADERSENTRY._serialized_start = 3479 - _DOUPDATE_HEADERSENTRY._serialized_end = 3558 - _RESOLVENEXUSOPERATIONSTART._serialized_start = 5648 - _RESOLVENEXUSOPERATIONSTART._serialized_end = 5815 - _RESOLVENEXUSOPERATION._serialized_start = 5817 - _RESOLVENEXUSOPERATION._serialized_end = 5906 - _REMOVEFROMCACHE._serialized_start = 5909 - _REMOVEFROMCACHE._serialized_end = 6261 - _REMOVEFROMCACHE_EVICTIONREASON._serialized_start = 6023 - _REMOVEFROMCACHE_EVICTIONREASON._serialized_end = 6261 + _INITIALIZEWORKFLOW._serialized_end = 3610 + _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_start = 3531 + _INITIALIZEWORKFLOW_HEADERSENTRY._serialized_end = 3610 + _FIRETIMER._serialized_start = 3612 + _FIRETIMER._serialized_end = 3636 + _RESOLVEACTIVITY._serialized_start = 3638 + _RESOLVEACTIVITY._serialized_end = 3747 + _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_start = 3750 + _RESOLVECHILDWORKFLOWEXECUTIONSTART._serialized_end = 4087 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_start = 4089 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS._serialized_end = 4148 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_start = 4151 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE._serialized_end = 4317 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_start = 4319 + _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED._serialized_end = 4415 + _RESOLVECHILDWORKFLOWEXECUTION._serialized_start = 4417 + _RESOLVECHILDWORKFLOWEXECUTION._serialized_end = 4522 + _UPDATERANDOMSEED._serialized_start = 4524 + _UPDATERANDOMSEED._serialized_end = 4567 + _QUERYWORKFLOW._serialized_start = 4570 + _QUERYWORKFLOW._serialized_end = 4830 + _QUERYWORKFLOW_HEADERSENTRY._serialized_start = 3531 + _QUERYWORKFLOW_HEADERSENTRY._serialized_end = 3610 + _CANCELWORKFLOW._serialized_start = 4832 + _CANCELWORKFLOW._serialized_end = 4864 + _SIGNALWORKFLOW._serialized_start = 4867 + _SIGNALWORKFLOW._serialized_end = 5126 + _SIGNALWORKFLOW_HEADERSENTRY._serialized_start = 3531 + _SIGNALWORKFLOW_HEADERSENTRY._serialized_end = 3610 + _NOTIFYHASPATCH._serialized_start = 5128 + _NOTIFYHASPATCH._serialized_end = 5162 + _RESOLVESIGNALEXTERNALWORKFLOW._serialized_start = 5164 + _RESOLVESIGNALEXTERNALWORKFLOW._serialized_end = 5259 + _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_start = 5261 + _RESOLVEREQUESTCANCELEXTERNALWORKFLOW._serialized_end = 5363 + _DOUPDATE._serialized_start = 5366 + _DOUPDATE._serialized_end = 5697 + _DOUPDATE_HEADERSENTRY._serialized_start = 3531 + _DOUPDATE_HEADERSENTRY._serialized_end = 3610 + _RESOLVENEXUSOPERATIONSTART._serialized_start = 5700 + _RESOLVENEXUSOPERATIONSTART._serialized_end = 5867 + _RESOLVENEXUSOPERATION._serialized_start = 5869 + _RESOLVENEXUSOPERATION._serialized_end = 5958 + _REMOVEFROMCACHE._serialized_start = 5961 + _REMOVEFROMCACHE._serialized_end = 6313 + _REMOVEFROMCACHE_EVICTIONREASON._serialized_start = 6075 + _REMOVEFROMCACHE_EVICTIONREASON._serialized_end = 6313 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi index 0b671e37b..5eb734a1b 100644 --- a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi +++ b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi @@ -433,6 +433,7 @@ class InitializeWorkflow(google.protobuf.message.Message): SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int START_TIME_FIELD_NUMBER: builtins.int ROOT_WORKFLOW_FIELD_NUMBER: builtins.int + PRIORITY_FIELD_NUMBER: builtins.int workflow_type: builtins.str """The identifier the lang-specific sdk uses to execute workflow code""" workflow_id: builtins.str @@ -532,6 +533,9 @@ class InitializeWorkflow(google.protobuf.message.Message): See field in WorkflowExecutionStarted for more detail. """ + @property + def priority(self) -> temporalio.api.common.v1.message_pb2.Priority: + """Priority of this workflow execution""" def __init__( self, *, @@ -571,6 +575,7 @@ class InitializeWorkflow(google.protobuf.message.Message): start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., root_workflow: temporalio.api.common.v1.message_pb2.WorkflowExecution | None = ..., + priority: temporalio.api.common.v1.message_pb2.Priority | None = ..., ) -> None: ... def HasField( self, @@ -585,6 +590,8 @@ class InitializeWorkflow(google.protobuf.message.Message): b"memo", "parent_workflow_info", b"parent_workflow_info", + "priority", + b"priority", "retry_policy", b"retry_policy", "root_workflow", @@ -632,6 +639,8 @@ class InitializeWorkflow(google.protobuf.message.Message): b"memo", "parent_workflow_info", b"parent_workflow_info", + "priority", + b"priority", "randomness_seed", b"randomness_seed", "retry_policy", diff --git a/temporalio/bridge/sdk-core b/temporalio/bridge/sdk-core index 97093c5ea..95db75dc9 160000 --- a/temporalio/bridge/sdk-core +++ b/temporalio/bridge/sdk-core @@ -1 +1 @@ -Subproject commit 97093c5ea4b0d933513f4c8999f7960f0c16f05f +Subproject commit 95db75dc950cf07a99c79e6794172572dd34e6a6 From 43b9aed46931eda853658edeacd34afbd503f8a2 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Wed, 26 Mar 2025 16:27:02 -0700 Subject: [PATCH 09/15] Attach everywhere & add test --- temporalio/activity.py | 1 + temporalio/client.py | 5 +++++ temporalio/common.py | 7 ++++++- temporalio/testing/_activity.py | 1 + temporalio/worker/_activity.py | 1 + temporalio/worker/_workflow.py | 1 + temporalio/worker/workflow_sandbox/_runner.py | 1 + temporalio/workflow.py | 3 +++ tests/worker/test_workflow.py | 7 +++++++ 9 files changed, 26 insertions(+), 1 deletion(-) diff --git a/temporalio/activity.py b/temporalio/activity.py index 281cfcb8d..c67fa0f38 100644 --- a/temporalio/activity.py +++ b/temporalio/activity.py @@ -116,6 +116,7 @@ class Info: workflow_namespace: str workflow_run_id: str workflow_type: str + priority: temporalio.common.Priority # TODO(cretz): Consider putting identity on here for "worker_id" for logger? def _logger_details(self) -> Mapping[str, Any]: diff --git a/temporalio/client.py b/temporalio/client.py index 7e27d1a11..8a4cad122 100644 --- a/temporalio/client.py +++ b/temporalio/client.py @@ -2446,6 +2446,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: ... # Overload for single-param workflow, with_start @@ -2508,6 +2509,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: ... # Overload for string-name workflow, with_start @@ -2540,6 +2542,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: ... def __init__( @@ -2570,6 +2573,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, + priority: Optional[temporalio.common.Priority] = None, stack_level: int = 2, ) -> None: """Create a WithStartWorkflowOperation. @@ -2610,6 +2614,7 @@ def __init__( ret_type=result_type or result_type_from_run_fn, rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout, + priority=priority, ) self._workflow_handle: Future[WorkflowHandle[SelfType, ReturnType]] = Future() self._used = False diff --git a/temporalio/common.py b/temporalio/common.py index 2f817f4cb..e0e0c3cca 100644 --- a/temporalio/common.py +++ b/temporalio/common.py @@ -30,7 +30,7 @@ ) import google.protobuf.internal.containers -from typing_extensions import ClassVar, NamedTuple, Self, TypeAlias, get_origin +from typing_extensions import NamedTuple, Self, TypeAlias, get_origin import temporalio.api.common.v1 import temporalio.api.enums.v1 @@ -992,6 +992,11 @@ class Priority: 3. """ + @staticmethod + def from_proto(proto: temporalio.api.common.v1.Priority) -> Priority: + """Create a Priority instance from the proto object.""" + return Priority(priority_key=proto.priority_key) + def _to_proto(self) -> temporalio.api.common.v1.Priority: return temporalio.api.common.v1.Priority( priority_key=self.priority_key, diff --git a/temporalio/testing/_activity.py b/temporalio/testing/_activity.py index 35ebce6ee..8fd1fffd3 100644 --- a/temporalio/testing/_activity.py +++ b/temporalio/testing/_activity.py @@ -39,6 +39,7 @@ workflow_namespace="default", workflow_run_id="test-run", workflow_type="test", + priority=temporalio.common.Priority(priority_key=0), ) diff --git a/temporalio/worker/_activity.py b/temporalio/worker/_activity.py index 9c4889c94..2a1d8d814 100644 --- a/temporalio/worker/_activity.py +++ b/temporalio/worker/_activity.py @@ -411,6 +411,7 @@ async def _run_activity( workflow_namespace=start.workflow_namespace, workflow_run_id=start.workflow_execution.run_id, workflow_type=start.workflow_type, + priority=temporalio.common.Priority.from_proto(start.priority), ) running_activity.info = info input = ExecuteActivityInput( diff --git a/temporalio/worker/_workflow.py b/temporalio/worker/_workflow.py index 37575efff..f5dc50a55 100644 --- a/temporalio/worker/_workflow.py +++ b/temporalio/worker/_workflow.py @@ -404,6 +404,7 @@ def _create_workflow_instance( ), workflow_id=init.workflow_id, workflow_type=init.workflow_type, + priority=temporalio.common.Priority.from_proto(init.priority), ) # Create instance from details diff --git a/temporalio/worker/workflow_sandbox/_runner.py b/temporalio/worker/workflow_sandbox/_runner.py index 7dc82d83c..af7aca69f 100644 --- a/temporalio/worker/workflow_sandbox/_runner.py +++ b/temporalio/worker/workflow_sandbox/_runner.py @@ -46,6 +46,7 @@ typed_search_attributes=temporalio.common.TypedSearchAttributes.empty, workflow_id="sandbox-validate-workflow_id", workflow_type="sandbox-validate-workflow_type", + priority=temporalio.common.Priority(priority_key=0), ) diff --git a/temporalio/workflow.py b/temporalio/workflow.py index 004bbb5f2..fd3fdafd1 100644 --- a/temporalio/workflow.py +++ b/temporalio/workflow.py @@ -427,6 +427,9 @@ class Info: headers: Mapping[str, temporalio.api.common.v1.Payload] namespace: str parent: Optional[ParentInfo] + priority: temporalio.common.Priority + """The priority of this workflow execution. If not set, or this server predates priorities, + then returns a default instance.""" raw_memo: Mapping[str, temporalio.api.common.v1.Payload] retry_policy: Optional[temporalio.common.RetryPolicy] run_id: str diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index 5105120c2..be9cc96af 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -6993,10 +6993,17 @@ async def test_update_handler_semaphore_acquisition_respects_timeout( ) +@activity.defn +async def check_priority_activity(should_have_priorty: int) -> str: + assert activity.info().priority.priority_key == should_have_priorty + return "Done!" + + @workflow.defn class WorkflowUsingPriorities: @workflow.run async def run(self, name: str) -> str: + assert workflow.info().priority.priority_key == 1 await workflow.execute_child_workflow( HelloWorkflow.run, name, priority=Priority(priority_key=4) ) From 0b29b9cc1c973548268a1504c25c9e4cf2e89a14 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Wed, 26 Mar 2025 17:11:16 -0700 Subject: [PATCH 10/15] Fix Rust lint & remove unneeded docker line --- scripts/_proto/Dockerfile | 1 - temporalio/bridge/src/testing.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/_proto/Dockerfile b/scripts/_proto/Dockerfile index c057ebb3d..47f3c60dc 100644 --- a/scripts/_proto/Dockerfile +++ b/scripts/_proto/Dockerfile @@ -8,7 +8,6 @@ VOLUME ["/api_new", "/bridge_new"] COPY ./ ./ RUN mkdir -p ./temporalio/api -RUN uv sync --all-extras RUN uv add "protobuf<4" RUN uv sync --all-extras RUN poe gen-protos diff --git a/temporalio/bridge/src/testing.rs b/temporalio/bridge/src/testing.rs index db78242e9..b5faf7000 100644 --- a/temporalio/bridge/src/testing.rs +++ b/temporalio/bridge/src/testing.rs @@ -127,7 +127,7 @@ impl TryFrom for ephemeral_server::TemporalDevServerConfig { } }, dest_dir: conf.download_dest_dir, - ttl: conf.download_ttl_ms.map(|ttl| Duration::from_millis(ttl)), + ttl: conf.download_ttl_ms.map(Duration::from_millis), } }) .namespace(conf.namespace) @@ -160,7 +160,7 @@ impl TryFrom for ephemeral_server::TestServerConfig { } }, dest_dir: conf.download_dest_dir, - ttl: conf.download_ttl_ms.map(|ttl| Duration::from_millis(ttl)), + ttl: conf.download_ttl_ms.map(Duration::from_millis), } }) .port(conf.port) From 78e3089585069f7be1c14c2792dec484923cce7e Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Thu, 27 Mar 2025 09:24:41 -0700 Subject: [PATCH 11/15] Pass through in missed methods --- scripts/_proto/Dockerfile.dockerignore | 4 +++- temporalio/client.py | 21 +++++++++++++++++ temporalio/common.py | 4 ++-- temporalio/worker/_activity.py | 2 +- temporalio/worker/_workflow.py | 2 +- temporalio/workflow.py | 32 ++++++++++++++++++++++++++ 6 files changed, 60 insertions(+), 5 deletions(-) diff --git a/scripts/_proto/Dockerfile.dockerignore b/scripts/_proto/Dockerfile.dockerignore index 93d7c20ac..00714526a 100644 --- a/scripts/_proto/Dockerfile.dockerignore +++ b/scripts/_proto/Dockerfile.dockerignore @@ -2,10 +2,12 @@ .idea/ .mypy_cache/ .pytest_cache/ +.ruff_cache/ .venv/ build/ dist/ temporalio/api/ temporalio/bridge/**/target/ temporalio/bridge/**/*.so -Dockerfile \ No newline at end of file +Dockerfile +.python-version diff --git a/temporalio/client.py b/temporalio/client.py index 8a4cad122..060ed944c 100644 --- a/temporalio/client.py +++ b/temporalio/client.py @@ -582,6 +582,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... # Overload for single-param workflow @@ -615,6 +616,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... # Overload for multi-param workflow @@ -650,6 +652,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... # Overload for string-name workflow @@ -685,6 +688,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> Any: ... async def execute_workflow( @@ -718,6 +722,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, + priority: Optional[temporalio.common.Priority] = None, ) -> Any: """Start a workflow and wait for completion. @@ -3791,6 +3796,7 @@ class ScheduleActionStartWorkflow(ScheduleAction): creating.""" static_summary: Optional[Union[str, temporalio.api.common.v1.Payload]] static_details: Optional[Union[str, temporalio.api.common.v1.Payload]] + priority: Optional[temporalio.common.Priority] headers: Optional[Mapping[str, temporalio.api.common.v1.Payload]] @@ -3816,6 +3822,7 @@ def __init__( typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: ... # Overload for single-param workflow @@ -3835,6 +3842,7 @@ def __init__( typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: ... # Overload for multi-param workflow @@ -3856,6 +3864,7 @@ def __init__( typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: ... # Overload for string-name workflow @@ -3876,6 +3885,7 @@ def __init__( typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, static_summary: Optional[str] = None, static_details: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: ... # Overload for raw info @@ -3906,6 +3916,7 @@ def __init__( static_details: Optional[str] = None, headers: Optional[Mapping[str, temporalio.api.common.v1.Payload]] = None, raw_info: Optional[temporalio.api.workflow.v1.NewWorkflowExecutionInfo] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: """Create a start-workflow action. @@ -3967,6 +3978,11 @@ def __init__( if raw_info.HasField("user_metadata") and raw_info.user_metadata.details else None ) + self.priority = ( + temporalio.common.Priority._from_proto(raw_info.priority) + if raw_info.HasField("priority") and raw_info.priority + else None + ) else: if not id: raise ValueError("ID required") @@ -3994,6 +4010,7 @@ def __init__( self.headers = headers self.static_summary = static_summary self.static_details = static_details + self.priority = priority async def _to_proto( self, client: Client @@ -4014,6 +4031,9 @@ async def _to_proto( if self.retry_policy: retry_policy = temporalio.api.common.v1.RetryPolicy() self.retry_policy.apply_to_proto(retry_policy) + priority: Optional[temporalio.api.common.v1.Priority] = None + if self.priority: + priority = self.priority._to_proto() action = temporalio.api.schedule.v1.ScheduleAction( start_workflow=temporalio.api.workflow.v1.NewWorkflowExecutionInfo( workflow_id=self.id, @@ -4046,6 +4066,7 @@ async def _to_proto( user_metadata=await _encode_user_metadata( client.data_converter, self.static_summary, self.static_details ), + priority=priority, ), ) # Add any untyped attributes that are not also in the typed set diff --git a/temporalio/common.py b/temporalio/common.py index e0e0c3cca..6e98857cc 100644 --- a/temporalio/common.py +++ b/temporalio/common.py @@ -973,7 +973,7 @@ class Priority: inherit Priority from the workflow that created them, but may override fields when they are started or modified. For each field of a Priority on an activity/workflow, not present or equal to zero/empty string means to inherit the value from the calling workflow, or if there is no - calling workflow, then use the default (documented below). + calling workflow, then use the default (documented on the field). The overall semantics of Priority are: 1. First, consider "priority_key": lower number goes first. @@ -993,7 +993,7 @@ class Priority: """ @staticmethod - def from_proto(proto: temporalio.api.common.v1.Priority) -> Priority: + def _from_proto(proto: temporalio.api.common.v1.Priority) -> Priority: """Create a Priority instance from the proto object.""" return Priority(priority_key=proto.priority_key) diff --git a/temporalio/worker/_activity.py b/temporalio/worker/_activity.py index 2a1d8d814..413dee138 100644 --- a/temporalio/worker/_activity.py +++ b/temporalio/worker/_activity.py @@ -411,7 +411,7 @@ async def _run_activity( workflow_namespace=start.workflow_namespace, workflow_run_id=start.workflow_execution.run_id, workflow_type=start.workflow_type, - priority=temporalio.common.Priority.from_proto(start.priority), + priority=temporalio.common.Priority._from_proto(start.priority), ) running_activity.info = info input = ExecuteActivityInput( diff --git a/temporalio/worker/_workflow.py b/temporalio/worker/_workflow.py index f5dc50a55..f2449bce2 100644 --- a/temporalio/worker/_workflow.py +++ b/temporalio/worker/_workflow.py @@ -404,7 +404,7 @@ def _create_workflow_instance( ), workflow_id=init.workflow_id, workflow_type=init.workflow_type, - priority=temporalio.common.Priority.from_proto(init.priority), + priority=temporalio.common.Priority._from_proto(init.priority), ) # Create instance from details diff --git a/temporalio/workflow.py b/temporalio/workflow.py index fd3fdafd1..316a3a2d8 100644 --- a/temporalio/workflow.py +++ b/temporalio/workflow.py @@ -2273,6 +2273,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2291,6 +2292,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2310,6 +2312,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2329,6 +2332,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2348,6 +2352,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2367,6 +2372,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2385,6 +2391,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[Any]: """Start an activity from a callable class. @@ -2404,6 +2411,7 @@ def start_activity_class( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + priority=priority, ) @@ -2422,6 +2430,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2440,6 +2449,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2459,6 +2469,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2478,6 +2489,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2497,6 +2509,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2516,6 +2529,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2534,6 +2548,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> Any: """Start an activity from a callable class and wait for completion. @@ -2553,6 +2568,7 @@ async def execute_activity_class( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + priority=priority, ) @@ -2571,6 +2587,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2589,6 +2606,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2608,6 +2626,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2627,6 +2646,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2646,6 +2666,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2665,6 +2686,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[ReturnType]: ... @@ -2683,6 +2705,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ActivityHandle[Any]: """Start an activity from a method. @@ -2702,6 +2725,7 @@ def start_activity_method( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + priority=priority, ) @@ -2720,6 +2744,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2738,6 +2763,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2757,6 +2783,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2776,6 +2803,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2795,6 +2823,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2814,6 +2843,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> ReturnType: ... @@ -2832,6 +2862,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> Any: """Start an activity from a method and wait for completion. @@ -2853,6 +2884,7 @@ async def execute_activity_method( activity_id=activity_id, versioning_intent=versioning_intent, summary=summary, + priority=priority, ) From 96730dc45204b5db992fedfb29b99d0867a32b40 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Thu, 27 Mar 2025 09:45:25 -0700 Subject: [PATCH 12/15] Use optional priority key --- temporalio/common.py | 6 +++--- tests/worker/test_workflow.py | 25 ++++++++++++++++++++----- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/temporalio/common.py b/temporalio/common.py index 6e98857cc..5300551f7 100644 --- a/temporalio/common.py +++ b/temporalio/common.py @@ -980,7 +980,7 @@ class Priority: (more will be added here later) """ - priority_key: int = 0 + priority_key: Optional[int] """Priority key is a positive integer from 1 to n, where smaller integers correspond to higher priorities (tasks run sooner). In general, tasks in a queue should be processed in close to priority order, although small deviations are possible. @@ -995,11 +995,11 @@ class Priority: @staticmethod def _from_proto(proto: temporalio.api.common.v1.Priority) -> Priority: """Create a Priority instance from the proto object.""" - return Priority(priority_key=proto.priority_key) + return Priority(priority_key=proto.priority_key if proto.priority_key else None) def _to_proto(self) -> temporalio.api.common.v1.Priority: return temporalio.api.common.v1.Priority( - priority_key=self.priority_key, + priority_key=self.priority_key or 0, ) diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index be9cc96af..1e6f9c12d 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -7002,14 +7002,20 @@ async def check_priority_activity(should_have_priorty: int) -> str: @workflow.defn class WorkflowUsingPriorities: @workflow.run - async def run(self, name: str) -> str: - assert workflow.info().priority.priority_key == 1 + async def run( + self, expected_priority: Optional[int], stop_after_check: bool + ) -> str: + assert workflow.info().priority.priority_key == expected_priority + if stop_after_check: + return "Done!" await workflow.execute_child_workflow( - HelloWorkflow.run, name, priority=Priority(priority_key=4) + WorkflowUsingPriorities.run, + args=[4, True], + priority=Priority(priority_key=4), ) await workflow.execute_activity( say_hello, - name, + "hi", priority=Priority(priority_key=5), start_to_close_timeout=timedelta(seconds=5), ) @@ -7027,7 +7033,7 @@ async def test_workflow_priorities(client: Client, env: WorkflowEnvironment): ) as worker: handle = await client.start_workflow( WorkflowUsingPriorities.run, - "Temporal", + args=[1, False], id=f"workflow-{uuid.uuid4()}", task_queue=worker.task_queue, priority=Priority(priority_key=1), @@ -7052,3 +7058,12 @@ async def test_workflow_priorities(client: Client, env: WorkflowEnvironment): e.activity_task_scheduled_event_attributes.priority.priority_key == 5 ) + + # Verify a workflow started without priorities sees None for the key + handle = await client.start_workflow( + WorkflowUsingPriorities.run, + args=[None, True], + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + await handle.result() From 6e6b45d054126a05120d301ae05a3254283ae7fb Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Fri, 28 Mar 2025 09:08:58 -0700 Subject: [PATCH 13/15] Fix more overloads, thanks Dan --- temporalio/client.py | 2 ++ temporalio/workflow.py | 1 + tests/worker/test_workflow.py | 22 ++++++++++++++++++---- 3 files changed, 21 insertions(+), 4 deletions(-) diff --git a/temporalio/client.py b/temporalio/client.py index 060ed944c..e9097684c 100644 --- a/temporalio/client.py +++ b/temporalio/client.py @@ -756,6 +756,7 @@ async def execute_workflow( rpc_metadata=rpc_metadata, rpc_timeout=rpc_timeout, request_eager_start=request_eager_start, + priority=priority, stack_level=3, ) ).result() @@ -2482,6 +2483,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, + priority: Optional[temporalio.common.Priority] = None, ) -> None: ... # Overload for multi-param workflow, with_start diff --git a/temporalio/workflow.py b/temporalio/workflow.py index 316a3a2d8..db6bd8e13 100644 --- a/temporalio/workflow.py +++ b/temporalio/workflow.py @@ -4050,6 +4050,7 @@ async def start_child_workflow( versioning_intent=versioning_intent, static_summary=static_summary, static_details=static_details, + priority=priority, ) diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index 1e6f9c12d..b60575b70 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -7013,6 +7013,12 @@ async def run( args=[4, True], priority=Priority(priority_key=4), ) + handle = await workflow.start_child_workflow( + WorkflowUsingPriorities.run, + args=[2, True], + priority=Priority(priority_key=2), + ) + await handle await workflow.execute_activity( say_hello, "hi", @@ -7040,6 +7046,7 @@ async def test_workflow_priorities(client: Client, env: WorkflowEnvironment): ) await handle.result() + first_child = True async for e in handle.fetch_history_events(): if e.HasField("workflow_execution_started_event_attributes"): assert ( @@ -7049,10 +7056,17 @@ async def test_workflow_priorities(client: Client, env: WorkflowEnvironment): elif e.HasField( "start_child_workflow_execution_initiated_event_attributes" ): - assert ( - e.start_child_workflow_execution_initiated_event_attributes.priority.priority_key - == 4 - ) + if first_child: + assert ( + e.start_child_workflow_execution_initiated_event_attributes.priority.priority_key + == 4 + ) + first_child = False + else: + assert ( + e.start_child_workflow_execution_initiated_event_attributes.priority.priority_key + == 2 + ) elif e.HasField("activity_task_scheduled_event_attributes"): assert ( e.activity_task_scheduled_event_attributes.priority.priority_key From ced8749c5134c009fd698b4df713ac01c83217d1 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Fri, 28 Mar 2025 09:30:20 -0700 Subject: [PATCH 14/15] Change to nonoptional Priority --- temporalio/client.py | 48 +++++----- temporalio/common.py | 5 ++ temporalio/worker/_interceptor.py | 4 +- temporalio/worker/_workflow_instance.py | 4 +- temporalio/workflow.py | 112 ++++++++++++------------ 5 files changed, 89 insertions(+), 84 deletions(-) diff --git a/temporalio/client.py b/temporalio/client.py index e9097684c..05e8edd64 100644 --- a/temporalio/client.py +++ b/temporalio/client.py @@ -319,7 +319,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for single-param workflow @@ -353,7 +353,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for multi-param workflow @@ -389,7 +389,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for string-name workflow @@ -425,7 +425,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> WorkflowHandle[Any, Any]: ... async def start_workflow( @@ -460,7 +460,7 @@ async def start_workflow( rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, stack_level: int = 2, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> WorkflowHandle[Any, Any]: """Start a workflow and return its handle. @@ -582,7 +582,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... # Overload for single-param workflow @@ -616,7 +616,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... # Overload for multi-param workflow @@ -652,7 +652,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... # Overload for string-name workflow @@ -688,7 +688,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: ... async def execute_workflow( @@ -722,7 +722,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: """Start a workflow and wait for completion. @@ -2452,7 +2452,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: ... # Overload for single-param workflow, with_start @@ -2483,7 +2483,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: ... # Overload for multi-param workflow, with_start @@ -2516,7 +2516,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: ... # Overload for string-name workflow, with_start @@ -2549,7 +2549,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: ... def __init__( @@ -2580,7 +2580,7 @@ def __init__( start_delay: Optional[timedelta] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, stack_level: int = 2, ) -> None: """Create a WithStartWorkflowOperation. @@ -3798,7 +3798,7 @@ class ScheduleActionStartWorkflow(ScheduleAction): creating.""" static_summary: Optional[Union[str, temporalio.api.common.v1.Payload]] static_details: Optional[Union[str, temporalio.api.common.v1.Payload]] - priority: Optional[temporalio.common.Priority] + priority: temporalio.common.Priority headers: Optional[Mapping[str, temporalio.api.common.v1.Payload]] @@ -3824,7 +3824,7 @@ def __init__( typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: ... # Overload for single-param workflow @@ -3844,7 +3844,7 @@ def __init__( typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: ... # Overload for multi-param workflow @@ -3866,7 +3866,7 @@ def __init__( typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: ... # Overload for string-name workflow @@ -3887,7 +3887,7 @@ def __init__( typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: ... # Overload for raw info @@ -3918,7 +3918,7 @@ def __init__( static_details: Optional[str] = None, headers: Optional[Mapping[str, temporalio.api.common.v1.Payload]] = None, raw_info: Optional[temporalio.api.workflow.v1.NewWorkflowExecutionInfo] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> None: """Create a start-workflow action. @@ -3983,7 +3983,7 @@ def __init__( self.priority = ( temporalio.common.Priority._from_proto(raw_info.priority) if raw_info.HasField("priority") and raw_info.priority - else None + else temporalio.common.Priority.default ) else: if not id: @@ -5143,7 +5143,7 @@ class StartWorkflowInput: rpc_metadata: Mapping[str, str] rpc_timeout: Optional[timedelta] request_eager_start: bool - priority: Optional[temporalio.common.Priority] + priority: temporalio.common.Priority @dataclass @@ -5316,7 +5316,7 @@ class UpdateWithStartStartWorkflowInput: ret_type: Optional[Type] rpc_metadata: Mapping[str, str] rpc_timeout: Optional[timedelta] - priority: Optional[temporalio.common.Priority] + priority: temporalio.common.Priority @dataclass diff --git a/temporalio/common.py b/temporalio/common.py index 5300551f7..4d10fcab7 100644 --- a/temporalio/common.py +++ b/temporalio/common.py @@ -992,6 +992,9 @@ class Priority: 3. """ + default: ClassVar[Priority] + """Singleton default priority instance.""" + @staticmethod def _from_proto(proto: temporalio.api.common.v1.Priority) -> Priority: """Create a Priority instance from the proto object.""" @@ -1003,6 +1006,8 @@ def _to_proto(self) -> temporalio.api.common.v1.Priority: ) +Priority.default = Priority(priority_key=None) + # Should be set as the "arg" argument for _arg_or_args checks where the argument # is unset. This is different than None which is a legitimate argument. _arg_unset = object() diff --git a/temporalio/worker/_interceptor.py b/temporalio/worker/_interceptor.py index 8210eb691..e2706930f 100644 --- a/temporalio/worker/_interceptor.py +++ b/temporalio/worker/_interceptor.py @@ -247,7 +247,7 @@ class StartActivityInput: disable_eager_execution: bool versioning_intent: Optional[VersioningIntent] summary: Optional[str] - priority: Optional[temporalio.common.Priority] + priority: temporalio.common.Priority # The types may be absent arg_types: Optional[List[Type]] ret_type: Optional[Type] @@ -279,7 +279,7 @@ class StartChildWorkflowInput: versioning_intent: Optional[VersioningIntent] static_summary: Optional[str] static_details: Optional[str] - priority: Optional[temporalio.common.Priority] + priority: temporalio.common.Priority # The types may be absent arg_types: Optional[List[Type]] ret_type: Optional[Type] diff --git a/temporalio/worker/_workflow_instance.py b/temporalio/worker/_workflow_instance.py index 2497ed1d2..2809e7889 100644 --- a/temporalio/worker/_workflow_instance.py +++ b/temporalio/worker/_workflow_instance.py @@ -1178,7 +1178,7 @@ def workflow_start_activity( activity_id: Optional[str], versioning_intent: Optional[temporalio.workflow.VersioningIntent], summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> temporalio.workflow.ActivityHandle[Any]: self._assert_not_read_only("start activity") # Get activity definition if it's callable @@ -1244,7 +1244,7 @@ async def workflow_start_child_workflow( versioning_intent: Optional[temporalio.workflow.VersioningIntent], static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> temporalio.workflow.ChildWorkflowHandle[Any, Any]: # Use definition if callable name: str diff --git a/temporalio/workflow.py b/temporalio/workflow.py index db6bd8e13..51143547b 100644 --- a/temporalio/workflow.py +++ b/temporalio/workflow.py @@ -691,7 +691,7 @@ def workflow_start_activity( activity_id: Optional[str], versioning_intent: Optional[VersioningIntent], summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: ... @abstractmethod @@ -720,7 +720,7 @@ async def workflow_start_child_workflow( versioning_intent: Optional[VersioningIntent], static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ChildWorkflowHandle[Any, Any]: ... @abstractmethod @@ -1883,7 +1883,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -1901,7 +1901,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -1920,7 +1920,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -1939,7 +1939,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -1958,7 +1958,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -1977,7 +1977,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -1998,7 +1998,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: ... @@ -2018,7 +2018,7 @@ def start_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: """Start an activity and return its handle. @@ -2091,7 +2091,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2110,7 +2110,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2130,7 +2130,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2150,7 +2150,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2170,7 +2170,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2190,7 +2190,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2212,7 +2212,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: ... @@ -2232,7 +2232,7 @@ async def execute_activity( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: """Start an activity and wait for completion. @@ -2273,7 +2273,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2292,7 +2292,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2312,7 +2312,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2332,7 +2332,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2352,7 +2352,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2372,7 +2372,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2391,7 +2391,7 @@ def start_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: """Start an activity from a callable class. @@ -2430,7 +2430,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2449,7 +2449,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2469,7 +2469,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2489,7 +2489,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2509,7 +2509,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2529,7 +2529,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2548,7 +2548,7 @@ async def execute_activity_class( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: """Start an activity from a callable class and wait for completion. @@ -2587,7 +2587,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2606,7 +2606,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2626,7 +2626,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2646,7 +2646,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2666,7 +2666,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2686,7 +2686,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[ReturnType]: ... @@ -2705,7 +2705,7 @@ def start_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ActivityHandle[Any]: """Start an activity from a method. @@ -2744,7 +2744,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2763,7 +2763,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2783,7 +2783,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2803,7 +2803,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2823,7 +2823,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2843,7 +2843,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -2862,7 +2862,7 @@ async def execute_activity_method( activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: """Start an activity from a method and wait for completion. @@ -3871,7 +3871,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -3900,7 +3900,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -3929,7 +3929,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ChildWorkflowHandle[SelfType, ReturnType]: ... @@ -3960,7 +3960,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ChildWorkflowHandle[Any, Any]: ... @@ -3989,7 +3989,7 @@ async def start_child_workflow( versioning_intent: Optional[VersioningIntent] = None, static_summary: Optional[str] = None, static_details: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ChildWorkflowHandle[Any, Any]: """Start a child workflow and return its handle. @@ -4077,7 +4077,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -4105,7 +4105,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -4133,7 +4133,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> ReturnType: ... @@ -4163,7 +4163,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: ... @@ -4191,7 +4191,7 @@ async def execute_child_workflow( ] = None, versioning_intent: Optional[VersioningIntent] = None, summary: Optional[str] = None, - priority: Optional[temporalio.common.Priority] = None, + priority: temporalio.common.Priority = temporalio.common.Priority.default, ) -> Any: """Start a child workflow and wait for completion. From 9060804fec3ba16c8754260f90dbf766b3a13f98 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Fri, 28 Mar 2025 10:38:23 -0700 Subject: [PATCH 15/15] Add some simple validation --- temporalio/common.py | 8 ++++++++ temporalio/testing/_activity.py | 2 +- temporalio/worker/workflow_sandbox/_runner.py | 2 +- tests/test_common.py | 8 ++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/temporalio/common.py b/temporalio/common.py index 4d10fcab7..380d97f40 100644 --- a/temporalio/common.py +++ b/temporalio/common.py @@ -1005,6 +1005,14 @@ def _to_proto(self) -> temporalio.api.common.v1.Priority: priority_key=self.priority_key or 0, ) + def __post_init__(self): + """Validates priority settings.""" + if self.priority_key is not None: + if not isinstance(self.priority_key, int): + raise TypeError("priority_key must be an integer") + if self.priority_key < 1: + raise ValueError("priority_key must be a positive integer") + Priority.default = Priority(priority_key=None) diff --git a/temporalio/testing/_activity.py b/temporalio/testing/_activity.py index 8fd1fffd3..19dd3819b 100644 --- a/temporalio/testing/_activity.py +++ b/temporalio/testing/_activity.py @@ -39,7 +39,7 @@ workflow_namespace="default", workflow_run_id="test-run", workflow_type="test", - priority=temporalio.common.Priority(priority_key=0), + priority=temporalio.common.Priority.default, ) diff --git a/temporalio/worker/workflow_sandbox/_runner.py b/temporalio/worker/workflow_sandbox/_runner.py index af7aca69f..571156c2e 100644 --- a/temporalio/worker/workflow_sandbox/_runner.py +++ b/temporalio/worker/workflow_sandbox/_runner.py @@ -46,7 +46,7 @@ typed_search_attributes=temporalio.common.TypedSearchAttributes.empty, workflow_id="sandbox-validate-workflow_id", workflow_type="sandbox-validate-workflow_type", - priority=temporalio.common.Priority(priority_key=0), + priority=temporalio.common.Priority.default, ) diff --git a/tests/test_common.py b/tests/test_common.py index a29782135..0cbcd8bc7 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -9,6 +9,7 @@ from temporalio.api.common.v1 import Payload from temporalio.common import ( + Priority, RawValue, RetryPolicy, SearchAttributeKey, @@ -96,3 +97,10 @@ def test_typed_search_attribute_duplicates(): TypedSearchAttributes( [SearchAttributePair(key1, "some-val"), SearchAttributePair(key1_dupe, 123)] ) + + +def test_cant_construct_bad_priority(): + with pytest.raises(TypeError): + Priority(priority_key=1.1) # type: ignore + with pytest.raises(ValueError): + Priority(priority_key=-1)