Port and confirmation does't work with API

Hi, i developed an API Node JS to queue items following chirpstack’s javascript example, but the “port” and “confirmed” atributes aren’t accepting the parameters.
Folow.

  const item = new device_pb.DeviceQueueItem();
  item.setDevEui(devEui);
  item.setFPort(1);
  item.setConfirmed(true);
  item.setExpiresAt(expiresAt);
  item.setData(
    new Uint8Array([lib, tBanhoP, tBanhoM, 255, 255, 255, 255, 255])
  );

I can put any value in setPort, but it will always assume port 1. The setConfirmed always turns false.
Can anyone help me?