<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/access_control/v1/keyapis_access_control_access_point_group_v1.proto

namespace Keyapis\AccessControl\V1;

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

/**
 * Связка точки доступа и группы.
 * # Описание модели
 *
 * Generated from protobuf message <code>keyapis.access_control.v1.AccessPointGroup</code>
 */
class AccessPointGroup extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор точки доступа.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string access_point_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $access_point_id = '';
    /**
     * Идентификатор группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $group_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $access_point_id
     *           Идентификатор точки доступа.
     *           # Тип: Guid
     *     @type string $group_id
     *           Идентификатор группы.
     *           # Тип: Guid
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlAccessPointGroupV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор точки доступа.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string access_point_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAccessPointId()
    {
        return $this->access_point_id;
    }

    /**
     * Идентификатор точки доступа.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string access_point_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAccessPointId($var)
    {
        GPBUtil::checkString($var, True);
        $this->access_point_id = $var;

        return $this;
    }

    /**
     * Идентификатор группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getGroupId()
    {
        return $this->group_id;
    }

    /**
     * Идентификатор группы.
     * # Тип: Guid
     *
     * Generated from protobuf field <code>string group_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setGroupId($var)
    {
        GPBUtil::checkString($var, True);
        $this->group_id = $var;

        return $this;
    }

}

