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

namespace Google\Cloud\MigrationCenter\V1;

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

/**
 * Hosts content.
 *
 * Generated from protobuf message <code>google.cloud.migrationcenter.v1.HostsEntryList</code>
 */
class HostsEntryList extends \Google\Protobuf\Internal\Message
{
    /**
     * Hosts entries.
     *
     * Generated from protobuf field <code>repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;</code>
     */
    private $entries;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\MigrationCenter\V1\HostsEntry>|\Google\Protobuf\Internal\RepeatedField $entries
     *           Hosts entries.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Migrationcenter\V1\Migrationcenter::initOnce();
        parent::__construct($data);
    }

    /**
     * Hosts entries.
     *
     * Generated from protobuf field <code>repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getEntries()
    {
        return $this->entries;
    }

    /**
     * Hosts entries.
     *
     * Generated from protobuf field <code>repeated .google.cloud.migrationcenter.v1.HostsEntry entries = 1;</code>
     * @param array<\Google\Cloud\MigrationCenter\V1\HostsEntry>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setEntries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\MigrationCenter\V1\HostsEntry::class);
        $this->entries = $arr;

        return $this;
    }

}

