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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Debug information related to ingested context reference.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo</code>
 */
class IngestedContextReferenceDebugInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Indicates if the project is allowlisted to use ingested context
     * reference.
     *
     * Generated from protobuf field <code>bool project_not_allowlisted = 1;</code>
     */
    protected $project_not_allowlisted = false;
    /**
     * The status of context_reference retrieval from database.
     *
     * Generated from protobuf field <code>bool context_reference_retrieved = 2;</code>
     */
    protected $context_reference_retrieved = false;
    /**
     * Parameters ingested from the context reference.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3;</code>
     */
    private $ingested_parameters_debug_info;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $project_not_allowlisted
     *           Indicates if the project is allowlisted to use ingested context
     *           reference.
     *     @type bool $context_reference_retrieved
     *           The status of context_reference retrieval from database.
     *     @type \Google\Cloud\Dialogflow\V2\IngestedContextReferenceDebugInfo\IngestedParameterDebugInfo[] $ingested_parameters_debug_info
     *           Parameters ingested from the context reference.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Participant::initOnce();
        parent::__construct($data);
    }

    /**
     * Indicates if the project is allowlisted to use ingested context
     * reference.
     *
     * Generated from protobuf field <code>bool project_not_allowlisted = 1;</code>
     * @return bool
     */
    public function getProjectNotAllowlisted()
    {
        return $this->project_not_allowlisted;
    }

    /**
     * Indicates if the project is allowlisted to use ingested context
     * reference.
     *
     * Generated from protobuf field <code>bool project_not_allowlisted = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setProjectNotAllowlisted($var)
    {
        GPBUtil::checkBool($var);
        $this->project_not_allowlisted = $var;

        return $this;
    }

    /**
     * The status of context_reference retrieval from database.
     *
     * Generated from protobuf field <code>bool context_reference_retrieved = 2;</code>
     * @return bool
     */
    public function getContextReferenceRetrieved()
    {
        return $this->context_reference_retrieved;
    }

    /**
     * The status of context_reference retrieval from database.
     *
     * Generated from protobuf field <code>bool context_reference_retrieved = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setContextReferenceRetrieved($var)
    {
        GPBUtil::checkBool($var);
        $this->context_reference_retrieved = $var;

        return $this;
    }

    /**
     * Parameters ingested from the context reference.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3;</code>
     * @return RepeatedField<\Google\Cloud\Dialogflow\V2\IngestedContextReferenceDebugInfo\IngestedParameterDebugInfo>
     */
    public function getIngestedParametersDebugInfo()
    {
        return $this->ingested_parameters_debug_info;
    }

    /**
     * Parameters ingested from the context reference.
     *
     * Generated from protobuf field <code>repeated .google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo ingested_parameters_debug_info = 3;</code>
     * @param \Google\Cloud\Dialogflow\V2\IngestedContextReferenceDebugInfo\IngestedParameterDebugInfo[] $var
     * @return $this
     */
    public function setIngestedParametersDebugInfo($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\IngestedContextReferenceDebugInfo\IngestedParameterDebugInfo::class);
        $this->ingested_parameters_debug_info = $arr;

        return $this;
    }

}

