Using the value of pubSeqn field value in the envelope

I am trying to find a way for my integrations to publish documents with the pubSeqn number set.

I noticed that the value for this field does not get generated automatically and the property for the BrokerEvent.PublishSequenceNumber is to be set.

I am not able to find more details on this from the documents can anyone help me out on this.

Thks