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

namespace Keyapis\IotConnect\V1\PostCallbackStatusResponse;

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

/**
 * Коммент 1
 *
 * Generated from protobuf message <code>keyapis.iot_connect.v1.PostCallbackStatusResponse.Status</code>
 */
class Status extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор пользователя
     *
     * Generated from protobuf field <code>int32 user_id = 1;</code>
     */
    protected $user_id = 0;
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string id = 2;</code>
     */
    protected $id = '';
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string parent_id = 3;</code>
     */
    protected $parent_id = '';
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string name = 4;</code>
     */
    protected $name = '';
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string default_name = 5;</code>
     */
    protected $default_name = '';
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string home = 6;</code>
     */
    protected $home = '';
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string room = 7;</code>
     */
    protected $room = '';
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>repeated string groups = 8;</code>
     */
    private $groups;
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string model_id = 9;</code>
     */
    protected $model_id = '';
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string hw_version = 10;</code>
     */
    protected $hw_version = '';
    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string sw_version = 11;</code>
     */
    protected $sw_version = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $user_id
     *           Идентификатор пользователя
     *     @type string $id
     *           Коммент 1
     *     @type string $parent_id
     *           Коммент 1
     *     @type string $name
     *           Коммент 1
     *     @type string $default_name
     *           Коммент 1
     *     @type string $home
     *           Коммент 1
     *     @type string $room
     *           Коммент 1
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $groups
     *           Коммент 1
     *     @type string $model_id
     *           Коммент 1
     *     @type string $hw_version
     *           Коммент 1
     *     @type string $sw_version
     *           Коммент 1
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\IotConnect\V1\KeyapisIotConnectCallbackV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор пользователя
     *
     * Generated from protobuf field <code>int32 user_id = 1;</code>
     * @return int
     */
    public function getUserId()
    {
        return $this->user_id;
    }

    /**
     * Идентификатор пользователя
     *
     * Generated from protobuf field <code>int32 user_id = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setUserId($var)
    {
        GPBUtil::checkInt32($var);
        $this->user_id = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string id = 2;</code>
     * @return string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string id = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkString($var, True);
        $this->id = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string parent_id = 3;</code>
     * @return string
     */
    public function getParentId()
    {
        return $this->parent_id;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string parent_id = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setParentId($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent_id = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string name = 4;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string name = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string default_name = 5;</code>
     * @return string
     */
    public function getDefaultName()
    {
        return $this->default_name;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string default_name = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setDefaultName($var)
    {
        GPBUtil::checkString($var, True);
        $this->default_name = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string home = 6;</code>
     * @return string
     */
    public function getHome()
    {
        return $this->home;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string home = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setHome($var)
    {
        GPBUtil::checkString($var, True);
        $this->home = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string room = 7;</code>
     * @return string
     */
    public function getRoom()
    {
        return $this->room;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string room = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setRoom($var)
    {
        GPBUtil::checkString($var, True);
        $this->room = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>repeated string groups = 8;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGroups()
    {
        return $this->groups;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>repeated string groups = 8;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGroups($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->groups = $arr;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string model_id = 9;</code>
     * @return string
     */
    public function getModelId()
    {
        return $this->model_id;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string model_id = 9;</code>
     * @param string $var
     * @return $this
     */
    public function setModelId($var)
    {
        GPBUtil::checkString($var, True);
        $this->model_id = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string hw_version = 10;</code>
     * @return string
     */
    public function getHwVersion()
    {
        return $this->hw_version;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string hw_version = 10;</code>
     * @param string $var
     * @return $this
     */
    public function setHwVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->hw_version = $var;

        return $this;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string sw_version = 11;</code>
     * @return string
     */
    public function getSwVersion()
    {
        return $this->sw_version;
    }

    /**
     * Коммент 1
     *
     * Generated from protobuf field <code>string sw_version = 11;</code>
     * @param string $var
     * @return $this
     */
    public function setSwVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->sw_version = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, \Keyapis\IotConnect\V1\PostCallbackStatusResponse_Status::class);

