class documentation

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_payloads See base class.
Method to_payloads See base class.
Method with_context Return a new instance with context set on the inner converter.
Instance Variable _inner_payload_converter Undocumented

Inherited from PayloadConverter:

Method from_payload Convert a single payload to a value.
Method from_payloads_wrapper from_payloads for the temporalio.api.common.v1.Payloads wrapper.
Method to_payload Convert a single value to a payload.
Method to_payloads_wrapper to_payloads for the temporalio.api.common.v1.Payloads wrapper.
Class Variable default Default payload converter.

Wrap a payload converter unless it is already wrapped.

def __init__(self, inner_payload_converter: PayloadConverter): (source)

Create a Temporal transfer type payload converter.

def from_payloads(self, payloads: Sequence[temporalio.api.common.v1.Payload], type_hints: list[type] | None = None) -> list[Any]: (source)
def with_context(self, context: SerializationContext) -> Self: (source)

Return a new instance with context set on the inner converter.

_inner_payload_converter: PayloadConverter = (source)

Undocumented