cadence-python-client 0.1.0__py3-none-any.whl

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 (95) hide show
  1. cadence/__init__.py +18 -0
  2. cadence/_internal/__init__.py +8 -0
  3. cadence/_internal/activity/__init__.py +5 -0
  4. cadence/_internal/activity/_activity_executor.py +113 -0
  5. cadence/_internal/activity/_context.py +58 -0
  6. cadence/_internal/rpc/__init__.py +0 -0
  7. cadence/_internal/rpc/error.py +148 -0
  8. cadence/_internal/rpc/retry.py +104 -0
  9. cadence/_internal/rpc/yarpc.py +42 -0
  10. cadence/_internal/workflow/__init__.py +0 -0
  11. cadence/_internal/workflow/context.py +121 -0
  12. cadence/_internal/workflow/decision_events_iterator.py +161 -0
  13. cadence/_internal/workflow/decisions_helper.py +312 -0
  14. cadence/_internal/workflow/deterministic_event_loop.py +498 -0
  15. cadence/_internal/workflow/history_event_iterator.py +58 -0
  16. cadence/_internal/workflow/statemachine/__init__.py +0 -0
  17. cadence/_internal/workflow/statemachine/activity_state_machine.py +106 -0
  18. cadence/_internal/workflow/statemachine/decision_manager.py +157 -0
  19. cadence/_internal/workflow/statemachine/decision_state_machine.py +87 -0
  20. cadence/_internal/workflow/statemachine/event_dispatcher.py +76 -0
  21. cadence/_internal/workflow/statemachine/timer_state_machine.py +73 -0
  22. cadence/_internal/workflow/workflow_engine.py +245 -0
  23. cadence/_internal/workflow/workflow_intance.py +44 -0
  24. cadence/activity.py +255 -0
  25. cadence/api/v1/__init__.py +92 -0
  26. cadence/api/v1/common_pb2.py +90 -0
  27. cadence/api/v1/common_pb2.pyi +200 -0
  28. cadence/api/v1/common_pb2_grpc.py +24 -0
  29. cadence/api/v1/decision_pb2.py +67 -0
  30. cadence/api/v1/decision_pb2.pyi +225 -0
  31. cadence/api/v1/decision_pb2_grpc.py +24 -0
  32. cadence/api/v1/domain_pb2.py +68 -0
  33. cadence/api/v1/domain_pb2.pyi +145 -0
  34. cadence/api/v1/domain_pb2_grpc.py +24 -0
  35. cadence/api/v1/error_pb2.py +59 -0
  36. cadence/api/v1/error_pb2.pyi +82 -0
  37. cadence/api/v1/error_pb2_grpc.py +24 -0
  38. cadence/api/v1/history_pb2.py +134 -0
  39. cadence/api/v1/history_pb2.pyi +780 -0
  40. cadence/api/v1/history_pb2_grpc.py +24 -0
  41. cadence/api/v1/query_pb2.py +49 -0
  42. cadence/api/v1/query_pb2.pyi +59 -0
  43. cadence/api/v1/query_pb2_grpc.py +24 -0
  44. cadence/api/v1/service_domain_pb2.py +76 -0
  45. cadence/api/v1/service_domain_pb2.pyi +164 -0
  46. cadence/api/v1/service_domain_pb2_grpc.py +327 -0
  47. cadence/api/v1/service_meta_pb2.py +41 -0
  48. cadence/api/v1/service_meta_pb2.pyi +17 -0
  49. cadence/api/v1/service_meta_pb2_grpc.py +97 -0
  50. cadence/api/v1/service_visibility_pb2.py +71 -0
  51. cadence/api/v1/service_visibility_pb2.pyi +149 -0
  52. cadence/api/v1/service_visibility_pb2_grpc.py +362 -0
  53. cadence/api/v1/service_worker_pb2.py +116 -0
  54. cadence/api/v1/service_worker_pb2.pyi +350 -0
  55. cadence/api/v1/service_worker_pb2_grpc.py +743 -0
  56. cadence/api/v1/service_workflow_pb2.py +126 -0
  57. cadence/api/v1/service_workflow_pb2.pyi +395 -0
  58. cadence/api/v1/service_workflow_pb2_grpc.py +861 -0
  59. cadence/api/v1/tasklist_pb2.py +78 -0
  60. cadence/api/v1/tasklist_pb2.pyi +147 -0
  61. cadence/api/v1/tasklist_pb2_grpc.py +24 -0
  62. cadence/api/v1/visibility_pb2.py +47 -0
  63. cadence/api/v1/visibility_pb2.pyi +53 -0
  64. cadence/api/v1/visibility_pb2_grpc.py +24 -0
  65. cadence/api/v1/workflow_pb2.py +89 -0
  66. cadence/api/v1/workflow_pb2.pyi +365 -0
  67. cadence/api/v1/workflow_pb2_grpc.py +24 -0
  68. cadence/client.py +382 -0
  69. cadence/data_converter.py +78 -0
  70. cadence/error.py +111 -0
  71. cadence/metrics/__init__.py +12 -0
  72. cadence/metrics/constants.py +136 -0
  73. cadence/metrics/metrics.py +56 -0
  74. cadence/metrics/prometheus.py +165 -0
  75. cadence/sample/__init__.py +1 -0
  76. cadence/sample/client_example.py +15 -0
  77. cadence/sample/grpc_usage_example.py +230 -0
  78. cadence/sample/simple_usage_example.py +155 -0
  79. cadence/signal.py +174 -0
  80. cadence/worker/__init__.py +13 -0
  81. cadence/worker/_activity.py +60 -0
  82. cadence/worker/_base_task_handler.py +71 -0
  83. cadence/worker/_decision.py +62 -0
  84. cadence/worker/_decision_task_handler.py +285 -0
  85. cadence/worker/_poller.py +64 -0
  86. cadence/worker/_registry.py +245 -0
  87. cadence/worker/_types.py +26 -0
  88. cadence/worker/_worker.py +56 -0
  89. cadence/workflow.py +271 -0
  90. cadence_python_client-0.1.0.dist-info/METADATA +180 -0
  91. cadence_python_client-0.1.0.dist-info/RECORD +95 -0
  92. cadence_python_client-0.1.0.dist-info/WHEEL +5 -0
  93. cadence_python_client-0.1.0.dist-info/licenses/LICENSE +201 -0
  94. cadence_python_client-0.1.0.dist-info/licenses/NOTICE +19 -0
  95. cadence_python_client-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,149 @@
1
+ from cadence.api.v1 import visibility_pb2 as _visibility_pb2
2
+ from cadence.api.v1 import workflow_pb2 as _workflow_pb2
3
+ from google.protobuf.internal import containers as _containers
4
+ from google.protobuf import descriptor as _descriptor
5
+ from google.protobuf import message as _message
6
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
7
+
8
+ DESCRIPTOR: _descriptor.FileDescriptor
9
+
10
+ class ListWorkflowExecutionsRequest(_message.Message):
11
+ __slots__ = ("domain", "page_size", "next_page_token", "query")
12
+ DOMAIN_FIELD_NUMBER: _ClassVar[int]
13
+ PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
14
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
15
+ QUERY_FIELD_NUMBER: _ClassVar[int]
16
+ domain: str
17
+ page_size: int
18
+ next_page_token: bytes
19
+ query: str
20
+ def __init__(self, domain: _Optional[str] = ..., page_size: _Optional[int] = ..., next_page_token: _Optional[bytes] = ..., query: _Optional[str] = ...) -> None: ...
21
+
22
+ class ListWorkflowExecutionsResponse(_message.Message):
23
+ __slots__ = ("executions", "next_page_token")
24
+ EXECUTIONS_FIELD_NUMBER: _ClassVar[int]
25
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
26
+ executions: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowExecutionInfo]
27
+ next_page_token: bytes
28
+ def __init__(self, executions: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowExecutionInfo, _Mapping]]] = ..., next_page_token: _Optional[bytes] = ...) -> None: ...
29
+
30
+ class ListOpenWorkflowExecutionsRequest(_message.Message):
31
+ __slots__ = ("domain", "page_size", "next_page_token", "start_time_filter", "execution_filter", "type_filter")
32
+ DOMAIN_FIELD_NUMBER: _ClassVar[int]
33
+ PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
34
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
35
+ START_TIME_FILTER_FIELD_NUMBER: _ClassVar[int]
36
+ EXECUTION_FILTER_FIELD_NUMBER: _ClassVar[int]
37
+ TYPE_FILTER_FIELD_NUMBER: _ClassVar[int]
38
+ domain: str
39
+ page_size: int
40
+ next_page_token: bytes
41
+ start_time_filter: _visibility_pb2.StartTimeFilter
42
+ execution_filter: _visibility_pb2.WorkflowExecutionFilter
43
+ type_filter: _visibility_pb2.WorkflowTypeFilter
44
+ def __init__(self, domain: _Optional[str] = ..., page_size: _Optional[int] = ..., next_page_token: _Optional[bytes] = ..., start_time_filter: _Optional[_Union[_visibility_pb2.StartTimeFilter, _Mapping]] = ..., execution_filter: _Optional[_Union[_visibility_pb2.WorkflowExecutionFilter, _Mapping]] = ..., type_filter: _Optional[_Union[_visibility_pb2.WorkflowTypeFilter, _Mapping]] = ...) -> None: ...
45
+
46
+ class ListOpenWorkflowExecutionsResponse(_message.Message):
47
+ __slots__ = ("executions", "next_page_token")
48
+ EXECUTIONS_FIELD_NUMBER: _ClassVar[int]
49
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
50
+ executions: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowExecutionInfo]
51
+ next_page_token: bytes
52
+ def __init__(self, executions: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowExecutionInfo, _Mapping]]] = ..., next_page_token: _Optional[bytes] = ...) -> None: ...
53
+
54
+ class ListClosedWorkflowExecutionsRequest(_message.Message):
55
+ __slots__ = ("domain", "page_size", "next_page_token", "start_time_filter", "execution_filter", "type_filter", "status_filter")
56
+ DOMAIN_FIELD_NUMBER: _ClassVar[int]
57
+ PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
58
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
59
+ START_TIME_FILTER_FIELD_NUMBER: _ClassVar[int]
60
+ EXECUTION_FILTER_FIELD_NUMBER: _ClassVar[int]
61
+ TYPE_FILTER_FIELD_NUMBER: _ClassVar[int]
62
+ STATUS_FILTER_FIELD_NUMBER: _ClassVar[int]
63
+ domain: str
64
+ page_size: int
65
+ next_page_token: bytes
66
+ start_time_filter: _visibility_pb2.StartTimeFilter
67
+ execution_filter: _visibility_pb2.WorkflowExecutionFilter
68
+ type_filter: _visibility_pb2.WorkflowTypeFilter
69
+ status_filter: _visibility_pb2.StatusFilter
70
+ def __init__(self, domain: _Optional[str] = ..., page_size: _Optional[int] = ..., next_page_token: _Optional[bytes] = ..., start_time_filter: _Optional[_Union[_visibility_pb2.StartTimeFilter, _Mapping]] = ..., execution_filter: _Optional[_Union[_visibility_pb2.WorkflowExecutionFilter, _Mapping]] = ..., type_filter: _Optional[_Union[_visibility_pb2.WorkflowTypeFilter, _Mapping]] = ..., status_filter: _Optional[_Union[_visibility_pb2.StatusFilter, _Mapping]] = ...) -> None: ...
71
+
72
+ class ListClosedWorkflowExecutionsResponse(_message.Message):
73
+ __slots__ = ("executions", "next_page_token")
74
+ EXECUTIONS_FIELD_NUMBER: _ClassVar[int]
75
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
76
+ executions: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowExecutionInfo]
77
+ next_page_token: bytes
78
+ def __init__(self, executions: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowExecutionInfo, _Mapping]]] = ..., next_page_token: _Optional[bytes] = ...) -> None: ...
79
+
80
+ class ListArchivedWorkflowExecutionsRequest(_message.Message):
81
+ __slots__ = ("domain", "page_size", "next_page_token", "query")
82
+ DOMAIN_FIELD_NUMBER: _ClassVar[int]
83
+ PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
84
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
85
+ QUERY_FIELD_NUMBER: _ClassVar[int]
86
+ domain: str
87
+ page_size: int
88
+ next_page_token: bytes
89
+ query: str
90
+ def __init__(self, domain: _Optional[str] = ..., page_size: _Optional[int] = ..., next_page_token: _Optional[bytes] = ..., query: _Optional[str] = ...) -> None: ...
91
+
92
+ class ListArchivedWorkflowExecutionsResponse(_message.Message):
93
+ __slots__ = ("executions", "next_page_token")
94
+ EXECUTIONS_FIELD_NUMBER: _ClassVar[int]
95
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
96
+ executions: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowExecutionInfo]
97
+ next_page_token: bytes
98
+ def __init__(self, executions: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowExecutionInfo, _Mapping]]] = ..., next_page_token: _Optional[bytes] = ...) -> None: ...
99
+
100
+ class ScanWorkflowExecutionsRequest(_message.Message):
101
+ __slots__ = ("domain", "page_size", "next_page_token", "query")
102
+ DOMAIN_FIELD_NUMBER: _ClassVar[int]
103
+ PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
104
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
105
+ QUERY_FIELD_NUMBER: _ClassVar[int]
106
+ domain: str
107
+ page_size: int
108
+ next_page_token: bytes
109
+ query: str
110
+ def __init__(self, domain: _Optional[str] = ..., page_size: _Optional[int] = ..., next_page_token: _Optional[bytes] = ..., query: _Optional[str] = ...) -> None: ...
111
+
112
+ class ScanWorkflowExecutionsResponse(_message.Message):
113
+ __slots__ = ("executions", "next_page_token")
114
+ EXECUTIONS_FIELD_NUMBER: _ClassVar[int]
115
+ NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
116
+ executions: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowExecutionInfo]
117
+ next_page_token: bytes
118
+ def __init__(self, executions: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowExecutionInfo, _Mapping]]] = ..., next_page_token: _Optional[bytes] = ...) -> None: ...
119
+
120
+ class CountWorkflowExecutionsRequest(_message.Message):
121
+ __slots__ = ("domain", "query")
122
+ DOMAIN_FIELD_NUMBER: _ClassVar[int]
123
+ QUERY_FIELD_NUMBER: _ClassVar[int]
124
+ domain: str
125
+ query: str
126
+ def __init__(self, domain: _Optional[str] = ..., query: _Optional[str] = ...) -> None: ...
127
+
128
+ class CountWorkflowExecutionsResponse(_message.Message):
129
+ __slots__ = ("count",)
130
+ COUNT_FIELD_NUMBER: _ClassVar[int]
131
+ count: int
132
+ def __init__(self, count: _Optional[int] = ...) -> None: ...
133
+
134
+ class GetSearchAttributesRequest(_message.Message):
135
+ __slots__ = ()
136
+ def __init__(self) -> None: ...
137
+
138
+ class GetSearchAttributesResponse(_message.Message):
139
+ __slots__ = ("keys",)
140
+ class KeysEntry(_message.Message):
141
+ __slots__ = ("key", "value")
142
+ KEY_FIELD_NUMBER: _ClassVar[int]
143
+ VALUE_FIELD_NUMBER: _ClassVar[int]
144
+ key: str
145
+ value: _visibility_pb2.IndexedValueType
146
+ def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_visibility_pb2.IndexedValueType, str]] = ...) -> None: ...
147
+ KEYS_FIELD_NUMBER: _ClassVar[int]
148
+ keys: _containers.ScalarMap[str, _visibility_pb2.IndexedValueType]
149
+ def __init__(self, keys: _Optional[_Mapping[str, _visibility_pb2.IndexedValueType]] = ...) -> None: ...
@@ -0,0 +1,362 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from cadence.api.v1 import service_visibility_pb2 as cadence_dot_api_dot_v1_dot_service__visibility__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.71.2'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + f' but the generated code in cadence/api/v1/service_visibility_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class VisibilityAPIStub(object):
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.ListWorkflowExecutions = channel.unary_unary(
38
+ '/uber.cadence.api.v1.VisibilityAPI/ListWorkflowExecutions',
39
+ request_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListWorkflowExecutionsRequest.SerializeToString,
40
+ response_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListWorkflowExecutionsResponse.FromString,
41
+ _registered_method=True)
42
+ self.ListOpenWorkflowExecutions = channel.unary_unary(
43
+ '/uber.cadence.api.v1.VisibilityAPI/ListOpenWorkflowExecutions',
44
+ request_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListOpenWorkflowExecutionsRequest.SerializeToString,
45
+ response_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListOpenWorkflowExecutionsResponse.FromString,
46
+ _registered_method=True)
47
+ self.ListClosedWorkflowExecutions = channel.unary_unary(
48
+ '/uber.cadence.api.v1.VisibilityAPI/ListClosedWorkflowExecutions',
49
+ request_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListClosedWorkflowExecutionsRequest.SerializeToString,
50
+ response_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListClosedWorkflowExecutionsResponse.FromString,
51
+ _registered_method=True)
52
+ self.ListArchivedWorkflowExecutions = channel.unary_unary(
53
+ '/uber.cadence.api.v1.VisibilityAPI/ListArchivedWorkflowExecutions',
54
+ request_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListArchivedWorkflowExecutionsRequest.SerializeToString,
55
+ response_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListArchivedWorkflowExecutionsResponse.FromString,
56
+ _registered_method=True)
57
+ self.ScanWorkflowExecutions = channel.unary_unary(
58
+ '/uber.cadence.api.v1.VisibilityAPI/ScanWorkflowExecutions',
59
+ request_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ScanWorkflowExecutionsRequest.SerializeToString,
60
+ response_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ScanWorkflowExecutionsResponse.FromString,
61
+ _registered_method=True)
62
+ self.CountWorkflowExecutions = channel.unary_unary(
63
+ '/uber.cadence.api.v1.VisibilityAPI/CountWorkflowExecutions',
64
+ request_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.CountWorkflowExecutionsRequest.SerializeToString,
65
+ response_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.CountWorkflowExecutionsResponse.FromString,
66
+ _registered_method=True)
67
+ self.GetSearchAttributes = channel.unary_unary(
68
+ '/uber.cadence.api.v1.VisibilityAPI/GetSearchAttributes',
69
+ request_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.GetSearchAttributesRequest.SerializeToString,
70
+ response_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.GetSearchAttributesResponse.FromString,
71
+ _registered_method=True)
72
+
73
+
74
+ class VisibilityAPIServicer(object):
75
+ """Missing associated documentation comment in .proto file."""
76
+
77
+ def ListWorkflowExecutions(self, request, context):
78
+ """ListWorkflowExecutions is a visibility API to list workflow executions in a specific domain.
79
+ """
80
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
81
+ context.set_details('Method not implemented!')
82
+ raise NotImplementedError('Method not implemented!')
83
+
84
+ def ListOpenWorkflowExecutions(self, request, context):
85
+ """ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific domain.
86
+ """
87
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
88
+ context.set_details('Method not implemented!')
89
+ raise NotImplementedError('Method not implemented!')
90
+
91
+ def ListClosedWorkflowExecutions(self, request, context):
92
+ """ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific domain.
93
+ """
94
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
95
+ context.set_details('Method not implemented!')
96
+ raise NotImplementedError('Method not implemented!')
97
+
98
+ def ListArchivedWorkflowExecutions(self, request, context):
99
+ """ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific domain.
100
+ """
101
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
102
+ context.set_details('Method not implemented!')
103
+ raise NotImplementedError('Method not implemented!')
104
+
105
+ def ScanWorkflowExecutions(self, request, context):
106
+ """ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific domain without order.
107
+ """
108
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
109
+ context.set_details('Method not implemented!')
110
+ raise NotImplementedError('Method not implemented!')
111
+
112
+ def CountWorkflowExecutions(self, request, context):
113
+ """CountWorkflowExecutions is a visibility API to count of workflow executions in a specific domain.
114
+ """
115
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
116
+ context.set_details('Method not implemented!')
117
+ raise NotImplementedError('Method not implemented!')
118
+
119
+ def GetSearchAttributes(self, request, context):
120
+ """GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs.
121
+ """
122
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
123
+ context.set_details('Method not implemented!')
124
+ raise NotImplementedError('Method not implemented!')
125
+
126
+
127
+ def add_VisibilityAPIServicer_to_server(servicer, server):
128
+ rpc_method_handlers = {
129
+ 'ListWorkflowExecutions': grpc.unary_unary_rpc_method_handler(
130
+ servicer.ListWorkflowExecutions,
131
+ request_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListWorkflowExecutionsRequest.FromString,
132
+ response_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListWorkflowExecutionsResponse.SerializeToString,
133
+ ),
134
+ 'ListOpenWorkflowExecutions': grpc.unary_unary_rpc_method_handler(
135
+ servicer.ListOpenWorkflowExecutions,
136
+ request_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListOpenWorkflowExecutionsRequest.FromString,
137
+ response_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListOpenWorkflowExecutionsResponse.SerializeToString,
138
+ ),
139
+ 'ListClosedWorkflowExecutions': grpc.unary_unary_rpc_method_handler(
140
+ servicer.ListClosedWorkflowExecutions,
141
+ request_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListClosedWorkflowExecutionsRequest.FromString,
142
+ response_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListClosedWorkflowExecutionsResponse.SerializeToString,
143
+ ),
144
+ 'ListArchivedWorkflowExecutions': grpc.unary_unary_rpc_method_handler(
145
+ servicer.ListArchivedWorkflowExecutions,
146
+ request_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListArchivedWorkflowExecutionsRequest.FromString,
147
+ response_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListArchivedWorkflowExecutionsResponse.SerializeToString,
148
+ ),
149
+ 'ScanWorkflowExecutions': grpc.unary_unary_rpc_method_handler(
150
+ servicer.ScanWorkflowExecutions,
151
+ request_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ScanWorkflowExecutionsRequest.FromString,
152
+ response_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.ScanWorkflowExecutionsResponse.SerializeToString,
153
+ ),
154
+ 'CountWorkflowExecutions': grpc.unary_unary_rpc_method_handler(
155
+ servicer.CountWorkflowExecutions,
156
+ request_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.CountWorkflowExecutionsRequest.FromString,
157
+ response_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.CountWorkflowExecutionsResponse.SerializeToString,
158
+ ),
159
+ 'GetSearchAttributes': grpc.unary_unary_rpc_method_handler(
160
+ servicer.GetSearchAttributes,
161
+ request_deserializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.GetSearchAttributesRequest.FromString,
162
+ response_serializer=cadence_dot_api_dot_v1_dot_service__visibility__pb2.GetSearchAttributesResponse.SerializeToString,
163
+ ),
164
+ }
165
+ generic_handler = grpc.method_handlers_generic_handler(
166
+ 'uber.cadence.api.v1.VisibilityAPI', rpc_method_handlers)
167
+ server.add_generic_rpc_handlers((generic_handler,))
168
+ server.add_registered_method_handlers('uber.cadence.api.v1.VisibilityAPI', rpc_method_handlers)
169
+
170
+
171
+ # This class is part of an EXPERIMENTAL API.
172
+ class VisibilityAPI(object):
173
+ """Missing associated documentation comment in .proto file."""
174
+
175
+ @staticmethod
176
+ def ListWorkflowExecutions(request,
177
+ target,
178
+ options=(),
179
+ channel_credentials=None,
180
+ call_credentials=None,
181
+ insecure=False,
182
+ compression=None,
183
+ wait_for_ready=None,
184
+ timeout=None,
185
+ metadata=None):
186
+ return grpc.experimental.unary_unary(
187
+ request,
188
+ target,
189
+ '/uber.cadence.api.v1.VisibilityAPI/ListWorkflowExecutions',
190
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListWorkflowExecutionsRequest.SerializeToString,
191
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListWorkflowExecutionsResponse.FromString,
192
+ options,
193
+ channel_credentials,
194
+ insecure,
195
+ call_credentials,
196
+ compression,
197
+ wait_for_ready,
198
+ timeout,
199
+ metadata,
200
+ _registered_method=True)
201
+
202
+ @staticmethod
203
+ def ListOpenWorkflowExecutions(request,
204
+ target,
205
+ options=(),
206
+ channel_credentials=None,
207
+ call_credentials=None,
208
+ insecure=False,
209
+ compression=None,
210
+ wait_for_ready=None,
211
+ timeout=None,
212
+ metadata=None):
213
+ return grpc.experimental.unary_unary(
214
+ request,
215
+ target,
216
+ '/uber.cadence.api.v1.VisibilityAPI/ListOpenWorkflowExecutions',
217
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListOpenWorkflowExecutionsRequest.SerializeToString,
218
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListOpenWorkflowExecutionsResponse.FromString,
219
+ options,
220
+ channel_credentials,
221
+ insecure,
222
+ call_credentials,
223
+ compression,
224
+ wait_for_ready,
225
+ timeout,
226
+ metadata,
227
+ _registered_method=True)
228
+
229
+ @staticmethod
230
+ def ListClosedWorkflowExecutions(request,
231
+ target,
232
+ options=(),
233
+ channel_credentials=None,
234
+ call_credentials=None,
235
+ insecure=False,
236
+ compression=None,
237
+ wait_for_ready=None,
238
+ timeout=None,
239
+ metadata=None):
240
+ return grpc.experimental.unary_unary(
241
+ request,
242
+ target,
243
+ '/uber.cadence.api.v1.VisibilityAPI/ListClosedWorkflowExecutions',
244
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListClosedWorkflowExecutionsRequest.SerializeToString,
245
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListClosedWorkflowExecutionsResponse.FromString,
246
+ options,
247
+ channel_credentials,
248
+ insecure,
249
+ call_credentials,
250
+ compression,
251
+ wait_for_ready,
252
+ timeout,
253
+ metadata,
254
+ _registered_method=True)
255
+
256
+ @staticmethod
257
+ def ListArchivedWorkflowExecutions(request,
258
+ target,
259
+ options=(),
260
+ channel_credentials=None,
261
+ call_credentials=None,
262
+ insecure=False,
263
+ compression=None,
264
+ wait_for_ready=None,
265
+ timeout=None,
266
+ metadata=None):
267
+ return grpc.experimental.unary_unary(
268
+ request,
269
+ target,
270
+ '/uber.cadence.api.v1.VisibilityAPI/ListArchivedWorkflowExecutions',
271
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListArchivedWorkflowExecutionsRequest.SerializeToString,
272
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ListArchivedWorkflowExecutionsResponse.FromString,
273
+ options,
274
+ channel_credentials,
275
+ insecure,
276
+ call_credentials,
277
+ compression,
278
+ wait_for_ready,
279
+ timeout,
280
+ metadata,
281
+ _registered_method=True)
282
+
283
+ @staticmethod
284
+ def ScanWorkflowExecutions(request,
285
+ target,
286
+ options=(),
287
+ channel_credentials=None,
288
+ call_credentials=None,
289
+ insecure=False,
290
+ compression=None,
291
+ wait_for_ready=None,
292
+ timeout=None,
293
+ metadata=None):
294
+ return grpc.experimental.unary_unary(
295
+ request,
296
+ target,
297
+ '/uber.cadence.api.v1.VisibilityAPI/ScanWorkflowExecutions',
298
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ScanWorkflowExecutionsRequest.SerializeToString,
299
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.ScanWorkflowExecutionsResponse.FromString,
300
+ options,
301
+ channel_credentials,
302
+ insecure,
303
+ call_credentials,
304
+ compression,
305
+ wait_for_ready,
306
+ timeout,
307
+ metadata,
308
+ _registered_method=True)
309
+
310
+ @staticmethod
311
+ def CountWorkflowExecutions(request,
312
+ target,
313
+ options=(),
314
+ channel_credentials=None,
315
+ call_credentials=None,
316
+ insecure=False,
317
+ compression=None,
318
+ wait_for_ready=None,
319
+ timeout=None,
320
+ metadata=None):
321
+ return grpc.experimental.unary_unary(
322
+ request,
323
+ target,
324
+ '/uber.cadence.api.v1.VisibilityAPI/CountWorkflowExecutions',
325
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.CountWorkflowExecutionsRequest.SerializeToString,
326
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.CountWorkflowExecutionsResponse.FromString,
327
+ options,
328
+ channel_credentials,
329
+ insecure,
330
+ call_credentials,
331
+ compression,
332
+ wait_for_ready,
333
+ timeout,
334
+ metadata,
335
+ _registered_method=True)
336
+
337
+ @staticmethod
338
+ def GetSearchAttributes(request,
339
+ target,
340
+ options=(),
341
+ channel_credentials=None,
342
+ call_credentials=None,
343
+ insecure=False,
344
+ compression=None,
345
+ wait_for_ready=None,
346
+ timeout=None,
347
+ metadata=None):
348
+ return grpc.experimental.unary_unary(
349
+ request,
350
+ target,
351
+ '/uber.cadence.api.v1.VisibilityAPI/GetSearchAttributes',
352
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.GetSearchAttributesRequest.SerializeToString,
353
+ cadence_dot_api_dot_v1_dot_service__visibility__pb2.GetSearchAttributesResponse.FromString,
354
+ options,
355
+ channel_credentials,
356
+ insecure,
357
+ call_credentials,
358
+ compression,
359
+ wait_for_ready,
360
+ timeout,
361
+ metadata,
362
+ _registered_method=True)
@@ -0,0 +1,116 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: cadence/api/v1/service_worker.proto
5
+ # Protobuf Python Version: 5.29.0
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'cadence/api/v1/service_worker.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
26
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
27
+ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
28
+ from cadence.api.v1 import common_pb2 as cadence_dot_api_dot_v1_dot_common__pb2
29
+ from cadence.api.v1 import decision_pb2 as cadence_dot_api_dot_v1_dot_decision__pb2
30
+ from cadence.api.v1 import history_pb2 as cadence_dot_api_dot_v1_dot_history__pb2
31
+ from cadence.api.v1 import query_pb2 as cadence_dot_api_dot_v1_dot_query__pb2
32
+ from cadence.api.v1 import tasklist_pb2 as cadence_dot_api_dot_v1_dot_tasklist__pb2
33
+ from cadence.api.v1 import workflow_pb2 as cadence_dot_api_dot_v1_dot_workflow__pb2
34
+
35
+
36
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#cadence/api/v1/service_worker.proto\x12\x13uber.cadence.api.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1b\x63\x61\x64\x65nce/api/v1/common.proto\x1a\x1d\x63\x61\x64\x65nce/api/v1/decision.proto\x1a\x1c\x63\x61\x64\x65nce/api/v1/history.proto\x1a\x1a\x63\x61\x64\x65nce/api/v1/query.proto\x1a\x1d\x63\x61\x64\x65nce/api/v1/tasklist.proto\x1a\x1d\x63\x61\x64\x65nce/api/v1/workflow.proto\"\x89\x01\n\x1aPollForDecisionTaskRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x30\n\ttask_list\x18\x02 \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x04 \x01(\t\"\xf3\x06\n\x1bPollForDecisionTaskResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x38\n\rworkflow_type\x18\x03 \x01(\x0b\x32!.uber.cadence.api.v1.WorkflowType\x12>\n\x19previous_started_event_id\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x03\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12-\n\x07history\x18\x08 \x01(\x0b\x32\x1c.uber.cadence.api.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x31\n\x05query\x18\n \x01(\x0b\x32\".uber.cadence.api.v1.WorkflowQuery\x12\x43\n\x1cworkflow_execution_task_list\x18\x0b \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\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\x12N\n\x07queries\x18\x0e \x03(\x0b\x32=.uber.cadence.api.v1.PollForDecisionTaskResponse.QueriesEntry\x12\x15\n\rnext_event_id\x18\x0f \x01(\x03\x12\x1b\n\x13total_history_bytes\x18\x10 \x01(\x03\x12=\n\x10\x61uto_config_hint\x18\x11 \x01(\x0b\x32#.uber.cadence.api.v1.AutoConfigHint\x1aR\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\".uber.cadence.api.v1.WorkflowQuery:\x02\x38\x01\"\x88\x04\n#RespondDecisionTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\tdecisions\x18\x02 \x03(\x0b\x32\x1d.uber.cadence.api.v1.Decision\x12\x19\n\x11\x65xecution_context\x18\x03 \x01(\x0c\x12\x10\n\x08identity\x18\x04 \x01(\t\x12I\n\x11sticky_attributes\x18\x05 \x01(\x0b\x32..uber.cadence.api.v1.StickyExecutionAttributes\x12 \n\x18return_new_decision_task\x18\x06 \x01(\x08\x12&\n\x1e\x66orce_create_new_decision_task\x18\x07 \x01(\x08\x12\x17\n\x0f\x62inary_checksum\x18\x08 \x01(\t\x12\x61\n\rquery_results\x18\t \x03(\x0b\x32J.uber.cadence.api.v1.RespondDecisionTaskCompletedRequest.QueryResultsEntry\x1a]\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.uber.cadence.api.v1.WorkflowQueryResult:\x02\x38\x01\"\xe8\x02\n$RespondDecisionTaskCompletedResponse\x12G\n\rdecision_task\x18\x01 \x01(\x0b\x32\x30.uber.cadence.api.v1.PollForDecisionTaskResponse\x12\x82\x01\n\x1e\x61\x63tivities_to_dispatch_locally\x18\x02 \x03(\x0b\x32Z.uber.cadence.api.v1.RespondDecisionTaskCompletedResponse.ActivitiesToDispatchLocallyEntry\x1ar\n ActivitiesToDispatchLocallyEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12=\n\x05value\x18\x02 \x01(\x0b\x32..uber.cadence.api.v1.ActivityLocalDispatchInfo:\x02\x38\x01\"\xcd\x01\n RespondDecisionTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12;\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32,.uber.cadence.api.v1.DecisionTaskFailedCause\x12-\n\x07\x64\x65tails\x18\x03 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x17\n\x0f\x62inary_checksum\x18\x05 \x01(\t\"#\n!RespondDecisionTaskFailedResponse\"\xb3\x01\n\x1aPollForActivityTaskRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x30\n\ttask_list\x18\x02 \x01(\x0b\x32\x1d.uber.cadence.api.v1.TaskList\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x41\n\x12task_list_metadata\x18\x04 \x01(\x0b\x32%.uber.cadence.api.v1.TaskListMetadata\"\xd3\x06\n\x1bPollForActivityTaskResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x38\n\ractivity_type\x18\x04 \x01(\x0b\x32!.uber.cadence.api.v1.ActivityType\x12+\n\x05input\x18\x05 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x32\n\x0escheduled_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x19schedule_to_close_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\x0f\n\x07\x61ttempt\x18\x0b \x01(\x05\x12\x42\n\x1escheduled_time_of_this_attempt\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x11heartbeat_details\x18\r \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x38\n\rworkflow_type\x18\x0e \x01(\x0b\x32!.uber.cadence.api.v1.WorkflowType\x12\x17\n\x0fworkflow_domain\x18\x0f \x01(\t\x12+\n\x06header\x18\x10 \x01(\x0b\x32\x1b.uber.cadence.api.v1.Header\x12=\n\x10\x61uto_config_hint\x18\x11 \x01(\x0b\x32#.uber.cadence.api.v1.AutoConfigHint\"y\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12,\n\x06result\x18\x02 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\"&\n$RespondActivityTaskCompletedResponse\"\xd2\x01\n\'RespondActivityTaskCompletedByIDRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12,\n\x06result\x18\x04 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x10\n\x08identity\x18\x05 \x01(\t\"*\n(RespondActivityTaskCompletedByIDResponse\"w\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12-\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\"#\n!RespondActivityTaskFailedResponse\"\xd0\x01\n$RespondActivityTaskFailedByIDRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12-\n\x07\x66\x61ilure\x18\x04 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Failure\x12\x10\n\x08identity\x18\x05 \x01(\t\"\'\n%RespondActivityTaskFailedByIDResponse\"y\n\"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12-\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\"%\n#RespondActivityTaskCanceledResponse\"\xd2\x01\n&RespondActivityTaskCanceledByIDRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12-\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x10\n\x08identity\x18\x05 \x01(\t\")\n\'RespondActivityTaskCanceledByIDResponse\"y\n\"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12-\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x10\n\x08identity\x18\x03 \x01(\t\"?\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\"\xd2\x01\n&RecordActivityTaskHeartbeatByIDRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12-\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32\x1c.uber.cadence.api.v1.Payload\x12\x10\n\x08identity\x18\x05 \x01(\t\"C\n\'RecordActivityTaskHeartbeatByIDResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\"\xb5\x01\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x38\n\x06result\x18\x02 \x01(\x0b\x32(.uber.cadence.api.v1.WorkflowQueryResult\x12\x43\n\x13worker_version_info\x18\x03 \x01(\x0b\x32&.uber.cadence.api.v1.WorkerVersionInfo\"#\n!RespondQueryTaskCompletedResponse\"p\n\x1aResetStickyTaskListRequest\x12\x0e\n\x06\x64omain\x18\x01 \x01(\t\x12\x42\n\x12workflow_execution\x18\x02 \x01(\x0b\x32&.uber.cadence.api.v1.WorkflowExecution\"\x1d\n\x1bResetStickyTaskListResponse\"L\n\x0e\x41utoConfigHint\x12\x1a\n\x12\x65nable_auto_config\x18\x01 \x01(\x08\x12\x1e\n\x16poller_wait_time_in_ms\x18\x02 \x01(\x03\x32\xeb\x0f\n\tWorkerAPI\x12x\n\x13PollForDecisionTask\x12/.uber.cadence.api.v1.PollForDecisionTaskRequest\x1a\x30.uber.cadence.api.v1.PollForDecisionTaskResponse\x12\x93\x01\n\x1cRespondDecisionTaskCompleted\x12\x38.uber.cadence.api.v1.RespondDecisionTaskCompletedRequest\x1a\x39.uber.cadence.api.v1.RespondDecisionTaskCompletedResponse\x12\x8a\x01\n\x19RespondDecisionTaskFailed\x12\x35.uber.cadence.api.v1.RespondDecisionTaskFailedRequest\x1a\x36.uber.cadence.api.v1.RespondDecisionTaskFailedResponse\x12x\n\x13PollForActivityTask\x12/.uber.cadence.api.v1.PollForActivityTaskRequest\x1a\x30.uber.cadence.api.v1.PollForActivityTaskResponse\x12\x93\x01\n\x1cRespondActivityTaskCompleted\x12\x38.uber.cadence.api.v1.RespondActivityTaskCompletedRequest\x1a\x39.uber.cadence.api.v1.RespondActivityTaskCompletedResponse\x12\x9f\x01\n RespondActivityTaskCompletedByID\x12<.uber.cadence.api.v1.RespondActivityTaskCompletedByIDRequest\x1a=.uber.cadence.api.v1.RespondActivityTaskCompletedByIDResponse\x12\x8a\x01\n\x19RespondActivityTaskFailed\x12\x35.uber.cadence.api.v1.RespondActivityTaskFailedRequest\x1a\x36.uber.cadence.api.v1.RespondActivityTaskFailedResponse\x12\x96\x01\n\x1dRespondActivityTaskFailedByID\x12\x39.uber.cadence.api.v1.RespondActivityTaskFailedByIDRequest\x1a:.uber.cadence.api.v1.RespondActivityTaskFailedByIDResponse\x12\x90\x01\n\x1bRespondActivityTaskCanceled\x12\x37.uber.cadence.api.v1.RespondActivityTaskCanceledRequest\x1a\x38.uber.cadence.api.v1.RespondActivityTaskCanceledResponse\x12\x9c\x01\n\x1fRespondActivityTaskCanceledByID\x12;.uber.cadence.api.v1.RespondActivityTaskCanceledByIDRequest\x1a<.uber.cadence.api.v1.RespondActivityTaskCanceledByIDResponse\x12\x90\x01\n\x1bRecordActivityTaskHeartbeat\x12\x37.uber.cadence.api.v1.RecordActivityTaskHeartbeatRequest\x1a\x38.uber.cadence.api.v1.RecordActivityTaskHeartbeatResponse\x12\x9c\x01\n\x1fRecordActivityTaskHeartbeatByID\x12;.uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDRequest\x1a<.uber.cadence.api.v1.RecordActivityTaskHeartbeatByIDResponse\x12\x8a\x01\n\x19RespondQueryTaskCompleted\x12\x35.uber.cadence.api.v1.RespondQueryTaskCompletedRequest\x1a\x36.uber.cadence.api.v1.RespondQueryTaskCompletedResponse\x12x\n\x13ResetStickyTaskList\x12/.uber.cadence.api.v1.ResetStickyTaskListRequest\x1a\x30.uber.cadence.api.v1.ResetStickyTaskListResponseBb\n\x17\x63om.uber.cadence.api.v1B\x12WorkerServiceProtoP\x01Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1b\x06proto3')
37
+
38
+ _globals = globals()
39
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
40
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cadence.api.v1.service_worker_pb2', _globals)
41
+ if not _descriptor._USE_C_DESCRIPTORS:
42
+ _globals['DESCRIPTOR']._loaded_options = None
43
+ _globals['DESCRIPTOR']._serialized_options = b'\n\027com.uber.cadence.api.v1B\022WorkerServiceProtoP\001Z1github.com/uber/cadence-idl/go/proto/api/v1;apiv1'
44
+ _globals['_POLLFORDECISIONTASKRESPONSE_QUERIESENTRY']._loaded_options = None
45
+ _globals['_POLLFORDECISIONTASKRESPONSE_QUERIESENTRY']._serialized_options = b'8\001'
46
+ _globals['_RESPONDDECISIONTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY']._loaded_options = None
47
+ _globals['_RESPONDDECISIONTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY']._serialized_options = b'8\001'
48
+ _globals['_RESPONDDECISIONTASKCOMPLETEDRESPONSE_ACTIVITIESTODISPATCHLOCALLYENTRY']._loaded_options = None
49
+ _globals['_RESPONDDECISIONTASKCOMPLETEDRESPONSE_ACTIVITIESTODISPATCHLOCALLYENTRY']._serialized_options = b'8\001'
50
+ _globals['_POLLFORDECISIONTASKREQUEST']._serialized_start=338
51
+ _globals['_POLLFORDECISIONTASKREQUEST']._serialized_end=475
52
+ _globals['_POLLFORDECISIONTASKRESPONSE']._serialized_start=478
53
+ _globals['_POLLFORDECISIONTASKRESPONSE']._serialized_end=1361
54
+ _globals['_POLLFORDECISIONTASKRESPONSE_QUERIESENTRY']._serialized_start=1279
55
+ _globals['_POLLFORDECISIONTASKRESPONSE_QUERIESENTRY']._serialized_end=1361
56
+ _globals['_RESPONDDECISIONTASKCOMPLETEDREQUEST']._serialized_start=1364
57
+ _globals['_RESPONDDECISIONTASKCOMPLETEDREQUEST']._serialized_end=1884
58
+ _globals['_RESPONDDECISIONTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY']._serialized_start=1791
59
+ _globals['_RESPONDDECISIONTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY']._serialized_end=1884
60
+ _globals['_RESPONDDECISIONTASKCOMPLETEDRESPONSE']._serialized_start=1887
61
+ _globals['_RESPONDDECISIONTASKCOMPLETEDRESPONSE']._serialized_end=2247
62
+ _globals['_RESPONDDECISIONTASKCOMPLETEDRESPONSE_ACTIVITIESTODISPATCHLOCALLYENTRY']._serialized_start=2133
63
+ _globals['_RESPONDDECISIONTASKCOMPLETEDRESPONSE_ACTIVITIESTODISPATCHLOCALLYENTRY']._serialized_end=2247
64
+ _globals['_RESPONDDECISIONTASKFAILEDREQUEST']._serialized_start=2250
65
+ _globals['_RESPONDDECISIONTASKFAILEDREQUEST']._serialized_end=2455
66
+ _globals['_RESPONDDECISIONTASKFAILEDRESPONSE']._serialized_start=2457
67
+ _globals['_RESPONDDECISIONTASKFAILEDRESPONSE']._serialized_end=2492
68
+ _globals['_POLLFORACTIVITYTASKREQUEST']._serialized_start=2495
69
+ _globals['_POLLFORACTIVITYTASKREQUEST']._serialized_end=2674
70
+ _globals['_POLLFORACTIVITYTASKRESPONSE']._serialized_start=2677
71
+ _globals['_POLLFORACTIVITYTASKRESPONSE']._serialized_end=3528
72
+ _globals['_RESPONDACTIVITYTASKCOMPLETEDREQUEST']._serialized_start=3530
73
+ _globals['_RESPONDACTIVITYTASKCOMPLETEDREQUEST']._serialized_end=3651
74
+ _globals['_RESPONDACTIVITYTASKCOMPLETEDRESPONSE']._serialized_start=3653
75
+ _globals['_RESPONDACTIVITYTASKCOMPLETEDRESPONSE']._serialized_end=3691
76
+ _globals['_RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST']._serialized_start=3694
77
+ _globals['_RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST']._serialized_end=3904
78
+ _globals['_RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE']._serialized_start=3906
79
+ _globals['_RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE']._serialized_end=3948
80
+ _globals['_RESPONDACTIVITYTASKFAILEDREQUEST']._serialized_start=3950
81
+ _globals['_RESPONDACTIVITYTASKFAILEDREQUEST']._serialized_end=4069
82
+ _globals['_RESPONDACTIVITYTASKFAILEDRESPONSE']._serialized_start=4071
83
+ _globals['_RESPONDACTIVITYTASKFAILEDRESPONSE']._serialized_end=4106
84
+ _globals['_RESPONDACTIVITYTASKFAILEDBYIDREQUEST']._serialized_start=4109
85
+ _globals['_RESPONDACTIVITYTASKFAILEDBYIDREQUEST']._serialized_end=4317
86
+ _globals['_RESPONDACTIVITYTASKFAILEDBYIDRESPONSE']._serialized_start=4319
87
+ _globals['_RESPONDACTIVITYTASKFAILEDBYIDRESPONSE']._serialized_end=4358
88
+ _globals['_RESPONDACTIVITYTASKCANCELEDREQUEST']._serialized_start=4360
89
+ _globals['_RESPONDACTIVITYTASKCANCELEDREQUEST']._serialized_end=4481
90
+ _globals['_RESPONDACTIVITYTASKCANCELEDRESPONSE']._serialized_start=4483
91
+ _globals['_RESPONDACTIVITYTASKCANCELEDRESPONSE']._serialized_end=4520
92
+ _globals['_RESPONDACTIVITYTASKCANCELEDBYIDREQUEST']._serialized_start=4523
93
+ _globals['_RESPONDACTIVITYTASKCANCELEDBYIDREQUEST']._serialized_end=4733
94
+ _globals['_RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE']._serialized_start=4735
95
+ _globals['_RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE']._serialized_end=4776
96
+ _globals['_RECORDACTIVITYTASKHEARTBEATREQUEST']._serialized_start=4778
97
+ _globals['_RECORDACTIVITYTASKHEARTBEATREQUEST']._serialized_end=4899
98
+ _globals['_RECORDACTIVITYTASKHEARTBEATRESPONSE']._serialized_start=4901
99
+ _globals['_RECORDACTIVITYTASKHEARTBEATRESPONSE']._serialized_end=4964
100
+ _globals['_RECORDACTIVITYTASKHEARTBEATBYIDREQUEST']._serialized_start=4967
101
+ _globals['_RECORDACTIVITYTASKHEARTBEATBYIDREQUEST']._serialized_end=5177
102
+ _globals['_RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE']._serialized_start=5179
103
+ _globals['_RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE']._serialized_end=5246
104
+ _globals['_RESPONDQUERYTASKCOMPLETEDREQUEST']._serialized_start=5249
105
+ _globals['_RESPONDQUERYTASKCOMPLETEDREQUEST']._serialized_end=5430
106
+ _globals['_RESPONDQUERYTASKCOMPLETEDRESPONSE']._serialized_start=5432
107
+ _globals['_RESPONDQUERYTASKCOMPLETEDRESPONSE']._serialized_end=5467
108
+ _globals['_RESETSTICKYTASKLISTREQUEST']._serialized_start=5469
109
+ _globals['_RESETSTICKYTASKLISTREQUEST']._serialized_end=5581
110
+ _globals['_RESETSTICKYTASKLISTRESPONSE']._serialized_start=5583
111
+ _globals['_RESETSTICKYTASKLISTRESPONSE']._serialized_end=5612
112
+ _globals['_AUTOCONFIGHINT']._serialized_start=5614
113
+ _globals['_AUTOCONFIGHINT']._serialized_end=5690
114
+ _globals['_WORKERAPI']._serialized_start=5693
115
+ _globals['_WORKERAPI']._serialized_end=7720
116
+ # @@protoc_insertion_point(module_scope)