temporalio 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/Cargo.lock +37 -67
  3. data/Gemfile +3 -0
  4. data/README.md +25 -2
  5. data/Rakefile +20 -1
  6. data/ext/Cargo.toml +3 -3
  7. data/lib/temporalio/api/activity/v1/message.rb +1 -1
  8. data/lib/temporalio/api/batch/v1/message.rb +4 -1
  9. data/lib/temporalio/api/command/v1/message.rb +2 -1
  10. data/lib/temporalio/api/common/v1/message.rb +5 -1
  11. data/lib/temporalio/api/enums/v1/activity.rb +1 -1
  12. data/lib/temporalio/api/enums/v1/batch_operation.rb +1 -1
  13. data/lib/temporalio/api/enums/v1/common.rb +2 -1
  14. data/lib/temporalio/api/enums/v1/failed_cause.rb +1 -1
  15. data/lib/temporalio/api/enums/v1/time_skipping.rb +21 -0
  16. data/lib/temporalio/api/errordetails/v1/message.rb +2 -1
  17. data/lib/temporalio/api/history/v1/message.rb +1 -1
  18. data/lib/temporalio/api/namespace/v1/message.rb +1 -1
  19. data/lib/temporalio/api/taskqueue/v1/message.rb +2 -1
  20. data/lib/temporalio/api/worker/v1/message.rb +13 -1
  21. data/lib/temporalio/api/workflow/v1/message.rb +1 -1
  22. data/lib/temporalio/api/workflowservice/v1/request_response.rb +4 -1
  23. data/lib/temporalio/api/workflowservice/v1/service.rb +1 -1
  24. data/lib/temporalio/client/activity_execution.rb +82 -1
  25. data/lib/temporalio/client/activity_execution_options.rb +39 -0
  26. data/lib/temporalio/client/activity_execution_status.rb +1 -0
  27. data/lib/temporalio/client/activity_handle.rb +122 -1
  28. data/lib/temporalio/client/activity_options.rb +113 -0
  29. data/lib/temporalio/client/connection/workflow_service.rb +15 -0
  30. data/lib/temporalio/client/connection.rb +33 -3
  31. data/lib/temporalio/client/interceptor.rb +65 -0
  32. data/lib/temporalio/client/schedule.rb +4 -5
  33. data/lib/temporalio/client/workflow_execution.rb +2 -2
  34. data/lib/temporalio/client/workflow_handle.rb +2 -1
  35. data/lib/temporalio/client.rb +4 -6
  36. data/lib/temporalio/converters/data_converter.rb +1 -0
  37. data/lib/temporalio/converters/failure_converter.rb +7 -4
  38. data/lib/temporalio/internal/bridge/api/common/common.rb +2 -1
  39. data/lib/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rb +1 -1
  40. data/lib/temporalio/internal/bridge/client.rb +3 -1
  41. data/lib/temporalio/internal/bridge/runtime.rb +4 -1
  42. data/lib/temporalio/internal/bridge/worker.rb +3 -1
  43. data/lib/temporalio/internal/client/implementation.rb +54 -2
  44. data/lib/temporalio/internal/worker/workflow_instance/illegal_call_tracer.rb +9 -0
  45. data/lib/temporalio/runtime.rb +25 -7
  46. data/lib/temporalio/scoped_logger.rb +18 -0
  47. data/lib/temporalio/version.rb +1 -1
  48. data/lib/temporalio/worker/activity_executor/fiber.rb +11 -1
  49. data/lib/temporalio/worker/workflow_replayer.rb +2 -0
  50. data/lib/temporalio/worker.rb +24 -4
  51. data/lib/temporalio/workflow.rb +8 -9
  52. data/rbi/temporalio/api/activity/v1/message.rbi +100 -14
  53. data/rbi/temporalio/api/batch/v1/message.rbi +229 -2
  54. data/rbi/temporalio/api/command/v1/message.rbi +22 -2
  55. data/rbi/temporalio/api/common/v1/message.rbi +548 -74
  56. data/rbi/temporalio/api/enums/v1/activity.rbi +1 -0
  57. data/rbi/temporalio/api/enums/v1/batch_operation.rbi +9 -0
  58. data/rbi/temporalio/api/enums/v1/common.rbi +18 -0
  59. data/rbi/temporalio/api/enums/v1/failed_cause.rbi +4 -0
  60. data/rbi/temporalio/api/enums/v1/time_skipping.rbi +22 -0
  61. data/rbi/temporalio/api/errordetails/v1/message.rbi +59 -2
  62. data/rbi/temporalio/api/history/v1/message.rbi +27 -7
  63. data/rbi/temporalio/api/namespace/v1/message.rbi +95 -4
  64. data/rbi/temporalio/api/taskqueue/v1/message.rbi +113 -2
  65. data/rbi/temporalio/api/worker/v1/message.rbi +742 -2
  66. data/rbi/temporalio/api/workflow/v1/message.rbi +22 -2
  67. data/rbi/temporalio/api/workflowservice/v1/request_response.rbi +701 -117
  68. data/rbi/temporalio/api/workflowservice/v1/service_services.rbi +8 -0
  69. data/rbi/temporalio/client/activity_execution.rbi +27 -0
  70. data/rbi/temporalio/client/activity_execution_options.rbi +58 -0
  71. data/rbi/temporalio/client/activity_execution_status.rbi +1 -0
  72. data/rbi/temporalio/client/activity_handle.rbi +43 -2
  73. data/rbi/temporalio/client/activity_options.rbi +49 -0
  74. data/rbi/temporalio/client/connection/workflow_service.rbi +3 -0
  75. data/rbi/temporalio/client/connection.rbi +2 -0
  76. data/rbi/temporalio/client/interceptor.rbi +107 -0
  77. data/rbi/temporalio/converters/failure_converter.rbi +7 -2
  78. data/rbi/temporalio/internal/bridge/api/common/common.rbi +115 -0
  79. data/rbi/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbi +42 -2
  80. data/rbi/temporalio/internal/bridge/runtime.rbi +24 -4
  81. data/rbi/temporalio/internal/bridge/worker.rbi +2 -0
  82. data/rbi/temporalio/runtime.rbi +13 -4
  83. data/rbi/temporalio/scoped_logger.rbi +1 -1
  84. data/rbi/temporalio/worker.rbi +9 -2
  85. data/rbi/temporalio/workflow/future.rbi +1 -1
  86. data/sig/temporalio/api/activity/v1/message.rbs +48 -2
  87. data/sig/temporalio/api/batch/v1/message.rbs +86 -0
  88. data/sig/temporalio/api/command/v1/message.rbs +10 -0
  89. data/sig/temporalio/api/common/v1/message.rbs +240 -39
  90. data/sig/temporalio/api/enums/v1/activity.rbs +9 -5
  91. data/sig/temporalio/api/enums/v1/batch_operation.rbs +33 -3
  92. data/sig/temporalio/api/enums/v1/common.rbs +23 -0
  93. data/sig/temporalio/api/enums/v1/failed_cause.rbs +18 -6
  94. data/sig/temporalio/api/enums/v1/time_skipping.rbs +58 -0
  95. data/sig/temporalio/api/errordetails/v1/message.rbs +19 -0
  96. data/sig/temporalio/api/history/v1/message.rbs +13 -3
  97. data/sig/temporalio/api/namespace/v1/message.rbs +43 -0
  98. data/sig/temporalio/api/taskqueue/v1/message.rbs +44 -0
  99. data/sig/temporalio/api/worker/v1/message.rbs +410 -0
  100. data/sig/temporalio/api/workflow/v1/message.rbs +10 -0
  101. data/sig/temporalio/api/workflowservice/v1/request_response.rbs +311 -40
  102. data/sig/temporalio/client/activity_execution.rbs +10 -0
  103. data/sig/temporalio/client/activity_execution_options.rbs +27 -0
  104. data/sig/temporalio/client/activity_execution_status.rbs +1 -0
  105. data/sig/temporalio/client/activity_handle.rbs +23 -1
  106. data/sig/temporalio/client/activity_options.rbs +30 -0
  107. data/sig/temporalio/client/connection/workflow_service.rbs +4 -0
  108. data/sig/temporalio/client/connection.rbs +14 -1
  109. data/sig/temporalio/client/interceptor.rbs +62 -0
  110. data/sig/temporalio/converters/failure_converter.rbs +4 -1
  111. data/sig/temporalio/internal/bridge/api/common/common.rbs +50 -0
  112. data/sig/temporalio/internal/bridge/api/workflow_completion/workflow_completion.rbs +20 -0
  113. data/sig/temporalio/internal/bridge/client.rbs +5 -1
  114. data/sig/temporalio/internal/bridge/runtime.rbs +9 -3
  115. data/sig/temporalio/internal/bridge/worker.rbs +5 -1
  116. data/sig/temporalio/internal/client/implementation.rbs +7 -0
  117. data/sig/temporalio/runtime.rbs +14 -3
  118. data/sig/temporalio/scoped_logger.rbs +1 -1
  119. data/sig/temporalio/worker.rbs +8 -2
  120. metadata +10 -1
@@ -549,7 +549,8 @@ class Temporalio::Api::WorkflowService::V1::DescribeNamespaceResponse
549
549
  failover_version: T.nilable(Integer),
550
550
  is_global_namespace: T.nilable(T::Boolean),
551
551
  failover_history: T.nilable(T::Array[T.nilable(Temporalio::Api::Replication::V1::FailoverStatus)]),
552
- poller_group_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)])
552
+ poller_group_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)]),
553
+ poller_groups_info: T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)
553
554
  ).void
554
555
  end
555
556
  def initialize(
@@ -559,7 +560,8 @@ class Temporalio::Api::WorkflowService::V1::DescribeNamespaceResponse
559
560
  failover_version: 0,
560
561
  is_global_namespace: false,
561
562
  failover_history: [],
562
- poller_group_infos: []
563
+ poller_group_infos: [],
564
+ poller_groups_info: nil
563
565
  )
564
566
  end
565
567
 
@@ -641,27 +643,54 @@ class Temporalio::Api::WorkflowService::V1::DescribeNamespaceResponse
641
643
  def clear_failover_history
642
644
  end
643
645
 
644
- # The initial info that client should use for poller group assignment. This information is
646
+ # Deprecated. Use `poller_groups_info` instead, which carries a version so the client can
647
+ # ignore stale updates.
648
+ # The initial info that client should use for poller group assignment. This information is
645
649
  # updated through poll response. Client is supposed to use the info received in the latest
646
650
  # poll response.
647
651
  sig { returns(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)]) }
648
652
  def poller_group_infos
649
653
  end
650
654
 
651
- # The initial info that client should use for poller group assignment. This information is
655
+ # Deprecated. Use `poller_groups_info` instead, which carries a version so the client can
656
+ # ignore stale updates.
657
+ # The initial info that client should use for poller group assignment. This information is
652
658
  # updated through poll response. Client is supposed to use the info received in the latest
653
659
  # poll response.
654
660
  sig { params(value: ::Google::Protobuf::RepeatedField).void }
655
661
  def poller_group_infos=(value)
656
662
  end
657
663
 
658
- # The initial info that client should use for poller group assignment. This information is
664
+ # Deprecated. Use `poller_groups_info` instead, which carries a version so the client can
665
+ # ignore stale updates.
666
+ # The initial info that client should use for poller group assignment. This information is
659
667
  # updated through poll response. Client is supposed to use the info received in the latest
660
668
  # poll response.
661
669
  sig { void }
662
670
  def clear_poller_group_infos
663
671
  end
664
672
 
673
+ # The initial, versioned info that client should use for poller group assignment. This
674
+ # information is updated through poll responses. Client is supposed to use the info with the
675
+ # highest version it has received.
676
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)) }
677
+ def poller_groups_info
678
+ end
679
+
680
+ # The initial, versioned info that client should use for poller group assignment. This
681
+ # information is updated through poll responses. Client is supposed to use the info with the
682
+ # highest version it has received.
683
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)).void }
684
+ def poller_groups_info=(value)
685
+ end
686
+
687
+ # The initial, versioned info that client should use for poller group assignment. This
688
+ # information is updated through poll responses. Client is supposed to use the info with the
689
+ # highest version it has received.
690
+ sig { void }
691
+ def clear_poller_groups_info
692
+ end
693
+
665
694
  sig { params(field: String).returns(T.untyped) }
666
695
  def [](field)
667
696
  end
@@ -1453,22 +1482,22 @@ class Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionRequest
1453
1482
  def clear_last_completion_result
1454
1483
  end
1455
1484
 
1456
- # Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
1457
- # If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
1485
+ # Time to wait before making the first workflow task available for dispatch. Cannot be used with `cron_schedule`.
1486
+ # If the workflow gets a signal before the delay, a workflow task will be made available for dispatch and the rest
1458
1487
  # of the delay will be ignored.
1459
1488
  sig { returns(T.nilable(Google::Protobuf::Duration)) }
1460
1489
  def workflow_start_delay
1461
1490
  end
1462
1491
 
1463
- # Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
1464
- # If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
1492
+ # Time to wait before making the first workflow task available for dispatch. Cannot be used with `cron_schedule`.
1493
+ # If the workflow gets a signal before the delay, a workflow task will be made available for dispatch and the rest
1465
1494
  # of the delay will be ignored.
1466
1495
  sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
1467
1496
  def workflow_start_delay=(value)
1468
1497
  end
1469
1498
 
1470
- # Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
1471
- # If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
1499
+ # Time to wait before making the first workflow task available for dispatch. Cannot be used with `cron_schedule`.
1500
+ # If the workflow gets a signal before the delay, a workflow task will be made available for dispatch and the rest
1472
1501
  # of the delay will be ignored.
1473
1502
  sig { void }
1474
1503
  def clear_workflow_start_delay
@@ -1658,6 +1687,7 @@ class Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse
1658
1687
  sig do
1659
1688
  params(
1660
1689
  run_id: T.nilable(String),
1690
+ first_execution_run_id: T.nilable(String),
1661
1691
  started: T.nilable(T::Boolean),
1662
1692
  status: T.nilable(T.any(Symbol, String, Integer)),
1663
1693
  eager_workflow_task: T.nilable(Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse),
@@ -1666,6 +1696,7 @@ class Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse
1666
1696
  end
1667
1697
  def initialize(
1668
1698
  run_id: "",
1699
+ first_execution_run_id: "",
1669
1700
  started: false,
1670
1701
  status: :WORKFLOW_EXECUTION_STATUS_UNSPECIFIED,
1671
1702
  eager_workflow_task: nil,
@@ -1688,6 +1719,21 @@ class Temporalio::Api::WorkflowService::V1::StartWorkflowExecutionResponse
1688
1719
  def clear_run_id
1689
1720
  end
1690
1721
 
1722
+ # If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
1723
+ sig { returns(String) }
1724
+ def first_execution_run_id
1725
+ end
1726
+
1727
+ # If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
1728
+ sig { params(value: String).void }
1729
+ def first_execution_run_id=(value)
1730
+ end
1731
+
1732
+ # If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
1733
+ sig { void }
1734
+ def clear_first_execution_run_id
1735
+ end
1736
+
1691
1737
  # If true, a new workflow was started.
1692
1738
  sig { returns(T::Boolean) }
1693
1739
  def started
@@ -2480,7 +2526,8 @@ class Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse
2480
2526
  messages: T.nilable(T::Array[T.nilable(Temporalio::Api::Protocol::V1::Message)]),
2481
2527
  poller_scaling_decision: T.nilable(Temporalio::Api::TaskQueue::V1::PollerScalingDecision),
2482
2528
  poller_group_id: T.nilable(String),
2483
- poller_group_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)])
2529
+ poller_group_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)]),
2530
+ poller_groups_info: T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)
2484
2531
  ).void
2485
2532
  end
2486
2533
  def initialize(
@@ -2501,7 +2548,8 @@ class Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse
2501
2548
  messages: [],
2502
2549
  poller_scaling_decision: nil,
2503
2550
  poller_group_id: "",
2504
- poller_group_infos: []
2551
+ poller_group_infos: [],
2552
+ poller_groups_info: nil
2505
2553
  )
2506
2554
  end
2507
2555
 
@@ -2820,7 +2868,9 @@ class Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse
2820
2868
  def clear_poller_group_id
2821
2869
  end
2822
2870
 
2823
- # The weighted list of poller groups IDs that client should use for future polls to this task
2871
+ # Deprecated. Use `poller_groups_info` instead, which carries a version so the client can
2872
+ # ignore stale updates.
2873
+ # The weighted list of poller groups IDs that client should use for future polls to this task
2824
2874
  # queue. Client is expected to:
2825
2875
  # 1. Maintain minimum number of pollers no less than the number of groups.
2826
2876
  # 2. Try to assign the next poll to a group without any pending polls,
@@ -2830,7 +2880,9 @@ class Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse
2830
2880
  def poller_group_infos
2831
2881
  end
2832
2882
 
2833
- # The weighted list of poller groups IDs that client should use for future polls to this task
2883
+ # Deprecated. Use `poller_groups_info` instead, which carries a version so the client can
2884
+ # ignore stale updates.
2885
+ # The weighted list of poller groups IDs that client should use for future polls to this task
2834
2886
  # queue. Client is expected to:
2835
2887
  # 1. Maintain minimum number of pollers no less than the number of groups.
2836
2888
  # 2. Try to assign the next poll to a group without any pending polls,
@@ -2840,7 +2892,9 @@ class Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse
2840
2892
  def poller_group_infos=(value)
2841
2893
  end
2842
2894
 
2843
- # The weighted list of poller groups IDs that client should use for future polls to this task
2895
+ # Deprecated. Use `poller_groups_info` instead, which carries a version so the client can
2896
+ # ignore stale updates.
2897
+ # The weighted list of poller groups IDs that client should use for future polls to this task
2844
2898
  # queue. Client is expected to:
2845
2899
  # 1. Maintain minimum number of pollers no less than the number of groups.
2846
2900
  # 2. Try to assign the next poll to a group without any pending polls,
@@ -2850,6 +2904,39 @@ class Temporalio::Api::WorkflowService::V1::PollWorkflowTaskQueueResponse
2850
2904
  def clear_poller_group_infos
2851
2905
  end
2852
2906
 
2907
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
2908
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
2909
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
2910
+ # 1. Maintain minimum number of pollers no less than the number of groups.
2911
+ # 2. Try to assign the next poll to a group without any pending polls,
2912
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
2913
+ # according to the weights.
2914
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)) }
2915
+ def poller_groups_info
2916
+ end
2917
+
2918
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
2919
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
2920
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
2921
+ # 1. Maintain minimum number of pollers no less than the number of groups.
2922
+ # 2. Try to assign the next poll to a group without any pending polls,
2923
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
2924
+ # according to the weights.
2925
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)).void }
2926
+ def poller_groups_info=(value)
2927
+ end
2928
+
2929
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
2930
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
2931
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
2932
+ # 1. Maintain minimum number of pollers no less than the number of groups.
2933
+ # 2. Try to assign the next poll to a group without any pending polls,
2934
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
2935
+ # according to the weights.
2936
+ sig { void }
2937
+ def clear_poller_groups_info
2938
+ end
2939
+
2853
2940
  sig { params(field: String).returns(T.untyped) }
2854
2941
  def [](field)
2855
2942
  end
@@ -2908,7 +2995,9 @@ class Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest
2908
2995
  versioning_behavior: T.nilable(T.any(Symbol, String, Integer)),
2909
2996
  deployment_options: T.nilable(Temporalio::Api::Deployment::V1::WorkerDeploymentOptions),
2910
2997
  worker_instance_key: T.nilable(String),
2911
- worker_control_task_queue: T.nilable(String)
2998
+ worker_control_task_queue: T.nilable(String),
2999
+ page_number: T.nilable(Integer),
3000
+ intermediate_page: T.nilable(T::Boolean)
2912
3001
  ).void
2913
3002
  end
2914
3003
  def initialize(
@@ -2931,7 +3020,9 @@ class Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest
2931
3020
  versioning_behavior: :VERSIONING_BEHAVIOR_UNSPECIFIED,
2932
3021
  deployment_options: nil,
2933
3022
  worker_instance_key: "",
2934
- worker_control_task_queue: ""
3023
+ worker_control_task_queue: "",
3024
+ page_number: 0,
3025
+ intermediate_page: false
2935
3026
  )
2936
3027
  end
2937
3028
 
@@ -3277,6 +3368,48 @@ class Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest
3277
3368
  def clear_worker_control_task_queue
3278
3369
  end
3279
3370
 
3371
+ # 0-indexed page number when the workflow task completion is split across multiple
3372
+ # requests ("pages"). 0 for single-page requests. May only be set to non-zero value
3373
+ # when the namespace capability workflow_task_completion_pagination is true.
3374
+ sig { returns(Integer) }
3375
+ def page_number
3376
+ end
3377
+
3378
+ # 0-indexed page number when the workflow task completion is split across multiple
3379
+ # requests ("pages"). 0 for single-page requests. May only be set to non-zero value
3380
+ # when the namespace capability workflow_task_completion_pagination is true.
3381
+ sig { params(value: Integer).void }
3382
+ def page_number=(value)
3383
+ end
3384
+
3385
+ # 0-indexed page number when the workflow task completion is split across multiple
3386
+ # requests ("pages"). 0 for single-page requests. May only be set to non-zero value
3387
+ # when the namespace capability workflow_task_completion_pagination is true.
3388
+ sig { void }
3389
+ def clear_page_number
3390
+ end
3391
+
3392
+ # True for non-final pages of a paginated workflow task completion. The final page's
3393
+ # `page_number` tells the server how many intermediate pages (0..page_number-1) preceded it.
3394
+ # May only be used when the namespace capability workflow_task_completion_pagination is true.
3395
+ sig { returns(T::Boolean) }
3396
+ def intermediate_page
3397
+ end
3398
+
3399
+ # True for non-final pages of a paginated workflow task completion. The final page's
3400
+ # `page_number` tells the server how many intermediate pages (0..page_number-1) preceded it.
3401
+ # May only be used when the namespace capability workflow_task_completion_pagination is true.
3402
+ sig { params(value: T::Boolean).void }
3403
+ def intermediate_page=(value)
3404
+ end
3405
+
3406
+ # True for non-final pages of a paginated workflow task completion. The final page's
3407
+ # `page_number` tells the server how many intermediate pages (0..page_number-1) preceded it.
3408
+ # May only be used when the namespace capability workflow_task_completion_pagination is true.
3409
+ sig { void }
3410
+ def clear_intermediate_page
3411
+ end
3412
+
3280
3413
  sig { params(field: String).returns(T.untyped) }
3281
3414
  def [](field)
3282
3415
  end
@@ -3938,7 +4071,8 @@ class Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueResponse
3938
4071
  poller_scaling_decision: T.nilable(Temporalio::Api::TaskQueue::V1::PollerScalingDecision),
3939
4072
  priority: T.nilable(Temporalio::Api::Common::V1::Priority),
3940
4073
  activity_run_id: T.nilable(String),
3941
- poller_group_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)])
4074
+ poller_group_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)]),
4075
+ poller_groups_info: T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)
3942
4076
  ).void
3943
4077
  end
3944
4078
  def initialize(
@@ -3962,7 +4096,8 @@ class Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueResponse
3962
4096
  poller_scaling_decision: nil,
3963
4097
  priority: nil,
3964
4098
  activity_run_id: "",
3965
- poller_group_infos: []
4099
+ poller_group_infos: [],
4100
+ poller_groups_info: nil
3966
4101
  )
3967
4102
  end
3968
4103
 
@@ -4338,6 +4473,39 @@ class Temporalio::Api::WorkflowService::V1::PollActivityTaskQueueResponse
4338
4473
  def clear_poller_group_infos
4339
4474
  end
4340
4475
 
4476
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
4477
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
4478
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
4479
+ # 1. Maintain minimum number of pollers no less than the number of groups.
4480
+ # 2. Try to assign the next poll to a group without any pending polls,
4481
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
4482
+ # according to the weights.
4483
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)) }
4484
+ def poller_groups_info
4485
+ end
4486
+
4487
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
4488
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
4489
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
4490
+ # 1. Maintain minimum number of pollers no less than the number of groups.
4491
+ # 2. Try to assign the next poll to a group without any pending polls,
4492
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
4493
+ # according to the weights.
4494
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)).void }
4495
+ def poller_groups_info=(value)
4496
+ end
4497
+
4498
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
4499
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
4500
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
4501
+ # 1. Maintain minimum number of pollers no less than the number of groups.
4502
+ # 2. Try to assign the next poll to a group without any pending polls,
4503
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
4504
+ # according to the weights.
4505
+ sig { void }
4506
+ def clear_poller_groups_info
4507
+ end
4508
+
4341
4509
  sig { params(field: String).returns(T.untyped) }
4342
4510
  def [](field)
4343
4511
  end
@@ -7127,27 +7295,27 @@ class Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionRequ
7127
7295
  def clear_header
7128
7296
  end
7129
7297
 
7130
- # Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
7298
+ # Time to wait before making the first workflow task available for dispatch. Cannot be used with `cron_schedule`.
7131
7299
  # Note that the signal will be delivered with the first workflow task. If the workflow gets
7132
- # another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately
7300
+ # another SignalWithStartWorkflow before the delay a workflow task will be made available for dispatch immediately
7133
7301
  # and the rest of the delay period will be ignored, even if that request also had a delay.
7134
7302
  # Signal via SignalWorkflowExecution will not unblock the workflow.
7135
7303
  sig { returns(T.nilable(Google::Protobuf::Duration)) }
7136
7304
  def workflow_start_delay
7137
7305
  end
7138
7306
 
7139
- # Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
7307
+ # Time to wait before making the first workflow task available for dispatch. Cannot be used with `cron_schedule`.
7140
7308
  # Note that the signal will be delivered with the first workflow task. If the workflow gets
7141
- # another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately
7309
+ # another SignalWithStartWorkflow before the delay a workflow task will be made available for dispatch immediately
7142
7310
  # and the rest of the delay period will be ignored, even if that request also had a delay.
7143
7311
  # Signal via SignalWorkflowExecution will not unblock the workflow.
7144
7312
  sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
7145
7313
  def workflow_start_delay=(value)
7146
7314
  end
7147
7315
 
7148
- # Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
7316
+ # Time to wait before making the first workflow task available for dispatch. Cannot be used with `cron_schedule`.
7149
7317
  # Note that the signal will be delivered with the first workflow task. If the workflow gets
7150
- # another SignalWithStartWorkflow before the delay a workflow task will be dispatched immediately
7318
+ # another SignalWithStartWorkflow before the delay a workflow task will be made available for dispatch immediately
7151
7319
  # and the rest of the delay period will be ignored, even if that request also had a delay.
7152
7320
  # Signal via SignalWorkflowExecution will not unblock the workflow.
7153
7321
  sig { void }
@@ -7278,12 +7446,14 @@ class Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionResp
7278
7446
  sig do
7279
7447
  params(
7280
7448
  run_id: T.nilable(String),
7449
+ first_execution_run_id: T.nilable(String),
7281
7450
  started: T.nilable(T::Boolean),
7282
7451
  signal_link: T.nilable(Temporalio::Api::Common::V1::Link)
7283
7452
  ).void
7284
7453
  end
7285
7454
  def initialize(
7286
7455
  run_id: "",
7456
+ first_execution_run_id: "",
7287
7457
  started: false,
7288
7458
  signal_link: nil
7289
7459
  )
@@ -7304,6 +7474,21 @@ class Temporalio::Api::WorkflowService::V1::SignalWithStartWorkflowExecutionResp
7304
7474
  def clear_run_id
7305
7475
  end
7306
7476
 
7477
+ # If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
7478
+ sig { returns(String) }
7479
+ def first_execution_run_id
7480
+ end
7481
+
7482
+ # If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
7483
+ sig { params(value: String).void }
7484
+ def first_execution_run_id=(value)
7485
+ end
7486
+
7487
+ # If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
7488
+ sig { void }
7489
+ def clear_first_execution_run_id
7490
+ end
7491
+
7307
7492
  # If true, a new workflow was started.
7308
7493
  sig { returns(T::Boolean) }
7309
7494
  def started
@@ -9880,12 +10065,14 @@ class Temporalio::Api::WorkflowService::V1::QueryWorkflowResponse
9880
10065
  sig do
9881
10066
  params(
9882
10067
  query_result: T.nilable(Temporalio::Api::Common::V1::Payloads),
9883
- query_rejected: T.nilable(Temporalio::Api::Query::V1::QueryRejected)
10068
+ query_rejected: T.nilable(Temporalio::Api::Query::V1::QueryRejected),
10069
+ link: T.nilable(Temporalio::Api::Common::V1::Link)
9884
10070
  ).void
9885
10071
  end
9886
10072
  def initialize(
9887
10073
  query_result: nil,
9888
- query_rejected: nil
10074
+ query_rejected: nil,
10075
+ link: nil
9889
10076
  )
9890
10077
  end
9891
10078
 
@@ -9913,6 +10100,21 @@ class Temporalio::Api::WorkflowService::V1::QueryWorkflowResponse
9913
10100
  def clear_query_rejected
9914
10101
  end
9915
10102
 
10103
+ # Holds the link to the Workflow execution that processed the Query.
10104
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::Link)) }
10105
+ def link
10106
+ end
10107
+
10108
+ # Holds the link to the Workflow execution that processed the Query.
10109
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::Link)).void }
10110
+ def link=(value)
10111
+ end
10112
+
10113
+ # Holds the link to the Workflow execution that processed the Query.
10114
+ sig { void }
10115
+ def clear_link
10116
+ end
10117
+
9916
10118
  sig { params(field: String).returns(T.untyped) }
9917
10119
  def [](field)
9918
10120
  end
@@ -14170,6 +14372,7 @@ class Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest
14170
14372
  job_id: T.nilable(String),
14171
14373
  reason: T.nilable(String),
14172
14374
  executions: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)]),
14375
+ target_executions: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Execution)]),
14173
14376
  max_operations_per_second: T.nilable(Float),
14174
14377
  termination_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationTermination),
14175
14378
  signal_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationSignal),
@@ -14179,7 +14382,10 @@ class Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest
14179
14382
  update_workflow_options_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationUpdateWorkflowExecutionOptions),
14180
14383
  unpause_activities_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationUnpauseActivities),
14181
14384
  reset_activities_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationResetActivities),
14182
- update_activity_options_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions)
14385
+ update_activity_options_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationUpdateActivityOptions),
14386
+ cancel_activities_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationCancelActivities),
14387
+ terminate_activities_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationTerminateActivities),
14388
+ delete_activities_operation: T.nilable(Temporalio::Api::Batch::V1::BatchOperationDeleteActivities)
14183
14389
  ).void
14184
14390
  end
14185
14391
  def initialize(
@@ -14188,6 +14394,7 @@ class Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest
14188
14394
  job_id: "",
14189
14395
  reason: "",
14190
14396
  executions: [],
14397
+ target_executions: [],
14191
14398
  max_operations_per_second: 0.0,
14192
14399
  termination_operation: nil,
14193
14400
  signal_operation: nil,
@@ -14197,7 +14404,10 @@ class Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest
14197
14404
  update_workflow_options_operation: nil,
14198
14405
  unpause_activities_operation: nil,
14199
14406
  reset_activities_operation: nil,
14200
- update_activity_options_operation: nil
14407
+ update_activity_options_operation: nil,
14408
+ cancel_activities_operation: nil,
14409
+ terminate_activities_operation: nil,
14410
+ delete_activities_operation: nil
14201
14411
  )
14202
14412
  end
14203
14413
 
@@ -14266,22 +14476,43 @@ class Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest
14266
14476
 
14267
14477
  # Executions to apply the batch operation
14268
14478
  # This field and `visibility_query` are mutually exclusive
14479
+ # DEPRECATED: Use `target_executions` instead.
14269
14480
  sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)]) }
14270
14481
  def executions
14271
14482
  end
14272
14483
 
14273
14484
  # Executions to apply the batch operation
14274
14485
  # This field and `visibility_query` are mutually exclusive
14486
+ # DEPRECATED: Use `target_executions` instead.
14275
14487
  sig { params(value: ::Google::Protobuf::RepeatedField).void }
14276
14488
  def executions=(value)
14277
14489
  end
14278
14490
 
14279
14491
  # Executions to apply the batch operation
14280
14492
  # This field and `visibility_query` are mutually exclusive
14493
+ # DEPRECATED: Use `target_executions` instead.
14281
14494
  sig { void }
14282
14495
  def clear_executions
14283
14496
  end
14284
14497
 
14498
+ # Target executions to apply the batch operation. This field and `visibility_query`
14499
+ # are mutually exclusive.
14500
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Execution)]) }
14501
+ def target_executions
14502
+ end
14503
+
14504
+ # Target executions to apply the batch operation. This field and `visibility_query`
14505
+ # are mutually exclusive.
14506
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
14507
+ def target_executions=(value)
14508
+ end
14509
+
14510
+ # Target executions to apply the batch operation. This field and `visibility_query`
14511
+ # are mutually exclusive.
14512
+ sig { void }
14513
+ def clear_target_executions
14514
+ end
14515
+
14285
14516
  # Limit for the number of operations processed per second within this batch.
14286
14517
  # Its purpose is to reduce the stress on the system caused by batch operations, which helps to prevent system
14287
14518
  # overload and minimize potential delays in executing ongoing tasks for user workers.
@@ -14420,6 +14651,42 @@ class Temporalio::Api::WorkflowService::V1::StartBatchOperationRequest
14420
14651
  def clear_update_activity_options_operation
14421
14652
  end
14422
14653
 
14654
+ sig { returns(T.nilable(Temporalio::Api::Batch::V1::BatchOperationCancelActivities)) }
14655
+ def cancel_activities_operation
14656
+ end
14657
+
14658
+ sig { params(value: T.nilable(Temporalio::Api::Batch::V1::BatchOperationCancelActivities)).void }
14659
+ def cancel_activities_operation=(value)
14660
+ end
14661
+
14662
+ sig { void }
14663
+ def clear_cancel_activities_operation
14664
+ end
14665
+
14666
+ sig { returns(T.nilable(Temporalio::Api::Batch::V1::BatchOperationTerminateActivities)) }
14667
+ def terminate_activities_operation
14668
+ end
14669
+
14670
+ sig { params(value: T.nilable(Temporalio::Api::Batch::V1::BatchOperationTerminateActivities)).void }
14671
+ def terminate_activities_operation=(value)
14672
+ end
14673
+
14674
+ sig { void }
14675
+ def clear_terminate_activities_operation
14676
+ end
14677
+
14678
+ sig { returns(T.nilable(Temporalio::Api::Batch::V1::BatchOperationDeleteActivities)) }
14679
+ def delete_activities_operation
14680
+ end
14681
+
14682
+ sig { params(value: T.nilable(Temporalio::Api::Batch::V1::BatchOperationDeleteActivities)).void }
14683
+ def delete_activities_operation=(value)
14684
+ end
14685
+
14686
+ sig { void }
14687
+ def clear_delete_activities_operation
14688
+ end
14689
+
14423
14690
  sig { returns(T.nilable(Symbol)) }
14424
14691
  def operation
14425
14692
  end
@@ -14744,7 +15011,9 @@ class Temporalio::Api::WorkflowService::V1::DescribeBatchOperationResponse
14744
15011
  complete_operation_count: T.nilable(Integer),
14745
15012
  failure_operation_count: T.nilable(Integer),
14746
15013
  identity: T.nilable(String),
14747
- reason: T.nilable(String)
15014
+ reason: T.nilable(String),
15015
+ query: T.nilable(String),
15016
+ executions: T.nilable(T::Array[T.nilable(Temporalio::Api::Common::V1::Execution)])
14748
15017
  ).void
14749
15018
  end
14750
15019
  def initialize(
@@ -14757,7 +15026,9 @@ class Temporalio::Api::WorkflowService::V1::DescribeBatchOperationResponse
14757
15026
  complete_operation_count: 0,
14758
15027
  failure_operation_count: 0,
14759
15028
  identity: "",
14760
- reason: ""
15029
+ reason: "",
15030
+ query: "",
15031
+ executions: []
14761
15032
  )
14762
15033
  end
14763
15034
 
@@ -14911,6 +15182,36 @@ class Temporalio::Api::WorkflowService::V1::DescribeBatchOperationResponse
14911
15182
  def clear_reason
14912
15183
  end
14913
15184
 
15185
+ # Query is the visibility query that defines the group of workflow to apply the batch operation
15186
+ sig { returns(String) }
15187
+ def query
15188
+ end
15189
+
15190
+ # Query is the visibility query that defines the group of workflow to apply the batch operation
15191
+ sig { params(value: String).void }
15192
+ def query=(value)
15193
+ end
15194
+
15195
+ # Query is the visibility query that defines the group of workflow to apply the batch operation
15196
+ sig { void }
15197
+ def clear_query
15198
+ end
15199
+
15200
+ # Executions is the list of workflow OR standalone activity executions to apply the batch operation
15201
+ sig { returns(T::Array[T.nilable(Temporalio::Api::Common::V1::Execution)]) }
15202
+ def executions
15203
+ end
15204
+
15205
+ # Executions is the list of workflow OR standalone activity executions to apply the batch operation
15206
+ sig { params(value: ::Google::Protobuf::RepeatedField).void }
15207
+ def executions=(value)
15208
+ end
15209
+
15210
+ # Executions is the list of workflow OR standalone activity executions to apply the batch operation
15211
+ sig { void }
15212
+ def clear_executions
15213
+ end
15214
+
14914
15215
  sig { params(field: String).returns(T.untyped) }
14915
15216
  def [](field)
14916
15217
  end
@@ -15573,7 +15874,8 @@ class Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse
15573
15874
  request: T.nilable(Temporalio::Api::Nexus::V1::Request),
15574
15875
  poller_scaling_decision: T.nilable(Temporalio::Api::TaskQueue::V1::PollerScalingDecision),
15575
15876
  poller_group_id: T.nilable(String),
15576
- poller_group_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)])
15877
+ poller_group_infos: T.nilable(T::Array[T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupInfo)]),
15878
+ poller_groups_info: T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)
15577
15879
  ).void
15578
15880
  end
15579
15881
  def initialize(
@@ -15581,7 +15883,8 @@ class Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse
15581
15883
  request: nil,
15582
15884
  poller_scaling_decision: nil,
15583
15885
  poller_group_id: "",
15584
- poller_group_infos: []
15886
+ poller_group_infos: [],
15887
+ poller_groups_info: nil
15585
15888
  )
15586
15889
  end
15587
15890
 
@@ -15684,6 +15987,39 @@ class Temporalio::Api::WorkflowService::V1::PollNexusTaskQueueResponse
15684
15987
  def clear_poller_group_infos
15685
15988
  end
15686
15989
 
15990
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
15991
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
15992
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
15993
+ # 1. Maintain minimum number of pollers no less than the number of groups.
15994
+ # 2. Try to assign the next poll to a group without any pending polls,
15995
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
15996
+ # according to the weights.
15997
+ sig { returns(T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)) }
15998
+ def poller_groups_info
15999
+ end
16000
+
16001
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
16002
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
16003
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
16004
+ # 1. Maintain minimum number of pollers no less than the number of groups.
16005
+ # 2. Try to assign the next poll to a group without any pending polls,
16006
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
16007
+ # according to the weights.
16008
+ sig { params(value: T.nilable(Temporalio::Api::TaskQueue::V1::PollerGroupsInfo)).void }
16009
+ def poller_groups_info=(value)
16010
+ end
16011
+
16012
+ # The weighted, versioned list of poller groups IDs that client should use for future polls to
16013
+ # this task queue. Client should ignore this if it has already applied a snapshot with a
16014
+ # version greater than or equal to `poller_groups_info.version`. Client is expected to:
16015
+ # 1. Maintain minimum number of pollers no less than the number of groups.
16016
+ # 2. Try to assign the next poll to a group without any pending polls,
16017
+ # 3. If every group has some pending polls, assign the next poll to a group randomly
16018
+ # according to the weights.
16019
+ sig { void }
16020
+ def clear_poller_groups_info
16021
+ end
16022
+
15687
16023
  sig { params(field: String).returns(T.untyped) }
15688
16024
  def [](field)
15689
16025
  end
@@ -16483,7 +16819,8 @@ class Temporalio::Api::WorkflowService::V1::UpdateActivityExecutionOptionsReques
16483
16819
  activity_options: T.nilable(Temporalio::Api::Activity::V1::ActivityOptions),
16484
16820
  update_mask: T.nilable(Google::Protobuf::FieldMask),
16485
16821
  restore_original: T.nilable(T::Boolean),
16486
- resource_id: T.nilable(String)
16822
+ resource_id: T.nilable(String),
16823
+ request_id: T.nilable(String)
16487
16824
  ).void
16488
16825
  end
16489
16826
  def initialize(
@@ -16495,7 +16832,8 @@ class Temporalio::Api::WorkflowService::V1::UpdateActivityExecutionOptionsReques
16495
16832
  activity_options: nil,
16496
16833
  update_mask: nil,
16497
16834
  restore_original: false,
16498
- resource_id: ""
16835
+ resource_id: "",
16836
+ request_id: ""
16499
16837
  )
16500
16838
  end
16501
16839
 
@@ -16547,17 +16885,17 @@ class Temporalio::Api::WorkflowService::V1::UpdateActivityExecutionOptionsReques
16547
16885
  def clear_activity_id
16548
16886
  end
16549
16887
 
16550
- # Run ID of the workflow or standalone activity.
16888
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
16551
16889
  sig { returns(String) }
16552
16890
  def run_id
16553
16891
  end
16554
16892
 
16555
- # Run ID of the workflow or standalone activity.
16893
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
16556
16894
  sig { params(value: String).void }
16557
16895
  def run_id=(value)
16558
16896
  end
16559
16897
 
16560
- # Run ID of the workflow or standalone activity.
16898
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
16561
16899
  sig { void }
16562
16900
  def clear_run_id
16563
16901
  end
@@ -16649,6 +16987,21 @@ class Temporalio::Api::WorkflowService::V1::UpdateActivityExecutionOptionsReques
16649
16987
  def clear_resource_id
16650
16988
  end
16651
16989
 
16990
+ # Used to de-dupe update requests.
16991
+ sig { returns(String) }
16992
+ def request_id
16993
+ end
16994
+
16995
+ # Used to de-dupe update requests.
16996
+ sig { params(value: String).void }
16997
+ def request_id=(value)
16998
+ end
16999
+
17000
+ # Used to de-dupe update requests.
17001
+ sig { void }
17002
+ def clear_request_id
17003
+ end
17004
+
16652
17005
  sig { params(field: String).returns(T.untyped) }
16653
17006
  def [](field)
16654
17007
  end
@@ -17055,17 +17408,17 @@ class Temporalio::Api::WorkflowService::V1::PauseActivityExecutionRequest
17055
17408
  def clear_activity_id
17056
17409
  end
17057
17410
 
17058
- # Run ID of the workflow or standalone activity.
17411
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
17059
17412
  sig { returns(String) }
17060
17413
  def run_id
17061
17414
  end
17062
17415
 
17063
- # Run ID of the workflow or standalone activity.
17416
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
17064
17417
  sig { params(value: String).void }
17065
17418
  def run_id=(value)
17066
17419
  end
17067
17420
 
17068
- # Run ID of the workflow or standalone activity.
17421
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
17069
17422
  sig { void }
17070
17423
  def clear_run_id
17071
17424
  end
@@ -17458,11 +17811,10 @@ class Temporalio::Api::WorkflowService::V1::UnpauseActivityExecutionRequest
17458
17811
  activity_id: T.nilable(String),
17459
17812
  run_id: T.nilable(String),
17460
17813
  identity: T.nilable(String),
17461
- reset_attempts: T.nilable(T::Boolean),
17462
- reset_heartbeat: T.nilable(T::Boolean),
17463
17814
  reason: T.nilable(String),
17464
17815
  jitter: T.nilable(Google::Protobuf::Duration),
17465
- resource_id: T.nilable(String)
17816
+ resource_id: T.nilable(String),
17817
+ request_id: T.nilable(String)
17466
17818
  ).void
17467
17819
  end
17468
17820
  def initialize(
@@ -17471,11 +17823,10 @@ class Temporalio::Api::WorkflowService::V1::UnpauseActivityExecutionRequest
17471
17823
  activity_id: "",
17472
17824
  run_id: "",
17473
17825
  identity: "",
17474
- reset_attempts: false,
17475
- reset_heartbeat: false,
17476
17826
  reason: "",
17477
17827
  jitter: nil,
17478
- resource_id: ""
17828
+ resource_id: "",
17829
+ request_id: ""
17479
17830
  )
17480
17831
  end
17481
17832
 
@@ -17527,17 +17878,17 @@ class Temporalio::Api::WorkflowService::V1::UnpauseActivityExecutionRequest
17527
17878
  def clear_activity_id
17528
17879
  end
17529
17880
 
17530
- # Run ID of the workflow or standalone activity.
17881
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
17531
17882
  sig { returns(String) }
17532
17883
  def run_id
17533
17884
  end
17534
17885
 
17535
- # Run ID of the workflow or standalone activity.
17886
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
17536
17887
  sig { params(value: String).void }
17537
17888
  def run_id=(value)
17538
17889
  end
17539
17890
 
17540
- # Run ID of the workflow or standalone activity.
17891
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
17541
17892
  sig { void }
17542
17893
  def clear_run_id
17543
17894
  end
@@ -17557,36 +17908,6 @@ class Temporalio::Api::WorkflowService::V1::UnpauseActivityExecutionRequest
17557
17908
  def clear_identity
17558
17909
  end
17559
17910
 
17560
- # Providing this flag will also reset the number of attempts.
17561
- sig { returns(T::Boolean) }
17562
- def reset_attempts
17563
- end
17564
-
17565
- # Providing this flag will also reset the number of attempts.
17566
- sig { params(value: T::Boolean).void }
17567
- def reset_attempts=(value)
17568
- end
17569
-
17570
- # Providing this flag will also reset the number of attempts.
17571
- sig { void }
17572
- def clear_reset_attempts
17573
- end
17574
-
17575
- # Providing this flag will also reset the heartbeat details.
17576
- sig { returns(T::Boolean) }
17577
- def reset_heartbeat
17578
- end
17579
-
17580
- # Providing this flag will also reset the heartbeat details.
17581
- sig { params(value: T::Boolean).void }
17582
- def reset_heartbeat=(value)
17583
- end
17584
-
17585
- # Providing this flag will also reset the heartbeat details.
17586
- sig { void }
17587
- def clear_reset_heartbeat
17588
- end
17589
-
17590
17911
  # Reason to unpause the activity.
17591
17912
  sig { returns(String) }
17592
17913
  def reason
@@ -17632,6 +17953,21 @@ class Temporalio::Api::WorkflowService::V1::UnpauseActivityExecutionRequest
17632
17953
  def clear_resource_id
17633
17954
  end
17634
17955
 
17956
+ # Used to de-dupe unpause requests.
17957
+ sig { returns(String) }
17958
+ def request_id
17959
+ end
17960
+
17961
+ # Used to de-dupe unpause requests.
17962
+ sig { params(value: String).void }
17963
+ def request_id=(value)
17964
+ end
17965
+
17966
+ # Used to de-dupe unpause requests.
17967
+ sig { void }
17968
+ def clear_request_id
17969
+ end
17970
+
17635
17971
  sig { params(field: String).returns(T.untyped) }
17636
17972
  def [](field)
17637
17973
  end
@@ -17990,11 +18326,12 @@ class Temporalio::Api::WorkflowService::V1::ResetActivityExecutionRequest
17990
18326
  activity_id: T.nilable(String),
17991
18327
  run_id: T.nilable(String),
17992
18328
  identity: T.nilable(String),
17993
- reset_heartbeat: T.nilable(T::Boolean),
17994
18329
  keep_paused: T.nilable(T::Boolean),
17995
18330
  jitter: T.nilable(Google::Protobuf::Duration),
17996
18331
  restore_original_options: T.nilable(T::Boolean),
17997
- resource_id: T.nilable(String)
18332
+ resource_id: T.nilable(String),
18333
+ request_id: T.nilable(String),
18334
+ reset_heartbeat: T.nilable(T::Boolean)
17998
18335
  ).void
17999
18336
  end
18000
18337
  def initialize(
@@ -18003,11 +18340,12 @@ class Temporalio::Api::WorkflowService::V1::ResetActivityExecutionRequest
18003
18340
  activity_id: "",
18004
18341
  run_id: "",
18005
18342
  identity: "",
18006
- reset_heartbeat: false,
18007
18343
  keep_paused: false,
18008
18344
  jitter: nil,
18009
18345
  restore_original_options: false,
18010
- resource_id: ""
18346
+ resource_id: "",
18347
+ request_id: "",
18348
+ reset_heartbeat: false
18011
18349
  )
18012
18350
  end
18013
18351
 
@@ -18059,17 +18397,17 @@ class Temporalio::Api::WorkflowService::V1::ResetActivityExecutionRequest
18059
18397
  def clear_activity_id
18060
18398
  end
18061
18399
 
18062
- # Run ID of the workflow or standalone activity.
18400
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
18063
18401
  sig { returns(String) }
18064
18402
  def run_id
18065
18403
  end
18066
18404
 
18067
- # Run ID of the workflow or standalone activity.
18405
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
18068
18406
  sig { params(value: String).void }
18069
18407
  def run_id=(value)
18070
18408
  end
18071
18409
 
18072
- # Run ID of the workflow or standalone activity.
18410
+ # Run ID of the workflow or standalone activity. If empty, targets the latest run.
18073
18411
  sig { void }
18074
18412
  def clear_run_id
18075
18413
  end
@@ -18089,24 +18427,6 @@ class Temporalio::Api::WorkflowService::V1::ResetActivityExecutionRequest
18089
18427
  def clear_identity
18090
18428
  end
18091
18429
 
18092
- # Indicates that activity should reset heartbeat details.
18093
- # This flag will be applied only to the new instance of the activity.
18094
- sig { returns(T::Boolean) }
18095
- def reset_heartbeat
18096
- end
18097
-
18098
- # Indicates that activity should reset heartbeat details.
18099
- # This flag will be applied only to the new instance of the activity.
18100
- sig { params(value: T::Boolean).void }
18101
- def reset_heartbeat=(value)
18102
- end
18103
-
18104
- # Indicates that activity should reset heartbeat details.
18105
- # This flag will be applied only to the new instance of the activity.
18106
- sig { void }
18107
- def clear_reset_heartbeat
18108
- end
18109
-
18110
18430
  # If activity is paused, it will remain paused after reset
18111
18431
  sig { returns(T::Boolean) }
18112
18432
  def keep_paused
@@ -18176,6 +18496,42 @@ class Temporalio::Api::WorkflowService::V1::ResetActivityExecutionRequest
18176
18496
  def clear_resource_id
18177
18497
  end
18178
18498
 
18499
+ # Used to de-dupe reset requests.
18500
+ sig { returns(String) }
18501
+ def request_id
18502
+ end
18503
+
18504
+ # Used to de-dupe reset requests.
18505
+ sig { params(value: String).void }
18506
+ def request_id=(value)
18507
+ end
18508
+
18509
+ # Used to de-dupe reset requests.
18510
+ sig { void }
18511
+ def clear_request_id
18512
+ end
18513
+
18514
+ # Reset persisted heartbeat details.
18515
+ # Reset always resets the attempt counter. Passing this flag causes reset to additionally
18516
+ # discard any persisted heartbeat details.
18517
+ sig { returns(T::Boolean) }
18518
+ def reset_heartbeat
18519
+ end
18520
+
18521
+ # Reset persisted heartbeat details.
18522
+ # Reset always resets the attempt counter. Passing this flag causes reset to additionally
18523
+ # discard any persisted heartbeat details.
18524
+ sig { params(value: T::Boolean).void }
18525
+ def reset_heartbeat=(value)
18526
+ end
18527
+
18528
+ # Reset persisted heartbeat details.
18529
+ # Reset always resets the attempt counter. Passing this flag causes reset to additionally
18530
+ # discard any persisted heartbeat details.
18531
+ sig { void }
18532
+ def clear_reset_heartbeat
18533
+ end
18534
+
18179
18535
  sig { params(field: String).returns(T.untyped) }
18180
18536
  def [](field)
18181
18537
  end
@@ -18465,18 +18821,27 @@ class Temporalio::Api::WorkflowService::V1::UpdateWorkflowExecutionOptionsRespon
18465
18821
 
18466
18822
  # The Workflow Execution time when the options were updated. When time skipping is
18467
18823
  # enabled, this is the workflow's virtual time rather than wall-clock time.
18824
+ #
18825
+ # This timestamp cannot be used for time-skipping fast-forward verification,
18826
+ # use `fast_forward_id` in `PollWorkflowExecutionTimeSkippingRequest` instead.
18468
18827
  sig { returns(T.nilable(Google::Protobuf::Timestamp)) }
18469
18828
  def update_time
18470
18829
  end
18471
18830
 
18472
18831
  # The Workflow Execution time when the options were updated. When time skipping is
18473
18832
  # enabled, this is the workflow's virtual time rather than wall-clock time.
18833
+ #
18834
+ # This timestamp cannot be used for time-skipping fast-forward verification,
18835
+ # use `fast_forward_id` in `PollWorkflowExecutionTimeSkippingRequest` instead.
18474
18836
  sig { params(value: T.nilable(Google::Protobuf::Timestamp)).void }
18475
18837
  def update_time=(value)
18476
18838
  end
18477
18839
 
18478
18840
  # The Workflow Execution time when the options were updated. When time skipping is
18479
18841
  # enabled, this is the workflow's virtual time rather than wall-clock time.
18842
+ #
18843
+ # This timestamp cannot be used for time-skipping fast-forward verification,
18844
+ # use `fast_forward_id` in `PollWorkflowExecutionTimeSkippingRequest` instead.
18480
18845
  sig { void }
18481
18846
  def clear_update_time
18482
18847
  end
@@ -25077,17 +25442,17 @@ class Temporalio::Api::WorkflowService::V1::StartActivityExecutionRequest
25077
25442
  def clear_on_conflict_options
25078
25443
  end
25079
25444
 
25080
- # Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
25445
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
25081
25446
  sig { returns(T.nilable(Google::Protobuf::Duration)) }
25082
25447
  def start_delay
25083
25448
  end
25084
25449
 
25085
- # Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
25450
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
25086
25451
  sig { params(value: T.nilable(Google::Protobuf::Duration)).void }
25087
25452
  def start_delay=(value)
25088
25453
  end
25089
25454
 
25090
- # Time to wait before dispatching the first activity task. This delay is not applied to retry attempts.
25455
+ # Time to wait before making the first activity task available for dispatch. This delay is not applied to retry attempts.
25091
25456
  sig { void }
25092
25457
  def clear_start_delay
25093
25458
  end
@@ -27548,17 +27913,17 @@ class Temporalio::Api::WorkflowService::V1::RequestCancelActivityExecutionReques
27548
27913
  def clear_activity_id
27549
27914
  end
27550
27915
 
27551
- # Activity run ID, targets the latest run if run_id is empty.
27916
+ # Activity run ID. If empty, targets the latest run.
27552
27917
  sig { returns(String) }
27553
27918
  def run_id
27554
27919
  end
27555
27920
 
27556
- # Activity run ID, targets the latest run if run_id is empty.
27921
+ # Activity run ID. If empty, targets the latest run.
27557
27922
  sig { params(value: String).void }
27558
27923
  def run_id=(value)
27559
27924
  end
27560
27925
 
27561
- # Activity run ID, targets the latest run if run_id is empty.
27926
+ # Activity run ID. If empty, targets the latest run.
27562
27927
  sig { void }
27563
27928
  def clear_run_id
27564
27929
  end
@@ -27732,17 +28097,17 @@ class Temporalio::Api::WorkflowService::V1::TerminateActivityExecutionRequest
27732
28097
  def clear_activity_id
27733
28098
  end
27734
28099
 
27735
- # Activity run ID, targets the latest run if run_id is empty.
28100
+ # Activity run ID. If empty, targets the latest run.
27736
28101
  sig { returns(String) }
27737
28102
  def run_id
27738
28103
  end
27739
28104
 
27740
- # Activity run ID, targets the latest run if run_id is empty.
28105
+ # Activity run ID. If empty, targets the latest run.
27741
28106
  sig { params(value: String).void }
27742
28107
  def run_id=(value)
27743
28108
  end
27744
28109
 
27745
- # Activity run ID, targets the latest run if run_id is empty.
28110
+ # Activity run ID. If empty, targets the latest run.
27746
28111
  sig { void }
27747
28112
  def clear_run_id
27748
28113
  end
@@ -28487,6 +28852,202 @@ class Temporalio::Api::WorkflowService::V1::DeleteNexusOperationExecutionRespons
28487
28852
  end
28488
28853
  end
28489
28854
 
28855
+ # A long-poll request that blocks according to a time-skipping waiting policy on the workflow
28856
+ # execution. Currently the only supported policy is waiting for completion of the fast-forward
28857
+ # identified by `fast_forward_id`; the poll also returns once anything else settles that outcome
28858
+ # (e.g. the execution ends or time skipping is disabled).
28859
+ class Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingRequest
28860
+ include ::Google::Protobuf::MessageExts
28861
+ extend ::Google::Protobuf::MessageExts::ClassMethods
28862
+
28863
+ sig do
28864
+ params(
28865
+ namespace: T.nilable(String),
28866
+ workflow_execution: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution),
28867
+ fast_forward_id: T.nilable(String)
28868
+ ).void
28869
+ end
28870
+ def initialize(
28871
+ namespace: "",
28872
+ workflow_execution: nil,
28873
+ fast_forward_id: ""
28874
+ )
28875
+ end
28876
+
28877
+ sig { returns(String) }
28878
+ def namespace
28879
+ end
28880
+
28881
+ sig { params(value: String).void }
28882
+ def namespace=(value)
28883
+ end
28884
+
28885
+ sig { void }
28886
+ def clear_namespace
28887
+ end
28888
+
28889
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)) }
28890
+ def workflow_execution
28891
+ end
28892
+
28893
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::WorkflowExecution)).void }
28894
+ def workflow_execution=(value)
28895
+ end
28896
+
28897
+ sig { void }
28898
+ def clear_workflow_execution
28899
+ end
28900
+
28901
+ # Required. Identifies the fast-forward whose completion the caller wants to wait for.
28902
+ # Must match the `fast_forward_id` set in the execution's TimeSkippingConfig.
28903
+ sig { returns(String) }
28904
+ def fast_forward_id
28905
+ end
28906
+
28907
+ # Required. Identifies the fast-forward whose completion the caller wants to wait for.
28908
+ # Must match the `fast_forward_id` set in the execution's TimeSkippingConfig.
28909
+ sig { params(value: String).void }
28910
+ def fast_forward_id=(value)
28911
+ end
28912
+
28913
+ # Required. Identifies the fast-forward whose completion the caller wants to wait for.
28914
+ # Must match the `fast_forward_id` set in the execution's TimeSkippingConfig.
28915
+ sig { void }
28916
+ def clear_fast_forward_id
28917
+ end
28918
+
28919
+ sig { params(field: String).returns(T.untyped) }
28920
+ def [](field)
28921
+ end
28922
+
28923
+ sig { params(field: String, value: T.untyped).void }
28924
+ def []=(field, value)
28925
+ end
28926
+
28927
+ sig { returns(T::Hash[Symbol, T.untyped]) }
28928
+ def to_h
28929
+ end
28930
+
28931
+ sig { params(str: String).returns(Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingRequest) }
28932
+ def self.decode(str)
28933
+ end
28934
+
28935
+ sig { params(msg: Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingRequest).returns(String) }
28936
+ def self.encode(msg)
28937
+ end
28938
+
28939
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingRequest) }
28940
+ def self.decode_json(str, **kw)
28941
+ end
28942
+
28943
+ sig { params(msg: Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingRequest, kw: T.untyped).returns(String) }
28944
+ def self.encode_json(msg, **kw)
28945
+ end
28946
+
28947
+ sig { returns(::Google::Protobuf::Descriptor) }
28948
+ def self.descriptor
28949
+ end
28950
+ end
28951
+
28952
+ class Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingResponse
28953
+ include ::Google::Protobuf::MessageExts
28954
+ extend ::Google::Protobuf::MessageExts::ClassMethods
28955
+
28956
+ sig do
28957
+ params(
28958
+ fast_forward_polling_result: T.nilable(T.any(Symbol, String, Integer)),
28959
+ failed_reason: T.nilable(String),
28960
+ fast_forward_info: T.nilable(Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo)
28961
+ ).void
28962
+ end
28963
+ def initialize(
28964
+ fast_forward_polling_result: :FAST_FORWARD_POLLING_RESULT_UNSPECIFIED,
28965
+ failed_reason: "",
28966
+ fast_forward_info: nil
28967
+ )
28968
+ end
28969
+
28970
+ # The outcome of the poll for the fast-forward identified by the request's `fast_forward_id`.
28971
+ sig { returns(T.any(Symbol, Integer)) }
28972
+ def fast_forward_polling_result
28973
+ end
28974
+
28975
+ # The outcome of the poll for the fast-forward identified by the request's `fast_forward_id`.
28976
+ sig { params(value: T.any(Symbol, String, Integer)).void }
28977
+ def fast_forward_polling_result=(value)
28978
+ end
28979
+
28980
+ # The outcome of the poll for the fast-forward identified by the request's `fast_forward_id`.
28981
+ sig { void }
28982
+ def clear_fast_forward_polling_result
28983
+ end
28984
+
28985
+ # Set only when the result is FAST_FORWARD_POLLING_RESULT_FAST_FORWARD_FAILED; explains why
28986
+ # the fast-forward can no longer complete.
28987
+ sig { returns(String) }
28988
+ def failed_reason
28989
+ end
28990
+
28991
+ # Set only when the result is FAST_FORWARD_POLLING_RESULT_FAST_FORWARD_FAILED; explains why
28992
+ # the fast-forward can no longer complete.
28993
+ sig { params(value: String).void }
28994
+ def failed_reason=(value)
28995
+ end
28996
+
28997
+ # Set only when the result is FAST_FORWARD_POLLING_RESULT_FAST_FORWARD_FAILED; explains why
28998
+ # the fast-forward can no longer complete.
28999
+ sig { void }
29000
+ def clear_failed_reason
29001
+ end
29002
+
29003
+ # The execution's current fast-forward, if any.
29004
+ sig { returns(T.nilable(Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo)) }
29005
+ def fast_forward_info
29006
+ end
29007
+
29008
+ # The execution's current fast-forward, if any.
29009
+ sig { params(value: T.nilable(Temporalio::Api::Common::V1::TimeSkippingFastForwardInfo)).void }
29010
+ def fast_forward_info=(value)
29011
+ end
29012
+
29013
+ # The execution's current fast-forward, if any.
29014
+ sig { void }
29015
+ def clear_fast_forward_info
29016
+ end
29017
+
29018
+ sig { params(field: String).returns(T.untyped) }
29019
+ def [](field)
29020
+ end
29021
+
29022
+ sig { params(field: String, value: T.untyped).void }
29023
+ def []=(field, value)
29024
+ end
29025
+
29026
+ sig { returns(T::Hash[Symbol, T.untyped]) }
29027
+ def to_h
29028
+ end
29029
+
29030
+ sig { params(str: String).returns(Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingResponse) }
29031
+ def self.decode(str)
29032
+ end
29033
+
29034
+ sig { params(msg: Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingResponse).returns(String) }
29035
+ def self.encode(msg)
29036
+ end
29037
+
29038
+ sig { params(str: String, kw: T.untyped).returns(Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingResponse) }
29039
+ def self.decode_json(str, **kw)
29040
+ end
29041
+
29042
+ sig { params(msg: Temporalio::Api::WorkflowService::V1::PollWorkflowExecutionTimeSkippingResponse, kw: T.untyped).returns(String) }
29043
+ def self.encode_json(msg, **kw)
29044
+ end
29045
+
29046
+ sig { returns(::Google::Protobuf::Descriptor) }
29047
+ def self.descriptor
29048
+ end
29049
+ end
29050
+
28490
29051
  # SDK capability details.
28491
29052
  class Temporalio::Api::WorkflowService::V1::RespondWorkflowTaskCompletedRequest::Capabilities
28492
29053
  include ::Google::Protobuf::MessageExts
@@ -28744,7 +29305,8 @@ class Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities
28744
29305
  sdk_metadata: T.nilable(T::Boolean),
28745
29306
  count_group_by_execution_status: T.nilable(T::Boolean),
28746
29307
  nexus: T.nilable(T::Boolean),
28747
- server_scaled_deployments: T.nilable(T::Boolean)
29308
+ server_scaled_deployments: T.nilable(T::Boolean),
29309
+ server_scaled_provider_cloud_run: T.nilable(T::Boolean)
28748
29310
  ).void
28749
29311
  end
28750
29312
  def initialize(
@@ -28759,7 +29321,8 @@ class Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities
28759
29321
  sdk_metadata: false,
28760
29322
  count_group_by_execution_status: false,
28761
29323
  nexus: false,
28762
- server_scaled_deployments: false
29324
+ server_scaled_deployments: false,
29325
+ server_scaled_provider_cloud_run: false
28763
29326
  )
28764
29327
  end
28765
29328
 
@@ -28976,6 +29539,27 @@ class Temporalio::Api::WorkflowService::V1::GetSystemInfoResponse::Capabilities
28976
29539
  def clear_server_scaled_deployments
28977
29540
  end
28978
29541
 
29542
+ # True if the server supports the Cloud Run compute provider for
29543
+ # server-scaled deployments. Dependent on server version and the
29544
+ # provider being enabled via server configuration.
29545
+ sig { returns(T::Boolean) }
29546
+ def server_scaled_provider_cloud_run
29547
+ end
29548
+
29549
+ # True if the server supports the Cloud Run compute provider for
29550
+ # server-scaled deployments. Dependent on server version and the
29551
+ # provider being enabled via server configuration.
29552
+ sig { params(value: T::Boolean).void }
29553
+ def server_scaled_provider_cloud_run=(value)
29554
+ end
29555
+
29556
+ # True if the server supports the Cloud Run compute provider for
29557
+ # server-scaled deployments. Dependent on server version and the
29558
+ # provider being enabled via server configuration.
29559
+ sig { void }
29560
+ def clear_server_scaled_provider_cloud_run
29561
+ end
29562
+
28979
29563
  sig { params(field: String).returns(T.untyped) }
28980
29564
  def [](field)
28981
29565
  end