SpineEventEngine / Chords

UI components for Compose Multiplatform toolkit
Apache License 2.0
2 stars 0 forks source link

Generate `MessageDef` implementations for Proto messages #16

Closed Oleg-Melnik closed 2 months ago

Oleg-Melnik commented 2 months ago

This PR includes the following tasks done:

The implementation of the MessageDef interface for some Proto message looks like the following:

public object IpAddressDef : MessageDef<IpAddress> {
    public val ipv4: IpAddressIpv4Field = IpAddressIpv4Field

    public val ipv6: IpAddressIpv6Field = IpAddressIpv6Field

    public val `value`: IpAddressValueOneof = IpAddressValueOneof

    public override val fields: Collection<MessageField<IpAddress, out Any>> = listOf(
            ipv4,
            ipv6)

    public override val oneofs: Collection<MessageOneof<IpAddress>> = listOf(
            value)
}