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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Represents a notification sent to Cloud Pub/Sub subscribers for
 * human agent assistant events in a specific conversation.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.HumanAgentAssistantEvent</code>
 */
class HumanAgentAssistantEvent extends \Google\Protobuf\Internal\Message
{
    /**
     * The conversation this notification refers to.
     * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
     *
     * Generated from protobuf field <code>string conversation = 1;</code>
     */
    private $conversation = '';
    /**
     * The participant that the suggestion is compiled for.
     * Format: `projects/<Project ID>/conversations/<Conversation
     * ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
     *
     * Generated from protobuf field <code>string participant = 3;</code>
     */
    private $participant = '';
    /**
     * The suggestion results payload that this notification refers to.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;</code>
     */
    private $suggestion_results;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $conversation
     *           The conversation this notification refers to.
     *           Format: `projects/<Project ID>/conversations/<Conversation ID>`.
     *     @type string $participant
     *           The participant that the suggestion is compiled for.
     *           Format: `projects/<Project ID>/conversations/<Conversation
     *           ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
     *     @type array<\Google\Cloud\Dialogflow\V2\SuggestionResult>|\Google\Protobuf\Internal\RepeatedField $suggestion_results
     *           The suggestion results payload that this notification refers to.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\HumanAgentAssistantEvent::initOnce();
        parent::__construct($data);
    }

    /**
     * The conversation this notification refers to.
     * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
     *
     * Generated from protobuf field <code>string conversation = 1;</code>
     * @return string
     */
    public function getConversation()
    {
        return $this->conversation;
    }

    /**
     * The conversation this notification refers to.
     * Format: `projects/<Project ID>/conversations/<Conversation ID>`.
     *
     * Generated from protobuf field <code>string conversation = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setConversation($var)
    {
        GPBUtil::checkString($var, True);
        $this->conversation = $var;

        return $this;
    }

    /**
     * The participant that the suggestion is compiled for.
     * Format: `projects/<Project ID>/conversations/<Conversation
     * ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
     *
     * Generated from protobuf field <code>string participant = 3;</code>
     * @return string
     */
    public function getParticipant()
    {
        return $this->participant;
    }

    /**
     * The participant that the suggestion is compiled for.
     * Format: `projects/<Project ID>/conversations/<Conversation
     * ID>/participants/<Participant ID>`. It will not be set in legacy workflow.
     *
     * Generated from protobuf field <code>string participant = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setParticipant($var)
    {
        GPBUtil::checkString($var, True);
        $this->participant = $var;

        return $this;
    }

    /**
     * The suggestion results payload that this notification refers to.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSuggestionResults()
    {
        return $this->suggestion_results;
    }

    /**
     * The suggestion results payload that this notification refers to.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.SuggestionResult suggestion_results = 5;</code>
     * @param array<\Google\Cloud\Dialogflow\V2\SuggestionResult>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSuggestionResults($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\SuggestionResult::class);
        $this->suggestion_results = $arr;

        return $this;
    }

}

