getNextState() {
        warnDeprecated(
            "`Session.prototype.getNextState` has been deprecated. Access " +
                "the `Session.prototype.state` property instead."
        );
        return this.state;
    }
@deprecated Access {@link Session#state} instead.