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

namespace Keyapis\TelemetryControl\V1;

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

/**
 * Атрибуты выгрузки показаний в ГИС ЖКХ объекта строительства
 *
 * Generated from protobuf message <code>keyapis.telemetry_control.v1.BuildingGisAttributes</code>
 */
class BuildingGisAttributes extends \Google\Protobuf\Internal\Message
{
    /**
     * Идентификатор объекта строительства
     *
     * Generated from protobuf field <code>int32 id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $id = 0;
    /**
     * Горячая вода
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes hot_water = 2;</code>
     */
    protected $hot_water = null;
    /**
     * Холодная вода
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes cold_water = 3;</code>
     */
    protected $cold_water = null;
    /**
     * Теплоэнергия
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes heat = 4;</code>
     */
    protected $heat = null;
    /**
     * Газ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes gas = 5;</code>
     */
    protected $gas = null;
    /**
     * Электроэнергия
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes electricity = 6;</code>
     */
    protected $electricity = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $id
     *           Идентификатор объекта строительства
     *     @type \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $hot_water
     *           Горячая вода
     *     @type \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $cold_water
     *           Холодная вода
     *     @type \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $heat
     *           Теплоэнергия
     *     @type \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $gas
     *           Газ
     *     @type \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $electricity
     *           Электроэнергия
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlBuildingGisV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Идентификатор объекта строительства
     *
     * Generated from protobuf field <code>int32 id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Идентификатор объекта строительства
     *
     * Generated from protobuf field <code>int32 id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt32($var);
        $this->id = $var;

        return $this;
    }

    /**
     * Горячая вода
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes hot_water = 2;</code>
     * @return \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes|null
     */
    public function getHotWater()
    {
        return $this->hot_water;
    }

    public function hasHotWater()
    {
        return isset($this->hot_water);
    }

    public function clearHotWater()
    {
        unset($this->hot_water);
    }

    /**
     * Горячая вода
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes hot_water = 2;</code>
     * @param \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $var
     * @return $this
     */
    public function setHotWater($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes::class);
        $this->hot_water = $var;

        return $this;
    }

    /**
     * Холодная вода
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes cold_water = 3;</code>
     * @return \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes|null
     */
    public function getColdWater()
    {
        return $this->cold_water;
    }

    public function hasColdWater()
    {
        return isset($this->cold_water);
    }

    public function clearColdWater()
    {
        unset($this->cold_water);
    }

    /**
     * Холодная вода
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes cold_water = 3;</code>
     * @param \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $var
     * @return $this
     */
    public function setColdWater($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes::class);
        $this->cold_water = $var;

        return $this;
    }

    /**
     * Теплоэнергия
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes heat = 4;</code>
     * @return \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes|null
     */
    public function getHeat()
    {
        return $this->heat;
    }

    public function hasHeat()
    {
        return isset($this->heat);
    }

    public function clearHeat()
    {
        unset($this->heat);
    }

    /**
     * Теплоэнергия
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes heat = 4;</code>
     * @param \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $var
     * @return $this
     */
    public function setHeat($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes::class);
        $this->heat = $var;

        return $this;
    }

    /**
     * Газ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes gas = 5;</code>
     * @return \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes|null
     */
    public function getGas()
    {
        return $this->gas;
    }

    public function hasGas()
    {
        return isset($this->gas);
    }

    public function clearGas()
    {
        unset($this->gas);
    }

    /**
     * Газ
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes gas = 5;</code>
     * @param \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $var
     * @return $this
     */
    public function setGas($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes::class);
        $this->gas = $var;

        return $this;
    }

    /**
     * Электроэнергия
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes electricity = 6;</code>
     * @return \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes|null
     */
    public function getElectricity()
    {
        return $this->electricity;
    }

    public function hasElectricity()
    {
        return isset($this->electricity);
    }

    public function clearElectricity()
    {
        unset($this->electricity);
    }

    /**
     * Электроэнергия
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.BuildingGisAttributes.Attributes electricity = 6;</code>
     * @param \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes $var
     * @return $this
     */
    public function setElectricity($var)
    {
        GPBUtil::checkMessage($var, \Keyapis\TelemetryControl\V1\BuildingGisAttributes\Attributes::class);
        $this->electricity = $var;

        return $this;
    }

}

