<?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;

/**
 * Information about the issue.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.IssueAssignment</code>
 */
class IssueAssignment extends \Google\Protobuf\Internal\Message
{
    /**
     * Resource name of the assigned issue.
     *
     * Generated from protobuf field <code>string issue = 1;</code>
     */
    private $issue = '';
    /**
     * Score indicating the likelihood of the issue assignment.
     * currently bounded on [0,1].
     *
     * Generated from protobuf field <code>double score = 2;</code>
     */
    private $score = 0.0;
    /**
     * Immutable. Display name of the assigned issue. This field is set at time of analyis
     * and immutable since then.
     *
     * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    private $display_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $issue
     *           Resource name of the assigned issue.
     *     @type float $score
     *           Score indicating the likelihood of the issue assignment.
     *           currently bounded on [0,1].
     *     @type string $display_name
     *           Immutable. Display name of the assigned issue. This field is set at time of analyis
     *           and immutable since then.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Resource name of the assigned issue.
     *
     * Generated from protobuf field <code>string issue = 1;</code>
     * @return string
     */
    public function getIssue()
    {
        return $this->issue;
    }

    /**
     * Resource name of the assigned issue.
     *
     * Generated from protobuf field <code>string issue = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setIssue($var)
    {
        GPBUtil::checkString($var, True);
        $this->issue = $var;

        return $this;
    }

    /**
     * Score indicating the likelihood of the issue assignment.
     * currently bounded on [0,1].
     *
     * Generated from protobuf field <code>double score = 2;</code>
     * @return float
     */
    public function getScore()
    {
        return $this->score;
    }

    /**
     * Score indicating the likelihood of the issue assignment.
     * currently bounded on [0,1].
     *
     * Generated from protobuf field <code>double score = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setScore($var)
    {
        GPBUtil::checkDouble($var);
        $this->score = $var;

        return $this;
    }

    /**
     * Immutable. Display name of the assigned issue. This field is set at time of analyis
     * and immutable since then.
     *
     * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Immutable. Display name of the assigned issue. This field is set at time of analyis
     * and immutable since then.
     *
     * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

}

