1
1
"""
2
2
@generated by mypy-protobuf. Do not edit manually!
3
3
isort:skip_file
4
- The MIT License
5
-
6
- Copyright (c) 2020 Temporal Technologies Inc. All rights reserved.
7
-
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in
16
- all copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24
- THE SOFTWARE.
25
4
"""
26
5
27
6
import builtins
7
+ import collections .abc
28
8
import sys
29
9
30
10
import google .protobuf .descriptor
31
11
import google .protobuf .duration_pb2
32
12
import google .protobuf .field_mask_pb2
13
+ import google .protobuf .internal .containers
33
14
import google .protobuf .message
34
15
import google .protobuf .timestamp_pb2
35
16
@@ -231,6 +212,7 @@ class BatchOperationReset(google.protobuf.message.Message):
231
212
OPTIONS_FIELD_NUMBER : builtins .int
232
213
RESET_TYPE_FIELD_NUMBER : builtins .int
233
214
RESET_REAPPLY_TYPE_FIELD_NUMBER : builtins .int
215
+ POST_RESET_OPERATIONS_FIELD_NUMBER : builtins .int
234
216
identity : builtins .str
235
217
"""The identity of the worker/client."""
236
218
@property
@@ -240,13 +222,27 @@ class BatchOperationReset(google.protobuf.message.Message):
240
222
"""Reset type (deprecated, use `options`)."""
241
223
reset_reapply_type : temporalio .api .enums .v1 .reset_pb2 .ResetReapplyType .ValueType
242
224
"""History event reapply options (deprecated, use `options`)."""
225
+ @property
226
+ def post_reset_operations (
227
+ self ,
228
+ ) -> google .protobuf .internal .containers .RepeatedCompositeFieldContainer [
229
+ temporalio .api .workflow .v1 .message_pb2 .PostResetOperation
230
+ ]:
231
+ """Operations to perform after the workflow has been reset. These operations will be applied
232
+ to the *new* run of the workflow execution in the order they are provided.
233
+ All operations are applied to the workflow before the first new workflow task is generated
234
+ """
243
235
def __init__ (
244
236
self ,
245
237
* ,
246
238
identity : builtins .str = ...,
247
239
options : temporalio .api .common .v1 .message_pb2 .ResetOptions | None = ...,
248
240
reset_type : temporalio .api .enums .v1 .reset_pb2 .ResetType .ValueType = ...,
249
241
reset_reapply_type : temporalio .api .enums .v1 .reset_pb2 .ResetReapplyType .ValueType = ...,
242
+ post_reset_operations : collections .abc .Iterable [
243
+ temporalio .api .workflow .v1 .message_pb2 .PostResetOperation
244
+ ]
245
+ | None = ...,
250
246
) -> None : ...
251
247
def HasField (
252
248
self , field_name : typing_extensions .Literal ["options" , b"options" ]
@@ -258,6 +254,8 @@ class BatchOperationReset(google.protobuf.message.Message):
258
254
b"identity" ,
259
255
"options" ,
260
256
b"options" ,
257
+ "post_reset_operations" ,
258
+ b"post_reset_operations" ,
261
259
"reset_reapply_type" ,
262
260
b"reset_reapply_type" ,
263
261
"reset_type" ,
@@ -283,7 +281,7 @@ class BatchOperationUpdateWorkflowExecutionOptions(google.protobuf.message.Messa
283
281
def workflow_execution_options (
284
282
self ,
285
283
) -> temporalio .api .workflow .v1 .message_pb2 .WorkflowExecutionOptions :
286
- """Workflow Execution options. Partial updates are accepted and controlled by update_mask."""
284
+ """Update Workflow options that were originally specified via StartWorkflowExecution . Partial updates are accepted and controlled by update_mask."""
287
285
@property
288
286
def update_mask (self ) -> google .protobuf .field_mask_pb2 .FieldMask :
289
287
"""Controls which fields from `workflow_execution_options` will be applied.
0 commit comments