constructor() {
    /**
     * The current error message, if any.
     * @private {?string}
     */
    this.errorMessage_ = null;

    /**
     * The currently buffered result (parsed messages).
     * @private {!Array<!Object>}
     */
    this.result_ = [];

    /**
     * The current position in the streamed data.
     * @private {number}
     */
    this.streamPos_ = 0;

    /**
     * The current parser state.
     * @private {number}
     */
    this.state_ = Parser.State_.INIT;

    /**
     * The current frame byte being parsed
     * @private {number}
     */
    this.frame_ = 0;

    /**
     * The length of the proto message being parsed.
     * @private {number}
     */
    this.length_ = 0;

    /**
     * Count of processed length bytes.
     * @private {number}
     */
    this.countLengthBytes_ = 0;

    /**
     * Raw bytes of the current message. Uses Uint8Array by default. Falls back
     * to native array when Uint8Array is unsupported.
     * @private {?Uint8Array|?Array<number>}
     */
    this.messageBuffer_ = null;

    /**
     * Count of processed message bytes.
     * @private {number}
     */
    this.countMessageBytes_ = 0;
  }
The default grpc-web stream parser.
@implements {StreamParser}
@final