@ Override public byte [ ] encode ( final NamingLookupRequest obj ) { final List < CharSequence > ids = new ArrayList <> ( ) ; for ( final Identifier id : obj . getIdentifiers ( ) ) { ids . add ( id . toString ( ) ) ; } return AvroUtils . toBytes ( AvroNamingLookupRequest . newBuilder ( ) . setIds ( ids ) . build ( ) , AvroNamingLookupRequest . class ) ; }
Encodes the identifiers to bytes .