class documentation
class _TemporalTransferTypePayloadConverter(PayloadConverter, WithSerializationContext): (source)
Constructor: _TemporalTransferTypePayloadConverter(inner_payload_converter)
Payload converter wrapper for registered Temporal transfer type converters.
Values with a registered transfer type converter are first converted to their transfer type value, then encoded by the wrapped payload converter. When decoding to a type with a registered transfer type converter, the wrapped converter first decodes the payload to the transfer type value and this wrapper constructs the requested user-facing type from it.
| Static Method | wrap |
Wrap a payload converter unless it is already wrapped. |
| Method | __init__ |
Create a Temporal transfer type payload converter. |
| Method | from |
See base class. |
| Method | to |
See base class. |
| Method | with |
Return a new instance with context set on the inner converter. |
| Instance Variable | _inner |
Undocumented |
Inherited from PayloadConverter:
| Method | from |
Convert a single payload to a value. |
| Method | from |
from_payloads for the temporalio.api.common.v1.Payloads wrapper. |
| Method | to |
Convert a single value to a payload. |
| Method | to |
to_payloads for the temporalio.api.common.v1.Payloads wrapper. |
| Class Variable | default |
Default payload converter. |
def from_payloads(self, payloads:
Sequence[ temporalio.api.common.v1.Payload], type_hints: list[ type] | None = None) -> list[ Any]:
(source)
¶
See base class.