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

namespace Keyapis\AccessControl\V1\AccessZone\SavingError;

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

/**
 * Несовпадение квартирограммы точки доступа.
 * Причины:
 * - Точка доступа принадлежит другой квартирограмме — её flatgramm_id не совпадает с flatgramm_id зоны доступа
 *
 * Generated from protobuf message <code>keyapis.access_control.v1.AccessZone.SavingError.AccessPointFlatgrammMismatch</code>
 */
class AccessPointFlatgrammMismatch 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 = '';
    /**
     * Идентификатор квартирограммы точки доступа.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 access_point_flatgramm_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $access_point_flatgramm_id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $access_point_id
     *           Идентификатор точки доступа с несовпадающей квартирограммой.
     *           # Тип: Guid
     *     @type int $access_point_flatgramm_id
     *           Идентификатор квартирограммы точки доступа.
     *           # Диапазон: 1..2147483647
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\AccessControl\V1\KeyapisAccessControlAccessZoneV1::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;
    }

    /**
     * Идентификатор квартирограммы точки доступа.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 access_point_flatgramm_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getAccessPointFlatgrammId()
    {
        return $this->access_point_flatgramm_id;
    }

    /**
     * Идентификатор квартирограммы точки доступа.
     * # Диапазон: 1..2147483647
     *
     * Generated from protobuf field <code>int32 access_point_flatgramm_id = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setAccessPointFlatgrammId($var)
    {
        GPBUtil::checkInt32($var);
        $this->access_point_flatgramm_id = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessPointFlatgrammMismatch::class, \Keyapis\AccessControl\V1\AccessZone_SavingError_AccessPointFlatgrammMismatch::class);

