Skip to content

Commit

Permalink
update protos
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Jan 24, 2025
1 parent 6ad5935 commit bad05ec
Show file tree
Hide file tree
Showing 12 changed files with 882 additions and 116 deletions.
2 changes: 2 additions & 0 deletions temporalio/bridge/proto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ActivitySlotInfo,
ActivityTaskCompletion,
LocalActivitySlotInfo,
NexusSlotInfo,
WorkflowSlotInfo,
)

Expand All @@ -11,5 +12,6 @@
"ActivitySlotInfo",
"ActivityTaskCompletion",
"LocalActivitySlotInfo",
"NexusSlotInfo",
"WorkflowSlotInfo",
]
16 changes: 15 additions & 1 deletion temporalio/bridge/proto/core_interface_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions temporalio/bridge/proto/core_interface_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,27 @@ class LocalActivitySlotInfo(google.protobuf.message.Message):
) -> None: ...

global___LocalActivitySlotInfo = LocalActivitySlotInfo

class NexusSlotInfo(google.protobuf.message.Message):
"""Info about nexus task slot usage"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

SERVICE_FIELD_NUMBER: builtins.int
OPERATION_FIELD_NUMBER: builtins.int
service: builtins.str
operation: builtins.str
def __init__(
self,
*,
service: builtins.str = ...,
operation: builtins.str = ...,
) -> None: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
"operation", b"operation", "service", b"service"
],
) -> None: ...

global___NexusSlotInfo = NexusSlotInfo
15 changes: 15 additions & 0 deletions temporalio/bridge/proto/nexus/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from .nexus_pb2 import (
CancelNexusTask,
NexusOperationResult,
NexusTask,
NexusTaskCancelReason,
NexusTaskCompletion,
)

__all__ = [
"CancelNexusTask",
"NexusOperationResult",
"NexusTask",
"NexusTaskCancelReason",
"NexusTaskCompletion",
]
107 changes: 107 additions & 0 deletions temporalio/bridge/proto/nexus/nexus_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bad05ec

Please sign in to comment.