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

namespace Google\Cloud\Dataplex\V1;

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

/**
 * DataProfileResult defines the output of DataProfileScan.
 * Each field of the table will have field type specific profile result.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.DataProfileResult</code>
 */
class DataProfileResult extends \Google\Protobuf\Internal\Message
{
    /**
     * The count of all rows in the sampled data.
     * Return 0, if zero rows.
     *
     * Generated from protobuf field <code>int64 row_count = 3;</code>
     */
    private $row_count = 0;
    /**
     * This represents the profile information per field.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;</code>
     */
    private $profile = null;
    /**
     * The data scanned for this profile.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.ScannedData scanned_data = 5;</code>
     */
    private $scanned_data = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $row_count
     *           The count of all rows in the sampled data.
     *           Return 0, if zero rows.
     *     @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile $profile
     *           This represents the profile information per field.
     *     @type \Google\Cloud\Dataplex\V1\ScannedData $scanned_data
     *           The data scanned for this profile.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce();
        parent::__construct($data);
    }

    /**
     * The count of all rows in the sampled data.
     * Return 0, if zero rows.
     *
     * Generated from protobuf field <code>int64 row_count = 3;</code>
     * @return int|string
     */
    public function getRowCount()
    {
        return $this->row_count;
    }

    /**
     * The count of all rows in the sampled data.
     * Return 0, if zero rows.
     *
     * Generated from protobuf field <code>int64 row_count = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRowCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->row_count = $var;

        return $this;
    }

    /**
     * This represents the profile information per field.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;</code>
     * @return \Google\Cloud\Dataplex\V1\DataProfileResult\Profile|null
     */
    public function getProfile()
    {
        return $this->profile;
    }

    public function hasProfile()
    {
        return isset($this->profile);
    }

    public function clearProfile()
    {
        unset($this->profile);
    }

    /**
     * This represents the profile information per field.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4;</code>
     * @param \Google\Cloud\Dataplex\V1\DataProfileResult\Profile $var
     * @return $this
     */
    public function setProfile($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\Profile::class);
        $this->profile = $var;

        return $this;
    }

    /**
     * The data scanned for this profile.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.ScannedData scanned_data = 5;</code>
     * @return \Google\Cloud\Dataplex\V1\ScannedData|null
     */
    public function getScannedData()
    {
        return $this->scanned_data;
    }

    public function hasScannedData()
    {
        return isset($this->scanned_data);
    }

    public function clearScannedData()
    {
        unset($this->scanned_data);
    }

    /**
     * The data scanned for this profile.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.ScannedData scanned_data = 5;</code>
     * @param \Google\Cloud\Dataplex\V1\ScannedData $var
     * @return $this
     */
    public function setScannedData($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\ScannedData::class);
        $this->scanned_data = $var;

        return $this;
    }

}

