get hasColorCapability() {
      const capability = this.colorCapability_();
      if (!capability || !capability.option)
        return false;
      let hasColor = false;
      let hasMonochrome = false;
      capability.option.forEach(option => {
        const type = assert(option.type);
        hasColor = hasColor || this.COLOR_TYPES_.includes(option.type);
        hasMonochrome =
            hasMonochrome || this.MONOCHROME_TYPES_.includes(option.type);
      });
      return hasColor && hasMonochrome;
    }
/**
     * @return {boolean} Whether the printer supports both black and white and
     *     color printing.
     */
@return {boolean} Whether the printer supports both black and white and
color printing.
@return { boolean } Whether the printer supports both black and white and color printing .
get hasColorCapability() {
      const capability = this.colorCapability_();
      if (!capability || !capability.option)
        return false;
      let hasColor = false;
      let hasMonochrome = false;
      capability.option.forEach(option => {
        const type = assert(option.type);
        hasColor = hasColor || this.COLOR_TYPES_.includes(option.type);
        hasMonochrome =
            hasMonochrome || this.MONOCHROME_TYPES_.includes(option.type);
      });
      return hasColor && hasMonochrome;
    }
get hasColorCapability ( ) { const capability = this . colorCapability_ ( ) ; if ( ! capability || ! capability . option ) return false ; let hasColor = false ; let hasMonochrome = false ; capability . option . forEach ( option => { const type = assert ( option . type ) ; hasColor = hasColor || this . COLOR_TYPES_ . includes ( option . type ) ; hasMonochrome = hasMonochrome || this . MONOCHROME_TYPES_ . includes ( option . type ) ; } ) ; return hasColor && hasMonochrome ; }
@return {boolean} Whether the printer supports both black and white and
     color printing.
@return { boolean } Whether the printer supports both black and white and color printing .