Google\Cloud\PubSub\Message::id PHP Method

id() public method

The message ID is assigned by the server when the message is published. Guaranteed to be unique within the topic. Example: echo $message->id();
public id ( ) : string
return string
    public function id()
    {
        return $this->message['messageId'];
    }