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

/**
 * The response of listing issue models.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.ListIssueModelsResponse</code>
 */
class ListIssueModelsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The issue models that match the request.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.IssueModel issue_models = 1;</code>
     */
    private $issue_models;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\ContactCenterInsights\V1\IssueModel>|\Google\Protobuf\Internal\RepeatedField $issue_models
     *           The issue models that match the request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\ContactCenterInsights::initOnce();
        parent::__construct($data);
    }

    /**
     * The issue models that match the request.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.IssueModel issue_models = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIssueModels()
    {
        return $this->issue_models;
    }

    /**
     * The issue models that match the request.
     *
     * Generated from protobuf field <code>repeated .google.cloud.contactcenterinsights.v1.IssueModel issue_models = 1;</code>
     * @param array<\Google\Cloud\ContactCenterInsights\V1\IssueModel>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIssueModels($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\IssueModel::class);
        $this->issue_models = $arr;

        return $this;
    }

}

