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

namespace Google\Cloud\Dialogflow\V2\IngestedContextReferenceDebugInfo;

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

/**
 * Debug information related to ingested parameters from context reference.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo</code>
 */
class IngestedParameterDebugInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the parameter in the context reference.
     *
     * Generated from protobuf field <code>string parameter = 1;</code>
     */
    protected $parameter = '';
    /**
     * The ingestion status for this specific parameter.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2;</code>
     */
    protected $ingestion_status = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parameter
     *           The name of the parameter in the context reference.
     *     @type int $ingestion_status
     *           The ingestion status for this specific parameter.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Participant::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the parameter in the context reference.
     *
     * Generated from protobuf field <code>string parameter = 1;</code>
     * @return string
     */
    public function getParameter()
    {
        return $this->parameter;
    }

    /**
     * The name of the parameter in the context reference.
     *
     * Generated from protobuf field <code>string parameter = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setParameter($var)
    {
        GPBUtil::checkString($var, True);
        $this->parameter = $var;

        return $this;
    }

    /**
     * The ingestion status for this specific parameter.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2;</code>
     * @return int
     */
    public function getIngestionStatus()
    {
        return $this->ingestion_status;
    }

    /**
     * The ingestion status for this specific parameter.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus ingestion_status = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setIngestionStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dialogflow\V2\IngestedContextReferenceDebugInfo\IngestedParameterDebugInfo\IngestionStatus::class);
        $this->ingestion_status = $var;

        return $this;
    }

}

