@@ -32,9 +32,9 @@ import google.protobuf.message
32
32
import sys
33
33
import temporalio .api .common .v1 .message_pb2
34
34
import temporalio .api .enums .v1 .command_type_pb2
35
- import temporalio .api .enums .v1 .update_pb2
36
35
import temporalio .api .enums .v1 .workflow_pb2
37
36
import temporalio .api .failure .v1 .message_pb2
37
+ import temporalio .api .interaction .v1 .message_pb2
38
38
import temporalio .api .taskqueue .v1 .message_pb2
39
39
40
40
if sys .version_info >= (3 , 8 ):
@@ -858,77 +858,81 @@ global___StartChildWorkflowExecutionCommandAttributes = (
858
858
class AcceptWorkflowUpdateCommandAttributes (google .protobuf .message .Message ):
859
859
DESCRIPTOR : google .protobuf .descriptor .Descriptor
860
860
861
- UPDATE_ID_FIELD_NUMBER : builtins .int
862
- update_id : builtins .str
863
- """A unique identifier for an update within a given workflow context"""
861
+ META_FIELD_NUMBER : builtins .int
862
+ INPUT_FIELD_NUMBER : builtins .int
863
+ @property
864
+ def meta (self ) -> temporalio .api .interaction .v1 .message_pb2 .Meta : ...
865
+ @property
866
+ def input (self ) -> temporalio .api .interaction .v1 .message_pb2 .Input : ...
864
867
def __init__ (
865
868
self ,
866
869
* ,
867
- update_id : builtins .str = ...,
870
+ meta : temporalio .api .interaction .v1 .message_pb2 .Meta | None = ...,
871
+ input : temporalio .api .interaction .v1 .message_pb2 .Input | None = ...,
868
872
) -> None : ...
873
+ def HasField (
874
+ self , field_name : typing_extensions .Literal ["input" , b"input" , "meta" , b"meta" ]
875
+ ) -> builtins .bool : ...
869
876
def ClearField (
870
- self , field_name : typing_extensions .Literal ["update_id " , b"update_id " ]
877
+ self , field_name : typing_extensions .Literal ["input " , b"input" , "meta" , b"meta " ]
871
878
) -> None : ...
872
879
873
880
global___AcceptWorkflowUpdateCommandAttributes = AcceptWorkflowUpdateCommandAttributes
874
881
875
882
class CompleteWorkflowUpdateCommandAttributes (google .protobuf .message .Message ):
876
883
DESCRIPTOR : google .protobuf .descriptor .Descriptor
877
884
878
- UPDATE_ID_FIELD_NUMBER : builtins .int
879
- DURABILITY_PREFERENCE_FIELD_NUMBER : builtins .int
880
- SUCCESS_FIELD_NUMBER : builtins .int
881
- FAILURE_FIELD_NUMBER : builtins .int
882
- update_id : builtins .str
883
- """A unique identifier for an update within a given workflow context"""
884
- durability_preference : temporalio .api .enums .v1 .update_pb2 .WorkflowUpdateDurabilityPreference .ValueType
885
- """Whether the server should attempt to bypass making this update rejection
886
- durable in history. This field is only consulted when the result field
887
- indicates failure. Leaving this field in its default state (i.e.
888
- UPDATE_WORKFLOW_REJECTION_DURABILITY_PREFERENCE_UNSPECIFIED) will result
889
- in making the rejection durable.
890
- """
885
+ META_FIELD_NUMBER : builtins .int
886
+ OUTPUT_FIELD_NUMBER : builtins .int
891
887
@property
892
- def success (self ) -> temporalio .api .common .v1 .message_pb2 .Payloads : ...
888
+ def meta (self ) -> temporalio .api .interaction .v1 .message_pb2 .Meta : ...
893
889
@property
894
- def failure (self ) -> temporalio .api .failure .v1 .message_pb2 .Failure : ...
890
+ def output (self ) -> temporalio .api .interaction .v1 .message_pb2 .Output : ...
895
891
def __init__ (
896
892
self ,
897
893
* ,
898
- update_id : builtins .str = ...,
899
- durability_preference : temporalio .api .enums .v1 .update_pb2 .WorkflowUpdateDurabilityPreference .ValueType = ...,
900
- success : temporalio .api .common .v1 .message_pb2 .Payloads | None = ...,
901
- failure : temporalio .api .failure .v1 .message_pb2 .Failure | None = ...,
894
+ meta : temporalio .api .interaction .v1 .message_pb2 .Meta | None = ...,
895
+ output : temporalio .api .interaction .v1 .message_pb2 .Output | None = ...,
902
896
) -> None : ...
903
897
def HasField (
904
898
self ,
905
- field_name : typing_extensions .Literal [
906
- "failure" , b"failure" , "result" , b"result" , "success" , b"success"
907
- ],
899
+ field_name : typing_extensions .Literal ["meta" , b"meta" , "output" , b"output" ],
908
900
) -> builtins .bool : ...
909
901
def ClearField (
910
902
self ,
911
- field_name : typing_extensions .Literal [
912
- "durability_preference" ,
913
- b"durability_preference" ,
914
- "failure" ,
915
- b"failure" ,
916
- "result" ,
917
- b"result" ,
918
- "success" ,
919
- b"success" ,
920
- "update_id" ,
921
- b"update_id" ,
922
- ],
903
+ field_name : typing_extensions .Literal ["meta" , b"meta" , "output" , b"output" ],
923
904
) -> None : ...
924
- def WhichOneof (
925
- self , oneof_group : typing_extensions .Literal ["result" , b"result" ]
926
- ) -> typing_extensions .Literal ["success" , "failure" ] | None : ...
927
905
928
906
global___CompleteWorkflowUpdateCommandAttributes = (
929
907
CompleteWorkflowUpdateCommandAttributes
930
908
)
931
909
910
+ class RejectWorkflowUpdateCommandAttributes (google .protobuf .message .Message ):
911
+ DESCRIPTOR : google .protobuf .descriptor .Descriptor
912
+
913
+ META_FIELD_NUMBER : builtins .int
914
+ FAILURE_FIELD_NUMBER : builtins .int
915
+ @property
916
+ def meta (self ) -> temporalio .api .interaction .v1 .message_pb2 .Meta : ...
917
+ @property
918
+ def failure (self ) -> temporalio .api .failure .v1 .message_pb2 .Failure : ...
919
+ def __init__ (
920
+ self ,
921
+ * ,
922
+ meta : temporalio .api .interaction .v1 .message_pb2 .Meta | None = ...,
923
+ failure : temporalio .api .failure .v1 .message_pb2 .Failure | None = ...,
924
+ ) -> None : ...
925
+ def HasField (
926
+ self ,
927
+ field_name : typing_extensions .Literal ["failure" , b"failure" , "meta" , b"meta" ],
928
+ ) -> builtins .bool : ...
929
+ def ClearField (
930
+ self ,
931
+ field_name : typing_extensions .Literal ["failure" , b"failure" , "meta" , b"meta" ],
932
+ ) -> None : ...
933
+
934
+ global___RejectWorkflowUpdateCommandAttributes = RejectWorkflowUpdateCommandAttributes
935
+
932
936
class Command (google .protobuf .message .Message ):
933
937
DESCRIPTOR : google .protobuf .descriptor .Descriptor
934
938
@@ -949,6 +953,7 @@ class Command(google.protobuf.message.Message):
949
953
ACCEPT_WORKFLOW_UPDATE_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
950
954
COMPLETE_WORKFLOW_UPDATE_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
951
955
MODIFY_WORKFLOW_PROPERTIES_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
956
+ REJECT_WORKFLOW_UPDATE_COMMAND_ATTRIBUTES_FIELD_NUMBER : builtins .int
952
957
command_type : temporalio .api .enums .v1 .command_type_pb2 .CommandType .ValueType
953
958
@property
954
959
def schedule_activity_task_command_attributes (
@@ -1014,6 +1019,10 @@ class Command(google.protobuf.message.Message):
1014
1019
def modify_workflow_properties_command_attributes (
1015
1020
self ,
1016
1021
) -> global___ModifyWorkflowPropertiesCommandAttributes : ...
1022
+ @property
1023
+ def reject_workflow_update_command_attributes (
1024
+ self ,
1025
+ ) -> global___RejectWorkflowUpdateCommandAttributes : ...
1017
1026
def __init__ (
1018
1027
self ,
1019
1028
* ,
@@ -1050,6 +1059,8 @@ class Command(google.protobuf.message.Message):
1050
1059
| None = ...,
1051
1060
modify_workflow_properties_command_attributes : global___ModifyWorkflowPropertiesCommandAttributes
1052
1061
| None = ...,
1062
+ reject_workflow_update_command_attributes : global___RejectWorkflowUpdateCommandAttributes
1063
+ | None = ...,
1053
1064
) -> None : ...
1054
1065
def HasField (
1055
1066
self ,
@@ -1074,6 +1085,8 @@ class Command(google.protobuf.message.Message):
1074
1085
b"modify_workflow_properties_command_attributes" ,
1075
1086
"record_marker_command_attributes" ,
1076
1087
b"record_marker_command_attributes" ,
1088
+ "reject_workflow_update_command_attributes" ,
1089
+ b"reject_workflow_update_command_attributes" ,
1077
1090
"request_cancel_activity_task_command_attributes" ,
1078
1091
b"request_cancel_activity_task_command_attributes" ,
1079
1092
"request_cancel_external_workflow_execution_command_attributes" ,
@@ -1115,6 +1128,8 @@ class Command(google.protobuf.message.Message):
1115
1128
b"modify_workflow_properties_command_attributes" ,
1116
1129
"record_marker_command_attributes" ,
1117
1130
b"record_marker_command_attributes" ,
1131
+ "reject_workflow_update_command_attributes" ,
1132
+ b"reject_workflow_update_command_attributes" ,
1118
1133
"request_cancel_activity_task_command_attributes" ,
1119
1134
b"request_cancel_activity_task_command_attributes" ,
1120
1135
"request_cancel_external_workflow_execution_command_attributes" ,
@@ -1150,6 +1165,7 @@ class Command(google.protobuf.message.Message):
1150
1165
"accept_workflow_update_command_attributes" ,
1151
1166
"complete_workflow_update_command_attributes" ,
1152
1167
"modify_workflow_properties_command_attributes" ,
1168
+ "reject_workflow_update_command_attributes" ,
1153
1169
] | None : ...
1154
1170
1155
1171
global___Command = Command
0 commit comments