The goog.proto2.Util Namespace

.PBCHECK

.assert(condition, opt_message)

Asserts that the given condition is true, if and only if the PBCHECK flag is on.

condition {*}
The condition to check.
opt_message {string=}
Error message in case of failure.
@throws
{Error} Assertion failed, the condition evaluates to false.

.conductChecks()

Returns true if debug assertions (checks) are on.

returns {boolean}
The value of the PBCHECK constant.