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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Suggestion for coaching agents.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.AgentCoachingSuggestion</code>
 */
class AgentCoachingSuggestion extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Instructions applicable based on the current context.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $applicable_instructions;
    /**
     * Optional. Suggested actions for the agent to take.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $agent_action_suggestions;
    /**
     * Optional. Sample response for the Agent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $sample_responses;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\V2\AgentCoachingInstruction[] $applicable_instructions
     *           Optional. Instructions applicable based on the current context.
     *     @type \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\AgentActionSuggestion[] $agent_action_suggestions
     *           Optional. Suggested actions for the agent to take.
     *     @type \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\SampleResponse[] $sample_responses
     *           Optional. Sample response for the Agent.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Generator::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Instructions applicable based on the current context.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\AgentCoachingInstruction>
     */
    public function getApplicableInstructions()
    {
        return $this->applicable_instructions;
    }

    /**
     * Optional. Instructions applicable based on the current context.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingInstruction applicable_instructions = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\Dialogflow\V2\AgentCoachingInstruction[] $var
     * @return $this
     */
    public function setApplicableInstructions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\AgentCoachingInstruction::class);
        $this->applicable_instructions = $arr;

        return $this;
    }

    /**
     * Optional. Suggested actions for the agent to take.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\AgentActionSuggestion>
     */
    public function getAgentActionSuggestions()
    {
        return $this->agent_action_suggestions;
    }

    /**
     * Optional. Suggested actions for the agent to take.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.AgentActionSuggestion agent_action_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\AgentActionSuggestion[] $var
     * @return $this
     */
    public function setAgentActionSuggestions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\AgentActionSuggestion::class);
        $this->agent_action_suggestions = $arr;

        return $this;
    }

    /**
     * Optional. Sample response for the Agent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\SampleResponse>
     */
    public function getSampleResponses()
    {
        return $this->sample_responses;
    }

    /**
     * Optional. Sample response for the Agent.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.AgentCoachingSuggestion.SampleResponse sample_responses = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\SampleResponse[] $var
     * @return $this
     */
    public function setSampleResponses($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\AgentCoachingSuggestion\SampleResponse::class);
        $this->sample_responses = $arr;

        return $this;
    }

}

