code: @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);
    }
docs: Encodes the identifiers to bytes.
  
  @param obj the naming lookup request
  @return a byte array