<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/access_control/v1/keyapis_access_control_access_point_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.PostAccessPointRequest</code>
 */
class PostAccessPointRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Точка доступа
     *
     * Generated from protobuf field <code>.keyapis.access_control.v1.AccessPoint data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $data = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Keyapis\AccessControl\V1\AccessPoint $data
     *           Точка доступа
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlAccessPointV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Точка доступа
     *
     * Generated from protobuf field <code>.keyapis.access_control.v1.AccessPoint data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Keyapis\AccessControl\V1\AccessPoint|null
     */
    public function getData()
    {
        return $this->data;
    }

    public function hasData()
    {
        return isset($this->data);
    }

    public function clearData()
    {
        unset($this->data);
    }

    /**
     * Точка доступа
     *
     * Generated from protobuf field <code>.keyapis.access_control.v1.AccessPoint data = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Keyapis\AccessControl\V1\AccessPoint $var
     * @return $this
     */
    public function setData($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\AccessControl\V1\AccessPoint::class);
        $this->data = $var;

        return $this;
    }

}

