docs: public void setDeviceId(byte[] deviceId) {
      if (deviceId == null) {
        throw new RuntimeException("Device ID cannot be null.");
      }
      if (deviceId.length != DEVICE_ID_SIZE) {
        throw new RuntimeException(String.format(
            "Device ID must be %d bytes long.", Integer.valueOf(DEVICE_ID_SIZE)));
      }
      this.deviceId = deviceId;
    }