com.github.frtu.kotlin.protobuf.utils.MetadataUtil.kt Maven / Gradle / Ivy
package com.github.frtu.kotlin.protobuf.utils
import com.google.protobuf.Descriptors
object MetadataUtil {
fun buildFieldsMap(descriptor: Descriptors.Descriptor): Map =
descriptor.fields.map { it.name to it }.toMap()
}