Package org.a2aproject.sdk.grpc.mapper
Interface ArtifactMapper
- All Known Implementing Classes:
ArtifactMapperImpl
public interface ArtifactMapper
Mapper between
Artifact and Artifact.
Uses ADDER_PREFERRED strategy to use addAllExtensions() method instead of trying to instantiate ProtocolStringList. Enables full compile-time validation!
-
Field Summary
Fields -
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
toProto
Converts domain Artifact to proto Artifact. ADDER_PREFERRED strategy ensures MapStruct uses addAllExtensions() method. -
fromProto
Converts proto Artifact to domain Artifact. Handles empty string → null and Struct conversions via CommonFieldMapper.
-