@ Override public byte [ ] encode ( final NamingUnregisterRequest obj ) { final AvroNamingUnRegisterRequest result = AvroNamingUnRegisterRequest . newBuilder ( ) . setId ( obj . getIdentifier ( ) . toString ( ) ) . build ( ) ; return AvroUtils . toBytes ( result , AvroNamingUnRegisterRequest . class ) ; }
Encodes the naming un - registration request to bytes .