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

namespace Google\Cloud\ContactCenterInsights\V1;

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

/**
 * Response of querying an issue model's statistics.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse</code>
 */
class CalculateIssueModelStatsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The latest label statistics for the queried issue model. Includes results
     * on both training data and data labeled after deployment.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.IssueModelLabelStats current_stats = 4;</code>
     */
    private $current_stats = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats $current_stats
     *           The latest label statistics for the queried issue model. Includes results
     *           on both training data and data labeled after deployment.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce();
        parent::__construct($data);
    }

    /**
     * The latest label statistics for the queried issue model. Includes results
     * on both training data and data labeled after deployment.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.IssueModelLabelStats current_stats = 4;</code>
     * @return \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats|null
     */
    public function getCurrentStats()
    {
        return $this->current_stats;
    }

    public function hasCurrentStats()
    {
        return isset($this->current_stats);
    }

    public function clearCurrentStats()
    {
        unset($this->current_stats);
    }

    /**
     * The latest label statistics for the queried issue model. Includes results
     * on both training data and data labeled after deployment.
     *
     * Generated from protobuf field <code>.google.cloud.contactcenterinsights.v1.IssueModelLabelStats current_stats = 4;</code>
     * @param \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats $var
     * @return $this
     */
    public function setCurrentStats($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\IssueModelLabelStats::class);
        $this->current_stats = $var;

        return $this;
    }

}

