<?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;

/**
 * Sources for the suggestion.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.AgentCoachingSuggestion.Sources</code>
 */
class Sources extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Source instruction indexes for the suggestion. This is the
     * index of the applicable_instructions field.
     *
     * Generated from protobuf field <code>repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $instruction_indexes;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int[] $instruction_indexes
     *           Output only. Source instruction indexes for the suggestion. This is the
     *           index of the applicable_instructions field.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Source instruction indexes for the suggestion. This is the
     * index of the applicable_instructions field.
     *
     * Generated from protobuf field <code>repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return RepeatedField<int>
     */
    public function getInstructionIndexes()
    {
        return $this->instruction_indexes;
    }

    /**
     * Output only. Source instruction indexes for the suggestion. This is the
     * index of the applicable_instructions field.
     *
     * Generated from protobuf field <code>repeated int32 instruction_indexes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int[] $var
     * @return $this
     */
    public function setInstructionIndexes($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
        $this->instruction_indexes = $arr;

        return $this;
    }

}

