Interface RoleMapper

All Known Implementing Classes:
RoleMapperImpl

public interface RoleMapper
Mapper between Message.Role and Role.

Handles enum conversion between domain and protobuf role representations:

  • ROLE_USER (domain) ↔ ROLE_USER (proto)
  • ROLE_AGENT (domain) ↔ ROLE_AGENT (proto)
  • ROLE_UNSPECIFIED (domain) ↔ ROLE_UNSPECIFIED (proto)

Manual Implementation Required: Uses manual switch statements instead of @ValueMapping to avoid mapstruct-spi-protobuf enum strategy initialization issues.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RoleMapper
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Message.Role
    fromProto(Role proto)
    Converts proto Role to domain Role.
    default Role
    Converts domain Role to proto Role.
  • Field Details

  • Method Details

    • toProto

      default Role toProto(Message.Role domain)
      Converts domain Role to proto Role.
    • fromProto

      default Message.Role fromProto(Role proto)
      Converts proto Role to domain Role.