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

namespace Google\Cloud\Dataplex\V1\DataQualityRuleResult;

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

/**
 * Contains all results from a debug query.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResultSet</code>
 */
class DebugQueryResultSet extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Contains all results. Up to 10 results can be returned.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $results;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult[] $results
     *           Output only. Contains all results. Up to 10 results can be returned.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Contains all results. Up to 10 results can be returned.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<\Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult>
     */
    public function getResults()
    {
        return $this->results;
    }

    /**
     * Output only. Contains all results. Up to 10 results can be returned.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dataplex.v1.DataQualityRuleResult.DebugQueryResult results = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult[] $var
     * @return $this
     */
    public function setResults($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityRuleResult\DebugQueryResult::class);
        $this->results = $arr;

        return $this;
    }

}

