<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataplex/v1/logs.proto

namespace Google\Cloud\Dataplex\V1\DataScanEvent;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Data quality result for data scan job.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.DataScanEvent.DataQualityResult</code>
 */
class DataQualityResult extends \Google\Protobuf\Internal\Message
{
    /**
     * The count of rows processed in the data scan job.
     *
     * Generated from protobuf field <code>int64 row_count = 1;</code>
     */
    private $row_count = 0;
    /**
     * Whether the data quality result was `pass` or not.
     *
     * Generated from protobuf field <code>bool passed = 2;</code>
     */
    private $passed = false;
    /**
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     *
     * Generated from protobuf field <code>map<string, bool> dimension_passed = 3;</code>
     */
    private $dimension_passed;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $row_count
     *           The count of rows processed in the data scan job.
     *     @type bool $passed
     *           Whether the data quality result was `pass` or not.
     *     @type array|\Google\Protobuf\Internal\MapField $dimension_passed
     *           The result of each dimension for data quality result.
     *           The key of the map is the name of the dimension.
     *           The value is the bool value depicting whether the dimension result was
     *           `pass` or not.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce();
        parent::__construct($data);
    }

    /**
     * The count of rows processed in the data scan job.
     *
     * Generated from protobuf field <code>int64 row_count = 1;</code>
     * @return int|string
     */
    public function getRowCount()
    {
        return $this->row_count;
    }

    /**
     * The count of rows processed in the data scan job.
     *
     * Generated from protobuf field <code>int64 row_count = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRowCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->row_count = $var;

        return $this;
    }

    /**
     * Whether the data quality result was `pass` or not.
     *
     * Generated from protobuf field <code>bool passed = 2;</code>
     * @return bool
     */
    public function getPassed()
    {
        return $this->passed;
    }

    /**
     * Whether the data quality result was `pass` or not.
     *
     * Generated from protobuf field <code>bool passed = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setPassed($var)
    {
        GPBUtil::checkBool($var);
        $this->passed = $var;

        return $this;
    }

    /**
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     *
     * Generated from protobuf field <code>map<string, bool> dimension_passed = 3;</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getDimensionPassed()
    {
        return $this->dimension_passed;
    }

    /**
     * The result of each dimension for data quality result.
     * The key of the map is the name of the dimension.
     * The value is the bool value depicting whether the dimension result was
     * `pass` or not.
     *
     * Generated from protobuf field <code>map<string, bool> dimension_passed = 3;</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setDimensionPassed($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::BOOL);
        $this->dimension_passed = $arr;

        return $this;
    }

}


