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

namespace Google\Cloud\Gaming\V1;

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

/**
 * The realm selector, used to match realm resources.
 *
 * Generated from protobuf message <code>google.cloud.gaming.v1.RealmSelector</code>
 */
class RealmSelector extends \Google\Protobuf\Internal\Message
{
    /**
     * List of realms to match.
     *
     * Generated from protobuf field <code>repeated string realms = 1;</code>
     */
    private $realms;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[]|\Google\Protobuf\Internal\RepeatedField $realms
     *           List of realms to match.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Gaming\V1\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * List of realms to match.
     *
     * Generated from protobuf field <code>repeated string realms = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getRealms()
    {
        return $this->realms;
    }

    /**
     * List of realms to match.
     *
     * Generated from protobuf field <code>repeated string realms = 1;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setRealms($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->realms = $arr;

        return $this;
    }

}

