
scalagen.readUnionField.scala Maven / Gradle / Ivy
case {{id}} => // {{fieldName}}
_field.`type` match {
{{#isEnum}}
case TType.I32 | TType.ENUM =>
{{/isEnum}}
{{^isEnum}}
case TType.{{constType}} =>
{{/isEnum}}
_result = {{StructName}}.{{FieldName}}({
{{>readValue}}
})
case _ => TProtocolUtil.skip(_iprot, _field.`type`)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy