function extractCertificateStatus(tags) {
    const certTag = tags.find(tag => tag.startsWith(CERT_TAG));
    if (!certTag)
      return print_preview.DestinationCertificateStatus.NONE;
    const value = /** @type {print_preview.DestinationCertificateStatus} */ (
        certTag.substring(CERT_TAG.length));
    // Only 2 valid values sent by GCP server.
    assert(
        value == print_preview.DestinationCertificateStatus.UNKNOWN ||
        value == print_preview.DestinationCertificateStatus.YES ||
        value == print_preview.DestinationCertificateStatus.NO);
    return value;
  }
/**
   * @param {!Array<string>} tags The array of tag strings sent by GCP server.
   * @return {!print_preview.DestinationCertificateStatus} The certificate
   *     status indicated by the tag. Returns NONE if certificate tag is not
   *     found.
   */
@param {!Array} tags The array of tag strings sent by GCP server.
@return {!print_preview.DestinationCertificateStatus} The certificate
status indicated by the tag. Returns NONE if certificate tag is not
found.
@param { !Array } tags The array of tag strings sent by GCP server . @return { !print_preview . DestinationCertificateStatus } The certificate status indicated by the tag . Returns NONE if certificate tag is not found .
function extractCertificateStatus(tags) {
    const certTag = tags.find(tag => tag.startsWith(CERT_TAG));
    if (!certTag)
      return print_preview.DestinationCertificateStatus.NONE;
    const value =  (
        certTag.substring(CERT_TAG.length));
    assert(
        value == print_preview.DestinationCertificateStatus.UNKNOWN ||
        value == print_preview.DestinationCertificateStatus.YES ||
        value == print_preview.DestinationCertificateStatus.NO);
    return value;
  }
function extractCertificateStatus ( tags ) { const certTag = tags . find ( tag => tag . startsWith ( CERT_TAG ) ) ; if ( ! certTag ) return print_preview . DestinationCertificateStatus . NONE ; const value = ( certTag . substring ( CERT_TAG . length ) ) ; assert ( value == print_preview . DestinationCertificateStatus . UNKNOWN || value == print_preview . DestinationCertificateStatus . YES || value == print_preview . DestinationCertificateStatus . NO ) ; return value ; }
@param {!Array<string>} tags The array of tag strings sent by GCP server.
@param { !Array<string > } tags The array of tag strings sent by GCP server .
/** @type {print_preview.DestinationCertificateStatus} */ // Only 2 valid values sent by GCP server.