<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/generator.proto

namespace Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion;

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

/**
 * Duplication check for the suggestion.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResult</code>
 */
class DuplicateCheckResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The duplicate suggestions.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $duplicate_suggestions;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult\DuplicateSuggestion[] $duplicate_suggestions
     *           Output only. The duplicate suggestions.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The duplicate suggestions.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult\DuplicateSuggestion>
     */
    public function getDuplicateSuggestions()
    {
        return $this->duplicate_suggestions;
    }

    /**
     * Output only. The duplicate suggestions.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.DuplicateCheckResult.DuplicateSuggestion duplicate_suggestions = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult\DuplicateSuggestion[] $var
     * @return $this
     */
    public function setDuplicateSuggestions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\DuplicateCheckResult\DuplicateSuggestion::class);
        $this->duplicate_suggestions = $arr;

        return $this;
    }

}

