<?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
{
    /**
     * Output only. The count of rows scanned.
     *
     * Generated from protobuf field <code>int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $row_count = 0;
    /**
     * Output only. The profile information per field.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $profile = null;
    /**
     * Output only. The data scanned for this result.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $scanned_data = null;
    /**
     * Output only. The result of post scan actions.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $post_scan_actions_result = null;
    /**
     * Output only. The status of publishing the data scan as Dataplex Universal
     * Catalog metadata.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $catalog_publishing_status = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $row_count
     *           Output only. The count of rows scanned.
     *     @type \Google\Cloud\Dataplex\V1\DataProfileResult\Profile $profile
     *           Output only. The profile information per field.
     *     @type \Google\Cloud\Dataplex\V1\ScannedData $scanned_data
     *           Output only. The data scanned for this result.
     *     @type \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult $post_scan_actions_result
     *           Output only. The result of post scan actions.
     *     @type \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $catalog_publishing_status
     *           Output only. The status of publishing the data scan as Dataplex Universal
     *           Catalog metadata.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\DataProfile::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The count of rows scanned.
     *
     * Generated from protobuf field <code>int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getRowCount()
    {
        return $this->row_count;
    }

    /**
     * Output only. The count of rows scanned.
     *
     * Generated from protobuf field <code>int64 row_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setRowCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->row_count = $var;

        return $this;
    }

    /**
     * Output only. The profile information per field.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</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);
    }

    /**
     * Output only. The profile information per field.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.Profile profile = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</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;
    }

    /**
     * Output only. The data scanned for this result.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</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);
    }

    /**
     * Output only. The data scanned for this result.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.ScannedData scanned_data = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</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;
    }

    /**
     * Output only. The result of post scan actions.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult|null
     */
    public function getPostScanActionsResult()
    {
        return $this->post_scan_actions_result;
    }

    public function hasPostScanActionsResult()
    {
        return isset($this->post_scan_actions_result);
    }

    public function clearPostScanActionsResult()
    {
        unset($this->post_scan_actions_result);
    }

    /**
     * Output only. The result of post scan actions.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataProfileResult.PostScanActionsResult post_scan_actions_result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult $var
     * @return $this
     */
    public function setPostScanActionsResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataProfileResult\PostScanActionsResult::class);
        $this->post_scan_actions_result = $var;

        return $this;
    }

    /**
     * Output only. The status of publishing the data scan as Dataplex Universal
     * Catalog metadata.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus|null
     */
    public function getCatalogPublishingStatus()
    {
        return $this->catalog_publishing_status;
    }

    public function hasCatalogPublishingStatus()
    {
        return isset($this->catalog_publishing_status);
    }

    public function clearCatalogPublishingStatus()
    {
        unset($this->catalog_publishing_status);
    }

    /**
     * Output only. The status of publishing the data scan as Dataplex Universal
     * Catalog metadata.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DataScanCatalogPublishingStatus catalog_publishing_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus $var
     * @return $this
     */
    public function setCatalogPublishingStatus($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataplex\V1\DataScanCatalogPublishingStatus::class);
        $this->catalog_publishing_status = $var;

        return $this;
    }

}

