def get_console_link_for_table_ref(table_ref):
    """
    Returns the string URL for a given TableReference. The URL navigates to
    the BigQuery table in the GCP console.
    :param table_ref: google.cloud.bigquery.table.TableReference
    :return: string Link to BigQuery Table in GCP Console
    """
    return (
        'https://console.cloud.google.com/bigquery?'
        'project={}'
        '&p={}'
        '&t={}'
        '&d=validation&orgonly=true'
        '&supportedpurview=organizationId&page=table'
    ).format(table_ref.project, table_ref.project, table_ref.table_id)