<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/contactcenterinsights/v1/resources.proto

namespace Google\Cloud\ContactCenterInsights\V1;

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

/**
 * Dialogflow interaction data.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.DialogflowInteractionData</code>
 */
class DialogflowInteractionData extends \Google\Protobuf\Internal\Message
{
    /**
     * The Dialogflow intent resource path. Format:
     * projects/{project}/agent/{agent}/intents/{intent}
     *
     * Generated from protobuf field <code>string dialogflow_intent_id = 1;</code>
     */
    private $dialogflow_intent_id = '';
    /**
     * The confidence of the match ranging from 0.0 (completely uncertain) to 1.0
     * (completely certain).
     *
     * Generated from protobuf field <code>float confidence = 2;</code>
     */
    private $confidence = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dialogflow_intent_id
     *           The Dialogflow intent resource path. Format:
     *           projects/{project}/agent/{agent}/intents/{intent}
     *     @type float $confidence
     *           The confidence of the match ranging from 0.0 (completely uncertain) to 1.0
     *           (completely certain).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The Dialogflow intent resource path. Format:
     * projects/{project}/agent/{agent}/intents/{intent}
     *
     * Generated from protobuf field <code>string dialogflow_intent_id = 1;</code>
     * @return string
     */
    public function getDialogflowIntentId()
    {
        return $this->dialogflow_intent_id;
    }

    /**
     * The Dialogflow intent resource path. Format:
     * projects/{project}/agent/{agent}/intents/{intent}
     *
     * Generated from protobuf field <code>string dialogflow_intent_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDialogflowIntentId($var)
    {
        GPBUtil::checkString($var, True);
        $this->dialogflow_intent_id = $var;

        return $this;
    }

    /**
     * The confidence of the match ranging from 0.0 (completely uncertain) to 1.0
     * (completely certain).
     *
     * Generated from protobuf field <code>float confidence = 2;</code>
     * @return float
     */
    public function getConfidence()
    {
        return $this->confidence;
    }

    /**
     * The confidence of the match ranging from 0.0 (completely uncertain) to 1.0
     * (completely certain).
     *
     * Generated from protobuf field <code>float confidence = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setConfidence($var)
    {
        GPBUtil::checkFloat($var);
        $this->confidence = $var;

        return $this;
    }

}

