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

namespace Google\Cloud\SecurityCenter\V2;

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

/**
 * Details about specific contacts
 *
 * Generated from protobuf message <code>google.cloud.securitycenter.v2.ContactDetails</code>
 */
class ContactDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * A list of contacts
     *
     * Generated from protobuf field <code>repeated .google.cloud.securitycenter.v2.Contact contacts = 1;</code>
     */
    private $contacts;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\SecurityCenter\V2\Contact>|\Google\Protobuf\Internal\RepeatedField $contacts
     *           A list of contacts
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Securitycenter\V2\ContactDetails::initOnce();
        parent::__construct($data);
    }

    /**
     * A list of contacts
     *
     * Generated from protobuf field <code>repeated .google.cloud.securitycenter.v2.Contact contacts = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getContacts()
    {
        return $this->contacts;
    }

    /**
     * A list of contacts
     *
     * Generated from protobuf field <code>repeated .google.cloud.securitycenter.v2.Contact contacts = 1;</code>
     * @param array<\Google\Cloud\SecurityCenter\V2\Contact>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setContacts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\SecurityCenter\V2\Contact::class);
        $this->contacts = $arr;

        return $this;
    }

}

