Interface MessageSendConfigurationMapper_v0_3
- All Known Implementing Classes:
MessageSendConfigurationMapper_v0_3Impl
public interface MessageSendConfigurationMapper_v0_3
Bidirectional mapper for converting MessageSendConfiguration between A2A Protocol v0.3 and v1.0.
Key differences:
- v0.3:
PushNotificationConfig pushNotificationConfig, Boolean blocking - v1.0:
TaskPushNotificationConfig taskPushNotificationConfig, Boolean returnImmediately
Conversion strategy:
blocking(v0.3) ↔returnImmediately(v1.0): Inverse semantics -returnImmediately = !blockingPushNotificationConfigwraps toTaskPushNotificationConfigwith empty taskId
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageSendConfigurationMapper_v0_3Singleton instance accessed viaA2AMappers_v0_3factory. -
Method Summary
Modifier and TypeMethodDescriptiondefault MessageSendConfiguration_v0_3Converts v1.0 MessageSendConfiguration to v0.3 MessageSendConfiguration.default MessageSendConfigurationConverts v0.3 MessageSendConfiguration to v1.0 MessageSendConfiguration.
-
Field Details
-
INSTANCE
Singleton instance accessed viaA2AMappers_v0_3factory.
-
-
Method Details
-
toV10
Converts v0.3 MessageSendConfiguration to v1.0 MessageSendConfiguration.Converts
blockingtoreturnImmediatelywith inverse semantics, and wrapsPushNotificationConfigintoTaskPushNotificationConfig.- Parameters:
v03- the v0.3 message send configuration- Returns:
- the equivalent v1.0 message send configuration
-
fromV10
Converts v1.0 MessageSendConfiguration to v0.3 MessageSendConfiguration.Converts
returnImmediatelytoblockingwith inverse semantics, and extractsPushNotificationConfigfromTaskPushNotificationConfig.- Parameters:
v10- the v1.0 message send configuration- Returns:
- the equivalent v0.3 message send configuration
-